:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --orange-50: #fff7ed;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-soft: 0 18px 42px rgba(180, 83, 9, 0.12);
    --shadow-card: 0 18px 40px rgba(17, 24, 39, 0.10);
    --radius-xl: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--gray-900);
    background: linear-gradient(180deg, var(--amber-50) 0%, var(--orange-50) 48%, var(--amber-50) 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 251, 235, 0.88);
    border-bottom: 1px solid rgba(245, 158, 11, 0.22);
    backdrop-filter: blur(18px);
}

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

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

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(234, 88, 12, 0.22);
}

.logo-text {
    font-size: 25px;
    line-height: 1;
    background: linear-gradient(90deg, var(--amber-700), var(--orange-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    color: var(--gray-700);
    font-weight: 650;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

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

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    background: var(--white);
    border: 1px solid var(--amber-200);
    border-radius: 12px;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--amber-700);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 0 24px 18px;
}

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

.hero-carousel {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    background: var(--gray-900);
}

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

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

.hero-image,
.detail-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.9), rgba(17, 24, 39, 0.96));
}

img.image-missing {
    opacity: 0;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.50) 48%, rgba(0, 0, 0, 0.05));
}

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

.hero-copy {
    max-width: 720px;
    color: var(--white);
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 8px 14px;
    color: var(--white);
    background: rgba(245, 158, 11, 0.92);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 750;
    letter-spacing: 0.02em;
}

.section-kicker {
    color: var(--amber-700);
    background: var(--amber-100);
}

.hero-copy h1 {
    margin: 20px 0 14px;
    font-size: clamp(42px, 8vw, 72px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 660px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.hero-tags,
.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.hero-tags span {
    padding: 7px 12px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

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

.primary-button,
.ghost-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 780;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 14px 30px rgba(234, 88, 12, 0.24);
}

.ghost-button {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
}

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

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

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

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

.intro-search {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
    gap: 28px;
    align-items: center;
    margin-top: -44px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.intro-copy h2 {
    margin: 14px 0 10px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

.intro-copy p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.8;
}

.search-panel {
    display: grid;
    gap: 14px;
}

.search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    height: 54px;
    background: var(--gray-50);
    border: 1px solid var(--amber-200);
    border-radius: 16px;
}

.search-field span {
    color: var(--amber-600);
    font-size: 22px;
}

.search-field input {
    width: 100%;
    color: var(--gray-900);
    background: transparent;
    border: 0;
    outline: 0;
}

.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-filters button {
    padding: 8px 12px;
    color: var(--amber-700);
    background: var(--amber-100);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

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

.wide-section {
    padding: 76px 0;
    background: rgba(255, 255, 255, 0.70);
}

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

.section-heading h2 {
    margin: 12px 0 8px;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-heading p {
    max-width: 690px;
    margin: 0;
    color: var(--gray-600);
    line-height: 1.7;
}

.section-link {
    flex: none;
    color: var(--amber-700);
    background: var(--amber-100);
}

.movie-grid {
    display: grid;
    gap: 24px;
}

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

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

.movie-card {
    position: relative;
    display: grid;
    overflow: hidden;
    color: var(--gray-900);
    background: var(--white);
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.42);
    box-shadow: 0 24px 48px rgba(180, 83, 9, 0.18);
}

.poster-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-200), var(--orange-500));
}

.poster-wrap img,
.horizontal-card img,
.category-tile img,
.category-main-link img,
.detail-side-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.2s ease;
}

.movie-card:hover .poster-wrap img,
.category-tile:hover img,
.category-main-link:hover img {
    transform: scale(1.05);
}

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    border-radius: 12px;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(234, 88, 12, 0.26);
}

.movie-card-body {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.movie-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 650;
}

.movie-card h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.3;
}

.movie-card p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.65;
    font-size: 14px;
}

.tag-row span,
.detail-tags span {
    padding: 6px 10px;
    color: var(--amber-700);
    background: var(--amber-100);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

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

.category-tile,
.category-main-link {
    position: relative;
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 20px;
    min-height: 190px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.category-tile img,
.category-main-link img {
    min-height: 190px;
    background: linear-gradient(135deg, var(--amber-200), var(--orange-500));
}

.category-tile div,
.category-main-link div {
    align-self: center;
    padding: 22px 22px 22px 0;
}

.category-tile span,
.category-main-link span {
    color: var(--amber-600);
    font-weight: 800;
}

.category-tile h3,
.category-main-link h2 {
    margin: 8px 0;
    font-size: 26px;
}

.category-tile p,
.category-main-link p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.65;
}

.category-overview-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.category-main-link {
    border: 0;
    box-shadow: none;
}

.category-sample-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px 20px;
}

.category-sample-links a {
    padding: 7px 10px;
    color: var(--gray-700);
    background: var(--gray-100);
    border-radius: 999px;
    font-size: 13px;
}

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

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

.horizontal-card {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 16px;
    align-items: stretch;
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(245, 158, 11, 0.14);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.horizontal-card:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 158, 11, 0.38);
}

.horizontal-card img {
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, var(--amber-200), var(--orange-500));
}

.horizontal-card-body {
    display: grid;
    align-content: center;
    gap: 9px;
    padding: 14px 14px 14px 0;
}

.horizontal-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ranking-number {
    flex: none;
    min-width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: var(--amber-500);
    border-radius: 10px;
    font-weight: 900;
}

.horizontal-card strong {
    font-size: 18px;
    line-height: 1.3;
}

.horizontal-card p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.55;
    font-size: 14px;
}

.page-hero {
    position: relative;
    padding: 88px 0 76px;
    overflow: hidden;
    color: var(--white);
    background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.88), rgba(17, 24, 39, 0.96));
}

.compact-hero,
.category-hero,
.ranking-hero {
    color: var(--gray-900);
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.95), rgba(255, 237, 213, 0.95));
}

.page-hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(38px, 6vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 0 0 26px;
    color: var(--gray-600);
    font-size: 18px;
    line-height: 1.8;
}

.detail-hero {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    color: var(--white);
    background: var(--gray-900);
}

.detail-hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.18));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    min-height: 500px;
    display: grid;
    align-content: center;
    gap: 34px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 650;
}

.breadcrumb a:hover {
    color: var(--amber-300);
}

.detail-title-block {
    max-width: 820px;
}

.detail-title-block h1 {
    margin: 18px 0 12px;
    font-size: clamp(38px, 7vw, 70px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-title-block p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 20px;
    line-height: 1.75;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
    padding: 64px 0 24px;
}

.detail-main-card,
.detail-side-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: #000000;
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55));
    border: 0;
    cursor: pointer;
}

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

.play-circle {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    border-radius: 50%;
    box-shadow: 0 20px 44px rgba(234, 88, 12, 0.35);
    font-size: 30px;
    transform: translateX(2px);
}

.detail-content {
    padding: 30px;
}

.detail-content h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.detail-content p {
    margin: 0 0 26px;
    color: var(--gray-700);
    line-height: 1.9;
    font-size: 16px;
}

.detail-side-card {
    position: sticky;
    top: 96px;
}

.detail-side-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, var(--amber-200), var(--orange-500));
}

.detail-side-card dl {
    margin: 0;
    padding: 22px;
    display: grid;
    gap: 15px;
}

.detail-side-card dl div {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
}

.detail-side-card dt {
    color: var(--gray-500);
    font-weight: 750;
}

.detail-side-card dd {
    margin: 0;
    color: var(--gray-800);
    font-weight: 650;
}

.detail-side-card a {
    color: var(--amber-700);
}

.site-footer {
    margin-top: 38px;
    padding: 46px 0;
    color: var(--gray-600);
    background: rgba(255, 255, 255, 0.72);
    border-top: 1px solid rgba(245, 158, 11, 0.14);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
}

.footer-logo {
    margin-bottom: 10px;
    color: var(--amber-700);
    font-size: 24px;
    font-weight: 900;
}

.site-footer p {
    max-width: 560px;
    margin: 0;
    line-height: 1.75;
}

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

.footer-links a:hover {
    color: var(--amber-700);
}

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

    .three-columns,
    .ranking-list.compact,
    .category-grid,
    .category-overview-grid,
    .detail-layout,
    .intro-search,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-side-card {
        position: static;
        max-width: 420px;
    }
}

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

    .desktop-nav {
        display: none;
    }

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

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

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

    .hero-shade {
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.38));
    }

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

    .intro-search {
        margin-top: 0;
        border-radius: 0;
        width: 100%;
    }

    .section-heading {
        display: grid;
        align-items: start;
    }

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

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

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

    .movie-card p {
        display: none;
    }

    .category-tile,
    .category-main-link,
    .horizontal-card {
        grid-template-columns: 92px 1fr;
        gap: 12px;
    }

    .category-tile img,
    .category-main-link img {
        min-height: 138px;
    }

    .category-tile div,
    .category-main-link div,
    .horizontal-card-body {
        padding: 12px 12px 12px 0;
    }

    .category-tile h3,
    .category-main-link h2 {
        font-size: 20px;
    }

    .detail-hero,
    .detail-hero-inner {
        min-height: 460px;
    }

    .detail-content,
    .detail-side-card dl {
        padding: 20px;
    }

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

@media (max-width: 520px) {
    .four-columns,
    .three-columns {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .quick-filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

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

    .horizontal-card strong {
        font-size: 16px;
    }

    .horizontal-card p {
        display: none;
    }
}
