:root {
    --paper-50: #fafaf9;
    --paper-100: #f5f5f4;
    --paper-200: #e7e5e4;
    --paper-300: #d6d3d1;
    --paper-400: #a8a29e;
    --paper-500: #78716c;
    --ink-500: #6d6d6d;
    --ink-600: #5d5d5d;
    --ink-700: #4f4f4f;
    --ink-900: #3d3d3d;
    --primary-50: #f0f9f4;
    --primary-100: #dcf2e4;
    --primary-200: #bce5cd;
    --primary-400: #5ab889;
    --primary-600: #267f56;
    --primary-700: #1f6a48;
    --accent-50: #fef9ee;
    --accent-100: #fcefd0;
    --accent-200: #f8dc9e;
    --accent-400: #f0a838;
    --accent-600: #cf6913;
    --accent-700: #ac4a12;
    --white: #ffffff;
    --shadow: 0 16px 40px rgba(61, 61, 61, 0.12);
    --shadow-strong: 0 25px 60px rgba(61, 61, 61, 0.22);
    --radius: 18px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink-900);
    background: var(--paper-50);
    line-height: 1.65;
}

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: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--primary-100);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-900);
    font-weight: 800;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
    box-shadow: 0 10px 24px rgba(38, 127, 86, 0.28);
    font-size: 13px;
}

.brand-name {
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 21px;
    letter-spacing: 0.02em;
}

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

.nav-link,
.mobile-link {
    color: var(--ink-700);
    border-radius: 12px;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link {
    padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--primary-600);
    background: var(--primary-50);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--primary-50);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--primary-700);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 8px 24px 18px;
    border-top: 1px solid var(--primary-100);
    background: var(--white);
}

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

.mobile-link {
    padding: 10px 14px;
}

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

.hero-carousel > h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

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

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

.hero-bg,
.detail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.58);
    transform: scale(1.03);
}

.hero-shade,
.detail-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 42%, rgba(207, 105, 19, 0.25), transparent 34%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.56) 48%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 84px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.55fr);
    gap: 56px;
    align-items: center;
}

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

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent-400);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-text h2,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.hero-text h2 {
    max-width: 760px;
    font-size: clamp(42px, 6vw, 76px);
}

.hero-summary {
    max-width: 760px;
    margin: 20px 0 0;
    color: var(--paper-200);
    font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags span,
.side-tags span {
    padding: 7px 12px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    font-size: 13px;
}

.side-tags span {
    color: var(--ink-700);
    background: var(--primary-50);
    border-color: var(--primary-100);
}

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

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

.primary-button {
    color: var(--white);
    background: var(--primary-600);
    box-shadow: 0 14px 30px rgba(38, 127, 86, 0.28);
}

.primary-button:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(38, 127, 86, 0.34);
}

.primary-button.small {
    min-height: 38px;
    padding: 0 16px;
    font-size: 14px;
}

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

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

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    box-shadow: var(--shadow-strong);
}

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

.hero-poster:hover img,
.featured-card:hover img,
.movie-card:hover .poster-link img,
.category-card-large:hover img {
    transform: scale(1.06);
}

.hero-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.section-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px 0;
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading.center {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

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

.section-heading h2,
.intro-strip h2,
.story-section h2,
.info-box h2,
.player-section h2 {
    margin: 0 0 8px;
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    color: var(--ink-900);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.15;
}

.section-heading p,
.intro-strip p,
.story-section p,
.info-box,
.category-card-large p,
.rank-body p,
.movie-card-body p,
.featured-content p {
    color: var(--ink-600);
}

.text-link {
    color: var(--primary-600);
    font-weight: 800;
}

.text-link:hover {
    color: var(--accent-600);
}

.intro-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 36px;
    align-items: center;
}

.quick-search,
.search-controls,
.tool-bar {
    background: var(--white);
    border: 1px solid var(--primary-100);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.quick-search {
    padding: 22px;
}

.quick-search label,
.search-controls span,
.inline-search span {
    display: block;
    margin-bottom: 8px;
    color: var(--ink-700);
    font-weight: 800;
}

.quick-search div {
    display: flex;
    gap: 10px;
}

.quick-search input,
.search-controls input,
.search-controls select,
.inline-search input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--primary-200);
    border-radius: 12px;
    padding: 0 14px;
    color: var(--ink-900);
    background: var(--paper-50);
    outline: none;
}

.quick-search input:focus,
.search-controls input:focus,
.search-controls select:focus,
.inline-search input:focus {
    border-color: var(--primary-600);
    box-shadow: 0 0 0 4px rgba(38, 127, 86, 0.12);
}

.quick-search button {
    min-width: 86px;
    border: 0;
    border-radius: 12px;
    color: var(--white);
    background: var(--primary-600);
    font-weight: 800;
    cursor: pointer;
}

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

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

.movie-card,
.featured-card,
.ranking-item,
.category-card-large,
.info-box,
.story-section,
.player-section {
    background: var(--white);
    border: 1px solid rgba(220, 242, 228, 0.85);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.movie-card {
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card[hidden] {
    display: none;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--ink-900);
}

.play-badge,
.featured-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    background: var(--primary-600);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .play-badge,
.featured-card:hover .featured-play {
    opacity: 1;
    transform: scale(1);
}

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

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.pill-row a,
.pill-row span {
    padding: 4px 9px;
    color: var(--primary-700);
    background: var(--primary-50);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.pill-row span {
    color: var(--accent-700);
    background: var(--accent-50);
}

.movie-card h3,
.rank-body h3,
.featured-content h3,
.category-card-large h2 {
    margin: 0;
    color: var(--ink-900);
    font-size: 20px;
    line-height: 1.25;
}

.movie-card h3 a:hover,
.rank-body h3 a:hover,
.featured-content h3 a:hover,
.category-card-large h2 a:hover {
    color: var(--primary-600);
}

.movie-card p {
    min-height: 3.2em;
    margin: 10px 0 14px;
    font-size: 14px;
}

.card-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--paper-500);
    font-size: 13px;
    font-weight: 750;
}

.card-meta span:first-child,
.detail-meta span:first-child {
    color: var(--accent-600);
}

.detail-meta.bright {
    margin-top: 24px;
    color: var(--paper-200);
}

.featured-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.featured-poster {
    position: relative;
    min-height: 370px;
    overflow: hidden;
}

.featured-content {
    padding: clamp(26px, 4vw, 54px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-content p {
    margin: 16px 0 24px;
}

.category-panel {
    max-width: 1232px;
    margin-top: 72px;
    padding: 42px 38px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.category-pill {
    padding: 10px 15px;
    border-radius: 999px;
    color: var(--ink-700);
    background: var(--white);
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(61, 61, 61, 0.07);
}

.category-pill:hover {
    color: var(--white);
    background: var(--primary-600);
}

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

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

.ranking-item {
    display: grid;
    grid-template-columns: 54px 92px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 12px;
}

.rank-num {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
    font-weight: 900;
}

.rank-cover {
    height: 72px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--ink-900);
}

.rank-body p {
    margin: 6px 0 8px;
    font-size: 14px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    padding: 92px 24px 72px;
    color: var(--white);
    background:
        radial-gradient(circle at 78% 22%, rgba(207, 105, 19, 0.36), transparent 32%),
        linear-gradient(135deg, var(--ink-900), #1f2d26 64%, var(--primary-700));
}

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

.page-hero > div {
    max-width: 1280px;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: clamp(42px, 6vw, 68px);
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    color: var(--paper-200);
    font-size: 18px;
}

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

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

.category-overview {
    display: grid;
    gap: 22px;
}

.category-card-large {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 26px;
    overflow: hidden;
    padding: 18px;
}

.category-cover {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px;
    background: var(--ink-900);
}

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 18px;
}

.mini-links a {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--primary-700);
    background: var(--primary-50);
    font-size: 13px;
    font-weight: 750;
}

.tool-bar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-end;
    margin-bottom: 28px;
    padding: 20px;
}

.inline-search {
    flex: 1;
}

.search-controls {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 18px;
    margin-bottom: 28px;
    padding: 20px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    background: var(--ink-900);
}

.detail-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 76px 24px 72px;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 46px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: 28px;
    box-shadow: var(--shadow-strong);
    background: var(--ink-900);
}

.detail-copy {
    color: var(--white);
}

.detail-copy h1 {
    margin-top: 12px;
    font-size: clamp(42px, 5.4vw, 72px);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
}

.detail-main,
.detail-side {
    display: grid;
    gap: 24px;
    align-content: start;
}

.player-section,
.story-section,
.info-box {
    padding: 24px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #111;
    aspect-ratio: 16 / 9;
}

.movie-player,
.player-cover,
.player-cover img {
    width: 100%;
    height: 100%;
}

.movie-player {
    display: block;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: block;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: #000;
}

.player-cover img {
    object-fit: cover;
    filter: brightness(0.56);
}

.player-cover span {
    position: absolute;
    inset: 0;
    width: 82px;
    height: 82px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    background: var(--primary-600);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
    font-size: 30px;
}

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

.story-section p {
    margin: 0;
    font-size: 17px;
}

.info-box dl {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 0;
}

.info-box dt {
    color: var(--paper-500);
    font-weight: 800;
}

.info-box dd {
    margin: 0;
    color: var(--ink-700);
}

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

.prev-next a {
    padding: 14px 16px;
    border: 1px solid var(--primary-100);
    border-radius: 14px;
    background: var(--white);
    color: var(--primary-700);
    font-weight: 800;
}

.prev-next a:hover {
    color: var(--white);
    background: var(--primary-600);
}

.site-footer {
    margin-top: 76px;
    color: var(--paper-200);
    background: var(--ink-900);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 24px;
    display: flex;
    justify-content: space-between;
    gap: 28px;
}

.footer-brand p {
    max-width: 560px;
    color: var(--paper-300);
}

.footer-logo {
    color: var(--white);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-content: start;
}

.footer-links a {
    color: var(--paper-300);
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--primary-400);
}

.footer-copy {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 24px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--paper-400);
    font-size: 14px;
    text-align: center;
}

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

    .hero-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-poster {
        display: none;
    }

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

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

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

    .menu-toggle {
        display: block;
    }

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

    .hero-content {
        padding: 90px 24px 84px;
    }

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

    .hero-prev {
        left: 24px;
    }

    .hero-next {
        right: 24px;
    }

    .intro-strip,
    .featured-card,
    .search-controls,
    .category-card-large,
    .detail-inner {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        max-width: 300px;
    }

    .movie-grid,
    .compact-grid,
    .ranking-list,
    .ranking-list.full,
    .detail-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 560px) {
    .header-inner {
        height: 64px;
        padding: 0 16px;
    }

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

    .hero-text h2,
    .detail-copy h1,
    .page-hero h1 {
        font-size: 38px;
    }

    .hero-summary {
        font-size: 16px;
    }

    .hero-actions,
    .quick-search div,
    .prev-next {
        flex-direction: column;
        display: flex;
    }

    .movie-grid,
    .compact-grid,
    .ranking-list,
    .ranking-list.full,
    .detail-side {
        grid-template-columns: 1fr;
    }

    .ranking-item {
        grid-template-columns: 46px 78px minmax(0, 1fr);
        gap: 12px;
    }

    .section-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .category-panel {
        padding: 28px 18px;
    }

    .page-hero,
    .detail-inner {
        padding-left: 16px;
        padding-right: 16px;
    }
}
