* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #111827;
    background: #f9fafb;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 24px;
    font-weight: 800;
    color: #ea580c;
    white-space: nowrap;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #dc2626);
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.28);
    font-size: 14px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    font-weight: 600;
    color: #374151;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #ea580c;
}

.header-search,
.mobile-search,
.page-search {
    display: flex;
    align-items: center;
}

.header-search input,
.mobile-search input,
.page-search input,
.filter-bar input,
.filter-bar select {
    height: 42px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
    padding: 0 14px;
    outline: none;
    font: inherit;
}

.header-search input {
    width: 210px;
    border-radius: 12px 0 0 12px;
}

.header-search button,
.mobile-search button,
.page-search button {
    height: 42px;
    border: 0;
    padding: 0 18px;
    color: #ffffff;
    background: #ea580c;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.page-search button:hover {
    background: #c2410c;
}

.menu-button {
    display: none;
    border: 0;
    background: #fff7ed;
    color: #ea580c;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 24px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    border-top: 1px solid #e5e7eb;
    padding: 16px;
}

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

.mobile-search {
    margin-bottom: 14px;
}

.mobile-search input,
.page-search input {
    flex: 1;
    border-radius: 12px 0 0 12px;
}

.mobile-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f9fafb;
    color: #374151;
    font-weight: 700;
}

.mobile-nav a:hover {
    color: #ea580c;
    background: #fff7ed;
}

.hero-carousel {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #ea580c, #dc2626);
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 28%, rgba(251, 146, 60, 0.32), transparent 35%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.55), rgba(17, 24, 39, 0.1)),
        linear-gradient(0deg, rgba(249, 250, 251, 0.1), rgba(249, 250, 251, 0));
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
    padding-top: 48px;
}

.eyebrow,
.section-heading span,
.section-title-row span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    color: #ea580c;
    background: #fff7ed;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-copy .eyebrow,
.detail-info .eyebrow {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-copy h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 620px;
    margin: 0 0 32px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(18px, 2.2vw, 26px);
    line-height: 1.62;
}

.hero-actions,
.detail-info .primary-button {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

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

.primary-button {
    color: #ea580c;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
}

.outline-button {
    width: 100%;
    margin-top: 18px;
    color: #ea580c;
    border: 1px solid #ea580c;
    background: #ffffff;
}

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

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

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

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

.feature-stack {
    position: relative;
    z-index: 10;
    margin-top: -72px;
    margin-bottom: 64px;
}

.section-heading {
    text-align: center;
    margin-bottom: 28px;
}

.left-heading {
    text-align: left;
}

.section-heading h2,
.section-title-row h2 {
    margin: 12px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.03em;
}

.section-heading p {
    color: #6b7280;
    line-height: 1.7;
}

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

.section-title-row a {
    color: #ea580c;
    font-weight: 800;
}

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

.white-section {
    background: #ffffff;
}

.tinted-section {
    background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
}

.soft-orange-section {
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

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

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
}

.movie-card-large {
    border-radius: 24px;
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.18);
}

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

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

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

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

.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 50%);
}

.movie-year,
.rank-badge {
    position: absolute;
    right: 10px;
    top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.72);
    font-size: 12px;
    font-weight: 800;
}

.rank-badge {
    left: 10px;
    right: auto;
    background: linear-gradient(135deg, #facc15, #f97316);
}

.movie-body {
    padding: 15px;
}

.movie-body h2 {
    margin: 0 0 9px;
    font-size: 16px;
    line-height: 1.35;
}

.movie-body h2 a:hover {
    color: #ea580c;
}

.movie-body p {
    min-height: 42px;
    margin: 0 0 12px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.55;
}

.movie-meta,
.movie-tags,
.detail-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #6b7280;
    font-size: 12px;
}

.movie-tags {
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 10px;
}

.movie-tags span,
.tag-cloud span,
.tag-cloud a {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 5px 9px;
    border-radius: 999px;
    color: #9a3412;
    background: #fff7ed;
    font-size: 12px;
    font-weight: 700;
}

.split-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 46px;
}

.compact-list,
.wide-list {
    display: grid;
    gap: 14px;
}

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

.compact-card,
.wide-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card:hover,
.wide-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

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

.wide-card img {
    width: 106px;
    height: 128px;
    border-radius: 14px;
    object-fit: cover;
}

.compact-card span,
.wide-card span {
    min-width: 0;
}

.compact-card strong,
.wide-card strong {
    display: block;
    color: #111827;
    line-height: 1.35;
}

.compact-card small,
.wide-card small,
.wide-card em {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 12px;
    font-style: normal;
    line-height: 1.5;
}

.compact-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #facc15, #f97316);
    font-weight: 900;
}

.category-card,
.category-overview-card a {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 170px;
    padding: 24px;
    border-radius: 22px;
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.category-overview-card a:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 46px rgba(15, 23, 42, 0.18);
}

.category-card strong,
.category-overview-card h2 {
    font-size: 24px;
    margin: 0 0 10px;
}

.category-card span,
.category-overview-card p {
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
}

.category-orange,
.category-red,
.category-blue,
.category-purple,
.category-green,
.category-amber,
.category-pink,
.category-cyan,
.category-teal,
.category-slate {
    color: #ffffff;
}

.category-orange {
    background: linear-gradient(135deg, #f97316, #dc2626);
}

.category-red {
    background: linear-gradient(135deg, #ef4444, #be123c);
}

.category-blue {
    background: linear-gradient(135deg, #2563eb, #0891b2);
}

.category-purple {
    background: linear-gradient(135deg, #7c3aed, #c026d3);
}

.category-green {
    background: linear-gradient(135deg, #16a34a, #0f766e);
}

.category-amber {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.category-pink {
    background: linear-gradient(135deg, #ec4899, #e11d48);
}

.category-cyan {
    background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.category-teal {
    background: linear-gradient(135deg, #14b8a6, #15803d);
}

.category-slate {
    background: linear-gradient(135deg, #475569, #111827);
}

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

.page-hero {
    padding: 64px 0;
    color: #ffffff;
}

.compact-page-hero {
    background: linear-gradient(135deg, #ea580c, #dc2626);
}

.page-hero h1 {
    margin: 16px 0;
    font-size: clamp(36px, 5vw, 58px);
    letter-spacing: -0.04em;
}

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

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

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

.breadcrumb:not(.light) {
    color: rgba(255, 255, 255, 0.86);
}

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

.category-overview-card {
    border-radius: 24px;
    overflow: hidden;
}

.category-overview-card a {
    position: relative;
    min-height: 260px;
    isolation: isolate;
}

.category-cover-row {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    opacity: 0.18;
    z-index: -1;
}

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

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 12px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    border-radius: 12px;
}

.detail-hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    color: #ffffff;
}

.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(6px);
    transform: scale(1.05);
}

.detail-hero-layer {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.62)),
        radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.28), transparent 40%);
}

.detail-hero-content {
    position: relative;
    z-index: 1;
    padding: 36px 0 64px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    align-items: center;
    margin-top: 30px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.36);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-info h1 {
    margin: 18px 0;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.lead-text {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 21px;
    line-height: 1.75;
}

.detail-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin: 24px 0 30px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    padding-top: 42px;
    padding-bottom: 70px;
}

.detail-primary,
.detail-side,
.story-card,
.side-card,
.player-card {
    min-width: 0;
}

.player-card,
.story-card,
.side-card {
    margin-bottom: 22px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

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

.video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    cursor: pointer;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.38);
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    border-radius: 999px;
    color: #ea580c;
    background: #ffffff;
    font-size: 30px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.story-card,
.side-card {
    padding: 26px;
}

.story-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.story-card p {
    color: #4b5563;
    line-height: 1.86;
    margin: 0 0 12px;
}

.strong-line {
    color: #111827 !important;
    font-weight: 700;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-side {
    position: relative;
}

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

.page-search {
    max-width: 680px;
    margin-top: 28px;
}

.site-footer {
    padding: 46px 0;
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
}

.footer-brand {
    color: #ffffff;
    margin-bottom: 14px;
}

.site-footer p {
    line-height: 1.7;
    color: #9ca3af;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.footer-list a {
    color: #d1d5db;
}

.footer-list a:hover {
    color: #fb923c;
}

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

    .menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

    .movie-grid.four-col,
    .feature-grid,
    .category-grid,
    .compact-list.three-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .side-card {
        position: static;
    }
}

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

    .header-search {
        display: none;
    }

    .brand {
        font-size: 20px;
    }

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

    .hero-copy h1 {
        font-size: 40px;
    }

    .hero-copy p,
    .lead-text {
        font-size: 17px;
    }

    .feature-stack {
        margin-top: -40px;
    }

    .feature-grid,
    .movie-grid.six-col,
    .movie-grid.four-col,
    .category-grid,
    .category-overview-grid,
    .filter-bar,
    .footer-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .section-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .compact-list.three-columns {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        gap: 24px;
    }

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

    .detail-hero {
        min-height: auto;
    }

    .detail-info h1 {
        font-size: 38px;
    }

    .story-card,
    .side-card {
        padding: 20px;
    }

    .mobile-nav {
        grid-template-columns: 1fr;
    }
}
