:root {
    color-scheme: light;
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --brown-900: #2b1602;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: rgba(217, 119, 6, 0.18);
    --card: rgba(255, 255, 255, 0.92);
    --shadow: 0 24px 60px rgba(120, 53, 15, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #fffbeb 0%, #fff7ed 48%, #fffbeb 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 251, 235, 0.86);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo,
.footer-logo {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #4b5563;
    font-size: 15px;
    font-weight: 700;
}

.nav-link {
    position: relative;
    padding: 25px 0;
    transition: color 0.25s ease;
}

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

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

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

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-button span {
    width: 19px;
    height: 2px;
    background: #92400e;
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-button.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-button.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    padding: 10px 16px 18px;
    background: rgba(255, 251, 235, 0.96);
}

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

.mobile-link {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.68);
    color: #4b5563;
    font-weight: 700;
}

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

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

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

.hero-bg,
.hero-bg img,
.hero-vignette {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 6s ease;
}

.hero-slide.is-active .hero-bg img {
    transform: scale(1.11);
}

.hero-vignette {
    background:
        radial-gradient(circle at 70% 34%, rgba(245, 158, 11, 0.18), transparent 30%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.56) 48%, rgba(0, 0, 0, 0.1) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.55), rgba(17, 24, 39, 0.1));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 680px;
    color: #fff;
}

.hero-badge,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.92);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.eyebrow {
    background: rgba(245, 158, 11, 0.12);
    color: var(--amber-600);
}

.hero-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.95;
    font-weight: 950;
    letter-spacing: -0.06em;
    text-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
}

.hero-desc {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
    max-width: 620px;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    font-weight: 800;
}

.tag-row span {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 16px 34px rgba(234, 88, 12, 0.32);
}

.btn.ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn.ghost.light {
    color: #92400e;
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn.text {
    color: rgba(255, 255, 255, 0.86);
    padding-left: 4px;
}

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

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

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

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

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

.section-head h2,
.search-panel h2,
.text-block h2,
.side-card h2,
.player-title h2 {
    margin: 12px 0 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-head p {
    margin: 12px 0 0;
    max-width: 640px;
    color: var(--muted);
    line-height: 1.8;
}

.section-link {
    flex: 0 0 auto;
    color: var(--amber-600);
    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 {
    position: relative;
    background: var(--card);
    border: 1px solid rgba(251, 191, 36, 0.22);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(146, 64, 14, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

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

.poster-link img,
.rank-cover img,
.detail-cover img,
.category-tile img,
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img,
.rank-card:hover .rank-cover img,
.category-tile:hover img {
    transform: scale(1.08);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), transparent 48%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.play-dot {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26);
    transform: translateY(8px);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.rank-no {
    position: absolute;
    left: 12px;
    top: 12px;
    min-width: 38px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.62);
    font-size: 13px;
    font-weight: 900;
}

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

.movie-meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.movie-meta-line a {
    color: var(--amber-600);
}

.movie-card h3,
.rank-card h3 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.35;
    color: #111827;
    font-weight: 900;
}

.movie-card h3 a:hover,
.rank-card h3 a:hover {
    color: var(--amber-600);
}

.movie-card p,
.rank-card p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.compact-card .movie-card-body {
    padding: 13px;
}

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

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

.category-card {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border-radius: 24px;
    color: #78350f;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(254, 243, 199, 0.92));
    border: 1px solid rgba(251, 191, 36, 0.28);
    box-shadow: 0 16px 34px rgba(146, 64, 14, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card span {
    font-size: 22px;
    font-weight: 950;
}

.category-card strong {
    color: #92400e;
    font-size: 14px;
    line-height: 1.7;
}

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

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

.rank-card {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(251, 191, 36, 0.23);
    box-shadow: 0 10px 26px rgba(146, 64, 14, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.rank-cover {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
    background: #111827;
}

.rank-cover span {
    position: absolute;
    left: 8px;
    top: 8px;
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    font-size: 12px;
    font-weight: 950;
}

.rank-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rank-sub,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    color: #9a3412;
    font-size: 12px;
    font-weight: 850;
}

.rank-sub span,
.detail-meta span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #ffedd5;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(260px, 0.7fr) minmax(320px, 1fr);
    gap: 20px;
    align-items: end;
    margin-bottom: 26px;
    padding: 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(251, 191, 36, 0.24);
    box-shadow: 0 14px 38px rgba(146, 64, 14, 0.08);
}

.search-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px 150px;
    gap: 12px;
}

.search-controls input,
.search-controls select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    padding: 0 14px;
    background: #fff;
    color: #78350f;
    outline: none;
}

.search-controls input:focus,
.search-controls select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

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

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(135deg, #78350f, #ea580c 58%, #f59e0b);
}

.page-hero-inner {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 0;
}

.slim-hero .page-hero-inner {
    min-height: 260px;
}

.page-hero h1,
.detail-copy h1 {
    margin: 16px 0;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.page-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.8;
}

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

.category-tile {
    position: relative;
    min-height: 280px;
    overflow: hidden;
    border-radius: 28px;
    color: #fff;
    box-shadow: var(--shadow);
}

.category-tile img,
.tile-shade {
    position: absolute;
    inset: 0;
}

.tile-shade {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.16));
}

.category-tile div {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
}

.category-tile h2 {
    margin: 14px 0 8px;
    font-size: 34px;
    font-weight: 950;
}

.category-tile p {
    margin: 0;
    max-width: 560px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

.detail-hero {
    min-height: 600px;
    background: #111827;
}

.detail-bg,
.detail-bg img,
.detail-bg span {
    position: absolute;
    inset: 0;
}

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px);
    transform: scale(1.05);
    opacity: 0.58;
}

.detail-bg span {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4)),
        linear-gradient(0deg, #111827 0%, rgba(17, 24, 39, 0.2) 60%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 34px 0 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    font-weight: 800;
}

.breadcrumb a:hover {
    color: #fbbf24;
}

.breadcrumb a::after {
    content: "/";
    margin-left: 8px;
    color: rgba(255, 255, 255, 0.38);
}

.detail-intro {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 38px;
    align-items: end;
    margin-top: 46px;
}

.detail-cover {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
    background: #1f2937;
}

.detail-copy {
    max-width: 760px;
}

.detail-line {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 21px;
    line-height: 1.75;
}

.detail-tags span {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
    margin-top: -46px;
    position: relative;
    z-index: 3;
}

.player-card,
.text-block,
.side-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(251, 191, 36, 0.22);
    border-radius: 28px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-shell video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}

.player-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.18), rgba(0, 0, 0, 0.5));
    cursor: pointer;
    z-index: 2;
}

.player-layer span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    font-size: 30px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
    padding-left: 5px;
}

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

.player-title,
.text-block,
.side-card {
    padding: 24px;
}

.player-title p {
    margin: 10px 0 0;
    color: var(--muted);
    font-weight: 800;
}

.text-block {
    margin-top: 24px;
}

.text-block h2,
.side-card h2,
.player-title h2 {
    font-size: 28px;
}

.text-block p {
    margin: 16px 0 0;
    color: #374151;
    font-size: 17px;
    line-height: 2;
}

.side-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.side-list .rank-card {
    grid-template-columns: 84px minmax(0, 1fr);
    box-shadow: none;
}

.side-list .rank-card p,
.side-list .rank-sub {
    display: none;
}

.site-footer {
    margin-top: 60px;
    padding: 48px 0 28px;
    color: #fde68a;
    background: linear-gradient(135deg, #451a03, #78350f);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
    gap: 32px;
    align-items: start;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 14px;
}

.footer-grid p {
    max-width: 520px;
    margin: 0;
    color: rgba(253, 230, 138, 0.8);
    line-height: 1.8;
}

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

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

.footer-links a:hover {
    background: rgba(245, 158, 11, 0.28);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(253, 230, 138, 0.18);
    color: rgba(253, 230, 138, 0.82);
    font-size: 14px;
}

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

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

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

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

    .wide-rank,
    .rank-grid {
        grid-template-columns: 1fr;
    }

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

    .detail-side {
        order: -1;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

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

    .hero-carousel {
        height: 74vh;
        min-height: 560px;
    }

    .hero-content {
        align-items: flex-end;
        padding-bottom: 90px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 42px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .section-head,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-grid,
    .small-grid,
    .category-grid,
    .category-tile-grid,
    .search-panel,
    .footer-grid,
    .detail-intro {
        grid-template-columns: 1fr;
    }

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

    .detail-cover {
        width: min(280px, 80vw);
    }

    .rank-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .footer-links {
        justify-content: flex-start;
    }
}
