:root {
    --orange: #f97316;
    --orange-deep: #ea580c;
    --red: #dc2626;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --panel: #ffffff;
    --soft: #f9fafb;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange-deep), var(--red));
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.28);
}

.nav-bar {
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: 68px;
}

.logo,
.footer-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: 36px;
    height: 36px;
    border-radius: 12px;
    color: var(--orange-deep);
    background: #ffffff;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4);
}

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

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

.desktop-nav a,
.mobile-nav a {
    opacity: 0.92;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: #ffedd5;
    opacity: 1;
}

.nav-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.nav-search input,
.mobile-search input {
    width: 230px;
    border: 0;
    outline: 0;
    border-radius: 999px;
    padding: 9px 14px;
    color: var(--ink);
    background: #ffffff;
}

.nav-search button,
.mobile-search button {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.35);
}

.nav-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    color: #ffffff;
    font-size: 28px;
    background: transparent;
}

.mobile-nav {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

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

.mobile-search {
    width: 100%;
    margin-top: 14px;
}

.mobile-search input {
    width: 100%;
}

.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #000000;
}

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

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

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.55) 52%, rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 82px;
    transform: translateX(-50%);
    color: #ffffff;
}

.hero-kicker,
.detail-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 7px 16px;
    color: #ffffff;
    font-weight: 700;
    background: var(--orange);
}

.hero-content h1 {
    max-width: 760px;
    margin: 18px 0 14px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 22px;
    color: #e5e7eb;
    font-size: 18px;
    line-height: 1.75;
}

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

.hero-tags span,
.detail-meta span,
.card-meta span,
.tag-row span,
.detail-tags span {
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.16);
}

.card-meta span,
.tag-row span {
    color: #6b7280;
    background: #f3f4f6;
}

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

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

.primary-btn {
    color: #ffffff;
    background: var(--orange);
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.35);
}

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

.primary-btn:hover {
    background: var(--orange-deep);
}

.ghost-btn {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    font-size: 38px;
    line-height: 1;
    background: rgba(0, 0, 0, 0.46);
    transition: background 0.2s ease;
}

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

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dots button {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: var(--orange);
}

.page-stack {
    display: grid;
    gap: 56px;
    padding: 48px 0 10px;
}

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

.quick-entry a,
.category-card,
.filter-panel,
.category-panel,
.article-section,
.player-section {
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.quick-entry a {
    display: grid;
    gap: 6px;
    padding: 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-entry a:hover,
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.quick-entry strong {
    font-size: 20px;
}

.quick-entry span,
.section-head p,
.category-card strong,
.category-card em {
    color: var(--muted);
}

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

.section-head h2,
.section-head h3 {
    margin: 0;
    font-size: clamp(26px, 3vw, 34px);
}

.section-head p {
    margin: 8px 0 0;
}

.section-head a {
    color: var(--orange-deep);
    font-weight: 800;
}

.small-head h3 {
    font-size: 23px;
}

.compact-head h2 {
    font-size: 25px;
}

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

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

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

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

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

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

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

.movie-card a {
    display: block;
    height: 100%;
}

.poster-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #111827;
}

.featured-grid .poster-wrap {
    aspect-ratio: 16 / 10;
}

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

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

.year-badge,
.play-badge,
.rank-number {
    position: absolute;
    z-index: 2;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.74);
}

.year-badge {
    top: 10px;
    right: 10px;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 12px;
}

.play-badge {
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.rank-number {
    left: 10px;
    top: 10px;
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    border-radius: 12px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--red));
}

.card-body {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.card-body h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
}

.card-body p {
    min-height: 44px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.tag-row {
    gap: 6px;
}

.tag-row span {
    font-size: 12px;
}

.category-panel {
    padding: 28px;
    background: linear-gradient(135deg, #fff7ed, #fff1f2);
}

.category-strip {
    margin-top: 24px;
}

.home-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

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

.compact-card {
    display: grid;
    grid-template-columns: auto 112px 1fr;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card:hover {
    transform: translateX(4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.11);
}

.compact-card img {
    width: 112px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    background: #111827;
}

.compact-card h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.compact-card p {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.compact-card span {
    color: #9ca3af;
    font-size: 12px;
}

.compact-rank {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    color: #ffffff !important;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--red));
}

.page-shell {
    padding: 38px 0 12px;
}

.page-hero {
    position: relative;
    margin-bottom: 28px;
    overflow: hidden;
    border-radius: 28px;
    padding: 44px;
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(255, 237, 213, 0.24), transparent 34%), linear-gradient(135deg, #9a3412, #dc2626 55%, #111827);
    box-shadow: var(--shadow);
}

.page-hero.compact span {
    display: inline-flex;
    margin-bottom: 10px;
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.18);
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 4vw, 52px);
}

.page-hero p {
    max-width: 720px;
    margin: 0;
    color: #ffedd5;
    font-size: 17px;
    line-height: 1.7;
}

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

.category-card {
    display: grid;
    gap: 12px;
    padding: 24px;
}

.category-card span {
    color: var(--orange-deep);
    font-size: 22px;
    font-weight: 900;
}

.category-card strong {
    min-height: 44px;
    font-weight: 600;
    line-height: 1.5;
}

.category-card em {
    font-style: normal;
    font-weight: 800;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
    padding: 18px;
}

.filter-panel.search-only {
    grid-template-columns: 1fr;
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: 0;
    padding: 12px 14px;
    color: var(--ink);
    background: #ffffff;
}

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

.movie-card.is-hidden {
    display: none;
}

.detail-main {
    background: #f3f4f6;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #000000;
}

.detail-bg {
    position: absolute;
    inset: 0;
}

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(22px);
    transform: scale(1.08);
    opacity: 0.42;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #111827 0%, rgba(17, 24, 39, 0.72) 58%, rgba(17, 24, 39, 0.46));
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    padding: 34px 0 44px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 26px;
    color: #d1d5db;
    font-size: 14px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 34px;
    align-items: end;
}

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

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

.detail-info h1 {
    margin: 18px 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
}

.detail-line {
    max-width: 820px;
    margin: 0 0 20px;
    color: #e5e7eb;
    font-size: 18px;
    line-height: 1.75;
}

.detail-meta {
    margin-bottom: 16px;
}

.detail-tags {
    margin-bottom: 28px;
}

.detail-content {
    display: grid;
    gap: 32px;
    padding: 36px 0 10px;
}

.player-section,
.article-section {
    padding: 24px;
}

.player-section h2,
.article-section h2 {
    margin: 0 0 18px;
    font-size: 28px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000000;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.2), rgba(0, 0, 0, 0.38));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    padding-left: 5px;
    font-size: 34px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 16px 35px rgba(249, 115, 22, 0.38);
}

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

.article-section p {
    margin: 0 0 24px;
    color: #374151;
    font-size: 17px;
    line-height: 1.9;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
    padding: 42px 0;
}

.footer-logo {
    color: #ffffff;
    font-size: 24px;
}

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

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

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

.footer-links a:hover {
    color: #fed7aa;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 16px;
    text-align: center;
    color: #9ca3af;
}

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

    .nav-toggle {
        display: block;
    }

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

    .six-col,
    .category-grid,
    .ranking-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .hero-carousel {
        height: 540px;
    }

    .hero-content {
        bottom: 72px;
    }

    .hero-arrow {
        display: none;
    }

    .featured-grid,
    .three-col,
    .home-split,
    .footer-grid,
    .detail-layout,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .detail-layout {
        align-items: start;
    }

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

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

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

    .hero-carousel {
        height: 510px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .page-stack {
        gap: 38px;
        padding-top: 32px;
    }

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

    .category-panel,
    .page-hero,
    .player-section,
    .article-section {
        border-radius: 18px;
        padding: 18px;
    }

    .card-body {
        padding: 13px;
    }

    .card-body p,
    .tag-row {
        display: none;
    }

    .compact-card {
        grid-template-columns: 88px 1fr;
    }

    .compact-card .compact-rank {
        display: none;
    }

    .compact-card img {
        width: 88px;
        height: 60px;
    }

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