:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #f97316;
    --accent-strong: #ef4444;
    --ink: #0f172a;
    --muted: #64748b;
    --soft: #f8fafc;
    --line: #e2e8f0;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

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

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #fff;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.22);
}

.nav-shell {
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-name {
    font-size: 24px;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

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

.desktop-nav a,
.desktop-nav button {
    color: #fff;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 6px 0;
    transition: opacity 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav button:hover {
    opacity: 0.78;
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: -14px;
    width: 180px;
    padding: 10px;
    border-radius: 16px;
    background: #fff;
    color: #1f2937;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    color: #334155;
}

.dropdown-panel a:hover {
    background: #eff6ff;
    color: var(--primary);
}

.site-search {
    position: relative;
    width: 280px;
}

.site-search-input,
.filter-search,
.library-filter select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    outline: none;
    padding: 10px 16px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
}

.site-search-input::placeholder {
    color: rgba(255, 255, 255, 0.78);
}

.site-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    max-height: 420px;
    overflow-y: auto;
    border-radius: 18px;
    background: #fff;
    color: #0f172a;
    box-shadow: var(--shadow);
    padding: 8px;
}

.search-result {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.search-result:hover {
    background: #eff6ff;
}

.search-result strong {
    display: block;
    font-size: 14px;
}

.search-result span {
    display: block;
    color: #64748b;
    font-size: 12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
    padding: 9px;
}

.mobile-toggle span {
    display: block;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    border-radius: 999px;
}

.mobile-panel {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 20px;
}

.mobile-panel a {
    display: block;
    color: #fff;
    padding: 11px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

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

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-position: center;
    background-size: cover;
    transition: opacity 1s ease;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    height: 100%;
    min-height: 600px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(680px, 100%);
    color: #fff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 18px;
}

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

.hero-copy p {
    margin: 0 0 24px;
    font-size: clamp(17px, 2vw, 22px);
    color: #e2e8f0;
}

.hero-badges,
.detail-badges,
.card-tags,
.meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-badges {
    margin-bottom: 32px;
}

.hero-badges span,
.detail-badges span {
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

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

.btn-primary {
    color: #fff;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    padding: 14px 26px;
    box-shadow: 0 18px 35px rgba(239, 68, 68, 0.28);
}

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

.btn-light {
    color: var(--primary);
    background: #fff;
    padding: 14px 26px;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
}

.btn-text {
    color: var(--primary);
    background: transparent;
    padding: 0;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 32px;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
    z-index: 3;
}

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

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

.section {
    padding: 72px 24px;
}

.section-white {
    background: #fff;
}

.section-blue {
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

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

.section-gradient {
    background: linear-gradient(135deg, #2563eb, #06b6d4, #14b8a6);
    color: #fff;
}

.shell {
    max-width: 1280px;
    margin: 0 auto;
}

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

.section-head.center {
    display: block;
    text-align: center;
}

.section-kicker {
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 6px;
}

.section h1,
.section h2,
.page-title h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-head p,
.page-title p {
    color: #64748b;
    margin: 8px 0 0;
}

.section-dark .section-head p,
.section-gradient .section-head p,
.section-gradient p {
    color: rgba(255, 255, 255, 0.82);
}

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

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

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

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

.video-card {
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
}

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

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

.video-card:hover img {
    transform: scale(1.08);
}

.poster-year,
.poster-play,
.rank-badge {
    position: absolute;
    color: #fff;
    background: rgba(0, 0, 0, 0.72);
    border-radius: 999px;
}

.poster-year {
    right: 12px;
    bottom: 12px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 800;
}

.poster-play {
    left: 50%;
    top: 50%;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    background: rgba(37, 99, 235, 0.86);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.video-card:hover .poster-play {
    opacity: 1;
}

.card-body {
    padding: 18px;
}

.card-body h3,
.rank-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.card-body h3 a:hover,
.rank-info h3 a:hover,
.related-card h3 a:hover {
    color: var(--primary);
}

.card-body p,
.rank-info p {
    margin: 0 0 13px;
    color: #64748b;
    font-size: 14px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-chip {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.card-meta,
.meta-line {
    color: #64748b;
    font-size: 13px;
    gap: 8px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    margin-top: 14px;
}

.rank-card {
    display: flex;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-cover {
    position: relative;
    width: 168px;
    min-height: 130px;
    flex: 0 0 168px;
    overflow: hidden;
}

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

.rank-badge {
    top: 10px;
    left: 10px;
    background: #ef4444;
    padding: 4px 10px;
    font-weight: 900;
    font-size: 13px;
}

.rank-info {
    padding: 18px;
    min-width: 0;
}

.category-tile {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 190px;
    border-radius: 24px;
    color: #fff;
    padding: 28px;
    box-shadow: 0 18px 44px rgba(37, 99, 235, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 26px 58px rgba(37, 99, 235, 0.28);
}

.category-tile:nth-child(4n+1) {
    background: linear-gradient(135deg, #fb923c, #ef4444);
}

.category-tile:nth-child(4n+2) {
    background: linear-gradient(135deg, #60a5fa, #6366f1);
}

.category-tile:nth-child(4n+3) {
    background: linear-gradient(135deg, #4ade80, #14b8a6);
}

.category-tile:nth-child(4n+4) {
    background: linear-gradient(135deg, #f472b6, #f43f5e);
}

.category-icon {
    font-size: 46px;
    margin-bottom: 16px;
}

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

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

.page-title {
    padding: 54px 24px 34px;
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

.library-filter {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 28px;
    padding: 18px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.filter-field {
    flex: 1;
}

.filter-search,
.library-filter select {
    color: #0f172a;
    background: #f8fafc;
    border-color: #cbd5e1;
    backdrop-filter: none;
}

.filter-selects {
    display: flex;
    gap: 12px;
}

.library-filter select {
    min-width: 130px;
}

.empty-state {
    padding: 28px;
    margin-bottom: 24px;
    border-radius: 18px;
    text-align: center;
    color: #64748b;
    background: #fff;
}

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

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

.player-area {
    background: #020617;
    padding: 0 24px;
}

.player-shell {
    max-width: 1280px;
    margin: 0 auto;
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #000;
}

.video-cover-button {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    background: #000;
    cursor: pointer;
    color: #fff;
}

.video-cover-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.video-cover-button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.16));
}

.cover-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    font-size: 34px;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    transform: translate(-50%, -50%);
    box-shadow: 0 20px 45px rgba(239, 68, 68, 0.35);
}

.cover-title {
    position: absolute;
    left: 34px;
    bottom: 28px;
    z-index: 2;
    font-size: clamp(22px, 4vw, 42px);
    font-weight: 900;
    text-align: left;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.hidden-cover {
    display: none;
}

.detail-section {
    padding: 36px 24px 76px;
    background: #f8fafc;
}

.detail-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
}

.detail-card,
.related-panel {
    border-radius: 22px;
    background: #fff;
    padding: 26px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.detail-card + .detail-card {
    margin-top: 24px;
}

.detail-card h1 {
    margin: 0 0 18px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
}

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

.detail-badges span {
    background: #eff6ff;
    color: #1d4ed8;
}

.detail-lead {
    font-size: 18px;
    font-weight: 700;
    color: #334155;
}

.detail-card p {
    color: #475569;
}

.related-panel {
    position: sticky;
    top: 96px;
}

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

.related-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border-radius: 16px;
    padding: 8px;
    transition: background 0.2s ease;
}

.related-card:hover {
    background: #f8fafc;
}

.related-card img {
    width: 118px;
    height: 76px;
    border-radius: 12px;
    object-fit: cover;
}

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

.related-card span {
    color: #64748b;
    font-size: 12px;
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.footer-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 52px 24px 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 36px;
    margin-bottom: 34px;
}

.footer-brand {
    color: #fff;
    font-size: 22px;
    margin-bottom: 16px;
}

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

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

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li + li {
    margin-top: 8px;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    font-size: 14px;
}

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

    .mobile-toggle {
        display: block;
        margin-left: auto;
    }

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

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

    .related-panel {
        position: static;
    }

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

@media (max-width: 760px) {
    .nav-shell {
        height: 64px;
        padding: 0 16px;
    }

    .brand-name {
        font-size: 20px;
    }

    .hero-slider,
    .hero-content {
        min-height: 520px;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: 42px;
    }

    .section,
    .detail-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section-head {
        display: block;
    }

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

    .rank-card {
        display: block;
    }

    .rank-cover {
        width: 100%;
        height: 210px;
        display: block;
    }

    .library-filter {
        display: block;
    }

    .filter-field {
        margin-bottom: 12px;
    }

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

    .player-area {
        padding: 0;
    }

    .cover-play {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }

    .cover-title {
        left: 18px;
        right: 18px;
        bottom: 18px;
    }

    .detail-card,
    .related-panel {
        padding: 20px;
    }

    .footer-grid,
    .footer-bottom {
        display: block;
    }

    .footer-grid > div + div {
        margin-top: 28px;
    }

    .footer-bottom span {
        display: block;
        margin-top: 8px;
    }
}
