* {
    box-sizing: border-box;
}

:root {
    --bg: #f9fafb;
    --panel: #ffffff;
    --soft: #fff7ed;
    --line: #e5e7eb;
    --text: #111827;
    --muted: #6b7280;
    --dark: #111827;
    --amber: #f59e0b;
    --amber-dark: #d97706;
    --blue: #2563eb;
    --cyan: #06b6d4;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    --radius: 22px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
}

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

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

button,
input {
    font: inherit;
}

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

.container.narrow {
    width: min(860px, calc(100% - 32px));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.92);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
}

.site-nav {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
}

.brand-mark,
.footer-brand span {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), #ef4444);
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35);
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 12px;
    color: #4b5563;
    font-weight: 650;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #92400e;
    background: #fef3c7;
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: #f3f4f6;
    border-radius: 999px;
}

.nav-search input,
.hero-search input {
    width: 210px;
    border: 0;
    outline: 0;
    color: #111827;
    background: transparent;
    padding: 10px 12px;
}

.nav-search button,
.hero-search button {
    border: 0;
    cursor: pointer;
    color: #ffffff;
    font-weight: 700;
    background: var(--amber);
    border-radius: 999px;
    padding: 10px 16px;
    transition: 0.2s ease;
}

.nav-search button:hover,
.hero-search button:hover,
.primary-button:hover {
    background: var(--amber-dark);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    cursor: pointer;
    color: #374151;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 10px 12px;
}

.mobile-nav {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

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

.mobile-nav a,
.mobile-nav input {
    display: block;
    width: 100%;
    padding: 13px 15px;
    border-radius: 14px;
    color: #374151;
    background: #f9fafb;
    border: 1px solid var(--line);
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 1.2s ease;
    pointer-events: none;
}

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: absolute;
    z-index: 2;
    left: max(32px, calc((100% - 1200px) / 2));
    bottom: 96px;
    width: min(680px, calc(100% - 64px));
    color: #ffffff;
}

.eyebrow,
.page-hero span,
.section-heading span,
.category-card span {
    display: inline-flex;
    align-items: center;
    color: var(--amber);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-content h1 {
    margin: 16px 0 20px;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.05;
    font-weight: 900;
}

.hero-content p {
    margin: 0 0 26px;
    max-width: 620px;
    color: #e5e7eb;
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.8;
}

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

.hero-meta span,
.hero-tags span,
.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #78350f;
    background: #fef3c7;
    font-size: 13px;
    font-weight: 750;
}

.hero-meta span:first-child {
    color: #ffffff;
    background: var(--amber);
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 999px;
    padding: 13px 22px;
    font-weight: 800;
    transition: 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: var(--amber);
    box-shadow: 0 15px 28px rgba(245, 158, 11, 0.26);
}

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

.ghost-button.dark {
    color: #111827;
    border-color: var(--line);
    background: #ffffff;
}

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

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

.hero-dot.active {
    width: 36px;
    background: var(--amber);
}

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

.bg-white {
    background: #ffffff;
}

.warm-section,
.alt-soft {
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.blue-section {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.category-strip {
    padding: 28px 0;
    background: #ffffff;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-pills a {
    padding: 12px 18px;
    border-radius: 999px;
    color: #92400e;
    font-weight: 750;
    background: #fef3c7;
    transition: 0.2s ease;
}

.category-pills a:hover {
    color: #ffffff;
    background: var(--amber);
    transform: translateY(-2px);
}

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

.section-heading h2 {
    margin: 8px 0 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
}

.blue-section .section-heading h2,
.blue-section .section-heading span,
.blue-section .section-heading a {
    color: #ffffff;
}

.section-heading a {
    color: var(--amber-dark);
    font-weight: 800;
    white-space: nowrap;
}

.grid {
    display: grid;
}

.card-grid {
    gap: 24px;
}

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

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

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

.movie-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    color: #111827;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(229, 231, 235, 0.78);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-card figure {
    position: relative;
    margin: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111827;
}

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

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

.badge-year,
.badge-quality {
    position: absolute;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.badge-year {
    left: 12px;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(8px);
}

.badge-quality {
    right: 12px;
    background: var(--amber);
}

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

.movie-card strong {
    display: block;
    color: #111827;
    font-size: 19px;
    line-height: 1.35;
    margin-bottom: 8px;
}

.movie-card em,
.compact-card em {
    display: block;
    color: #6b7280;
    font-style: normal;
    font-size: 13px;
    margin-bottom: 10px;
}

.movie-card p,
.compact-card p,
.category-card p,
.article-card p {
    color: #4b5563;
    line-height: 1.75;
}

.movie-card p {
    min-height: 52px;
    margin: 0 0 14px;
    font-size: 14px;
}

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

.movie-card-wide figure {
    height: 100%;
    aspect-ratio: auto;
}

.scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 320px);
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: thin;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.38), transparent 34%), linear-gradient(135deg, #111827, #1f2937 48%, #92400e);
}

.page-hero {
    padding: 96px 0 82px;
}

.small-hero {
    padding: 86px 0;
}

.rank-hero {
    background: radial-gradient(circle at 78% 15%, rgba(245, 158, 11, 0.45), transparent 28%), linear-gradient(135deg, #111827, #172554 55%, #0891b2);
}

.search-hero {
    background: radial-gradient(circle at 78% 15%, rgba(6, 182, 212, 0.45), transparent 28%), linear-gradient(135deg, #111827, #334155 55%, #92400e);
}

.category-hero {
    background: radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.45), transparent 32%), linear-gradient(135deg, #111827, #374151 58%, #b45309);
}

.page-hero h1 {
    margin: 14px 0 18px;
    max-width: 860px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.08;
}

.page-hero p {
    max-width: 720px;
    color: #e5e7eb;
    font-size: 19px;
    line-height: 1.85;
}

.hero-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
}

.hero-search input {
    width: min(440px, 58vw);
}

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

.category-card {
    display: grid;
    grid-template-columns: 42% 1fr;
    gap: 22px;
    align-items: center;
    overflow: hidden;
    min-height: 220px;
    padding: 18px;
    border-radius: var(--radius);
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: 0.24s ease;
}

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

.category-card-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.category-card-images img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
}

.category-card h2 {
    margin: 8px 0 10px;
    font-size: 26px;
}

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

.compact-card {
    position: relative;
    display: grid;
    grid-template-columns: 96px 48px 1fr;
    align-items: center;
    gap: 18px;
    min-height: 118px;
    padding: 12px 18px 12px 12px;
    border-radius: 18px;
    color: #111827;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    transition: 0.2s ease;
}

.compact-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.compact-card img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 14px;
}

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

.compact-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
}

.compact-card p {
    margin: 0;
    font-size: 14px;
}

.detail-hero {
    min-height: 620px;
    background-image: var(--cover-image);
    background-size: cover;
    background-position: center;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.35));
    backdrop-filter: blur(8px);
}

.detail-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 44px;
    align-items: center;
    min-height: 620px;
    padding: 70px 0;
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
    color: #fbbf24;
    font-weight: 750;
}

.detail-info h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.08;
}

.detail-one-line {
    max-width: 780px;
    color: #e5e7eb;
    font-size: 20px;
    line-height: 1.8;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 680px;
    padding: 0;
    margin: 24px 0;
    list-style: none;
}

.detail-meta li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-meta span {
    color: #d1d5db;
}

.detail-meta strong {
    color: #ffffff;
}

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

.player-shell video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #000000;
}

.play-button {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.58));
}

.play-button span {
    width: 92px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: var(--amber);
    font-size: 34px;
    box-shadow: 0 20px 45px rgba(245, 158, 11, 0.34);
    transition: 0.2s ease;
}

.play-button:hover span {
    transform: scale(1.08);
    background: var(--amber-dark);
}

.player-shell.is-playing .play-button {
    opacity: 0;
    pointer-events: none;
}

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

.article-card {
    padding: 34px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.article-card h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.article-card ul {
    padding-left: 20px;
    color: #4b5563;
    line-height: 1.9;
}

.article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937 52%, #111827);
}

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

.footer-brand {
    color: #ffffff;
}

.site-footer p {
    color: #d1d5db;
    line-height: 1.8;
}

.site-footer h3 {
    margin: 0 0 16px;
    color: #ffffff;
}

.site-footer ul {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

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

.footer-bottom {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #9ca3af;
    text-align: center;
}

.no-results {
    padding: 36px;
    border-radius: 24px;
    color: #6b7280;
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--line);
}

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

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

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

@media (max-width: 760px) {
    .site-nav {
        min-height: 68px;
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .brand {
        font-size: 20px;
    }

    .hero-carousel {
        min-height: 610px;
    }

    .hero-content {
        left: 20px;
        bottom: 78px;
        width: calc(100% - 40px);
    }

    .hero-meta span:nth-child(3),
    .hero-tags {
        display: none;
    }

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

    .card-grid-three,
    .card-grid-four,
    .mixed-grid,
    .category-overview-grid,
    .detail-text-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .detail-layout {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 44px 0;
    }

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

    .detail-meta {
        grid-template-columns: 1fr;
    }

    .compact-card {
        grid-template-columns: 82px 1fr;
    }

    .compact-card img {
        width: 82px;
        height: 82px;
    }

    .compact-rank {
        position: absolute;
        left: 10px;
        top: 10px;
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .hero-search {
        width: 100%;
        border-radius: 24px;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-search input {
        width: 100%;
    }
}
