* {
    box-sizing: border-box;
}

:root {
    --mist-50: #f8f9fa;
    --mist-100: #f1f3f5;
    --mist-200: #e9ecef;
    --mist-500: #adb5bd;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --radius: 18px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.18);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--mist-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;
    width: 100%;
}

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(233, 236, 239, 0.9);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--red-500), var(--orange-600));
    box-shadow: var(--shadow-sm);
}

.brand-text {
    font-size: 21px;
    line-height: 1;
    color: transparent;
    background: linear-gradient(90deg, var(--red-600), var(--orange-600));
    -webkit-background-clip: text;
    background-clip: text;
}

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

.nav-link {
    color: var(--slate-700);
    font-size: 15px;
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--red-600);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--mist-100);
    cursor: pointer;
}

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

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

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

.mobile-nav .nav-link {
    padding: 10px 14px;
    border-radius: 12px;
}

.mobile-nav .nav-link.active,
.mobile-nav .nav-link:hover {
    background: #fef2f2;
}

.hero-carousel {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: var(--slate-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    min-height: 640px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.58) 46%, rgba(15, 23, 42, 0.16)),
        linear-gradient(0deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.02) 46%, rgba(15, 23, 42, 0.72));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(760px, calc(100% - 32px));
    margin-left: max(24px, calc((100vw - 1200px) / 2));
    padding-top: 28px;
    color: #fff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    color: var(--red-600);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-content .eyebrow {
    color: #fed7aa;
}

.hero-content h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 700px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.13);
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 700;
}

.tag-row span {
    background: #fff7ed;
    color: #c2410c;
}

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

.primary-button,
.ghost-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 800;
}

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, var(--red-500), var(--orange-600));
    box-shadow: 0 16px 32px rgba(239, 68, 68, 0.28);
}

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

.text-link {
    min-height: auto;
    padding: 0;
    color: var(--red-600);
}

.hero-controls {
    position: absolute;
    right: max(24px, calc((100vw - 1200px) / 2));
    bottom: 36px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-controls button {
    border: 0;
    cursor: pointer;
}

.hero-controls > button {
    width: 42px;
    height: 42px;
    color: #fff;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.hero-dots {
    display: flex;
    gap: 7px;
}

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

.hero-dot.active {
    width: 28px;
    background: #fff;
}

.quick-entry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: -58px;
    position: relative;
    z-index: 5;
}

.quick-entry a {
    min-height: 118px;
    padding: 24px;
    color: var(--slate-800);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
}

.quick-entry strong {
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
}

.quick-entry span {
    color: var(--slate-600);
}

.section-block,
.page-main {
    padding: 62px 0;
}

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

.section-heading h2,
.page-hero h1,
.article-block h2 {
    margin: 0;
    color: var(--slate-900);
    line-height: 1.15;
}

.section-heading h2 {
    font-size: clamp(26px, 3vw, 38px);
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--mist-200);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, var(--mist-200), #fff);
}

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

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

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red-500), var(--orange-600));
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3);
}

.movie-card-body {
    padding: 16px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    color: var(--slate-600);
    font-size: 12px;
    font-weight: 700;
}

.movie-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 6px;
    color: var(--mist-500);
}

.movie-card h2 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card p {
    min-height: 48px;
    margin: 0 0 12px;
    color: var(--slate-600);
    font-size: 14px;
}

.movie-card.compact h2 {
    font-size: 16px;
}

.movie-card.compact p {
    min-height: 44px;
    font-size: 13px;
}

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

.category-tile {
    display: grid;
    grid-template-columns: 164px 1fr;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--mist-200);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.category-art {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    overflow: hidden;
    border-radius: 16px;
}

.category-art img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.category-tile h2 {
    margin: 0 0 8px;
}

.category-tile p {
    margin: 0 0 14px;
    color: var(--slate-600);
}

.page-hero {
    padding: 58px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.24), transparent 32%),
        linear-gradient(135deg, #fff, #fff7ed 52%, #fef2f2);
    box-shadow: var(--shadow-sm);
}

.page-hero h1 {
    margin-bottom: 14px;
    font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: var(--slate-600);
    font-size: 18px;
}

.tool-panel {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 16px;
    margin: 28px 0;
    padding: 18px;
    border: 1px solid var(--mist-200);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.search-box,
.select-box {
    display: grid;
    gap: 8px;
    color: var(--slate-600);
    font-size: 13px;
    font-weight: 800;
}

.search-box input,
.select-box select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    color: var(--slate-800);
    border: 1px solid var(--mist-200);
    border-radius: 14px;
    outline: none;
    background: var(--mist-50);
}

.search-box input:focus,
.select-box select:focus {
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 28px 0;
    color: var(--slate-600);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--red-600);
    font-weight: 700;
}

.detail-main {
    padding-bottom: 70px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 28px;
    border: 1px solid var(--mist-200);
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.22), transparent 36%),
        #fff;
    box-shadow: var(--shadow-md);
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

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

.detail-info h1 {
    margin: 0 0 14px;
    color: var(--slate-900);
    font-size: clamp(34px, 4.2vw, 56px);
    line-height: 1.08;
}

.lead-text {
    margin: 0 0 24px;
    color: var(--slate-600);
    font-size: 18px;
}

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

.info-list div {
    padding: 14px;
    border-radius: 16px;
    background: var(--mist-50);
}

.info-list dt {
    color: var(--slate-600);
    font-size: 12px;
    font-weight: 800;
}

.info-list dd {
    margin: 4px 0 0;
    color: var(--slate-900);
    font-weight: 800;
}

.player-section,
.article-block,
.related-block {
    margin-top: 34px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    box-shadow: var(--shadow-lg);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 10px;
    color: #fff;
    border: 0;
    background: rgba(15, 23, 42, 0.36);
    cursor: pointer;
}

.play-overlay span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    margin: 0 auto;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red-500), var(--orange-600));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.play-overlay.hide {
    display: none;
}

.article-block {
    padding: 34px;
    border: 1px solid var(--mist-200);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.article-block h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 25px;
}

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

.article-block p:last-child {
    margin-bottom: 0;
}

.site-footer {
    margin-top: 56px;
    padding: 48px 0;
    color: #cbd5e1;
    background: var(--slate-900);
}

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

.footer-brand {
    color: #fff;
    font-size: 21px;
}

.site-footer p {
    max-width: 520px;
    color: #94a3b8;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 18px;
}

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

.footer-links a {
    color: #cbd5e1;
    padding: 4px 0;
}

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

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

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

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

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

    .menu-button {
        display: block;
    }

    .hero-carousel,
    .hero-slide {
        min-height: 600px;
    }

    .hero-content {
        margin: 0 auto;
        padding-top: 70px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-controls {
        right: 16px;
        left: 16px;
        justify-content: space-between;
    }

    .quick-entry,
    .category-grid,
    .footer-grid,
    .detail-hero,
    .tool-panel {
        grid-template-columns: 1fr;
    }

    .quick-entry {
        margin-top: 22px;
    }

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

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

    .category-tile {
        grid-template-columns: 120px 1fr;
    }

    .page-hero {
        padding: 34px 24px;
    }

    .detail-hero {
        padding: 18px;
    }

    .detail-poster {
        max-width: 240px;
        margin: 0 auto;
    }
}

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

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

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

    .category-tile {
        grid-template-columns: 1fr;
    }

    .info-list {
        grid-template-columns: 1fr;
    }
}
