:root {
    --sky: #0284c7;
    --sky-soft: #f0f9ff;
    --orange: #f97316;
    --orange-soft: #fff7ed;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg: #f8fafc;
    --card: #ffffff;
    --shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #ffffff 0%, var(--sky-soft) 42%, #ffffff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

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

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

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--sky), var(--orange));
    box-shadow: 0 12px 26px rgba(2, 132, 199, 0.28);
}

.brand-text {
    font-size: 20px;
    letter-spacing: 0.02em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #334155;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--sky);
    background: var(--sky-soft);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: var(--sky-soft);
    padding: 10px;
}

.mobile-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--sky);
}

main {
    min-height: 70vh;
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #020617;
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-bg {
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.68) 45%, rgba(2, 6, 23, 0.25) 100%), linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent 44%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 360px;
    gap: 48px;
    align-items: center;
    padding-top: 44px;
}

.hero-copy {
    max-width: 760px;
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #fed7aa;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: var(--orange);
}

.hero h1,
.sub-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-line {
    margin: 22px 0 12px;
    font-size: 22px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
}

.hero-summary {
    margin: 0 0 24px;
    max-width: 700px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.74);
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 700;
}

.tag-row span,
.detail-tags span {
    background: var(--sky-soft);
    color: var(--sky);
}

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

.primary-btn,
.ghost-btn,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: all 0.2s ease;
}

.primary-btn {
    min-height: 48px;
    padding: 0 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky), var(--orange));
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.25);
}

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

.ghost-btn {
    min-height: 48px;
    padding: 0 22px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
}

.hero-poster {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
    transform: rotate(1.5deg);
}

.hero-poster img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
}

.hero-dot.active {
    width: 36px;
    background: #ffffff;
}

.intro-panel,
.content-section,
.sub-hero,
.detail-hero,
.player-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.intro-panel {
    margin-top: -72px;
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.65fr);
    gap: 24px;
    align-items: stretch;
    padding: 28px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.intro-copy h2 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.intro-copy p,
.sub-hero p,
.section-heading p,
.category-overview-card p,
.category-card p,
.detail-line,
.detail-text p,
.ranking-info p {
    color: var(--muted);
    line-height: 1.8;
}

.search-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.search-box span {
    color: var(--sky);
    font-size: 24px;
    font-weight: 900;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    font: inherit;
    color: var(--ink);
    background: transparent;
}

.quick-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-cats a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--sky);
    background: var(--sky-soft);
    font-weight: 700;
    font-size: 14px;
}

.content-section {
    padding: 72px 0 0;
}

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

.section-heading h2 {
    margin: 0 0 8px;
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -0.03em;
}

.section-heading a,
.text-link {
    color: var(--sky);
    font-weight: 800;
}

.movie-grid,
.featured-grid,
.category-grid,
.category-overview-grid,
.ranking-grid {
    display: grid;
    gap: 22px;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--sky-soft), var(--orange-soft));
}

.poster-link img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.68), transparent);
}

.year-badge,
.score-badge {
    position: absolute;
    top: 12px;
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border-radius: 999px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 800;
}

.year-badge {
    left: 12px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.7);
}

.score-badge {
    right: 12px;
    color: #ffffff;
    background: var(--orange);
}

.card-content {
    padding: 18px;
}

.card-title {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
}

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

.card-meta {
    min-height: 22px;
    color: #64748b;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-desc {
    min-height: 46px;
    margin: 10px 0 14px;
    color: var(--muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-large .card-desc {
    -webkit-line-clamp: 3;
    min-height: 72px;
}

.gradient-section,
.today-section {
    padding: 36px;
    border-radius: 34px;
    background: linear-gradient(135deg, var(--sky-soft), #ffffff 48%, var(--orange-soft));
    box-shadow: var(--shadow);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 56px;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

.rank-item span {
    color: var(--orange);
    font-weight: 900;
}

.rank-item strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-item em {
    color: var(--sky);
    font-style: normal;
    font-weight: 900;
    text-align: right;
}

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

.category-card,
.category-overview-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 190px;
    padding: 24px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.category-card span,
.category-title-link {
    color: var(--ink);
    font-size: 22px;
    font-weight: 900;
}

.category-card:hover span,
.category-title-link:hover {
    color: var(--sky);
}

.category-samples {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.category-samples a {
    color: var(--sky);
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sub-hero {
    padding: 86px 0 22px;
}

.sub-hero.compact {
    padding-top: 54px;
}

.sub-hero h1 {
    max-width: 930px;
    color: var(--ink);
}

.sub-hero p {
    max-width: 760px;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: #64748b;
    font-weight: 700;
}

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

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

.ranking-card {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
}

.ranking-poster {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

.ranking-poster img {
    height: 100%;
    min-height: 190px;
    object-fit: cover;
}

.ranking-poster span {
    position: absolute;
    left: 10px;
    top: 10px;
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky), var(--orange));
    font-weight: 900;
}

.ranking-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
}

.rank-score {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 10px;
}

.rank-score strong {
    color: var(--orange);
    font-size: 26px;
}

.rank-score em {
    color: #64748b;
    font-style: normal;
}

.detail-hero {
    padding: 54px 0 32px;
}

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

.detail-poster {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.detail-poster img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-poster span {
    position: absolute;
    right: 16px;
    top: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--orange);
    font-weight: 900;
    font-size: 20px;
}

.detail-copy h1 {
    color: var(--ink);
}

.detail-line {
    margin: 18px 0;
    font-size: 20px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-meta span {
    padding: 9px 12px;
    border-radius: 999px;
    color: #475569;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
    font-weight: 700;
}

.player-section {
    padding-top: 24px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: #020617;
    box-shadow: 0 30px 88px rgba(15, 23, 42, 0.28);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.36));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky), var(--orange));
    font-size: 32px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32);
}

.play-overlay strong {
    max-width: min(80%, 680px);
    font-size: clamp(22px, 4vw, 42px);
    text-align: center;
}

.detail-text {
    max-width: 930px;
}

.detail-text h2 {
    margin: 0 0 14px;
    font-size: 30px;
}

.detail-text p + h2 {
    margin-top: 34px;
}

.detail-text p {
    font-size: 18px;
}

.empty-state {
    display: none;
    padding: 40px;
    color: var(--muted);
    text-align: center;
    border-radius: 24px;
    background: #ffffff;
}

.empty-state.show {
    display: block;
}

.site-footer {
    margin-top: 86px;
    padding: 42px 0;
    color: #cbd5e1;
    background: #0f172a;
}

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

.footer-logo {
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 10px;
}

.footer-inner p {
    margin: 0;
    line-height: 1.8;
}

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

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

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

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

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 280px;
    }
}

@media (max-width: 820px) {
    .mobile-toggle {
        display: block;
    }

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

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

    .hero,
    .hero-content {
        min-height: 760px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 24px;
    }

    .hero-poster {
        display: none;
    }

    .hero-arrow {
        display: none;
    }

    .intro-panel,
    .detail-layout,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .movie-grid,
    .wide-grid,
    .featured-grid,
    .category-grid,
    .category-overview-grid,
    .ranking-grid,
    .rank-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

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

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

    .hero,
    .hero-content {
        min-height: 700px;
    }

    .hero h1,
    .sub-hero h1,
    .detail-copy h1 {
        font-size: 38px;
    }

    .hero-line,
    .detail-line {
        font-size: 18px;
    }

    .intro-panel,
    .gradient-section,
    .today-section {
        padding: 22px;
        border-radius: 26px;
    }

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

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

    .ranking-poster img {
        aspect-ratio: 16 / 10;
        min-height: 0;
    }

    .detail-layout {
        gap: 24px;
    }

    .detail-poster {
        max-width: 270px;
    }
}
