:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --orange-600: #ea580c;
    --orange-500: #f97316;
    --orange-400: #fb923c;
    --red-600: #dc2626;
    --red-500: #ef4444;
    --amber-100: #ffedd5;
    --amber-700: #c2410c;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-900: #0f172a;
    --white: #ffffff;
    --shadow-card: 0 18px 40px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius-xl: 24px;
    --radius-lg: 18px;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--gray-50);
    color: var(--gray-900);
}

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

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

button,
input {
    font: inherit;
}

.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 10px 30px rgba(2, 6, 23, 0.28);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--orange-500), var(--red-600));
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.35);
    transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.08) rotate(-2deg);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-copy strong {
    font-size: 21px;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--orange-400), var(--red-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-copy small {
    margin-top: 4px;
    color: #cbd5e1;
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.nav-link {
    font-weight: 600;
    font-size: 15px;
    color: #e2e8f0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--orange-400);
}

.nav-link:hover {
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--white);
    border-radius: 999px;
}

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

.mobile-nav.is-open {
    display: grid;
    gap: 8px;
}

.mobile-link {
    display: block;
    padding: 10px 12px;
    color: #e2e8f0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.hero-section {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(135deg, #0f172a 0%, #7c2d12 52%, #7f1d1d 100%);
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 12%, rgba(249, 115, 22, 0.42), transparent 30%),
        radial-gradient(circle at 82% 20%, rgba(239, 68, 68, 0.35), transparent 24%),
        linear-gradient(rgba(2, 6, 23, 0.56), rgba(2, 6, 23, 0.56));
}

.hero-inner {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 92px 0;
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 56px;
    align-items: center;
}

.hero-copy {
    display: grid;
    gap: 22px;
}

.eyebrow {
    display: inline-flex;
    width: max-content;
    padding: 8px 16px;
    color: #fed7aa;
    font-size: 14px;
    font-weight: 800;
    border: 1px solid rgba(251, 146, 60, 0.55);
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.18);
    backdrop-filter: blur(10px);
}

.eyebrow.dark {
    color: var(--orange-600);
    background: var(--amber-100);
    border-color: rgba(249, 115, 22, 0.16);
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(40px, 5vw, 68px);
    line-height: 1.03;
    letter-spacing: -0.04em;
}

.hero-copy p {
    margin: 0;
    color: #e2e8f0;
    font-size: 18px;
    line-height: 1.8;
}

.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta span,
.detail-meta span,
.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    font-size: 13px;
    font-weight: 700;
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.primary-button {
    color: var(--white);
    background: linear-gradient(90deg, var(--orange-500), var(--red-600));
    box-shadow: 0 16px 30px rgba(220, 38, 38, 0.35);
}

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

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

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: 28px;
    overflow: hidden;
    background: #111827;
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.5);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: -18px;
    z-index: -1;
    border-radius: 38px;
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.46), rgba(220, 38, 38, 0.42));
    filter: blur(24px);
}

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

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

.hero-poster span {
    position: absolute;
    left: 22px;
    bottom: 22px;
    padding: 8px 14px;
    color: var(--white);
    font-weight: 800;
    border-radius: 999px;
    background: var(--orange-500);
}

.search-panel,
.content-section,
.category-overview-block {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0;
}

.search-panel {
    display: grid;
    gap: 22px;
}

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

.section-heading.compact {
    align-items: start;
    display: grid;
    gap: 10px;
    margin-bottom: 0;
}

.section-heading h2 {
    margin: 8px 0 0;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.section-heading a {
    color: var(--orange-600);
    font-weight: 800;
}

.soft-section {
    width: 100%;
    max-width: none;
    padding: 64px max(16px, calc((100% - 1180px) / 2));
    background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.search-box input,
.filter-bar input {
    width: 100%;
    height: 56px;
    padding: 0 20px;
    color: var(--gray-900);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus,
.filter-bar input:focus {
    border-color: var(--orange-400);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14), var(--shadow-soft);
}

.search-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.search-result-card {
    display: grid;
    grid-template-columns: 116px 1fr;
    gap: 14px;
    min-height: 96px;
    padding: 12px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.search-result-card img {
    width: 116px;
    height: 74px;
    object-fit: cover;
    border-radius: 14px;
    background: var(--slate-800);
}

.search-result-card strong {
    display: block;
    margin-bottom: 6px;
}

.search-result-card span {
    display: block;
    color: var(--gray-500);
    font-size: 13px;
    line-height: 1.55;
}

.movie-grid,
.category-grid,
.wide-grid,
.ranking-grid {
    display: grid;
    gap: 24px;
}

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

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

.catalog-grid {
    margin-top: 28px;
}

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

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--slate-800);
}

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

.movie-card:hover .poster-frame img {
    transform: scale(1.1);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.68));
    opacity: 0.65;
}

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    color: var(--amber-700);
    border-radius: 999px;
    background: var(--amber-100);
    font-size: 12px;
    font-weight: 800;
}

.card-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border-radius: 50%;
    background: var(--orange-500);
    transform: translate(-50%, -50%) scale(0.78);
    opacity: 0;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.card-body {
    display: grid;
    gap: 8px;
    padding: 18px;
}

.card-title {
    color: var(--gray-900);
    font-size: 18px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

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

.card-meta,
.card-desc {
    color: var(--gray-500);
    font-size: 13px;
    line-height: 1.55;
}

.card-desc {
    color: var(--gray-600);
}

.wide-card {
    display: grid;
    grid-template-columns: 44% 1fr;
}

.wide-card .poster-frame {
    height: 100%;
    aspect-ratio: auto;
}

.mini-card .card-title {
    font-size: 16px;
}

.category-tile {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 26px;
    color: var(--gray-900);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-tile span {
    color: var(--orange-600);
    font-size: 22px;
    font-weight: 900;
}

.category-tile strong {
    font-size: 15px;
    line-height: 1.75;
}

.category-tile em {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: var(--gray-500);
    font-size: 13px;
    font-style: normal;
}

.rank-section {
    padding-bottom: 80px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 46px 92px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.rank-number {
    color: var(--orange-600);
    font-weight: 900;
    font-size: 22px;
}

.rank-thumb img {
    width: 92px;
    height: 58px;
    object-fit: cover;
    border-radius: 14px;
    background: var(--slate-800);
}

.rank-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.rank-copy strong,
.rank-copy small,
.rank-copy em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-copy strong {
    font-size: 16px;
}

.rank-copy em,
.rank-copy small {
    color: var(--gray-500);
    font-size: 12px;
    font-style: normal;
}

.page-hero {
    color: var(--white);
    background: linear-gradient(90deg, var(--slate-900), #7c2d12, #7f1d1d);
}

.page-hero-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.back-link,
.breadcrumb a {
    color: #fed7aa;
    font-weight: 800;
}

.page-hero h1,
.detail-copy h1 {
    margin: 18px 0 12px;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

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

.filter-bar {
    margin-bottom: 24px;
}

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

.ranking-list {
    display: grid;
    gap: 14px;
}

.rank-page .ranking-row {
    grid-template-columns: 60px 150px 1fr;
}

.rank-page .rank-thumb img {
    width: 150px;
    height: 88px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: var(--slate-950);
}

.detail-hero-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: blur(30px);
    transform: scale(1.08);
    opacity: 0.28;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.72));
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 44px;
    align-items: center;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: #cbd5e1;
    font-size: 14px;
}

.breadcrumb em {
    color: #e2e8f0;
    font-style: normal;
}

.detail-copy p {
    max-width: 780px;
    margin: 0 0 18px;
    color: #e2e8f0;
    font-size: 18px;
    line-height: 1.8;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.detail-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 28px;
    background: var(--slate-800);
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.45);
}

.watch-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0 24px;
}

.watch-panel {
    overflow: hidden;
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

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

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

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.58));
    cursor: pointer;
}

.play-layer span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange-500), var(--red-600));
    box-shadow: 0 18px 44px rgba(220, 38, 38, 0.35);
    font-size: 34px;
    transition: transform 0.24s ease;
}

.play-layer:hover span {
    transform: scale(1.08);
}

.video-shell.is-playing .play-layer {
    display: none;
}

.watch-copy {
    padding: 28px;
}

.watch-copy h2,
.text-card h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.watch-copy p,
.text-card p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.9;
}

.detail-text {
    display: grid;
    gap: 24px;
    padding-top: 24px;
}

.text-card {
    display: grid;
    gap: 18px;
    padding: 30px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.next-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.next-links a {
    padding: 18px 20px;
    color: var(--orange-600);
    border-radius: 18px;
    background: #fff7ed;
    font-weight: 800;
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 36px;
}

.footer-brand {
    display: grid;
    gap: 14px;
}

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

.footer-brand p {
    max-width: 420px;
    margin: 0;
    line-height: 1.8;
}

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

.footer-links strong {
    color: var(--white);
    font-size: 18px;
}

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

.footer-links a {
    color: #cbd5e1;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--orange-400);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    color: #94a3b8;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    text-align: center;
}

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

    .menu-button {
        display: block;
    }

    .hero-inner,
    .detail-hero-inner {
        grid-template-columns: 1fr;
    }

    .detail-cover {
        max-width: 360px;
    }

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

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

@media (max-width: 760px) {
    .brand-copy small {
        display: none;
    }

    .hero-inner,
    .page-hero-inner,
    .detail-hero-inner {
        padding: 48px 0;
    }

    .hero-actions,
    .section-heading,
    .footer-inner,
    .next-links {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .section-heading {
        display: grid;
    }

    .movie-grid,
    .small-grid,
    .wide-grid,
    .category-grid,
    .ranking-grid,
    .search-results {
        grid-template-columns: 1fr;
    }

    .wide-card {
        grid-template-columns: 1fr;
    }

    .wide-card .poster-frame {
        aspect-ratio: 16 / 10;
    }

    .ranking-row,
    .rank-page .ranking-row,
    .search-result-card {
        grid-template-columns: 56px 1fr;
    }

    .rank-thumb,
    .search-result-card img {
        display: none;
    }

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

    .footer-inner {
        display: grid;
    }

    .content-section,
    .search-panel,
    .category-overview-block {
        padding: 44px 0;
    }
}
