:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --red: #dc2626;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #f9fafb;
    --line: #e5e7eb;
    --panel: #ffffff;
    --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", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: var(--soft);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, #ea580c, #dc2626);
    box-shadow: 0 12px 28px rgba(127, 29, 29, 0.24);
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    white-space: nowrap;
}

.brand:hover {
    opacity: 0.86;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #ea580c;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 600;
}

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

.main-nav a:hover,
.main-nav a.active {
    color: #fed7aa;
    opacity: 1;
}

.nav-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 320px;
    max-width: 34vw;
}

.nav-search input,
.mobile-panel input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 0;
    border-radius: 999px;
    outline: 0;
    background: #ffffff;
    color: #1f2937;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.nav-search input {
    padding: 10px 78px 10px 18px;
}

.nav-search button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    border: 0;
    border-radius: 999px;
    padding: 0 15px;
    color: #ffffff;
    background: var(--orange);
    cursor: pointer;
}

.menu-toggle {
    display: none;
    border: 0;
    color: #ffffff;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

.mobile-panel.open {
    display: grid;
    gap: 12px;
}

.mobile-panel a {
    padding: 8px 0;
    font-weight: 600;
}

.mobile-panel form {
    display: flex;
    gap: 8px;
}

.mobile-panel input {
    padding: 10px 14px;
}

.mobile-panel button {
    border: 0;
    border-radius: 999px;
    padding: 0 16px;
    color: #ffffff;
    background: #fb923c;
}

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

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

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.55) 46%, rgba(0, 0, 0, 0.08));
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    padding: 5px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--orange);
    font-size: 14px;
    font-weight: 800;
}

.hero-content h1,
.hero-content h2 {
    max-width: 760px;
    margin: 0 0 14px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

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

.hero-tags,
.card-meta,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-tags {
    margin-bottom: 24px;
}

.hero-tags span,
.tag-list span {
    display: inline-flex;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: #fed7aa;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

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

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

.btn.ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.45);
    font-size: 36px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

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

.hero-control.prev {
    left: 24px;
}

.hero-control.next {
    right: 24px;
}

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

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

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

.page-section {
    padding: 44px 0;
}

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

.section-title h2,
.section-title h3 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
}

.section-title.small h2,
.section-title.small h3 {
    font-size: 22px;
}

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

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: var(--panel);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #111827;
}

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

.movie-card.medium .poster-link {
    aspect-ratio: 16 / 9;
}

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

.movie-card:hover .poster-link img,
.mini-card:hover img,
.list-row:hover img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    border-radius: 999px;
    padding: 4px 10px;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.92);
    font-size: 12px;
    font-weight: 800;
}

.card-content {
    padding: 14px;
}

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

.card-content h3 a:hover,
.list-body h3 a:hover,
.category-preview h3 a:hover {
    color: var(--orange-dark);
}

.card-content p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    color: #6b7280;
    font-size: 12px;
}

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

.tag-list {
    margin-top: 10px;
}

.tag-list span {
    color: #c2410c;
    background: #ffedd5;
}

.category-shell {
    border-radius: 28px;
    padding: 34px;
    background: linear-gradient(135deg, #fff7ed, #fef2f2);
}

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

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
    gap: 28px;
}

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

.ranking-panel.wide {
    gap: 14px;
}

.list-row {
    display: grid;
    grid-template-columns: auto 120px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    border-radius: 16px;
    padding: 12px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #dc2626);
    font-weight: 900;
}

.list-cover {
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 16 / 10;
    background: #111827;
}

.list-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.list-body h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.list-body p {
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.fresh-panel,
.detail-side,
.category-card {
    border-radius: 22px;
    padding: 22px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

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

.mini-list.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 18px 0;
}

.mini-list.vertical {
    gap: 14px;
}

.mini-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    color: #1f2937;
    font-weight: 800;
}

.mini-card img {
    width: 76px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    background: #111827;
    transition: transform 0.25s ease;
}

.mini-card span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.page-hero {
    position: relative;
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(251, 146, 60, 0.8), transparent 38%), linear-gradient(135deg, #111827, #7f1d1d 62%, #ea580c);
}

.page-hero.compact {
    padding: 76px 0;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.08;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #fee2e2;
    font-size: 18px;
}

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

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

.category-card p {
    margin: 0;
    color: var(--muted);
}

.filter-panel,
.search-page-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
    gap: 12px;
    margin-bottom: 24px;
    border-radius: 20px;
    padding: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.search-page-form {
    grid-template-columns: minmax(220px, 1fr) auto;
}

.filter-panel input,
.filter-panel select,
.search-page-form input {
    min-height: 44px;
    padding: 0 16px;
    background: #f9fafb;
    box-shadow: inset 0 0 0 1px var(--line);
}

.empty-state {
    display: none;
    border-radius: 18px;
    padding: 32px;
    text-align: center;
    color: var(--muted);
    background: #ffffff;
}

.empty-state.show {
    display: block;
}

.is-hidden {
    display: none !important;
}

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

.detail-bg {
    position: absolute;
    inset: -20px;
    background-position: center;
    background-size: cover;
    filter: blur(18px);
    transform: scale(1.08);
    opacity: 0.45;
}

.detail-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.2));
}

.detail-head {
    position: relative;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: end;
    gap: 34px;
    min-height: 540px;
    padding: 64px 0;
}

.detail-cover {
    width: 300px;
    aspect-ratio: 3 / 4;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45);
}

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

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

.detail-intro h1 {
    margin: 0 0 16px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.08;
}

.lead {
    max-width: 820px;
    margin: 0 0 18px;
    color: #f3f4f6;
    font-size: 18px;
}

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

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

.detail-main,
.text-section,
.player-section {
    min-width: 0;
}

.player-section,
.text-section {
    border-radius: 24px;
    padding: 24px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.player-section h2,
.text-section h2,
.detail-side h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 16 / 9;
    background: #000000;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.1));
    cursor: pointer;
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    padding-left: 6px;
    background: linear-gradient(135deg, #f97316, #dc2626);
    box-shadow: 0 18px 36px rgba(220, 38, 38, 0.36);
    font-size: 34px;
}

.text-section {
    margin-top: 22px;
}

.text-section p {
    margin: 0;
    color: #374151;
    font-size: 16px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr 1fr 1fr;
    gap: 32px;
    padding: 46px 0;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

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

.site-footer a {
    display: block;
    margin: 8px 0;
    color: #d1d5db;
}

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

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

.search-results .grid {
    margin-top: 22px;
}

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

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

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

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

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

    .menu-toggle {
        display: block;
    }

    .hero-slider {
        height: 560px;
    }

    .hero-control {
        display: none;
    }

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

    .filter-panel,
    .search-page-form {
        grid-template-columns: 1fr;
    }

    .detail-head {
        grid-template-columns: 1fr;
        align-items: center;
        padding: 42px 0;
    }

    .detail-cover {
        width: min(260px, 70vw);
    }
}

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

    .brand {
        font-size: 20px;
    }

    .hero-content {
        bottom: 52px;
    }

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

    .hero-actions .btn {
        width: 100%;
    }

    .page-section {
        padding: 30px 0;
    }

    .category-shell {
        padding: 20px;
    }

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

    .list-row {
        grid-template-columns: auto 92px minmax(0, 1fr);
        gap: 10px;
    }

    .rank-num {
        width: 28px;
        height: 28px;
        border-radius: 10px;
        font-size: 13px;
    }

    .list-body p {
        display: none;
    }

    .mini-list.compact,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-intro h1,
    .page-hero h1 {
        font-size: 34px;
    }

    .player-section,
    .text-section,
    .detail-side,
    .category-card {
        padding: 18px;
        border-radius: 18px;
    }
}
