:root {
    --stone-950: #0c0a09;
    --stone-900: #1c1917;
    --stone-800: #292524;
    --stone-700: #44403c;
    --stone-600: #57534e;
    --stone-200: #e7e5e4;
    --stone-100: #f5f5f4;
    --amber-950: #451a03;
    --amber-900: #78350f;
    --amber-800: #92400e;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-300: #fcd34d;
    --amber-200: #fde68a;
    --amber-100: #fef3c7;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(120, 53, 15, 0.18);
    --shadow-lg: 0 20px 55px rgba(120, 53, 15, 0.28);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--stone-900);
    background-color: #fafaf9;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(120, 53, 15, 0.035) 2px,
        rgba(120, 53, 15, 0.035) 4px
    );
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--amber-900), #9a3412, var(--amber-900));
    border-bottom: 4px solid #ea580c;
    box-shadow: 0 12px 28px rgba(69, 26, 3, 0.28);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--amber-100);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--amber-900);
    background: radial-gradient(circle at 35% 30%, var(--white), var(--amber-200));
    box-shadow: 0 0 0 5px rgba(253, 230, 138, 0.14);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a {
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--amber-100);
    font-size: 15px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: var(--amber-100);
    background: rgba(255, 255, 255, 0.12);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
    border-radius: 99px;
}

.hero-carousel {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    color: var(--amber-100);
    background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.28), transparent 34%), linear-gradient(135deg, #1c1917, #451a03 52%, #0c0a09);
}

.hero-slide {
    display: none;
    position: relative;
    min-height: 660px;
    align-items: center;
    padding: 88px 0;
}

.hero-slide.is-active {
    display: flex;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    filter: saturate(1.08) contrast(1.05);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(12, 10, 9, 0.95), rgba(69, 26, 3, 0.74), rgba(12, 10, 9, 0.38));
}

.hero-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 44px;
}

.hero-copy {
    max-width: 740px;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 8px 14px;
    border: 1px solid rgba(253, 230, 138, 0.35);
    border-radius: 999px;
    color: var(--amber-200);
    background: rgba(69, 26, 3, 0.42);
    backdrop-filter: blur(8px);
    font-size: 14px;
    font-weight: 800;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0;
    font-size: clamp(40px, 7vw, 82px);
    line-height: 0.95;
    font-weight: 950;
    letter-spacing: -0.05em;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.32);
}

.hero-title-sub {
    display: block;
    margin-top: 14px;
    color: var(--amber-300);
    font-size: clamp(28px, 4vw, 54px);
}

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

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--stone-900);
    background: linear-gradient(135deg, var(--amber-200), var(--amber-500));
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.32);
}

.btn-ghost {
    color: var(--amber-100);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(253, 230, 138, 0.28);
}

.hero-search {
    display: flex;
    width: min(100%, 560px);
    margin-top: 30px;
    padding: 8px;
    border: 1px solid rgba(253, 230, 138, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--white);
    background: transparent;
    padding: 0 16px;
}

.hero-search input::placeholder {
    color: rgba(255, 251, 235, 0.68);
}

.hero-search button {
    border: 0;
}

.hero-panel {
    position: relative;
    border: 1px solid rgba(253, 230, 138, 0.22);
    border-radius: 32px;
    padding: 16px;
    background: rgba(28, 25, 23, 0.38);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(14px);
}

.hero-poster {
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--amber-900), var(--stone-900));
}

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

.hero-panel:hover .hero-poster img {
    transform: scale(1.04);
}

.hero-panel-meta {
    position: absolute;
    right: 28px;
    bottom: 28px;
    left: 28px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(12, 10, 9, 0.72);
    backdrop-filter: blur(10px);
}

.hero-panel-meta strong {
    display: block;
    color: var(--amber-200);
    font-size: 20px;
}

.hero-panel-meta span {
    color: #fffbeb;
    font-size: 14px;
}

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

.hero-dot {
    width: 38px;
    height: 5px;
    border: 0;
    border-radius: 99px;
    background: rgba(253, 230, 138, 0.35);
}

.hero-dot.is-active {
    background: var(--amber-300);
}

.section {
    margin-top: 64px;
}

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

.section-title {
    margin: 0;
    color: var(--stone-900);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.section-desc {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--stone-600);
    font-size: 16px;
}

.more-link {
    color: var(--amber-700);
    font-weight: 900;
    white-space: nowrap;
}

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

.category-tile {
    min-height: 128px;
    padding: 22px;
    border: 1px solid rgba(146, 64, 14, 0.12);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--white), #fffbeb);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-tile strong {
    display: block;
    color: var(--stone-900);
    font-size: 20px;
    font-weight: 950;
}

.category-tile span {
    display: block;
    margin-top: 8px;
    color: var(--stone-600);
    font-size: 14px;
}

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

.movie-grid.grid-large {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(146, 64, 14, 0.12);
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-card a {
    display: block;
    height: 100%;
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--amber-900), var(--stone-900));
}

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

.movie-card:hover .poster-wrap img {
    transform: scale(1.06);
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--stone-900);
    background: var(--amber-200);
    font-size: 12px;
    font-weight: 900;
}

.score {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--amber-100);
    background: rgba(12, 10, 9, 0.76);
    font-size: 13px;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.card-body {
    padding: 14px;
}

.card-title {
    margin: 0;
    color: var(--stone-900);
    font-size: 16px;
    font-weight: 950;
    line-height: 1.35;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 9px;
    color: var(--stone-600);
    font-size: 13px;
}

.card-meta b {
    color: var(--amber-700);
}

.card-line {
    margin: 10px 0 0;
    color: var(--stone-600);
    font-size: 13px;
    line-height: 1.5;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 64px 82px 1fr;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid rgba(146, 64, 14, 0.12);
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: var(--stone-900);
    background: linear-gradient(135deg, var(--amber-200), var(--amber-500));
    font-size: 20px;
    font-weight: 950;
}

.rank-cover {
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 3 / 4;
    background: var(--stone-900);
}

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

.rank-content h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 950;
}

.rank-content p {
    margin: 6px 0 0;
    color: var(--stone-600);
    font-size: 14px;
}

.page-hero {
    padding: 68px 0 44px;
    color: var(--amber-100);
    background: radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.28), transparent 36%), linear-gradient(135deg, var(--stone-900), var(--amber-950));
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: #fffbeb;
    font-size: 18px;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 0.7fr;
    gap: 14px;
    margin: 26px 0 28px;
    padding: 16px;
    border: 1px solid rgba(146, 64, 14, 0.14);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.filter-bar input,
.filter-bar select {
    min-height: 46px;
    width: 100%;
    border: 1px solid rgba(146, 64, 14, 0.18);
    border-radius: 999px;
    outline: 0;
    color: var(--stone-900);
    background: var(--white);
    padding: 0 16px;
}

.detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    margin-top: 34px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0 0;
    color: var(--stone-600);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--amber-700);
    font-weight: 800;
}

.player-card,
.detail-card,
.side-card {
    border: 1px solid rgba(146, 64, 14, 0.12);
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow);
}

.player-card {
    overflow: hidden;
}

.player-stage {
    position: relative;
    overflow: hidden;
    background: #000000;
}

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    background: linear-gradient(135deg, rgba(12, 10, 9, 0.3), rgba(69, 26, 3, 0.64));
    transition: opacity 0.24s ease;
}

.play-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.play-icon {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    color: var(--stone-900);
    background: linear-gradient(135deg, var(--amber-200), var(--amber-500));
    font-size: 34px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.player-info {
    padding: 22px;
}

.player-info h1 {
    margin: 0;
    color: var(--stone-900);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 950;
}

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

.detail-tags span {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--amber-900);
    background: var(--amber-100);
    font-size: 13px;
    font-weight: 800;
}

.detail-card {
    margin-top: 22px;
    padding: 26px;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 14px;
    color: var(--stone-900);
    font-size: 24px;
    font-weight: 950;
}

.detail-card p {
    margin: 0 0 16px;
    color: var(--stone-700);
    font-size: 16px;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.side-card {
    padding: 18px;
}

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

.side-link {
    display: grid;
    grid-template-columns: 58px 1fr;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 16px;
    transition: background 0.2s ease;
}

.side-link:hover {
    background: #fffbeb;
}

.side-link img {
    width: 58px;
    height: 76px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--stone-900);
}

.side-link strong {
    display: block;
    color: var(--stone-900);
    font-size: 14px;
    line-height: 1.35;
}

.side-link span {
    display: block;
    margin-top: 5px;
    color: var(--stone-600);
    font-size: 12px;
}

.site-footer {
    margin-top: 80px;
    color: var(--amber-100);
    background: linear-gradient(90deg, var(--stone-900), var(--amber-950), var(--stone-900));
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
    padding: 42px 0;
}

.footer-inner h2,
.footer-inner h3 {
    margin: 0 0 12px;
    color: var(--amber-200);
    font-size: 20px;
    font-weight: 950;
}

.footer-inner p,
.footer-inner a {
    color: var(--amber-100);
    opacity: 0.88;
    font-size: 14px;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.copyright {
    padding: 18px 0;
    border-top: 1px solid rgba(253, 230, 138, 0.16);
    color: rgba(254, 243, 199, 0.82);
    font-size: 13px;
}

.hidden-card {
    display: none !important;
}

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

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

    .detail-main {
        grid-template-columns: 1fr;
    }
}

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

    .brand {
        font-size: 18px;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 66px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 18px;
        background: rgba(69, 26, 3, 0.96);
        box-shadow: var(--shadow-lg);
    }

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

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

    .hero-carousel,
    .hero-slide {
        min-height: 720px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 26px;
    }

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

    .hero-search {
        border-radius: 22px;
        align-items: stretch;
        flex-direction: column;
    }

    .hero-search input {
        min-height: 42px;
    }

    .section-head {
        display: block;
    }

    .more-link {
        display: inline-block;
        margin-top: 12px;
    }

    .movie-grid,
    .movie-grid.grid-large {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

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

    .rank-list {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 48px 72px 1fr;
        gap: 12px;
    }

    .rank-num {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 460px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

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

    .card-body {
        padding: 12px;
    }
}
