* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: #1c1917;
    background: #fafaf9;
    line-height: 1.6;
}

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

img {
    display: block;
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(28, 25, 23, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fbbf24;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.site-logo::before,
.footer-logo::before {
    content: "";
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.34);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-link {
    padding: 8px 12px;
    color: #e7e5e4;
    border-radius: 999px;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: #f59e0b;
    color: #1c1917;
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 0;
    border-radius: 12px;
    background: #f59e0b;
    cursor: pointer;
}

.menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #1c1917;
    border-radius: 999px;
}

.hero {
    position: relative;
    min-height: 90vh;
    overflow: hidden;
    background: #1c1917;
}

.hero-track,
.hero-slide {
    min-height: 90vh;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 120px 24px 70px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 1.2s ease;
    background-image: linear-gradient(to top, rgba(12, 10, 9, 0.96), rgba(12, 10, 9, 0.58), rgba(12, 10, 9, 0.12)), var(--hero-image);
    background-size: cover;
    background-position: center;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-content {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
    align-items: end;
}

.hero-text {
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    margin-bottom: 18px;
    border-radius: 999px;
    color: #1c1917;
    background: #f59e0b;
    font-size: 14px;
    font-weight: 800;
}

.hero h1,
.hero h2 {
    margin: 0 0 18px;
    color: #fff7ed;
    font-size: clamp(38px, 7vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero p {
    max-width: 700px;
    margin: 0 0 22px;
    color: #e7e5e4;
    font-size: 18px;
}

.hero-meta,
.detail-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #a8a29e;
    font-size: 14px;
}

.hero-meta span,
.detail-meta span,
.card-meta span {
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button-primary,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
    color: #1c1917;
    background: #f59e0b;
    box-shadow: 0 16px 40px rgba(245, 158, 11, 0.28);
}

.button-secondary {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.button-primary:hover,
.button-secondary:hover {
    transform: translateY(-2px);
}

.hero-side {
    padding: 18px;
    border-radius: 26px;
    background: rgba(28, 25, 23, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
}

.hero-side h3 {
    margin: 0 0 14px;
    color: #fff7ed;
    font-size: 18px;
}

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

.hero-category-grid a {
    display: block;
    padding: 10px 12px;
    border-radius: 16px;
    color: #e7e5e4;
    background: rgba(255, 255, 255, 0.09);
    transition: background 0.2s ease, color 0.2s ease;
}

.hero-category-grid a:hover {
    background: #f59e0b;
    color: #1c1917;
}

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

.hero-dot {
    width: 42px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

.hero-dot.is-active {
    background: #f59e0b;
}

.page-shell,
.section-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px;
}

.section-alt {
    background: linear-gradient(135deg, #fffbeb, #f5f5f4);
}

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

.section-heading h2,
.page-title h1,
.content-section h2 {
    margin: 0;
    color: #1c1917;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.section-heading p,
.page-title p,
.content-section p {
    margin: 10px 0 0;
    color: #57534e;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(28, 25, 23, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 46px rgba(28, 25, 23, 0.15);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #292524;
}

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

.movie-card:hover .poster-link img {
    transform: scale(1.08);
}

.poster-link::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 58%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
}

.poster-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 999px;
    color: #1c1917;
    background: #f59e0b;
    font-size: 12px;
    font-weight: 900;
}

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

.movie-card h3 {
    margin: 10px 0 8px;
    color: #1c1917;
    font-size: 19px;
    line-height: 1.25;
}

.movie-card p {
    min-height: 52px;
    margin: 0;
    color: #57534e;
    font-size: 14px;
}

.card-meta span {
    color: #78716c;
    background: #f5f5f4;
}

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

.tag-row span,
.detail-tags span {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    color: #92400e;
    background: #fffbeb;
    font-size: 12px;
    font-weight: 700;
}

.search-panel {
    max-width: 1280px;
    margin: -24px auto 0;
    padding: 18px 24px;
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 16px;
    align-items: center;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(28, 25, 23, 0.1);
}

.search-label {
    color: #1c1917;
    font-weight: 900;
}

.search-panel input {
    width: 100%;
    min-height: 46px;
    padding: 10px 16px;
    border: 1px solid #e7e5e4;
    border-radius: 999px;
    outline: none;
    font-size: 15px;
}

.search-panel input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.search-hints {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.search-hints span {
    padding: 6px 10px;
    border-radius: 999px;
    color: #78716c;
    background: #f5f5f4;
    font-size: 12px;
}

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

.category-tile {
    min-height: 128px;
    padding: 20px;
    border-radius: 24px;
    color: #fff7ed;
    background: linear-gradient(135deg, #292524, #57534e);
    box-shadow: 0 16px 38px rgba(28, 25, 23, 0.16);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:nth-child(2n) {
    background: linear-gradient(135deg, #78350f, #f59e0b);
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 52px rgba(28, 25, 23, 0.22);
}

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

.category-tile span {
    color: rgba(255, 247, 237, 0.82);
}

.page-title {
    padding: 64px 24px 34px;
    color: #fff7ed;
    background: radial-gradient(circle at 18% 10%, rgba(245, 158, 11, 0.52), transparent 28%), linear-gradient(135deg, #1c1917, #44403c);
}

.page-title-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.page-title h1,
.page-title p {
    color: #fff7ed;
}

.rank-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.rank-item {
    display: grid;
    grid-template-columns: 64px 116px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(28, 25, 23, 0.08);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    color: #1c1917;
    background: #f59e0b;
    font-size: 20px;
    font-weight: 900;
}

.rank-item img {
    width: 116px;
    height: 66px;
    object-fit: cover;
    border-radius: 16px;
}

.rank-copy h3 {
    margin: 0 0 6px;
    font-size: 19px;
}

.rank-copy p {
    margin: 0;
    color: #57534e;
    font-size: 14px;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.mini-card {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(28, 25, 23, 0.08);
}

.mini-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.mini-card span,
.mini-card em {
    display: block;
    padding: 0 12px;
}

.mini-card span {
    padding-top: 10px;
    color: #1c1917;
    font-weight: 800;
}

.mini-card em {
    padding-bottom: 12px;
    color: #78716c;
    font-size: 13px;
    font-style: normal;
}

.detail-hero {
    position: relative;
    color: #fff7ed;
    background-image: linear-gradient(to top, rgba(12, 10, 9, 0.98), rgba(12, 10, 9, 0.72), rgba(12, 10, 9, 0.42)), var(--detail-image);
    background-size: cover;
    background-position: center;
}

.detail-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 86px 24px 58px;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.detail-copy p {
    max-width: 820px;
    color: #e7e5e4;
    font-size: 18px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.player-section,
.content-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 24px;
}

.player-card {
    overflow: hidden;
    border-radius: 28px;
    background: #1c1917;
    box-shadow: 0 24px 70px rgba(28, 25, 23, 0.22);
}

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

.player-frame video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff7ed;
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.28)), var(--poster-image);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: 900;
}

.player-cover.is-hidden {
    display: none;
}

.play-button-face {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    border-radius: 999px;
    color: #1c1917;
    background: #f59e0b;
    box-shadow: 0 18px 48px rgba(245, 158, 11, 0.34);
}

.play-icon {
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid #1c1917;
}

.content-section {
    display: grid;
    gap: 18px;
}

.content-panel {
    padding: 26px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(28, 25, 23, 0.08);
}

.content-panel p {
    color: #44403c;
    font-size: 17px;
}

.empty-state {
    display: none;
    padding: 28px;
    border-radius: 22px;
    background: #fff7ed;
    color: #92400e;
    font-weight: 800;
}

.empty-state.is-visible {
    display: block;
}

.site-footer {
    margin-top: 40px;
    background: #1c1917;
    color: #d6d3d1;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 36px 24px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 24px;
}

.footer-inner p {
    max-width: 520px;
    color: #a8a29e;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

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

    .category-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mini-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-side {
        max-width: 620px;
    }
}

@media (max-width: 820px) {
    .header-inner {
        align-items: flex-start;
    }

    .menu-button {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 68px;
        display: none;
        justify-content: flex-start;
        padding: 14px;
        border-radius: 20px;
        background: rgba(28, 25, 23, 0.96);
    }

    .site-nav.is-open {
        display: flex;
    }

    .hero-slide {
        padding-top: 96px;
    }

    .movie-grid,
    .rank-list,
    .footer-inner,
    .detail-hero-inner {
        grid-template-columns: 1fr;
    }

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

    .rank-item img {
        width: 92px;
        height: 58px;
    }

    .search-panel {
        grid-template-columns: 1fr;
    }

    .category-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-poster {
        max-width: 320px;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .header-inner,
    .page-shell,
    .section-wrap,
    .player-section,
    .content-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-slide {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-category-grid,
    .category-strip {
        grid-template-columns: 1fr;
    }

    .movie-grid {
        grid-template-columns: 1fr;
    }
}
