:root {
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-soft: #fff7ed;
    --color-line: #e5e7eb;
    --color-accent: #f97316;
    --color-accent-dark: #c2410c;
    --color-gold: #facc15;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 14px 35px rgba(15, 23, 42, 0.10);
    --radius-xl: 24px;
    --radius-lg: 18px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-text);
    background: #f8fafc;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.78);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.header-inner {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #fb923c, #ef4444 55%, #facc15);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.32);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    white-space: nowrap;
}

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

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

.menu-toggle {
    display: none;
    border: 0;
    background: var(--color-soft);
    color: var(--color-accent-dark);
    border-radius: 12px;
    width: 42px;
    height: 42px;
    font-size: 24px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 10px 16px 18px;
    border-top: 1px solid var(--color-line);
    background: #fff;
}

.mobile-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: #374151;
    font-weight: 700;
}

.mobile-nav a:hover {
    background: var(--color-soft);
    color: var(--color-accent-dark);
}

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

.hero-slide {
    display: none;
    position: relative;
    min-height: 640px;
}

.hero-slide.active {
    display: block;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.03);
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 18%, rgba(250, 204, 21, 0.25), transparent 30%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.80) 46%, rgba(17, 24, 39, 0.34) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.88), transparent 52%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 640px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 56px;
    color: #fff;
    padding: 64px 0;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fed7aa;
    font-weight: 800;
    backdrop-filter: blur(10px);
    margin-bottom: 22px;
}

.hero h1 {
    margin: 0 0 20px;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero p {
    margin: 0;
    max-width: 720px;
    color: #ffedd5;
    font-size: clamp(18px, 2.2vw, 25px);
    line-height: 1.7;
}

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

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

.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags .tag {
    background: rgba(255, 255, 255, 0.18);
    color: #fff7ed;
    backdrop-filter: blur(12px);
}

.hero-actions {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 900;
    transition: all 0.2s ease;
}

.btn.primary {
    color: #fff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 15px 28px rgba(239, 68, 68, 0.28);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(239, 68, 68, 0.36);
}

.btn.ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.btn.text {
    color: #fed7aa;
}

.hero-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.28);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    border-radius: 999px;
    padding: 9px 14px;
    background: rgba(249, 115, 22, 0.92);
    color: #fff;
    font-weight: 900;
}

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

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

.hero-dot.active {
    width: 34px;
    background: #f97316;
}

.search-strip {
    margin-top: -34px;
    position: relative;
    z-index: 5;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 18px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.search-panel input,
.filter-input,
.filter-select {
    width: 100%;
    border: 1px solid var(--color-line);
    border-radius: 16px;
    padding: 14px 16px;
    color: #111827;
    outline: none;
    background: #fff;
}

.search-panel input:focus,
.filter-input:focus,
.filter-select:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.16);
}

.search-panel button {
    border: 0;
    border-radius: 16px;
    padding: 0 24px;
    background: #111827;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.page-main {
    padding: 54px 0;
}

.section-block {
    padding: 54px 0;
}

.section-block.white {
    background: #fff;
}

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

.section-head h2,
.page-title h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.035em;
}

.section-head p,
.page-title p {
    margin: 8px 0 0;
    color: var(--color-muted);
    line-height: 1.7;
}

.view-all {
    color: var(--color-accent-dark);
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #f97316, #111827);
}

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

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

.poster-badge,
.play-chip {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    font-size: 12px;
}

.poster-badge {
    top: 12px;
    right: 12px;
    padding: 6px 9px;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(10px);
}

.play-chip {
    left: 12px;
    bottom: 12px;
    padding: 7px 12px;
    background: rgba(249, 115, 22, 0.94);
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 8px 0;
    font-size: 18px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.movie-card p {
    margin: 0 0 12px;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

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

.category-card {
    min-height: 168px;
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(135deg, #fff7ed, #ffffff 54%, #ffedd5);
    border: 1px solid #fed7aa;
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.10);
    transition: all 0.22s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: #fb923c;
    box-shadow: 0 22px 46px rgba(249, 115, 22, 0.16);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.category-card p {
    margin: 0 0 18px;
    color: var(--color-muted);
    line-height: 1.7;
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 26px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 88px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.rank-number {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    font-weight: 900;
}

.rank-thumb {
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 3 / 4;
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-info h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.rank-info p {
    margin: 0 0 8px;
    color: var(--color-muted);
    line-height: 1.55;
}

.side-panel {
    position: sticky;
    top: 92px;
    align-self: start;
    padding: 22px;
    border-radius: 22px;
    background: #111827;
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.side-panel h2,
.side-panel h3 {
    margin: 0 0 14px;
}

.side-panel a {
    display: block;
    padding: 10px 0;
    color: #fed7aa;
    font-weight: 800;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.page-title {
    padding: 44px 0 28px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 18px;
}

.breadcrumbs a {
    color: #c2410c;
    font-weight: 800;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 12px;
    margin-bottom: 24px;
}

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

.detail-hero {
    padding: 44px 0;
    background:
        radial-gradient(circle at 82% 20%, rgba(249, 115, 22, 0.24), transparent 30%),
        linear-gradient(135deg, #111827, #1f2937 45%, #431407);
    color: #fff;
}

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

.detail-poster {
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.34);
}

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

.detail-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.05em;
    line-height: 1.05;
}

.detail-copy p {
    color: #ffedd5;
    font-size: 18px;
    line-height: 1.8;
}

.info-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.info-pills span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff7ed;
    font-weight: 800;
}

.player-section {
    padding: 48px 0;
    background: #020617;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
    aspect-ratio: 16 / 9;
}

.player-box video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.78), rgba(124, 45, 18, 0.38));
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.2s ease;
}

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

.player-button {
    width: 92px;
    height: 92px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    font-size: 34px;
    box-shadow: 0 18px 44px rgba(239, 68, 68, 0.36);
    cursor: pointer;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    padding: 48px 0;
}

.article-card,
.related-panel {
    padding: 26px;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-card);
}

.article-card h2,
.related-panel h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.article-card p {
    color: #374151;
    line-height: 1.9;
    margin: 0 0 20px;
}

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

.related-link {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: center;
}

.related-link img {
    width: 64px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
}

.related-link strong {
    display: block;
    line-height: 1.35;
}

.related-link span {
    color: var(--color-muted);
    font-size: 13px;
}

.site-footer {
    background: #111827;
    color: #d1d5db;
    padding-top: 46px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
    gap: 28px;
}

.site-footer h2,
.site-footer h3 {
    color: #fff;
    margin: 0 0 14px;
}

.site-footer p {
    line-height: 1.75;
    margin: 0;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li {
    margin-bottom: 8px;
}

.site-footer a:hover {
    color: #fb923c;
}

.footer-bottom {
    margin-top: 36px;
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    text-align: center;
    color: #9ca3af;
}

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

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

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

    .hero-poster {
        max-width: 320px;
        transform: none;
    }

    .side-panel {
        position: static;
    }

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

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

    .brand-text {
        font-size: 18px;
    }

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

    .hero-content {
        gap: 28px;
        padding: 44px 0 84px;
    }

    .search-panel,
    .filter-bar,
    .rank-item {
        grid-template-columns: 1fr;
    }

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

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

    .article-card,
    .related-panel {
        padding: 20px;
    }
}
