:root {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --red: #dc2626;
    --red-dark: #b91c1c;
    --orange: #f97316;
    --yellow: #facc15;
    --green: #16a34a;
    --blue: #2563eb;
    --purple: #7c3aed;
    --shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 8px 28px rgba(15, 23, 42, 0.08);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

.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.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 72px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 21px;
    color: #111827;
    white-space: nowrap;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.28);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
    font-size: 15px;
    font-weight: 700;
}

.main-nav a {
    color: #374151;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--red);
}

.nav-search {
    display: flex;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
}

.nav-search input {
    width: 160px;
    border: 0;
    padding: 10px 14px;
    outline: 0;
    background: transparent;
}

.nav-search button {
    border: 0;
    padding: 10px 16px;
    background: var(--red);
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    color: #111827;
    font-size: 22px;
    padding: 8px 12px;
}

.hero {
    position: relative;
    height: 520px;
    overflow: hidden;
    background: #020617;
}

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

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

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

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.08));
}

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

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--yellow);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 760px;
    margin: 14px 0;
    font-size: clamp(34px, 6vw, 60px);
    line-height: 1.08;
}

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

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
    color: #d1d5db;
}

.hero-meta span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    padding: 7px 12px;
}

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

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

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

.btn-primary {
    background: var(--red);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(220, 38, 38, 0.28);
}

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

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

.btn-ghost.dark {
    color: var(--text);
    border-color: var(--line);
    background: #ffffff;
}

.btn.full {
    width: 100%;
    margin-top: 12px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 9px;
    z-index: 4;
}

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

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

.section-block {
    margin: 48px auto;
}

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

.section-heading h2,
.page-hero h1 {
    margin: 4px 0 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.2;
}

.text-link {
    color: var(--red);
    font-weight: 900;
}

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

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

.movie-card {
    display: block;
    min-width: 0;
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(135deg, #111827, #7f1d1d);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover .poster-wrap {
    transform: scale(1.045);
    box-shadow: var(--shadow);
}

.poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 58%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.hot-badge,
.rank-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 9px;
    background: var(--red);
    color: #ffffff;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 900;
}

.rank-badge {
    right: auto;
    left: 10px;
    background: #111827;
}

.play-hover {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--red);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 44px;
    margin-top: 12px;
    font-weight: 900;
    line-height: 1.35;
    transition: color 0.2s ease;
}

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

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

.hot-entry {
    margin-top: 36px;
}

.ranking-strip,
.feature-list,
.ranking-list {
    display: grid;
    gap: 14px;
}

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

.ranking-row {
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 18px;
    background: #ffffff;
    padding: 12px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.ranking-number {
    width: 34px;
    text-align: center;
    color: var(--red);
    font-size: 20px;
    font-weight: 900;
}

.ranking-row img {
    width: 82px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
    background: #111827;
}

.ranking-info {
    flex: 1;
    min-width: 0;
}

.ranking-info strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-info small {
    display: block;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.category-panel {
    border-radius: 30px;
    background: linear-gradient(135deg, #fff1f2, #fffbeb);
    padding: 34px;
}

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

.category-tile,
.overview-card {
    border-radius: 18px;
    background: #ffffff;
    padding: 22px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-tile strong,
.category-tile span,
.category-tile em {
    display: block;
}

.category-tile strong {
    font-size: 19px;
    margin-bottom: 8px;
}

.category-tile span {
    color: var(--muted);
    font-size: 14px;
}

.category-tile em {
    margin-top: 12px;
    color: var(--red);
    font-style: normal;
    font-weight: 900;
}

.page-main {
    padding: 34px 0 56px;
}

.page-hero {
    margin-bottom: 28px;
    border-radius: 30px;
    background: linear-gradient(135deg, #111827, #7f1d1d 62%, #f97316);
    color: #ffffff;
    padding: clamp(28px, 5vw, 56px);
    overflow: hidden;
}

.page-hero p {
    max-width: 760px;
    margin: 12px 0 0;
    color: #f3f4f6;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    margin-bottom: 18px;
}

.breadcrumb a:hover {
    color: var(--red);
}

.filter-panel,
.search-panel,
.card-panel,
.sitemap-section {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    padding: 24px;
    margin-bottom: 28px;
}

.filter-line {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

.filter-line label {
    font-weight: 900;
}

.filter-line input,
.search-panel input,
.search-panel select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 13px 14px;
    outline: 0;
    font: inherit;
}

.filter-line input:focus,
.search-panel input:focus,
.search-panel select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-buttons button {
    border: 0;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    padding: 9px 15px;
    cursor: pointer;
    font-weight: 800;
}

.filter-buttons button.is-active,
.filter-buttons button:hover {
    background: var(--red);
    color: #ffffff;
}

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

.overview-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    padding: 14px;
}

.overview-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px;
}

.overview-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.overview-content strong {
    font-size: 22px;
}

.overview-content small {
    color: var(--muted);
}

.overview-content em {
    margin-top: 10px;
    color: var(--red);
    font-style: normal;
    font-weight: 900;
}

.full-ranking {
    grid-template-columns: 1fr;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 14px;
}

.result-count {
    color: var(--muted);
    margin: 0 0 18px;
    font-weight: 800;
}

.player-shell {
    background: #000000;
}

.player-container {
    padding: 0;
}

.video-frame {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.big-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: rgba(0, 0, 0, 0.28);
    color: #ffffff;
    font-size: 54px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.big-play:hover {
    background: rgba(0, 0, 0, 0.42);
}

.big-play.is-hidden {
    display: none;
}

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

.detail-main h1 {
    margin: 0 0 16px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.18;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-meta span {
    background: #f3f4f6;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.tag-list a {
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    padding: 7px 12px;
    font-size: 14px;
    font-weight: 800;
}

.tag-list a:hover {
    background: var(--red);
    color: #ffffff;
}

.detail-main section {
    margin-top: 24px;
}

.detail-main h2 {
    font-size: 22px;
    margin: 0 0 12px;
}

.detail-main p {
    color: #4b5563;
    margin: 0 0 12px;
}

.detail-cover {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

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

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.footer-grid p {
    margin: 8px 0 0;
    color: #cbd5e1;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: #e5e7eb;
}

.sitemap-section h2 {
    margin: 0 0 16px;
}

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

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

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

.sitemap-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-radius: 12px;
    background: #f9fafb;
    padding: 10px 12px;
}

.sitemap-list a {
    font-weight: 800;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sitemap-list a:hover {
    color: var(--red);
}

.sitemap-list span {
    color: var(--muted);
    white-space: nowrap;
}

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

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

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

@media (max-width: 860px) {
    .nav-toggle {
        display: inline-flex;
    }

    .main-nav,
    .nav-search {
        display: none;
    }

    .main-nav.is-open {
        position: absolute;
        top: 72px;
        left: 16px;
        right: 16px;
        display: grid;
        gap: 0;
        border-radius: 18px;
        background: #ffffff;
        padding: 10px;
        box-shadow: var(--shadow);
    }

    .main-nav.is-open a {
        padding: 12px;
        border-radius: 12px;
    }

    .hero {
        height: 600px;
    }

    .hero-content {
        bottom: 72px;
    }

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

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

    .ranking-strip,
    .overview-grid,
    .detail-layout,
    .search-panel {
        grid-template-columns: 1fr;
    }

    .detail-side {
        order: -1;
    }

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

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

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

    .logo {
        font-size: 18px;
    }

    .hero {
        height: 560px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-actions {
        display: grid;
    }

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

    .six-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .category-panel {
        padding: 22px;
    }

    .category-grid,
    .compact-list,
    .movie-sitemap {
        grid-template-columns: 1fr;
    }

    .overview-card {
        grid-template-columns: 110px 1fr;
    }

    .filter-line {
        grid-template-columns: 1fr;
    }

    .ranking-row img {
        width: 68px;
    }

    .sitemap-list li {
        align-items: flex-start;
        flex-direction: column;
    }
}
