:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --orange-600: #ea580c;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-900: #0f172a;
    --white: #ffffff;
    --shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 12px 34px rgba(15, 23, 42, 0.10);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--slate-50);
    color: var(--slate-900);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(226, 232, 240, 0.88);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
}

.site-header-inner {
    width: min(1240px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--amber-700);
    white-space: nowrap;
}

.site-logo::before {
    content: "";
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 12px 30px rgba(217, 119, 6, 0.35);
}

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

.site-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--slate-700);
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--amber-700);
    background: var(--amber-50);
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: var(--amber-50);
    color: var(--amber-700);
    padding: 11px;
}

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

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

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 72px);
    background: linear-gradient(120deg, var(--amber-600), var(--orange-600));
    color: var(--white);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.24), transparent 32%),
        radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.20), transparent 30%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.32), rgba(15, 23, 42, 0.08));
}

.hero-slider {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0 64px;
}

.hero-slide {
    display: none;
    min-height: 580px;
    grid-template-columns: minmax(0, 1.03fr) minmax(300px, 0.72fr);
    align-items: center;
    gap: 52px;
}

.hero-slide.is-active {
    display: grid;
    animation: fadeIn 0.45s ease both;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.hero-title {
    max-width: 840px;
    margin: 22px 0 18px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.hero-description {
    max-width: 760px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(17px, 2vw, 22px);
}

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

.btn-primary,
.btn-light,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 14px 30px rgba(217, 119, 6, 0.32);
}

.btn-light {
    color: var(--amber-700);
    background: var(--white);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.btn-ghost {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-primary:hover,
.btn-light:hover,
.btn-ghost:hover {
    transform: translateY(-2px);
}

.hero-media {
    position: relative;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 35px 90px rgba(15, 23, 42, 0.34);
    transform: rotate(1deg);
}

.hero-poster img {
    width: 100%;
    height: min(66vh, 620px);
    min-height: 460px;
    object-fit: cover;
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(15, 23, 42, 0.55));
}

.hero-card-info {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 2;
    padding: 18px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(14px);
}

.hero-card-info strong {
    display: block;
    font-size: 22px;
    font-weight: 900;
}

.hero-card-info span {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.78);
}

.hero-controls {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: -28px;
    padding-bottom: 34px;
}

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

.hero-dot.is-active {
    width: 34px;
    background: var(--white);
}

main {
    display: block;
}

.section {
    padding: 72px 0;
}

.section-soft {
    background: linear-gradient(135deg, var(--amber-50), #fff7ed);
}

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

.section-eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--amber-700);
    font-weight: 900;
}

.section-title,
.page-title {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 950;
}

.section-lead,
.page-lead {
    max-width: 780px;
    margin: 12px 0 0;
    color: var(--slate-500);
    font-size: 18px;
}

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 100%;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, var(--amber-100), #fed7aa);
}

.movie-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease;
}

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

.movie-year,
.rank-mark {
    position: absolute;
    top: 12px;
    z-index: 2;
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.movie-year {
    right: 12px;
    padding: 5px 10px;
    background: rgba(15, 23, 42, 0.64);
}

.rank-mark {
    left: 12px;
    min-width: 30px;
    padding: 5px 9px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.movie-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
}

.movie-card-body strong {
    font-size: 18px;
    line-height: 1.28;
    font-weight: 950;
}

.movie-card-body em {
    color: var(--amber-700);
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.movie-card-body small {
    color: var(--slate-500);
    font-size: 14px;
}

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

.tag-row span {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--slate-100);
    color: var(--slate-500);
    font-size: 12px;
    font-weight: 800;
}

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

.category-tile {
    display: flex;
    min-height: 180px;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile strong {
    color: var(--slate-900);
    font-size: 22px;
    font-weight: 950;
}

.category-tile span {
    margin-top: 12px;
    color: var(--slate-500);
}

.category-tile em {
    margin-top: 18px;
    color: var(--amber-700);
    font-style: normal;
    font-weight: 900;
}

.page-hero {
    padding: 74px 0 44px;
    background: linear-gradient(135deg, var(--amber-50), var(--white));
}

.search-panel {
    margin: 26px 0 34px;
    padding: 16px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

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

.search-panel span {
    color: var(--amber-700);
    font-weight: 950;
}

.search-panel input {
    width: 100%;
    border: 1px solid var(--slate-200);
    border-radius: 999px;
    outline: none;
    padding: 13px 18px;
    color: var(--slate-900);
    background: var(--slate-50);
}

.search-panel input:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

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

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

.compact-card {
    display: grid;
    grid-template-columns: auto 70px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.compact-card b {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.compact-card img {
    width: 70px;
    height: 96px;
    border-radius: 14px;
    object-fit: cover;
    background: var(--amber-100);
}

.compact-card strong,
.compact-card em {
    display: block;
}

.compact-card strong {
    font-size: 16px;
    line-height: 1.3;
    font-weight: 950;
}

.compact-card em {
    margin-top: 4px;
    color: var(--slate-500);
    font-size: 13px;
    font-style: normal;
}

.detail-hero {
    padding: 58px 0 44px;
    background: linear-gradient(135deg, var(--slate-900), #78350f);
    color: var(--white);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
    align-items: center;
    gap: 42px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 32px;
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.34);
    background: var(--amber-100);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

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

.detail-title {
    margin: 0;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.detail-line {
    max-width: 880px;
    margin: 18px 0 24px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 20px;
}

.meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-badges span {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 800;
}

.player-section {
    padding: 56px 0 30px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 32px;
    background: #020617;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
}

.player-shell video,
.player-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-shell video {
    z-index: 1;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.player-cover {
    z-index: 2;
    opacity: 0.58;
    filter: saturate(1.08);
    pointer-events: none;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.64));
}

.play-button {
    display: inline-flex;
    width: 118px;
    height: 118px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    color: var(--amber-700);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
    font-size: 18px;
    font-weight: 950;
    transition: transform 0.2s ease;
}

.play-button:hover {
    transform: scale(1.06);
}

.player-shell.is-playing video {
    opacity: 1;
}

.player-shell.is-playing .player-cover,
.player-shell.is-playing .player-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.article-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 30px;
    padding: 26px 0 72px;
}

.article-card,
.side-card {
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.article-card {
    padding: 34px;
}

.article-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 950;
}

.article-card p {
    margin: 0 0 22px;
    color: var(--slate-700);
    font-size: 17px;
}

.side-card {
    padding: 22px;
}

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

.site-footer {
    background: var(--slate-900);
    color: rgba(255, 255, 255, 0.72);
}

.site-footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 2fr;
    gap: 34px;
    padding: 42px 0;
}

.site-footer strong {
    display: block;
    color: var(--white);
    font-size: 24px;
    font-weight: 950;
}

.site-footer p {
    margin: 8px 0 0;
}

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

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 800;
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@media (max-width: 820px) {
    .site-header-inner {
        min-height: 64px;
    }

    .menu-button {
        display: inline-block;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
    }

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

    .hero-slide,
    .detail-layout,
    .article-panel,
    .site-footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-slide {
        min-height: auto;
        gap: 28px;
    }

    .hero-poster img {
        min-height: 360px;
        height: 52vh;
    }

    .movie-grid,
    .movie-grid.dense,
    .related-grid,
    .compact-list,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }

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

@media (max-width: 560px) {
    .site-logo span {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-slider {
        padding: 44px 0 50px;
    }

    .hero-title,
    .detail-title {
        letter-spacing: -0.04em;
    }

    .movie-grid,
    .movie-grid.dense,
    .related-grid,
    .compact-list,
    .category-grid {
        grid-template-columns: 1fr;
    }

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

    .compact-card {
        grid-template-columns: auto 62px minmax(0, 1fr);
    }

    .player-shell {
        border-radius: 20px;
    }

    .play-button {
        width: 88px;
        height: 88px;
        font-size: 15px;
    }
}
