
:root {
    --bg: #fff7ed;
    --paper: #ffffff;
    --paper-soft: #fffbeb;
    --ink: #111827;
    --muted: #6b7280;
    --line: #f3e8d0;
    --brand: #d97706;
    --brand-dark: #b45309;
    --brand-soft: #fef3c7;
    --shadow: 0 20px 45px rgba(146, 64, 14, 0.12);
    --radius: 22px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fffbeb 100%);
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.menu-open {
    overflow: hidden;
}

img {
    width: 100%;
    height: auto;
}

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

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #b45309);
    border-radius: 999px;
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.32);
}

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

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

.nav-link,
.mobile-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    color: #4b5563;
    border-radius: 999px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--brand-dark);
    background: var(--brand-soft);
}

.header-search,
.mobile-search,
.large-search {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(217, 119, 6, 0.18);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.08);
}

.header-search input,
.mobile-search input,
.large-search input {
    min-width: 220px;
    padding: 11px 14px;
    color: var(--ink);
    outline: none;
    background: transparent;
}

.header-search button,
.mobile-search button,
.large-search button {
    align-self: stretch;
    padding: 0 18px;
    color: #ffffff;
    background: var(--brand);
    font-weight: 800;
    transition: background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.large-search button:hover {
    background: var(--brand-dark);
}

.mobile-menu-button {
    display: none;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    padding: 10px;
    border-radius: 14px;
    background: var(--brand-soft);
}

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

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(217, 119, 6, 0.12);
    background: #fffaf0;
}

.mobile-panel.open {
    display: block;
}

.mobile-panel nav {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0;
    display: grid;
    gap: 8px;
}

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

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

.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-slide img {
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.45) 48%, rgba(17, 24, 39, 0.2)), linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.1));
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100% - 1180px) / 2));
    bottom: 64px;
    width: min(760px, calc(100% - 48px));
    color: #ffffff;
}

.hero-kicker,
.detail-meta,
.movie-meta,
.hero-tags,
.detail-tags,
.movie-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-kicker span,
.hero-tags span,
.detail-tags span,
.movie-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero-kicker span:first-child,
.hero-tags span,
.detail-tags span,
.movie-tags span {
    color: #92400e;
    background: #fef3c7;
}

.hero-kicker span:not(:first-child) {
    color: #fde68a;
    background: rgba(255, 255, 255, 0.14);
}

.hero-content h1 {
    margin: 18px 0 16px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -0.05em;
    text-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.hero-content p {
    max-width: 680px;
    color: #f3f4f6;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.7;
}

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

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

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

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #b45309);
    box-shadow: 0 14px 28px rgba(217, 119, 6, 0.32);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.page-hero .ghost-button {
    color: var(--brand-dark);
    background: #ffffff;
    border-color: rgba(217, 119, 6, 0.18);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.42);
    border-radius: 999px;
    font-size: 34px;
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.66);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.25s ease, background 0.25s ease;
}

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

.home-intro {
    padding: 36px 16px 8px;
}

.home-intro-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 28px;
    display: grid;
    gap: 10px;
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
}

.home-intro h2 {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 950;
    letter-spacing: -0.04em;
}

.home-intro p {
    color: var(--muted);
    line-height: 1.8;
}

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

.warm-section {
    width: min(1180px, calc(100% - 32px));
    margin-top: 34px;
    padding: 34px;
    border-radius: 28px;
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    box-shadow: var(--shadow);
}

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

.section-heading h2 {
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin-top: 8px;
    color: var(--muted);
}

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

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

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

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 100%;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.09);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 44px rgba(146, 64, 14, 0.18);
}

.movie-poster {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #111827;
}

.movie-card-large .movie-poster {
    aspect-ratio: 16 / 10;
}

.movie-poster img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    color: #92400e;
    background: #fef3c7;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    color: #ffffff;
    background: rgba(217, 119, 6, 0.9);
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-card-body {
    flex: 1;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.movie-card-body h3 {
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
    transition: color 0.2s ease;
}

.movie-card:hover h3 {
    color: var(--brand-dark);
}

.movie-card-body p {
    color: var(--muted);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    margin-top: auto;
    color: #6b7280;
    font-size: 13px;
}

.movie-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: #d1d5db;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 44px 70px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-2px);
    border-color: rgba(217, 119, 6, 0.35);
}

.rank-number {
    color: var(--brand);
    font-size: 22px;
    font-weight: 950;
    text-align: center;
}

.rank-item img {
    width: 70px;
    height: 52px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-title {
    font-weight: 900;
}

.rank-meta {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.rank-score {
    padding: 6px 10px;
    color: #92400e;
    background: #fef3c7;
    border-radius: 999px;
    font-weight: 900;
}

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

.category-tile {
    position: relative;
    min-height: 170px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border-radius: 22px;
    color: #ffffff;
    background-image: linear-gradient(0deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.25)), var(--tile-image);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
}

.category-tile span {
    font-size: 24px;
    font-weight: 950;
}

.category-tile strong {
    margin-top: 8px;
    color: #fde68a;
    font-size: 14px;
    line-height: 1.6;
}

.page-main {
    min-height: 70vh;
}

.page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 0;
    padding: clamp(28px, 5vw, 54px);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: center;
    border: 1px solid rgba(217, 119, 6, 0.14);
    border-radius: 32px;
    background: radial-gradient(circle at top left, #fef3c7, transparent 36%), linear-gradient(135deg, #ffffff, #fff7ed);
    box-shadow: var(--shadow);
}

.page-hero-small {
    display: block;
    max-width: 980px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #6b7280;
    font-size: 14px;
}

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

.eyebrow {
    display: inline-flex;
    padding: 6px 12px;
    color: #92400e;
    background: #fef3c7;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.page-hero h1 {
    margin: 14px 0;
    font-size: clamp(34px, 6vw, 60px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.hero-side-cards,
.compact-list {
    display: grid;
    gap: 12px;
}

.compact-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.07);
}

.compact-card img {
    width: 72px;
    height: 52px;
    object-fit: cover;
    border-radius: 12px;
}

.compact-card span {
    font-weight: 900;
    line-height: 1.4;
}

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

.category-overview-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.category-overview-card:hover {
    transform: translateY(-4px);
}

.category-cover-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 110px;
    overflow: hidden;
}

.category-cover-strip img {
    height: 100%;
    object-fit: cover;
}

.category-overview-body {
    padding: 22px;
}

.category-overview-body h2 {
    font-size: 24px;
    font-weight: 950;
}

.category-overview-body p {
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.7;
}

.large-search {
    max-width: 620px;
    margin-top: 28px;
}

.large-search input {
    flex: 1;
    min-height: 54px;
    font-size: 16px;
}

.detail-main {
    padding-top: 34px;
}

.detail-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
}

.detail-primary,
.detail-sidebar {
    min-width: 0;
}

.player-section,
.detail-article,
.poster-panel,
.side-panel {
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.player-section {
    overflow: hidden;
    background: #111827;
}

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

.player-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(217, 119, 6, 0.34), rgba(0, 0, 0, 0.58));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    padding-left: 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #b45309);
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.35);
    font-size: 38px;
}

.play-text {
    font-size: 18px;
    font-weight: 900;
}

.detail-article {
    margin-top: 24px;
    padding: clamp(24px, 4vw, 38px);
}

.detail-article h1 {
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.detail-meta {
    margin: 18px 0;
    color: #6b7280;
    font-weight: 700;
}

.detail-meta span {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f9fafb;
}

.lead-text {
    color: #374151;
    font-size: 19px;
    line-height: 1.8;
}

.detail-tags {
    margin: 18px 0 28px;
}

.detail-article h2,
.side-panel h2,
.poster-panel h2 {
    margin: 28px 0 12px;
    font-size: 24px;
    font-weight: 950;
}

.detail-article p {
    color: #374151;
    line-height: 1.95;
    font-size: 17px;
}

.poster-panel,
.side-panel {
    padding: 18px;
    margin-bottom: 20px;
}

.poster-panel {
    position: sticky;
    top: 96px;
}

.poster-panel img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
}

.poster-panel p {
    color: var(--muted);
}

.full-button {
    width: 100%;
    margin-top: 18px;
}

.site-footer {
    margin-top: 60px;
    padding: 38px 0;
    background: #111827;
    color: #f9fafb;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 26px;
    align-items: center;
}

.footer-brand {
    color: #ffffff;
    font-size: 22px;
}

.site-footer p {
    margin-top: 8px;
    color: #d1d5db;
}

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

.footer-links a {
    color: #fde68a;
    font-weight: 800;
}

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

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

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

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

    .poster-panel {
        position: static;
    }
}

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

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

    .header-inner {
        min-height: 64px;
    }

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

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

    .hero-content {
        bottom: 72px;
    }

    .hero-arrow {
        width: 38px;
        height: 38px;
        font-size: 28px;
    }

    .hero-prev {
        left: 12px;
    }

    .hero-next {
        right: 12px;
    }

    .content-section,
    .warm-section {
        width: min(100% - 24px, 1180px);
        padding-left: 0;
        padding-right: 0;
    }

    .warm-section {
        padding: 22px;
    }

    .section-heading {
        display: grid;
    }

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

    .rank-item {
        grid-template-columns: 40px 64px 1fr;
    }

    .rank-score {
        grid-column: 3;
        justify-self: start;
    }

    .page-hero {
        width: min(100% - 24px, 1180px);
        margin-top: 20px;
        border-radius: 24px;
    }

    .detail-layout {
        width: min(100% - 24px, 1180px);
    }

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

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