:root {
    color-scheme: light;
    --site-bg: #f9fafb;
    --panel: #ffffff;
    --panel-soft: #f3f4f6;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --blue: #2563eb;
    --cyan: #06b6d4;
    --orange: #f97316;
    --red: #ef4444;
    --yellow: #f59e0b;
    --dark: #111827;
    --radius: 16px;
    --shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    --shadow-strong: 0 22px 50px rgba(15, 23, 42, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

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

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

button,
input,
select {
    font: inherit;
}

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

.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 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 800;
    color: var(--dark);
    white-space: nowrap;
}

.logo-mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.28);
}

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

.nav a {
    position: relative;
    padding: 24px 0;
}

.nav a::after {
    position: absolute;
    right: 0;
    bottom: 18px;
    left: 0;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    border-radius: 999px;
    opacity: 0;
    transform: translateY(6px);
    transition: 0.2s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--blue);
}

.nav a:hover::after,
.nav a.active::after {
    opacity: 1;
    transform: translateY(0);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-search {
    position: relative;
    width: 240px;
}

.header-search input,
.toolbar input,
.toolbar select {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    color: var(--text);
    background: #f3f4f6;
    border: 1px solid transparent;
    border-radius: 999px;
    outline: none;
    transition: 0.2s ease;
}

.header-search input:focus,
.toolbar input:focus,
.toolbar select:focus {
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border: 0;
    border-radius: 12px;
}

.mobile-panel {
    display: none;
    padding: 0 0 16px;
}

.mobile-panel.is-open {
    display: block;
}

.mobile-panel a {
    display: block;
    padding: 12px 0;
    color: #374151;
    font-weight: 700;
    border-top: 1px solid var(--line);
}

.hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 78% 16%, rgba(255, 255, 255, 0.24), transparent 26%),
        linear-gradient(120deg, #2563eb 0%, #06b6d4 56%, #0f172a 100%);
}

.hero::before,
.hero::after {
    position: absolute;
    content: "";
    border-radius: 999px;
    pointer-events: none;
}

.hero::before {
    top: 48px;
    right: -80px;
    width: 360px;
    height: 360px;
    background: rgba(255, 255, 255, 0.14);
    filter: blur(3px);
}

.hero::after {
    bottom: -140px;
    left: 8%;
    width: 420px;
    height: 420px;
    background: rgba(249, 115, 22, 0.18);
    filter: blur(10px);
}

.hero-slider {
    position: relative;
    z-index: 1;
    min-height: 560px;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
    align-items: center;
    min-height: 560px;
    gap: 52px;
    padding: 68px 0;
}

.hero-slide.is-active {
    display: grid;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 13px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.hero h1 {
    margin: 0 0 20px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 680px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 32px;
}

.pill,
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    background: rgba(17, 24, 39, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
}

.hero-actions,
.card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

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

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

.btn-primary {
    color: var(--blue);
    background: #ffffff;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.22);
}

.btn-dark {
    color: #ffffff;
    background: #111827;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.18);
}

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

.btn-blue {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.2);
}

.hero-poster-wrap {
    position: relative;
}

.hero-poster {
    overflow: hidden;
    min-height: 420px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.34);
    transform: rotate(1.5deg);
}

.hero-poster img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.hero-floating-card {
    position: absolute;
    right: -18px;
    bottom: 30px;
    max-width: 250px;
    padding: 18px;
    color: #111827;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 18px;
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(14px);
}

.hero-floating-card strong {
    display: block;
    margin-bottom: 5px;
    font-size: 17px;
}

.hero-floating-card span {
    color: #6b7280;
    font-size: 13px;
}

.hero-dots {
    position: absolute;
    bottom: 28px;
    left: 0;
    z-index: 2;
    display: flex;
    gap: 10px;
}

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

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

.section {
    padding: 64px 0;
}

.section-soft {
    background: #f3f4f6;
}

.section-hot {
    color: #ffffff;
    background: linear-gradient(120deg, var(--orange), var(--red));
}

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

.section-title {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

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

.section-hot .section-intro,
.section-hot .section-link {
    color: rgba(255, 255, 255, 0.88);
}

.section-link {
    color: var(--blue);
    font-weight: 800;
    white-space: nowrap;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #e5e7eb;
}

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

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

.poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(17, 24, 39, 0.72);
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.poster-score {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 10px;
    color: #111827;
    font-size: 12px;
    font-weight: 900;
    background: #fbbf24;
    border-radius: 999px;
}

.card-body {
    padding: 18px;
}

.card-title {
    display: -webkit-box;
    min-height: 52px;
    margin: 0 0 9px;
    overflow: hidden;
    color: #111827;
    font-size: 18px;
    font-weight: 850;
    line-height: 1.42;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #6b7280;
    font-size: 13px;
}

.hot-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    backdrop-filter: blur(12px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hot-card:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-4px);
}

.hot-card img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 14px;
}

.hot-card h3 {
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    font-size: 17px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hot-card p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.category-tile {
    display: block;
    min-height: 162px;
    padding: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border-radius: 18px;
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:nth-child(3n + 2) {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.category-tile:nth-child(3n) {
    background: linear-gradient(135deg, var(--orange), var(--red));
}

.category-tile:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

.category-tile h2,
.category-tile h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-tile p {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.9);
}

.page-hero {
    color: #ffffff;
    padding: 52px 0;
    background: linear-gradient(120deg, var(--blue), var(--cyan));
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.page-hero h1 {
    max-width: 900px;
    margin: 0 0 14px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.16;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 72px 112px minmax(0, 1fr) 150px;
    align-items: center;
    gap: 18px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 18px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-num {
    color: var(--orange);
    font-size: 28px;
    font-weight: 900;
    text-align: center;
}

.rank-row img {
    width: 112px;
    height: 74px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-row h2,
.rank-row h3 {
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    font-size: 19px;
    line-height: 1.3;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

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

.rank-stat {
    color: #6b7280;
    font-weight: 800;
    text-align: right;
}

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

.player-section {
    padding: 36px 0 64px;
    background: #111827;
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: #000000;
    border-radius: 22px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 0;
    color: #ffffff;
    cursor: pointer;
    background: #000000;
    border: 0;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
}

.play-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    padding-left: 5px;
    color: #2563eb;
    font-size: 34px;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 999px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease;
}

.player-cover:hover .play-icon {
    transform: scale(1.08);
}

.player-cover.is-hidden {
    display: none;
}

.detail-card,
.side-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.detail-card {
    padding: 28px;
}

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

.detail-card p {
    margin: 0 0 18px;
    color: #374151;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 24px;
}

.detail-meta span {
    display: block;
    padding: 12px 14px;
    color: #374151;
    background: #f3f4f6;
    border-radius: 12px;
}

.detail-meta strong {
    color: #111827;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
}

.tags .tag {
    color: #2563eb;
    background: #dbeafe;
    border-color: #bfdbfe;
}

.side-card {
    padding: 20px;
}

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

.related-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.related-item img {
    width: 88px;
    height: 58px;
    object-fit: cover;
    border-radius: 10px;
}

.related-item h3 {
    display: -webkit-box;
    margin: 0 0 5px;
    overflow: hidden;
    font-size: 15px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-item span {
    color: #6b7280;
    font-size: 12px;
}

.site-footer {
    color: #d1d5db;
    background: #111827;
}

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

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

.footer-grid p,
.footer-grid a {
    display: block;
    margin: 0 0 9px;
    color: #cbd5e1;
    font-size: 14px;
}

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

.no-results {
    display: none;
    padding: 28px;
    color: #6b7280;
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.no-results.is-visible {
    display: block;
}

.back-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 45;
    display: none;
    width: 44px;
    height: 44px;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border: 0;
    border-radius: 999px;
    box-shadow: var(--shadow-strong);
}

.back-top.is-visible {
    display: grid;
    place-items: center;
}

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

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 54px 0 72px;
    }

    .hero-poster {
        min-height: 320px;
        transform: none;
    }

    .hero-poster img {
        height: 320px;
    }

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

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

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

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

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

    .logo {
        font-size: 18px;
    }

    .hero-slider,
    .hero-slide {
        min-height: auto;
    }

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

    .section {
        padding: 44px 0;
    }

    .section-head {
        display: block;
    }

    .section-link {
        display: inline-block;
        margin-top: 12px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .toolbar {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 48px 92px minmax(0, 1fr);
    }

    .rank-stat {
        grid-column: 2 / -1;
        text-align: left;
    }

    .rank-row img {
        width: 92px;
        height: 62px;
    }

    .detail-card {
        padding: 20px;
    }

    .detail-meta {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
