* {
    box-sizing: border-box;
}

:root {
    --yellow: #facc15;
    --yellow-dark: #ca8a04;
    --amber: #f59e0b;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #f8fafc;
    --line: #e5e7eb;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7cc 0%, #ffffff 34%, #f8fafc 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img, video {
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #facc15 0%, #fde047 48%, #f59e0b 100%);
    box-shadow: 0 14px 32px rgba(202, 138, 4, 0.2);
}

.header-inner,
.page-wrap,
.hero-inner,
.footer-inner,
.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--yellow-dark);
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.logo-text strong {
    display: block;
    font-size: 22px;
    letter-spacing: -0.04em;
}

.logo-text small {
    display: block;
    color: #6b4e00;
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 700;
}

.main-nav a {
    position: relative;
    color: #374151;
}

.main-nav a.active,
.main-nav a:hover {
    color: #111827;
}

.main-nav a.active::after,
.main-nav a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 3px;
    border-radius: 999px;
    background: #111827;
}

.menu-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    padding: 8px 12px;
    font-size: 24px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    color: #ffffff;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 700ms ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1);
    transform: scale(1.04);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.76) 42%, rgba(17, 24, 39, 0.18) 100%);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(0deg, rgba(17, 24, 39, 1) 0%, rgba(17, 24, 39, 0) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.65fr);
    align-items: center;
    gap: 46px;
    padding: 72px 0;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    color: #713f12;
    background: rgba(250, 204, 21, 0.95);
    font-weight: 800;
    font-size: 14px;
}

.hero h1 {
    margin: 24px 0 18px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hero-desc {
    max-width: 680px;
    margin: 0 0 26px;
    color: #e5e7eb;
    font-size: 18px;
}

.hero-actions,
.filter-bar,
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.button,
button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    color: #111827;
    background: var(--yellow);
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(250, 204, 21, 0.25);
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
button.button:hover {
    transform: translateY(-2px);
    background: #fde047;
    box-shadow: 0 18px 36px rgba(250, 204, 21, 0.32);
}

.button.dark {
    color: #ffffff;
    background: rgba(17, 24, 39, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-panel {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    background: rgba(17, 24, 39, 0.58);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.hero-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 24px;
    background: #111827;
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.hero-stats span {
    display: block;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    text-align: center;
    font-size: 13px;
}

.hero-dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
}

.hero-dots button.active {
    width: 34px;
    background: var(--yellow);
}

.page-wrap {
    padding: 48px 0 72px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.section-head h2,
.page-title h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.section-head p,
.page-title p {
    margin: 8px 0 0;
    color: var(--muted);
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #111827;
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 260ms ease;
}

.movie-card:hover img {
    transform: scale(1.05);
}

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #111827;
    background: rgba(250, 204, 21, 0.94);
    font-size: 12px;
    font-weight: 900;
}

.movie-card-body {
    padding: 16px;
}

.movie-meta-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--yellow-dark);
    font-size: 12px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 8px 0;
    font-size: 18px;
    line-height: 1.28;
}

.movie-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tag-row span {
    padding: 4px 8px;
    border-radius: 999px;
    color: #6b4e00;
    background: #fef3c7;
    font-size: 12px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.category-tile {
    padding: 22px;
    border-radius: 24px;
    color: #111827;
    background: linear-gradient(135deg, #ffffff 0%, #fef3c7 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    border: 1px solid #fde68a;
}

.category-tile strong {
    display: block;
    margin-bottom: 8px;
    font-size: 22px;
}

.category-tile span {
    color: var(--muted);
    font-size: 14px;
}

.rank-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.rank-item {
    display: grid;
    grid-template-columns: 58px 86px 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.rank-number {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #111827;
    color: var(--yellow);
    font-weight: 900;
}

.rank-item img {
    width: 86px;
    height: 112px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-item h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-item p {
    margin: 0;
    color: var(--muted);
}

.filter-box {
    margin: 30px 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.filter-bar input,
.filter-bar select {
    min-height: 46px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 0 14px;
    background: #ffffff;
    outline: none;
}

.filter-bar input {
    flex: 1 1 320px;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--yellow);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.55fr);
    gap: 28px;
}

.player-card,
.detail-card,
.side-card {
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.player-card {
    overflow: hidden;
    background: #000000;
}

.video-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.video-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.74));
    transition: opacity 180ms ease, visibility 180ms ease;
}

.video-box.is-playing .play-layer {
    opacity: 0;
    visibility: hidden;
}

.play-button {
    width: 96px;
    height: 96px;
    border: 0;
    border-radius: 999px;
    color: #111827;
    background: var(--yellow);
    font-size: 42px;
    box-shadow: 0 20px 60px rgba(250, 204, 21, 0.42);
}

.detail-card,
.side-card {
    padding: 26px;
}

.detail-card h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: #fef3c7;
    color: #713f12;
    font-weight: 800;
    font-size: 13px;
}

.content-block {
    margin-top: 24px;
}

.content-block h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.content-block p {
    margin: 0;
    color: #374151;
    font-size: 17px;
}

.side-poster {
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 3 / 4;
    margin-bottom: 18px;
}

.side-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-list {
    display: grid;
    gap: 12px;
}

.related-list a {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: #f8fafc;
}

.related-list img {
    width: 58px;
    height: 76px;
    object-fit: cover;
    border-radius: 12px;
}

.related-list strong {
    display: block;
    font-size: 15px;
}

.related-list span {
    color: var(--muted);
    font-size: 12px;
}

.breadcrumb {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--yellow-dark);
}

.empty-state {
    display: none;
    padding: 38px;
    text-align: center;
    border-radius: 22px;
    background: #ffffff;
    color: var(--muted);
}

.site-footer {
    color: #e5e7eb;
    background: linear-gradient(90deg, #111827 0%, #1f2937 48%, #111827 100%);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    padding: 42px 0 24px;
}

.footer-logo {
    color: var(--yellow);
    font-size: 24px;
    font-weight: 900;
}

.footer-inner p {
    max-width: 560px;
    color: #9ca3af;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-content: start;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #111827;
    background: var(--yellow);
    font-weight: 800;
}

.footer-bottom {
    padding: 0 0 32px;
    color: #9ca3af;
    font-size: 14px;
}

@media (max-width: 1060px) {
    .movie-grid,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-inner,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        max-width: 420px;
    }
}

@media (max-width: 720px) {
    .header-inner {
        min-height: 68px;
    }

    .main-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 12px;
        border-radius: 18px;
        background: #ffffff;
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 10px 12px;
        border-radius: 12px;
    }

    .main-nav a.active::after,
    .main-nav a:hover::after {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .logo-text small {
        display: none;
    }

    .hero,
    .hero-inner {
        min-height: 580px;
    }

    .hero-inner {
        padding: 46px 0 78px;
    }

    .hero-panel {
        display: none;
    }

    .movie-grid,
    .category-grid,
    .rank-list {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .movie-card h3 {
        font-size: 16px;
    }

    .rank-item {
        grid-template-columns: 42px 1fr;
    }

    .rank-item img {
        display: none;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 460px) {
    .movie-grid,
    .category-grid,
    .rank-list {
        grid-template-columns: 1fr;
    }
}
