* {
    box-sizing: border-box;
}

:root {
    --page-bg: #f8fafc;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --nav: #0f172a;
    --nav-soft: #1e293b;
    --accent: #ef4444;
    --accent-two: #f97316;
    --cyan: #22d3ee;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: var(--page-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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(15, 23, 42, 0.96);
    color: #ffffff;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(18px);
}

.nav-shell {
    max-width: 1240px;
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 22px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--accent), var(--accent-two));
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.36);
}

.logo-text {
    background: linear-gradient(90deg, #fb7185, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    color: #e2e8f0;
    font-weight: 700;
}

.nav-links a {
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #fb7185;
}

.site-search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.site-search-form input {
    width: min(270px, 28vw);
    border: 0;
    outline: 0;
    border-radius: 999px;
    color: #ffffff;
    background: #334155;
    padding: 11px 46px 11px 18px;
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

.site-search-form input::placeholder {
    color: #cbd5e1;
}

.site-search-form input:focus {
    background: #1e293b;
    box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.35);
}

.search-submit {
    position: absolute;
    right: 5px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent), var(--accent-two));
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    background: #334155;
}

.mobile-menu {
    display: none;
    border-top: 1px solid rgba(226, 232, 240, 0.12);
    padding: 12px 22px 18px;
    background: #0f172a;
}

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

.mobile-menu a {
    display: block;
    padding: 12px 0;
    color: #e2e8f0;
    font-weight: 700;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 22px;
}

.hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.23), transparent 28%),
        radial-gradient(circle at 80% 0%, rgba(249, 115, 22, 0.22), transparent 32%),
        linear-gradient(135deg, #0f172a 0%, #1e3a8a 58%, #164e63 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 54px 54px;
    opacity: 0.28;
}

.hero-inner {
    position: relative;
    z-index: 1;
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    align-items: center;
    gap: 44px;
    padding: 76px 22px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #cffafe;
    background: rgba(15, 23, 42, 0.38);
    border: 1px solid rgba(207, 250, 254, 0.26);
    backdrop-filter: blur(12px);
    font-weight: 800;
}

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

.gradient-text {
    background: linear-gradient(90deg, #67e8f9, #bfdbfe, #fb7185);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    max-width: 660px;
    margin: 0 0 28px;
    color: #dbeafe;
    font-size: clamp(18px, 2vw, 24px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin: 30px 0;
}

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--accent-two));
    box-shadow: 0 16px 30px rgba(239, 68, 68, 0.32);
}

.btn-soft {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(14px);
}

.hero-search {
    display: flex;
    width: min(100%, 620px);
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 18px;
    color: #0f172a;
    background: transparent;
}

.hero-search button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    cursor: pointer;
    padding: 12px 20px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--accent-two));
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-tags a,
.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    color: #475569;
    background: #f1f5f9;
    font-size: 13px;
    font-weight: 800;
}

.hero .hero-tags a {
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-panel {
    position: relative;
    min-height: 520px;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: end;
    overflow: hidden;
    min-height: 520px;
    border-radius: 30px;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    pointer-events: none;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #1e293b, #334155);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.92));
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    padding: 28px;
}

.hero-slide-content h2 {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.18;
}

.hero-slide-content p {
    color: #e2e8f0;
    margin: 0 0 18px;
}

.slide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.slide-meta span {
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    font-size: 12px;
    font-weight: 800;
}

.hero-controls {
    position: absolute;
    z-index: 4;
    right: 20px;
    top: 20px;
    display: flex;
    gap: 8px;
}

.hero-controls button,
.hero-dot {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(10px);
}

.hero-dots {
    position: absolute;
    z-index: 4;
    left: 28px;
    bottom: 24px;
    display: flex;
    gap: 8px;
}

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

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

.section {
    padding: 68px 0;
}

.section-white {
    background: #ffffff;
}

.section-soft {
    background: linear-gradient(180deg, #f8fafc, #eef2ff);
}

.section-dark {
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #1e293b);
}

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

.section-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.section-desc {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--muted);
}

.section-dark .section-desc {
    color: #cbd5e1;
}

.more-link {
    color: var(--accent);
    font-weight: 900;
    white-space: nowrap;
}

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.7);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(239, 68, 68, 0.28);
}

.poster-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b, #334155);
}

.poster-wrap.tall {
    aspect-ratio: 3 / 4;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.78));
}

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.poster-play {
    position: absolute;
    left: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.92);
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.28);
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

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

.movie-card p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.card-meta span {
    padding: 5px 8px;
    border-radius: 999px;
    background: #f1f5f9;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 170px;
    padding: 22px;
    border-radius: 22px;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #f97316);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.category-card::after {
    content: "";
    position: absolute;
    right: -36px;
    bottom: -36px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    font-size: 24px;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
}

.category-card.rose,
.category-card.red,
.category-card.pink {
    background: linear-gradient(135deg, #ef4444, #fb7185);
}

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

.category-card.emerald {
    background: linear-gradient(135deg, #10b981, #14b8a6);
}

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

.category-card.purple,
.category-card.indigo {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
}

.page-hero {
    color: #ffffff;
    background:
        radial-gradient(circle at 85% 12%, rgba(251, 113, 133, 0.24), transparent 30%),
        linear-gradient(135deg, #0f172a, #1e3a8a 65%, #164e63);
    padding: 72px 0;
}

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

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

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
}

.inline-search {
    width: min(100%, 420px);
    border: 1px solid var(--line);
    outline: 0;
    border-radius: 999px;
    padding: 13px 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.inline-search:focus {
    border-color: rgba(239, 68, 68, 0.42);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.rank-list {
    display: grid;
    gap: 16px;
}

.rank-card {
    display: grid;
    grid-template-columns: 74px 168px 1fr;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.78);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-number {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--accent-two));
    font-size: 20px;
    font-weight: 950;
}

.rank-thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #1e293b, #334155);
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-info h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.rank-info p {
    margin: 0 0 12px;
    color: var(--muted);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0;
    color: #64748b;
    font-size: 14px;
}

.breadcrumb a {
    color: #ef4444;
    font-weight: 800;
}

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

.player-card {
    overflow: hidden;
    border-radius: 26px;
    background: #020617;
    box-shadow: 0 26px 70px rgba(2, 6, 23, 0.28);
}

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

.video-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background:
        radial-gradient(circle at center, rgba(239, 68, 68, 0.2), transparent 36%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.72));
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.big-play {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent), var(--accent-two));
    box-shadow: 0 18px 45px rgba(239, 68, 68, 0.42);
    font-size: 34px;
}

.detail-content {
    padding: 28px 0 0;
}

.detail-title {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-summary,
.detail-review {
    color: #334155;
    font-size: 17px;
}

.detail-panel {
    border-radius: 24px;
    padding: 22px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

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

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

.info-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f7;
}

.info-list span:first-child {
    color: #64748b;
    font-weight: 800;
}

.side-panel {
    position: sticky;
    top: 94px;
    border-radius: 24px;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

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

.related-item {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    align-items: center;
}

.related-thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e293b, #334155);
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-item h3 {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.35;
}

.related-item p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

.site-footer {
    margin-top: 68px;
    padding: 34px 0;
    color: #cbd5e1;
    background: #0f172a;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-weight: 800;
}

.footer-nav a:hover {
    color: #ffffff;
}

.empty-state {
    display: none;
    padding: 34px;
    border-radius: 22px;
    color: #64748b;
    text-align: center;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
}

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

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

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

    .hero-panel {
        min-height: 480px;
    }

    .hero-slide {
        min-height: 480px;
    }

    .side-panel {
        position: static;
    }
}

@media (max-width: 820px) {
    .nav-links,
    .nav-shell > .site-search-form {
        display: none;
    }

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

    .mobile-menu .site-search-form {
        display: flex;
        margin-top: 8px;
    }

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

    .hero-inner {
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .hero-search {
        border-radius: 24px;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-search input {
        min-height: 48px;
    }

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

    .section-head,
    .toolbar,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .rank-card {
        grid-template-columns: 52px 112px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .rank-number {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }
}

@media (max-width: 560px) {
    .container,
    .nav-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-logo {
        font-size: 18px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
    }

    .hero-panel,
    .hero-slide {
        min-height: 420px;
    }

    .hero-slide-content {
        padding: 22px;
    }

    .card-grid,
    .card-grid.compact,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .rank-card {
        grid-template-columns: 1fr;
    }

    .rank-thumb {
        order: -1;
    }

    .related-item {
        grid-template-columns: 84px 1fr;
    }
}
