:root {
    --bg: #fffaf1;
    --panel: #ffffff;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #f2d6a7;
    --amber: #d97706;
    --amber-dark: #92400e;
    --orange: #f97316;
    --blue: #2563eb;
    --cyan: #0891b2;
    --red: #dc2626;
    --shadow: 0 18px 45px rgba(146, 64, 14, 0.14);
    --soft-shadow: 0 10px 26px rgba(146, 64, 14, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: radial-gradient(circle at top left, #fff3d7 0, transparent 34rem), var(--bg);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.nav-wrap {
    max-width: 1240px;
    margin: 0 auto;
    min-height: 72px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff7ed;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.28);
}

.brand-text {
    font-size: 21px;
    color: var(--amber-dark);
}

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

.nav-link,
.mobile-nav a {
    padding: 10px 16px;
    border-radius: 999px;
    color: #78350f;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav a:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(217, 119, 6, 0.22);
    border-radius: 14px;
    background: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-button span {
    width: 20px;
    height: 2px;
    background: var(--amber-dark);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 22px 16px;
    gap: 8px;
    flex-wrap: wrap;
}

.mobile-nav.is-open {
    display: flex;
}

.hero {
    max-width: 1240px;
    margin: 28px auto 0;
    padding: 0 22px;
}

.hero-stage {
    position: relative;
    min-height: 560px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #111827;
}

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

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 18%, rgba(245, 158, 11, 0.18), transparent 24rem),
        linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.66) 45%, rgba(15, 23, 42, 0.12) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.62), transparent 46%);
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 680px;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 58px;
    color: #fff7ed;
}

.eyebrow,
.movie-kicker,
.detail-kicker {
    color: #fbbf24;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 13px;
}

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

.hero p {
    margin: 0;
    max-width: 620px;
    color: rgba(255, 247, 237, 0.88);
    font-size: 18px;
}

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

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.tag-list span,
.meta-pill {
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: #92400e;
    background: #fef3c7;
}

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

.primary-btn,
.ghost-btn,
.text-link,
.category-card a,
.search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.search-button {
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 14px 28px rgba(217, 119, 6, 0.25);
    border: 0;
}

.ghost-btn {
    color: #fff7ed;
    border: 1px solid rgba(255, 247, 237, 0.55);
    background: rgba(255, 255, 255, 0.1);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-link:hover,
.category-card a:hover,
.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(217, 119, 6, 0.28);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 247, 237, 0.45);
    border-radius: 50%;
    transform: translateY(-50%);
    color: #fff7ed;
    background: rgba(15, 23, 42, 0.34);
    font-size: 34px;
    line-height: 1;
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

.hero-dots {
    position: absolute;
    z-index: 5;
    left: 58px;
    bottom: 34px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 247, 237, 0.5);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: #fbbf24;
}

.main-section,
.page-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 64px 22px;
}

.page-section.narrow {
    max-width: 980px;
}

.tint-blue {
    background: linear-gradient(90deg, #eff6ff, #ecfeff);
}

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

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

.section-head h1,
.section-head h2,
.detail-title {
    margin: 0;
    color: #1f2937;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.section-head h1 {
    font-size: clamp(34px, 5vw, 56px);
}

.section-head h2,
.detail-title {
    font-size: clamp(28px, 4vw, 42px);
}

.section-head p {
    margin: 10px 0 0;
    color: var(--muted);
    max-width: 680px;
}

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

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

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

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

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--soft-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 46px rgba(146, 64, 14, 0.18);
    border-color: rgba(217, 119, 6, 0.28);
}

.movie-thumb {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #1f2937;
}

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

.movie-card:hover .movie-thumb img {
    transform: scale(1.06);
    filter: brightness(0.9);
}

.play-dot {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    border-radius: 50%;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(127, 29, 29, 0.22);
}

.movie-info {
    padding: 16px;
}

.movie-info h3 {
    margin: 6px 0 8px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-info h3 a:hover {
    color: var(--amber);
}

.movie-info p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
}

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

.movie-card-wide .movie-thumb {
    aspect-ratio: auto;
    min-height: 250px;
}

.movie-card-wide .movie-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    padding: 24px;
    border: 1px solid rgba(217, 119, 6, 0.14);
    border-radius: 28px;
    background: linear-gradient(135deg, #fff, #fffbeb);
    box-shadow: var(--soft-shadow);
}

.category-card:before {
    content: "";
    position: absolute;
    right: -38px;
    top: -38px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.18);
}

.category-card h2,
.category-card h3 {
    position: relative;
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 900;
}

.category-card p {
    position: relative;
    margin: 0 0 22px;
    color: var(--muted);
}

.category-card a {
    position: relative;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(217, 119, 6, 0.14);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--soft-shadow);
    margin-bottom: 28px;
}

.search-panel input {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(217, 119, 6, 0.22);
    border-radius: 999px;
    padding: 0 18px;
    color: var(--ink);
    background: #fff;
    outline: none;
}

.search-panel input:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

.filter-empty {
    display: none;
    padding: 28px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed rgba(217, 119, 6, 0.32);
    border-radius: 22px;
    background: #fff;
}

.filter-empty.is-visible {
    display: block;
}

.breadcrumb {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 22px;
}

.breadcrumb a {
    color: var(--amber);
    font-weight: 800;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    gap: 30px;
    align-items: stretch;
}

.player-card,
.detail-card {
    overflow: hidden;
    border: 1px solid rgba(217, 119, 6, 0.16);
    border-radius: 30px;
    background: #fff;
    box-shadow: var(--shadow);
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #111827;
}

.player-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    overflow: hidden;
    color: #fff;
    background: #111827;
    cursor: pointer;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.52);
}

.player-cover span {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
    font-size: 28px;
}

.player-cover.is-hidden {
    display: none;
}

.detail-card {
    padding: 30px;
}

.detail-title {
    margin-top: 10px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.detail-card p {
    color: var(--muted);
    margin: 0 0 20px;
}

.content-card {
    margin-top: 28px;
    padding: 30px;
    border: 1px solid rgba(217, 119, 6, 0.14);
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--soft-shadow);
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 28px;
    font-weight: 900;
}

.content-card p {
    margin: 0 0 18px;
    color: #4b5563;
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 24px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 54px 86px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--soft-shadow);
}

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

.rank-row img {
    width: 86px;
    height: 118px;
    object-fit: cover;
    border-radius: 14px;
    background: #1f2937;
}

.rank-row h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 900;
}

.rank-row p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.site-footer {
    color: #fffbeb;
    background: linear-gradient(135deg, #78350f, #9a3412);
    margin-top: 40px;
}

.footer-grid {
    max-width: 1240px;
    margin: 0 auto;
    padding: 52px 22px;
    display: grid;
    grid-template-columns: 1.35fr 0.75fr 0.75fr 1fr;
    gap: 34px;
}

.footer-grid h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

.footer-grid p,
.footer-grid a {
    color: #fde68a;
    font-size: 14px;
}

.footer-grid a {
    display: block;
    margin: 8px 0;
}

.footer-bottom {
    padding: 18px 22px;
    text-align: center;
    color: #fde68a;
    border-top: 1px solid rgba(253, 230, 138, 0.2);
}

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

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

    .detail-hero,
    .rank-layout {
        grid-template-columns: 1fr;
    }
}

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

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

    .hero-stage,
    .hero-copy {
        min-height: 520px;
    }

    .hero-copy {
        padding: 34px 24px 74px;
    }

    .hero-arrow {
        top: auto;
        bottom: 22px;
        transform: none;
    }

    .hero-prev {
        left: auto;
        right: 82px;
    }

    .hero-next {
        right: 24px;
    }

    .hero-dots {
        left: 24px;
        bottom: 38px;
    }

    .section-head {
        display: block;
    }

    .section-more {
        display: inline-block;
        margin-top: 12px;
    }

    .movie-grid,
    .movie-grid.four,
    .movie-grid.three,
    .movie-list,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

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

    .movie-card-wide .movie-thumb {
        aspect-ratio: 2 / 3;
        min-height: 0;
    }

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

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

@media (max-width: 520px) {
    .nav-wrap,
    .hero,
    .main-section,
    .page-section {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .hero-stage {
        border-radius: 24px;
    }

    .movie-grid,
    .movie-grid.four,
    .movie-grid.three,
    .movie-list,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 42px 72px 1fr;
    }

    .rank-row img {
        width: 72px;
        height: 100px;
    }
}
