:root {
    --amber: #d97706;
    --amber-dark: #92400e;
    --green: #047857;
    --green-soft: #d1fae5;
    --cream: #fffbeb;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(31, 41, 55, 0.12);
    --soft-shadow: 0 10px 24px rgba(31, 41, 55, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #fffbeb 0%, #ecfdf5 48%, #eff6ff 100%);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(236, 253, 245, 0.96));
    border-bottom: 1px solid rgba(217, 119, 6, 0.12);
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.08);
    backdrop-filter: blur(14px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
}

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #059669);
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.22);
    transform: translateZ(0);
    transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
    transform: rotate(12deg) scale(1.05);
}

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

.nav-link,
.mobile-nav-link {
    position: relative;
    color: #374151;
    font-size: 15px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    border-radius: 999px;
    background: var(--amber);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--amber);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.top-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border: 1px solid rgba(217, 119, 6, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
}

.top-search input,
.mobile-search input,
.search-box-large input,
.select-grid select {
    border: 0;
    outline: 0;
    background: #ffffff;
    color: var(--text);
}

.top-search input {
    width: 220px;
    padding: 9px 12px 9px 16px;
    border-radius: 999px;
    background: transparent;
}

.top-search button,
.mobile-search button,
.search-box-large button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #059669);
    padding: 9px 16px;
    font-weight: 800;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(217, 119, 6, 0.1);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    margin: 5px auto;
    background: #374151;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.mobile-search input {
    min-width: 0;
    border-radius: 999px;
    padding: 12px 16px;
}

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

.hero-stage,
.hero-slide,
.hero-slide img,
.hero-overlay {
    position: absolute;
    inset: 0;
}

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

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

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

.hero-overlay {
    background:
        radial-gradient(circle at 70% 35%, rgba(245, 158, 11, 0.32), transparent 34%),
        linear-gradient(90deg, rgba(69, 26, 3, 0.94) 0%, rgba(6, 78, 59, 0.82) 52%, rgba(17, 24, 39, 0.58) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-bottom: 52px;
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fde68a;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    backdrop-filter: blur(8px);
}

.hero h1,
.page-hero h1,
.detail-info h1 {
    margin: 18px 0 18px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 720px;
    margin: 0 0 22px;
    color: #fffbeb;
    font-size: clamp(18px, 2.2vw, 25px);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.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: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.tag-row span {
    background: #f3f4f6;
    color: #4b5563;
}

.large-tags span {
    background: rgba(217, 119, 6, 0.12);
    color: var(--amber-dark);
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 12px 30px rgba(217, 119, 6, 0.36);
}

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

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

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

.hero-dot {
    width: 36px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

.hero-dot.active {
    background: #f59e0b;
}

.hero-wave {
    position: absolute;
    z-index: 4;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 90px;
    fill: #fffbeb;
}

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

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

.soft-section {
    background: linear-gradient(90deg, rgba(254, 243, 199, 0.8), rgba(209, 250, 229, 0.86));
}

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

.section-heading h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
}

.section-more {
    color: var(--amber);
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.86);
    border-radius: 22px;
    background: var(--card);
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: rgba(217, 119, 6, 0.3);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #fef3c7, #d1fae5);
}

.compact-card .poster-link {
    aspect-ratio: 3 / 4;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.68));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.card-badge,
.play-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.card-badge {
    top: 12px;
    right: 12px;
    background: rgba(217, 119, 6, 0.92);
}

.play-chip {
    left: 12px;
    bottom: 12px;
    background: rgba(5, 150, 105, 0.92);
    transform: translateY(12px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.movie-card:hover .play-chip {
    transform: translateY(0);
    opacity: 1;
}

.card-body {
    padding: 17px;
}

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

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

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

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

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--amber-dark);
    font-size: 13px;
    font-weight: 800;
}

.meta-row span {
    padding: 2px 8px;
    border-radius: 999px;
    background: #fef3c7;
}

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

.rank-item {
    display: grid;
    grid-template-columns: auto 82px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(229, 231, 235, 0.86);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-4px);
    border-color: rgba(217, 119, 6, 0.35);
}

.rank-num {
    color: var(--amber);
    font-size: 22px;
    font-weight: 900;
}

.rank-item img {
    width: 82px;
    height: 62px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-text {
    display: grid;
    gap: 3px;
}

.rank-text strong {
    color: #111827;
}

.rank-text em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

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

.category-tile,
.category-overview-card {
    min-height: 142px;
    padding: 22px;
    border: 1px solid rgba(217, 119, 6, 0.16);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(236, 253, 245, 0.9));
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-tile span,
.category-title-link span {
    display: block;
    margin-bottom: 8px;
    color: var(--amber);
    font-size: 20px;
    font-weight: 900;
}

.category-tile strong,
.category-title-link strong {
    color: #374151;
    font-size: 14px;
    font-weight: 700;
}

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

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.category-samples a,
.filter-strip a {
    padding: 7px 11px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 13px;
    font-weight: 800;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 74% 24%, rgba(245, 158, 11, 0.34), transparent 30%),
        linear-gradient(135deg, #78350f, #064e3b 62%, #111827);
    color: #ffffff;
}

.page-hero {
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 16px;
    text-align: center;
}

.page-hero > div {
    width: min(900px, 100%);
}

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

.small-hero {
    min-height: 300px;
}

.filter-strip {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-strip a.active,
.filter-strip a:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #059669);
}

.search-panel {
    width: min(980px, calc(100% - 32px));
    margin: -44px auto 0;
    position: relative;
    z-index: 2;
    padding: 24px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.64);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.search-box-large {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-bottom: 16px;
}

.search-box-large input {
    min-height: 50px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.select-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.select-grid label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.select-grid select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.empty-state {
    padding: 36px;
    border-radius: 22px;
    background: #ffffff;
    text-align: center;
    color: var(--muted);
    box-shadow: var(--soft-shadow);
}

.is-hidden {
    display: none !important;
}

.detail-hero {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 42px;
    align-items: center;
    width: min(1180px, calc(100% - 32px));
    margin: 42px auto 0;
    padding: 36px;
    border-radius: 34px;
    box-shadow: var(--shadow);
}

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.26);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #fde68a;
    font-weight: 800;
}

.detail-info p {
    max-width: 760px;
    margin: 0 0 18px;
    color: #fffbeb;
    font-size: 18px;
}

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

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #111827;
    background: #fef3c7;
    font-weight: 900;
}

.detail-info .primary-button {
    margin-top: 22px;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.78));
    cursor: pointer;
    z-index: 3;
}

.player-overlay.hidden {
    display: none;
}

.big-play {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #059669);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
    font-size: 34px;
}

.player-overlay strong {
    font-size: 20px;
}

.detail-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 42px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 26px;
    align-items: start;
}

.detail-main,
.detail-side {
    border: 1px solid rgba(229, 231, 235, 0.86);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--soft-shadow);
}

.detail-main {
    padding: 32px;
}

.detail-side {
    padding: 26px;
    position: sticky;
    top: 94px;
}

.detail-block + .detail-block {
    margin-top: 28px;
}

.detail-block h2,
.detail-side h2 {
    margin: 0 0 14px;
    font-size: 24px;
    line-height: 1.25;
}

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

.detail-side dl {
    margin: 0;
    display: grid;
    gap: 12px;
}

.detail-side dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.detail-side dd {
    margin: -8px 0 0;
    color: #111827;
    font-weight: 800;
}

.related-section {
    padding-top: 46px;
}

.site-footer {
    margin-top: 72px;
    color: #d1d5db;
    background: linear-gradient(90deg, #1f2937, #111827);
}

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

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

.site-footer p {
    margin: 0;
    color: #9ca3af;
    font-size: 14px;
}

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

.site-footer a {
    display: block;
    margin: 8px 0;
    color: #d1d5db;
    font-size: 14px;
}

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

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    font-size: 14px;
}

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

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

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

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

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

    .menu-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero {
        height: 590px;
    }

    .hero-content {
        align-items: center;
        text-align: center;
    }

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

    .movie-grid,
    .compact-grid,
    .rank-grid,
    .category-grid,
    .category-overview-grid,
    .select-grid,
    .footer-grid,
    .detail-layout,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .detail-hero {
        margin-top: 24px;
        padding: 24px;
    }

    .detail-cover {
        max-width: 320px;
        margin: 0 auto;
    }

    .detail-side {
        position: static;
    }
}

@media (max-width: 560px) {
    .nav-shell {
        width: min(100% - 20px, 1180px);
        height: 64px;
    }

    .brand span:last-child {
        font-size: 16px;
    }

    .hero {
        height: 540px;
    }

    .hero h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 34px;
    }

    .hero p,
    .page-hero p,
    .detail-info p {
        font-size: 16px;
    }

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

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

    .card-body {
        padding: 13px;
    }

    .card-body p,
    .tag-row {
        display: none;
    }

    .rank-item {
        grid-template-columns: auto 70px 1fr;
    }

    .rank-item img {
        width: 70px;
        height: 54px;
    }

    .search-panel {
        padding: 16px;
    }

    .search-box-large {
        grid-template-columns: 1fr;
    }

    .detail-main,
    .detail-side {
        padding: 22px;
    }
}
