:root {
    --color-amber: #f59e0b;
    --color-amber-dark: #d97706;
    --color-amber-soft: #fff7ed;
    --color-red: #ef4444;
    --color-dark: #111827;
    --color-slate: #1f2937;
    --color-muted: #6b7280;
    --color-line: #e5e7eb;
    --color-page: #f8fafc;
    --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 10px 24px rgba(15, 23, 42, 0.09);
    --radius-large: 28px;
    --radius-card: 20px;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    color: var(--color-dark);
    background: var(--color-page);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-amber), #f97316);
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35);
    font-size: 15px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link,
.mobile-link {
    padding: 9px 15px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

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

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

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    color: #374151;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    padding: 0 20px 16px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.mobile-menu.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

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

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

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 35%, rgba(245, 158, 11, 0.22), transparent 28%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.62) 42%, rgba(0, 0, 0, 0.14) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 78px 20px 96px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}

.eyebrow,
.section-heading span,
.page-hero span,
.detail-info .breadcrumbs,
.detail-content h2 {
    color: var(--color-amber);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-content h1 {
    max-width: 760px;
    margin: 16px 0 20px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 26px;
    color: #e5e7eb;
    font-size: clamp(18px, 2vw, 24px);
}

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

.hero-meta span,
.detail-meta span {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

.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.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-amber), #f97316);
    box-shadow: 0 18px 28px rgba(245, 158, 11, 0.28);
}

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

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

.hero-search {
    width: min(620px, 100%);
    display: flex;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(18px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 0 18px;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.hero-search button {
    border: 0;
    cursor: pointer;
    padding: 12px 24px;
    border-radius: 999px;
    color: #78350f;
    background: #fef3c7;
    font-weight: 800;
}

.hero-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-categories a {
    padding: 7px 13px;
    border-radius: 999px;
    color: #fef3c7;
    background: rgba(255, 255, 255, 0.14);
    font-size: 14px;
    font-weight: 700;
}

.hero-categories.secondary a {
    color: #92400e;
    background: #fff7ed;
}

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

.hero-dot {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.44);
    transition: width 0.25s ease, background 0.25s ease;
}

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

.section {
    padding: 70px 20px;
}

.white-section {
    background: #ffffff;
}

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

.dark-section {
    background: linear-gradient(135deg, #111827, #1f2937 58%, #78350f);
    color: #ffffff;
}

.section-heading {
    max-width: var(--max-width);
    margin: 0 auto 32px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.section-heading.small {
    margin-bottom: 18px;
}

.section-heading h2,
.page-hero h1,
.detail-info h1 {
    margin: 6px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-heading a {
    color: #b45309;
    font-weight: 800;
}

.section-heading.invert a,
.section-heading.invert span {
    color: #fbbf24;
}

.movie-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    gap: 24px;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #111827;
}

.movie-card:not(.compact) .poster-link {
    aspect-ratio: 16 / 10;
}

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

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

.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.68));
}

.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.7);
    font-size: 12px;
    font-weight: 800;
}

.rank-badge {
    left: 12px;
    right: auto;
    background: linear-gradient(135deg, var(--color-red), var(--color-amber));
}

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

.category-pill {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #92400e;
    background: #fef3c7;
    font-size: 12px;
    font-weight: 800;
}

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

.movie-card h2 a:hover {
    color: var(--color-amber-dark);
}

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

.movie-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
}

.category-panels {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    gap: 30px;
}

.category-strip {
    padding: 28px;
    border-radius: var(--radius-large);
    background: #f9fafb;
    border: 1px solid #edf0f3;
}

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

.ranking-list {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.ranking-list.light .compact-link {
    background: #ffffff;
    color: var(--color-dark);
}

.compact-link {
    display: grid;
    grid-template-columns: 36px 64px 1fr;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.25s ease, transform 0.25s ease;
}

.compact-link:hover {
    transform: translateY(-3px);
    background: rgba(245, 158, 11, 0.26);
}

.compact-link img {
    width: 64px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}

.compact-link strong,
.compact-link em {
    display: block;
}

.compact-link strong {
    font-size: 15px;
    line-height: 1.35;
}

.compact-link em {
    color: #9ca3af;
    font-size: 12px;
    font-style: normal;
    margin-top: 5px;
}

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

.page-hero {
    min-height: 340px;
    display: flex;
    align-items: center;
    padding: 80px 20px;
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.35), transparent 28%),
        linear-gradient(135deg, #111827, #1f2937 56%, #92400e);
}

.page-hero > div {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

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

.category-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.category-tile {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;
    padding: 20px;
    border-radius: var(--radius-large);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.category-cover {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    min-height: 220px;
}

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

.category-cover span {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.68);
    text-align: center;
    font-weight: 800;
}

.category-tile h2 {
    margin: 8px 0 10px;
    font-size: 24px;
}

.category-tile p {
    color: var(--color-muted);
    margin: 0 0 18px;
}

.tile-links {
    display: grid;
    gap: 10px;
}

.tile-links a {
    color: #b45309;
    font-weight: 700;
}

.filter-panel {
    max-width: var(--max-width);
    margin: 0 auto 30px;
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 14px;
    padding: 16px;
    border-radius: 24px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.filter-panel.large {
    grid-template-columns: 1fr 220px 220px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid #e5e7eb;
    outline: 0;
    border-radius: 16px;
    padding: 13px 16px;
    background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--color-amber);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.empty-state {
    display: none;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 34px;
    border-radius: 20px;
    color: #92400e;
    background: #fff7ed;
    text-align: center;
    font-weight: 800;
}

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

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(18px);
    transform: scale(1.08);
    opacity: 0.45;
}

.detail-backdrop span {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.98), rgba(17, 24, 39, 0.74), rgba(17, 24, 39, 0.56));
}

.detail-wrap {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    min-height: 560px;
    margin: 0 auto;
    padding: 78px 20px;
    display: grid;
    grid-template-columns: 320px 1fr;
    align-items: center;
    gap: 46px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
}

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

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: #fef3c7;
}

.detail-info h1 {
    font-size: clamp(38px, 6vw, 68px);
    color: #ffffff;
}

.detail-one-line {
    max-width: 760px;
    color: #e5e7eb;
    font-size: 20px;
    margin: 18px 0 26px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.tag-row span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #fef3c7;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 700;
}

.player-section {
    background: #0f172a;
    color: #ffffff;
}

.video-shell {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

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

.player-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;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.34);
    transition: opacity 0.25s ease;
}

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

.play-circle {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-amber), #f97316);
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.35);
    font-size: 30px;
    padding-left: 4px;
}

.article-block,
.pager-links {
    max-width: var(--max-width);
    margin: 0 auto 28px;
    padding: 30px;
    border-radius: var(--radius-large);
    background: #f9fafb;
    border: 1px solid #edf0f3;
}

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

.article-block p {
    margin: 0;
    color: #374151;
    font-size: 17px;
}

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

.pager-links a {
    padding: 14px 16px;
    border-radius: 16px;
    color: #92400e;
    background: #fff7ed;
    font-weight: 800;
}

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

.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 54px 20px 34px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.35fr;
    gap: 32px;
}

.footer-logo {
    color: #ffffff;
    margin-bottom: 14px;
}

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

.site-footer p {
    margin: 0;
    color: #cbd5e1;
}

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

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

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 22px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    text-align: center;
}

@media (max-width: 1024px) {
    .featured-grid,
    .compact-grid,
    .archive-grid,
    .strip-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .detail-wrap {
        grid-template-columns: 260px 1fr;
    }

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

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

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

    .site-logo,
    .footer-logo {
        font-size: 22px;
    }

    .hero-carousel {
        height: auto;
        min-height: 720px;
    }

    .hero-slide,
    .hero-slides {
        position: absolute;
    }

    .hero-content {
        min-height: 720px;
        padding-top: 66px;
        padding-bottom: 90px;
    }

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

    .hero-search input {
        padding: 14px 16px;
    }

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

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

    .featured-grid,
    .compact-grid,
    .archive-grid,
    .strip-row,
    .ranking-list,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

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

    .category-cover {
        min-height: 240px;
    }

    .filter-panel,
    .filter-panel.large {
        grid-template-columns: 1fr;
    }

    .detail-wrap {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .pager-links,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .featured-grid,
    .compact-grid,
    .archive-grid,
    .strip-row,
    .ranking-list,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .movie-card:not(.compact) .poster-link {
        aspect-ratio: 3 / 4;
    }

    .section {
        padding: 48px 16px;
    }

    .page-hero,
    .detail-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }
}
