:root {
    color-scheme: light;
    --site-bg: #fff7ed;
    --site-surface: rgba(255, 255, 255, 0.88);
    --site-surface-solid: #ffffff;
    --site-text: #1f2937;
    --site-muted: #6b7280;
    --site-border: rgba(251, 146, 60, 0.22);
    --site-orange: #f97316;
    --site-amber: #d97706;
    --site-gold: #f59e0b;
    --site-shadow: 0 24px 60px rgba(146, 64, 14, 0.14);
    --site-radius: 22px;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(251, 146, 60, 0.25), transparent 30rem),
        linear-gradient(135deg, #fff7ed 0%, #fffbeb 45%, #fef3c7 100%);
    color: var(--site-text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.18), rgba(245, 158, 11, 0.16));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(251, 146, 60, 0.18);
    background: rgba(255, 247, 237, 0.88);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 35px rgba(146, 64, 14, 0.10);
}

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

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.logo-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--site-orange), var(--site-amber));
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.30);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.08;
}

.logo-title {
    font-size: 1.5rem;
    background: linear-gradient(90deg, #ea580c, #b45309);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-subtitle {
    margin-top: 4px;
    color: var(--site-muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a,
.mobile-nav a {
    border-radius: 14px;
    padding: 10px 15px;
    color: #4b5563;
    font-weight: 700;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    background: linear-gradient(135deg, var(--site-orange), var(--site-amber));
    color: #ffffff;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #fff7ed;
    color: #92400e;
    box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.25);
}

.mobile-nav {
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0 0 16px;
}

.hero {
    position: relative;
    overflow: hidden;
    margin: 28px auto 0;
    min-height: 560px;
    border-radius: 34px;
    background: #111827;
    box-shadow: var(--site-shadow);
}

.hero-track {
    position: relative;
    min-height: 560px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(280px, 0.62fr);
    align-items: center;
    gap: 40px;
    padding: 64px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 420ms ease, transform 420ms ease;
    transform: scale(1.02);
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    filter: saturate(1.08);
}

.hero-slide::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.68), rgba(146, 64, 14, 0.32)),
        radial-gradient(circle at 75% 30%, rgba(251, 146, 60, 0.38), transparent 22rem);
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(255, 237, 213, 0.18);
    color: #fed7aa;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero h1,
.page-hero h1 {
    margin-top: 18px;
    font-size: clamp(2.5rem, 6vw, 5.4rem);
    line-height: 0.96;
    color: #ffffff;
    font-weight: 950;
    letter-spacing: -0.08em;
}

.hero h2 {
    margin-top: 22px;
    max-width: 760px;
    color: #fff7ed;
    font-size: clamp(1.1rem, 2.2vw, 1.55rem);
    line-height: 1.75;
    font-weight: 650;
}

.hero-meta,
.detail-meta,
.card-meta,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-meta {
    margin-top: 24px;
}

.pill,
.tag,
.meta-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 247, 237, 0.16);
    color: #ffedd5;
    font-size: 0.86rem;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.meta-pill {
    background: rgba(249, 115, 22, 0.10);
    color: #9a3412;
    box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.18);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 16px;
    padding: 12px 18px;
    font-weight: 900;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--site-orange), var(--site-amber));
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.30);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.13);
    color: #fff7ed;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.btn-soft {
    background: #fff7ed;
    color: #9a3412;
    box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.18);
}

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

.hero-poster {
    justify-self: end;
    width: min(330px, 100%);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    transform: rotate(2deg);
}

.hero-poster img {
    aspect-ratio: 2 / 3;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-controls {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 5;
    display: flex;
    gap: 10px;
}

.hero-control {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 247, 237, 0.90);
    color: #9a3412;
    font-size: 1.35rem;
    font-weight: 900;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.main-section {
    padding: 64px 0 0;
}

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

.section-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.06;
    color: #1f2937;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.section-lead {
    margin-top: 10px;
    max-width: 760px;
    color: var(--site-muted);
    line-height: 1.8;
}

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

.movie-card,
.category-card,
.info-panel,
.rank-card,
.related-card,
.search-panel {
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    background: var(--site-surface);
    box-shadow: 0 14px 35px rgba(146, 64, 14, 0.08);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.movie-card:hover,
.category-card:hover,
.rank-card:hover,
.related-card:hover {
    border-color: rgba(249, 115, 22, 0.45);
    box-shadow: 0 24px 45px rgba(146, 64, 14, 0.16);
    transform: translateY(-6px);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #1f2937;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 400ms ease;
}

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

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.94), rgba(217, 119, 6, 0.94));
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
}

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

.card-meta,
.rank-meta {
    color: #9a3412;
    font-size: 0.84rem;
    font-weight: 850;
}

.movie-card h3,
.related-card h3,
.rank-card h3 {
    margin-top: 8px;
    color: #1f2937;
    font-size: 1.08rem;
    line-height: 1.35;
    font-weight: 900;
}

.movie-card p,
.related-card p,
.rank-card p {
    margin-top: 8px;
    color: #6b7280;
    line-height: 1.65;
    font-size: 0.94rem;
}

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

.tag-row span {
    border-radius: 999px;
    padding: 5px 9px;
    background: #ffedd5;
    color: #9a3412;
    font-size: 0.78rem;
    font-weight: 800;
}

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

.category-card {
    display: block;
    padding: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 237, 213, 0.72));
}

.category-card strong {
    display: block;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 950;
}

.category-card span {
    display: block;
    margin-top: 8px;
    color: var(--site-muted);
    line-height: 1.65;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
}

.rank-number {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--site-orange), var(--site-amber));
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 950;
    box-shadow: 0 10px 18px rgba(249, 115, 22, 0.26);
}

.rank-card img {
    width: 92px;
    height: 132px;
    border-radius: 16px;
    object-fit: cover;
}

.page-hero {
    margin-top: 28px;
    border-radius: 32px;
    padding: 56px;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(146, 64, 14, 0.74)),
        radial-gradient(circle at top right, rgba(251, 146, 60, 0.5), transparent 20rem);
    color: #ffffff;
    box-shadow: var(--site-shadow);
}

.page-hero h1 {
    margin-top: 12px;
}

.page-hero p {
    margin-top: 18px;
    max-width: 820px;
    color: #ffedd5;
    font-size: 1.08rem;
    line-height: 1.85;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 26px 0;
    color: #9a3412;
    font-weight: 800;
}

.breadcrumb a:hover {
    color: #ea580c;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px;
}

.search-input {
    width: 100%;
    border-radius: 16px;
    padding: 13px 16px;
    background: #ffffff;
    color: #1f2937;
    box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.18);
    outline: none;
}

.search-input:focus {
    box-shadow: inset 0 0 0 2px rgba(249, 115, 22, 0.48);
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-pill {
    border-radius: 999px;
    padding: 9px 12px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 0.86rem;
    font-weight: 850;
    box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.18);
}

.filter-pill.active,
.filter-pill:hover {
    background: linear-gradient(135deg, var(--site-orange), var(--site-amber));
    color: #ffffff;
}

.movie-card.is-hidden,
.rank-card.is-hidden {
    display: none;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--site-shadow);
}

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

.detail-title {
    font-size: clamp(2rem, 4.5vw, 4.3rem);
    line-height: 1.05;
    color: #1f2937;
    font-weight: 950;
    letter-spacing: -0.07em;
}

.detail-intro {
    margin-top: 18px;
    color: #4b5563;
    font-size: 1.12rem;
    line-height: 1.9;
}

.detail-meta {
    margin-top: 20px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #111827;
    box-shadow: var(--site-shadow);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111827;
}

.play-mask {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.50), rgba(146, 64, 14, 0.35));
    color: #ffffff;
    z-index: 3;
}

.play-mask span {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--site-orange), var(--site-amber));
    font-size: 2rem;
    font-weight: 950;
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.32);
}

.player-shell.is-playing .play-mask {
    display: none;
}

.info-panel {
    padding: 28px;
}

.info-panel h2 {
    color: #1f2937;
    font-size: 1.55rem;
    font-weight: 950;
}

.info-panel p {
    margin-top: 14px;
    color: #4b5563;
    line-height: 1.95;
    font-size: 1.02rem;
}

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

.related-card {
    display: block;
}

.related-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.related-card div {
    padding: 12px;
}

.site-footer {
    margin-top: 70px;
    border-top: 1px solid rgba(251, 146, 60, 0.18);
    padding: 34px 0;
    color: #9a3412;
    background: rgba(255, 247, 237, 0.66);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-weight: 800;
}

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

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

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

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 52px;
    }

    .hero-poster {
        display: none;
    }
}

@media (max-width: 760px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .mobile-nav.open {
        display: grid;
    }

    .hero,
    .hero-track {
        min-height: 620px;
    }

    .hero-slide {
        padding: 34px 24px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: clamp(2.25rem, 13vw, 4rem);
    }

    .section-heading,
    .footer-inner,
    .search-panel {
        display: block;
    }

    .filter-pills {
        margin-top: 12px;
    }

    .movie-grid,
    .category-grid,
    .rank-list,
    .related-grid,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .rank-card {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .rank-card img {
        width: 82px;
        height: 118px;
    }

    .page-hero {
        padding: 36px 24px;
    }

    .footer-links {
        margin-top: 12px;
    }
}
