* {
    box-sizing: border-box;
}

:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --orange-700: #c2410c;
    --orange-600: #ea580c;
    --orange-500: #f97316;
    --orange-100: #ffedd5;
    --amber-50: #fffbeb;
    --white: #ffffff;
    --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.12);
    --shadow-strong: 0 28px 70px rgba(2, 6, 23, 0.35);
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--slate-50);
    color: var(--slate-800);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

img {
    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;
    color: var(--white);
    background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.22);
}

.nav-bar {
    display: flex;
    align-items: center;
    min-height: 66px;
    gap: 22px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-500), var(--orange-700));
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35);
}

.logo-text {
    white-space: nowrap;
    font-size: 20px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
}

.nav-link {
    color: rgba(255, 255, 255, 0.84);
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fed7aa;
}

.header-search,
.mobile-search,
.hero-search,
.filter-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-box input,
.filter-box select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    outline: none;
    padding: 10px 13px;
    color: var(--slate-800);
    background: var(--white);
}

.header-search input {
    width: 210px;
    color: var(--white);
    background: rgba(15, 23, 42, 0.7);
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.hero-search input::placeholder,
.filter-box input::placeholder {
    color: #94a3b8;
}

.header-search button,
.mobile-search button,
.hero-search button {
    border: 0;
    border-radius: 12px;
    padding: 10px 15px;
    color: var(--white);
    background: var(--orange-600);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover {
    background: var(--orange-700);
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    padding: 8px 10px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--slate-900);
}

.mobile-panel.open {
    display: block;
}

.mobile-nav {
    display: grid;
    gap: 12px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0;
}

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

.hero-wrap {
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 76% 20%, rgba(249, 115, 22, 0.22), transparent 34%),
        radial-gradient(circle at 16% 18%, rgba(234, 88, 12, 0.16), transparent 28%),
        linear-gradient(135deg, var(--slate-900), var(--slate-700), var(--slate-950));
}

.hero-container {
    position: relative;
    min-height: 620px;
    padding: 72px 0 92px;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    align-items: center;
    gap: 60px;
}

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

.hero-copy h1 {
    margin: 0 0 20px;
    max-width: 700px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.hero-copy h1 span {
    display: block;
    margin-top: 10px;
    color: var(--orange-500);
}

.hero-copy p {
    max-width: 640px;
    margin: 0 0 26px;
    color: #cbd5e1;
    font-size: 18px;
}

.hero-eyebrow,
.page-eyebrow {
    margin-bottom: 14px;
    color: #fed7aa;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-tags,
.detail-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
    border-radius: 999px;
    padding: 5px 10px;
    color: #7c2d12;
    background: var(--orange-100);
    font-size: 13px;
    font-weight: 700;
}

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

.primary-button,
.secondary-button,
.panel-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    min-height: 46px;
    padding: 0 22px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: var(--white);
    background: var(--orange-600);
    box-shadow: 0 18px 34px rgba(234, 88, 12, 0.32);
}

.secondary-button {
    color: var(--white);
    background: rgba(51, 65, 85, 0.88);
}

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

.primary-button.small,
.secondary-button.small {
    min-height: 40px;
    padding: 0 16px;
    font-size: 14px;
}

.hero-visual {
    position: relative;
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border: 4px solid rgba(148, 163, 184, 0.45);
    border-radius: 24px;
    box-shadow: var(--shadow-strong);
}

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

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

.hero-poster::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.48), rgba(2, 6, 23, 0.12));
}

.hero-play,
.play-dot {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border-radius: 999px;
    color: var(--white);
    background: var(--orange-600);
    box-shadow: 0 18px 34px rgba(2, 6, 23, 0.32);
}

.hero-play {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
}

.hero-info-card {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: -28px;
    border-radius: 16px;
    padding: 18px 20px;
    color: var(--slate-800);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.hero-info-card strong,
.hero-info-card span {
    display: block;
}

.hero-info-card strong {
    font-size: 18px;
}

.hero-info-card span {
    color: var(--slate-500);
    font-size: 14px;
}

.hero-dots {
    position: absolute;
    left: 0;
    bottom: 34px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.hero-dot.active {
    background: var(--orange-500);
}

.hero-search {
    position: absolute;
    right: 0;
    bottom: 24px;
    width: min(500px, 100%);
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(18px);
}

.section {
    padding: 64px 0;
}

.white-section {
    background: var(--white);
}

.soft-section {
    background: linear-gradient(180deg, var(--slate-50), #eef2ff);
}

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

.section-head h2,
.ranking-panel h2,
.related-card h2,
.content-card h2,
.category-overview-card h2 {
    margin: 0;
    color: var(--slate-800);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
}

.section-head a,
.panel-more {
    color: var(--orange-600);
    font-weight: 800;
}

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

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

.compact-grid,
.ranking-grid,
.category-movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    border-color: rgba(249, 115, 22, 0.38);
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.16);
    transform: translateY(-5px);
}

.card-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--slate-800);
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.38s ease;
}

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

.card-cover::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.58), transparent 62%);
}

.play-dot {
    left: 50%;
    top: 50%;
    width: 50px;
    height: 50px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-dot {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.rank-badge,
.card-year {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    padding: 4px 10px;
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
}

.rank-badge {
    left: 12px;
    top: 12px;
    background: var(--orange-600);
}

.card-year {
    right: 12px;
    bottom: 12px;
    background: rgba(15, 23, 42, 0.78);
}

.card-body {
    padding: 16px;
}

.card-title {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: var(--slate-900);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.32;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-title:hover {
    color: var(--orange-600);
}

.card-body p {
    display: -webkit-box;
    min-height: 44px;
    margin: 10px 0 12px;
    overflow: hidden;
    color: var(--slate-600);
    font-size: 14px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--slate-500);
    font-size: 13px;
}

.card-meta span {
    border-radius: 999px;
    padding: 3px 8px;
    background: var(--slate-100);
}

.tag-row {
    margin-top: 12px;
}

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

.category-tile,
.category-overview-card,
.ranking-panel,
.content-card,
.related-card,
.player-card {
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.category-tile {
    display: grid;
    gap: 10px;
    min-height: 214px;
    padding: 22px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-500), var(--orange-700));
    box-shadow: 0 16px 30px rgba(249, 115, 22, 0.24);
}

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

.category-tile em {
    color: var(--slate-600);
    font-size: 14px;
    font-style: normal;
}

.tile-more {
    align-self: end;
    color: var(--orange-600);
    font-weight: 800;
}

.two-column-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    align-items: start;
}

.ranking-panel,
.related-card,
.content-card {
    padding: 24px;
}

.ranking-panel {
    position: sticky;
    top: 92px;
}

.ranking-list,
.related-list,
.overview-samples {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.mini-movie {
    display: grid;
    grid-template-columns: auto 86px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    border-radius: 14px;
    padding: 8px;
    transition: background 0.2s ease;
}

.mini-movie:hover {
    background: var(--slate-50);
}

.mini-movie img {
    width: 86px;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    object-fit: cover;
}

.mini-movie strong {
    display: block;
    overflow: hidden;
    color: var(--slate-800);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mini-movie em {
    display: block;
    color: var(--slate-500);
    font-size: 13px;
    font-style: normal;
}

.mini-rank {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    color: var(--white);
    background: var(--orange-600);
    font-weight: 800;
}

.panel-more {
    width: 100%;
    margin-top: 18px;
    color: var(--white);
    background: var(--slate-800);
}

.page-hero {
    color: var(--white);
    background:
        radial-gradient(circle at 18% 20%, rgba(249, 115, 22, 0.2), transparent 30%),
        linear-gradient(135deg, var(--slate-900), var(--slate-700));
    padding: 78px 0;
}

.page-hero h1 {
    margin: 0 0 16px;
    max-width: 860px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.14;
}

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

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

.category-overview-card {
    padding: 24px;
}

.category-overview-top {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.category-overview-top p {
    margin: 10px 0 0;
    color: var(--slate-600);
}

.filter-box {
    flex-wrap: wrap;
    margin-bottom: 26px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-lg);
    padding: 14px;
    background: var(--slate-50);
}

.filter-box input {
    flex: 1 1 280px;
}

.filter-box select {
    flex: 0 1 180px;
}

.movie-card.filtered-out {
    display: none;
}

.detail-hero {
    color: var(--white);
    background:
        radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.2), transparent 28%),
        linear-gradient(135deg, var(--slate-950), var(--slate-800));
    padding: 56px 0 62px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
    gap: 34px;
    align-items: center;
}

.player-card {
    padding: 10px;
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(148, 163, 184, 0.28);
}

.video-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    background: var(--slate-950);
}

.movie-video {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--slate-950);
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    overflow: hidden;
    color: var(--white);
    background: var(--slate-950);
    cursor: pointer;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.64;
}

.player-cover span {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    background: var(--orange-600);
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.45);
    font-size: 32px;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #cbd5e1;
    font-size: 14px;
}

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

.detail-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.15;
}

.detail-one-line {
    margin: 0 0 24px;
    color: #cbd5e1;
    font-size: 18px;
}

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

.movie-facts div {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.5);
}

.movie-facts dt {
    color: #94a3b8;
    font-size: 13px;
}

.movie-facts dd {
    margin: 2px 0 0;
    color: var(--white);
    font-weight: 800;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.content-card p {
    color: var(--slate-700);
    font-size: 17px;
}

.content-card h2 + p {
    margin-top: 10px;
}

.related-card {
    position: sticky;
    top: 92px;
}

.site-footer {
    color: #cbd5e1;
    background: var(--slate-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.8fr;
    gap: 30px;
    padding: 42px 0;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 18px;
}

.footer-logo {
    color: var(--white);
    font-size: 22px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.footer-links a:hover {
    color: #fed7aa;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

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

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

@media (max-width: 1080px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .mobile-menu-button {
        display: inline-flex;
    }

    .hero-slide,
    .detail-layout,
    .two-column-layout,
    .detail-content-grid {
        grid-template-columns: 1fr;
    }

    .hero-container {
        min-height: auto;
        padding-bottom: 120px;
    }

    .hero-search {
        left: 0;
        right: auto;
    }

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

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

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

    .hero-container {
        padding: 42px 0 136px;
    }

    .hero-slide-active {
        gap: 34px;
    }

    .hero-dots {
        bottom: 84px;
    }

    .hero-search {
        bottom: 20px;
        flex-direction: column;
        align-items: stretch;
    }

    .section {
        padding: 42px 0;
    }

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

    .featured-grid,
    .movie-grid,
    .compact-grid,
    .ranking-grid,
    .category-movie-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .category-tile {
        min-height: 188px;
        padding: 18px;
    }

    .filter-box {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-box select {
        flex-basis: auto;
    }

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

    .related-card,
    .ranking-panel {
        position: static;
    }
}

@media (max-width: 520px) {
    .logo-text {
        font-size: 18px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 30px;
    }

    .featured-grid,
    .movie-grid,
    .compact-grid,
    .ranking-grid,
    .category-movie-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .mini-movie {
        grid-template-columns: auto 76px minmax(0, 1fr);
    }

    .mini-movie img {
        width: 76px;
    }
}
