:root {
    --page: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #fff7ed;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --orange: #f97316;
    --red: #dc2626;
    --dark: #111827;
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand {
    font-size: 20px;
}

.brand-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.3);
}

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

.nav-link {
    padding: 9px 12px;
    border-radius: 999px;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--orange);
    background: #fff7ed;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #fff7ed;
}

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

.mobile-nav {
    display: none;
    padding: 10px 24px 18px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.mobile-nav a {
    display: block;
    padding: 10px 0;
    color: #374151;
    font-weight: 700;
}

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

main {
    min-height: 65vh;
}

.hero-carousel {
    background: #111827;
}

.hero-stage {
    position: relative;
    min-height: 620px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-content {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    color: #ffffff;
}

.hero-label,
.kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0 0 16px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #fb923c;
    background: rgba(249, 115, 22, 0.14);
    font-weight: 800;
    font-size: 14px;
}

.hero-content h1 {
    max-width: 780px;
    margin: 0 0 22px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-desc {
    max-width: 700px;
    margin: 0 0 24px;
    color: #e5e7eb;
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.7;
}

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

.hero-tags span,
.detail-meta span,
.tag-row span,
.detail-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    min-height: 48px;
    padding: 0 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.32);
}

.ghost-btn {
    min-height: 48px;
    padding: 0 24px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-50%);
    font-size: 34px;
    line-height: 1;
    backdrop-filter: blur(12px);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

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

.hero-thumbs {
    max-width: 1280px;
    margin: -72px auto 0;
    padding: 0 24px 28px;
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.hero-thumb {
    display: grid;
    grid-template-columns: 64px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
}

.hero-thumb.active {
    background: rgba(249, 115, 22, 0.78);
}

.hero-thumb img {
    width: 64px;
    height: 46px;
    object-fit: cover;
    border-radius: 12px;
}

.hero-thumb span {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
    font-weight: 800;
}

.content-section {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 56px 0 0;
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-head p:not(.kicker) {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-more {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 16px;
    color: var(--orange);
    background: #fff7ed;
}

.category-chip-row,
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-chip,
.filter-bar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: #374151;
    font-weight: 800;
}

.category-chip:hover,
.category-chip.active,
.filter-bar button:hover,
.filter-bar button.active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--orange), var(--red));
}

.filter-bar {
    align-items: center;
    margin-bottom: 24px;
    padding: 14px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.filter-bar input {
    flex: 1 1 260px;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: 0;
}

.filter-bar input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(249, 115, 22, 0.35);
    box-shadow: var(--shadow);
}

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

.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);
}

.movie-year,
.movie-type {
    position: absolute;
    top: 12px;
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(17, 24, 39, 0.76);
    backdrop-filter: blur(10px);
}

.movie-year {
    left: 12px;
}

.movie-type {
    right: 12px;
}

.movie-info {
    padding: 18px;
}

.movie-title {
    display: block;
    min-height: 48px;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.movie-card:hover .movie-title {
    color: var(--orange);
}

.movie-meta,
.movie-desc {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.movie-desc {
    min-height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    margin-top: 12px;
}

.tag-row span {
    color: #9a3412;
    background: #ffedd5;
}

.page-hero {
    padding: 86px 24px 76px;
    color: #ffffff;
    text-align: center;
    background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.42), transparent 34%), linear-gradient(135deg, #111827, #1f2937 58%, #7f1d1d);
}

.page-hero .kicker {
    margin-left: auto;
    margin-right: auto;
}

.page-hero h1 {
    max-width: 920px;
    margin: 0 auto 18px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.page-hero p:not(.kicker) {
    max-width: 760px;
    margin: 0 auto;
    color: #e5e7eb;
    font-size: 18px;
    line-height: 1.8;
}

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

.category-overview-card {
    padding: 22px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.category-overview-main {
    display: block;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.category-overview-main span {
    display: block;
    margin-bottom: 8px;
    color: var(--orange);
    font-size: 22px;
    font-weight: 900;
}

.category-overview-main strong {
    display: block;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.7;
}

.category-overview-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.category-overview-links a {
    padding: 10px 12px;
    border-radius: 14px;
    background: #f9fafb;
    color: #374151;
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ranking-panel .rank-list,
.ranking-table {
    display: grid;
    gap: 12px;
}

.rank-item,
.ranking-row {
    display: grid;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item {
    grid-template-columns: 46px 72px 1fr auto;
    padding: 10px 16px 10px 10px;
}

.rank-item:hover,
.ranking-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.rank-num,
.ranking-index {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    font-weight: 900;
}

.rank-item img,
.ranking-row img {
    width: 72px;
    height: 52px;
    object-fit: cover;
    border-radius: 12px;
}

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

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

.ranking-row {
    grid-template-columns: 52px 96px 1fr auto;
    padding: 12px 18px 12px 12px;
}

.ranking-row img {
    width: 96px;
    height: 64px;
}

.ranking-copy {
    display: grid;
    gap: 6px;
}

.ranking-copy strong {
    font-size: 18px;
}

.ranking-copy em,
.ranking-copy small {
    color: var(--muted);
    font-style: normal;
}

.ranking-link {
    color: var(--orange);
    font-weight: 900;
}

.detail-hero {
    color: #ffffff;
    background-position: center;
    background-size: cover;
}

.detail-hero-inner {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 44px 0 64px;
}

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

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

.detail-hero-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 38px;
    align-items: center;
}

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

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

.detail-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 760px;
    margin: 0 0 22px;
    color: #e5e7eb;
    font-size: 20px;
    line-height: 1.8;
}

.detail-tags {
    margin-top: 16px;
}

.detail-tags a {
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.2);
}

.player-section {
    width: min(1280px, calc(100% - 48px));
    margin: -38px auto 0;
    position: relative;
    z-index: 3;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.72));
}

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

.play-button-icon {
    display: inline-grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 18px 46px rgba(249, 115, 22, 0.38);
    font-size: 30px;
}

.play-layer strong {
    max-width: 80%;
    font-size: 24px;
    text-align: center;
}

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

.detail-block,
.detail-side {
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.detail-block + .detail-block {
    margin-top: 18px;
}

.detail-block h2,
.detail-side h2 {
    margin: 0 0 14px;
    font-size: 24px;
    letter-spacing: -0.03em;
}

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

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

.side-list a {
    display: grid;
    grid-template-columns: 78px 1fr;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 16px;
    background: #f9fafb;
    font-weight: 800;
}

.side-list img {
    width: 78px;
    height: 54px;
    border-radius: 12px;
    object-fit: cover;
}

.site-footer {
    margin-top: 72px;
    background: #111827;
    color: #d1d5db;
}

.footer-inner {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 20px;
}

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

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #d1d5db;
    font-size: 14px;
}

.footer-links a:hover {
    color: #ffffff;
    background: rgba(249, 115, 22, 0.8);
}

.copyright {
    padding: 18px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 14px;
}

.movie-card.hidden,
.ranking-row.hidden {
    display: none;
}

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

    .menu-toggle {
        display: block;
    }

    .hero-thumbs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 0;
        background: #111827;
    }

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

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

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

@media (max-width: 760px) {
    .header-inner,
    .content-section,
    .detail-hero-inner,
    .player-section,
    .detail-layout,
    .footer-inner {
        width: min(100% - 28px, 1280px);
        padding-left: 0;
        padding-right: 0;
    }

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

    .hero-content {
        width: calc(100% - 36px);
    }

    .hero-arrow {
        display: none;
    }

    .hero-thumbs,
    .category-overview-grid,
    .movie-grid,
    .compact-grid,
    .all-grid {
        grid-template-columns: 1fr;
    }

    .section-head,
    .rank-item,
    .ranking-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ranking-row img,
    .rank-item img {
        width: 100%;
        height: 160px;
    }

    .detail-hero-grid {
        gap: 24px;
    }

    .detail-copy h1 {
        font-size: 36px;
    }

    .play-button-icon {
        width: 68px;
        height: 68px;
    }

    .play-layer strong {
        font-size: 18px;
    }
}
