:root {
    --bg: #fffaf0;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(31, 41, 55, 0.12);
    --brand: #d97706;
    --brand-dark: #b45309;
    --brand-soft: #fef3c7;
    --card: rgba(255, 255, 255, 0.92);
    --shadow: 0 18px 45px rgba(146, 64, 14, 0.15);
    --radius: 26px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.18), transparent 34rem),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #ffffff 100%);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(217, 119, 6, 0.12);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c 55%, #dc2626);
    box-shadow: 0 12px 28px rgba(217, 119, 6, 0.32);
}

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

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

.nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: 0.25s ease;
}

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

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #ffffff;
    padding: 10px;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #92400e;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 10px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.hero-carousel {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    background: linear-gradient(135deg, #d97706, #ea580c 48%, #b91c1c);
}

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

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(20, 10, 0, 0.82) 0%, rgba(120, 53, 15, 0.62) 42%, rgba(185, 28, 28, 0.28) 100%),
        var(--hero-image),
        linear-gradient(135deg, #f59e0b, #dc2626);
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    filter: saturate(1.15);
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 180px;
    background: linear-gradient(180deg, transparent, #ffffff);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 720px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 56px;
    padding: 92px 0 120px;
}

.eyebrow {
    margin: 0 0 14px;
    color: #fde68a;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 13px;
    font-weight: 900;
}

.eyebrow.dark {
    color: var(--brand);
}

.hero-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.96;
    letter-spacing: -0.06em;
    text-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}

.hero-summary {
    max-width: 700px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(18px, 2.2vw, 25px);
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.17);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(8px);
    font-weight: 700;
}

.tag-row span {
    color: #92400e;
    background: #fef3c7;
    border-color: rgba(217, 119, 6, 0.18);
}

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

.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: 0.25s ease;
}

.primary-button {
    color: #92400e;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.primary-button:hover {
    transform: translateY(-2px);
    color: #78350f;
    background: #fffbeb;
}

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

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.ghost-button.dark {
    color: #92400e;
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(217, 119, 6, 0.18);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 32px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fef3c7, #f97316);
    box-shadow: 0 36px 80px rgba(0, 0, 0, 0.34);
    transform: rotate(2deg);
}

.hero-poster img,
.detail-poster img,
.poster-shell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.image-missing {
    opacity: 0;
}

.hero-poster span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(10px);
    font-weight: 900;
}

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

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

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

.quick-entry {
    width: min(1180px, calc(100% - 32px));
    margin: -54px auto 0;
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.quick-entry a {
    min-height: 112px;
    padding: 22px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    border: 1px solid rgba(217, 119, 6, 0.14);
    transition: 0.25s ease;
}

.quick-entry a:hover,
.movie-card:hover,
.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 60px rgba(146, 64, 14, 0.18);
}

.quick-entry strong {
    display: block;
    font-size: 20px;
    margin-bottom: 6px;
    color: #111827;
}

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

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

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.04em;
}

.section-heading a {
    color: var(--brand-dark);
    font-weight: 900;
}

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    overflow: hidden;
    background: var(--card);
    border: 1px solid rgba(217, 119, 6, 0.12);
    box-shadow: 0 12px 34px rgba(146, 64, 14, 0.1);
    transition: 0.25s ease;
}

.featured-section .movie-card {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
    min-height: 420px;
}

.poster-link {
    display: block;
    min-width: 0;
}

.poster-shell {
    position: relative;
    display: block;
    height: 100%;
    min-height: 300px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.6), transparent 24%),
        linear-gradient(135deg, #fcd34d, #fb923c 55%, #b91c1c);
}

.compact-card .poster-shell {
    min-height: 220px;
}

.featured-section .poster-shell {
    aspect-ratio: auto;
    min-height: 420px;
}

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

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    min-width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #dc2626);
    font-weight: 900;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
}

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

.movie-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    min-height: 230px;
}

.featured-section .movie-card-body {
    justify-content: center;
    padding: 38px;
}

.movie-title {
    font-size: 20px;
    line-height: 1.28;
    font-weight: 900;
    color: #111827;
}

.featured-section .movie-title {
    font-size: clamp(30px, 4vw, 52px);
    letter-spacing: -0.05em;
}

.movie-meta,
.movie-desc,
.category-overview-card p,
.page-hero p,
.detail-one-line,
.detail-text p,
.footer-inner p {
    color: var(--muted);
}

.movie-meta {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.movie-desc {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #92400e;
    font-size: 13px;
    font-weight: 800;
}

.movie-card-foot span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.movie-card-foot a {
    flex: 0 0 auto;
    color: #ffffff;
    background: var(--brand);
    border-radius: 999px;
    padding: 7px 12px;
}

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

.category-tile,
.category-overview-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 22px;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.25), rgba(120, 53, 15, 0.84)),
        var(--tile-image),
        linear-gradient(135deg, #f59e0b, #dc2626);
    background-size: cover;
    background-position: center;
    color: #ffffff;
    box-shadow: var(--shadow);
    transition: 0.25s ease;
}

.category-tile span,
.category-overview-link span {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    font-weight: 900;
}

.category-tile p,
.category-overview-card p {
    color: rgba(255, 255, 255, 0.86);
}

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

.category-overview-card {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-overview-link h2 {
    margin: 16px 0 8px;
    font-size: 34px;
}

.category-overview-card ul {
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.category-overview-card li a {
    display: block;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-weight: 800;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 0;
    border-radius: 36px;
    background:
        linear-gradient(135deg, rgba(146, 64, 14, 0.92), rgba(194, 65, 12, 0.86)),
        var(--page-image),
        linear-gradient(135deg, #f59e0b, #dc2626);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
}

.slim-hero {
    min-height: 330px;
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.page-hero p,
.detail-one-line {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(0, 1.3fr);
    gap: 18px;
    margin-bottom: 26px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(217, 119, 6, 0.14);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 30px rgba(146, 64, 14, 0.08);
}

.search-field label,
.filter-fields span {
    display: block;
    margin-bottom: 8px;
    color: #92400e;
    font-weight: 900;
}

.search-field input,
.filter-fields select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border-radius: 16px;
    border: 1px solid rgba(217, 119, 6, 0.2);
    background: #ffffff;
    outline: none;
}

.search-field input:focus,
.filter-fields select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

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

.detail-hero {
    margin-top: 30px;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.56), rgba(146, 64, 14, 0.22));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    min-height: 560px;
    padding: 52px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fcd34d, #dc2626);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.34);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 800;
}

.player-section {
    padding-bottom: 38px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 30px;
    background:
        radial-gradient(circle at center, rgba(245, 158, 11, 0.35), transparent 34%),
        #111827;
    box-shadow: 0 30px 70px rgba(17, 24, 39, 0.24);
}

.main-video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.32), rgba(17, 24, 39, 0.72));
    cursor: pointer;
    transition: 0.25s ease;
}

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

.play-icon {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f59e0b, #dc2626);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.play-icon::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 24px solid #ffffff;
}

.play-overlay strong {
    font-size: 24px;
}

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

.detail-text article {
    padding: 28px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid rgba(217, 119, 6, 0.12);
    box-shadow: 0 12px 36px rgba(146, 64, 14, 0.09);
}

.detail-text h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.site-footer {
    margin-top: 50px;
    color: #f9fafb;
    background: #111827;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 40px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.footer-inner strong {
    display: block;
    margin-bottom: 8px;
    font-size: 22px;
}

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

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #fde68a;
    background: rgba(255, 255, 255, 0.08);
}

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

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

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

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-poster {
        display: none;
    }
}

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

    .mobile-menu-button {
        display: block;
    }

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

    .hero-carousel,
    .hero-content {
        min-height: 620px;
    }

    .quick-entry,
    .movie-grid,
    .small-grid,
    .category-grid,
    .category-overview-grid,
    .detail-text,
    .filter-panel,
    .filter-fields,
    .featured-section .movie-card,
    .detail-hero-inner {
        grid-template-columns: 1fr;
    }

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

    .detail-hero-inner,
    .slim-hero {
        padding: 28px;
    }

    .detail-poster {
        width: min(280px, 100%);
    }

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

@media (max-width: 560px) {
    .hero-content {
        padding-top: 72px;
        padding-bottom: 94px;
    }

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

    .movie-grid,
    .small-grid {
        gap: 16px;
    }

    .poster-shell,
    .compact-card .poster-shell {
        min-height: 260px;
    }

    .hero-actions,
    .page-hero-actions {
        flex-direction: column;
    }

    .primary-button,
    .ghost-button {
        width: 100%;
    }
}
