:root {
    --teal-700: #0f766e;
    --teal-600: #0d9488;
    --cyan-600: #0891b2;
    --amber-500: #f59e0b;
    --rose-500: #f43f5e;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-100: #f1f5f9;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --radius-lg: 18px;
    --radius-md: 14px;
    --shadow-soft: 0 20px 50px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    color: #111827;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #f8fafc 100%);
    line-height: 1.6;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(90deg, var(--teal-700), var(--cyan-600));
    box-shadow: 0 12px 32px rgba(8, 145, 178, 0.25);
}

.site-nav {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    flex: 0 0 auto;
}

.brand__icon,
.footer-logo span {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f766e;
    background: #fbbf24;
    box-shadow: 0 10px 26px rgba(251, 191, 36, 0.3);
    font-size: 16px;
    font-weight: 900;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand__text strong {
    font-size: 21px;
    letter-spacing: 0.03em;
}

.brand__text small {
    margin-top: 4px;
    color: #ccfbf1;
    font-size: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #ecfeff;
    font-weight: 600;
    white-space: nowrap;
}

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

.nav-links a:hover {
    color: #fbbf24;
    transform: translateY(-1px);
}

.nav-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    min-width: 260px;
}

.nav-search input {
    width: 100%;
    height: 38px;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px 0 0 999px;
    padding: 0 16px;
    backdrop-filter: blur(10px);
}

.nav-search input::placeholder {
    color: #cffafe;
}

.nav-search button {
    height: 38px;
    border: 0;
    color: #ffffff;
    background: var(--amber-500);
    padding: 0 18px;
    border-radius: 0 999px 999px 0;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.nav-search button:hover {
    background: #d97706;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 2px;
}

main {
    min-height: 72vh;
}

.hero {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: var(--slate-950);
}

.hero-slider {
    position: relative;
    min-height: 72vh;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(20, 184, 166, 0.35), transparent 38%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.42), rgba(2, 6, 23, 0.78));
}

.hero-content {
    position: relative;
    z-index: 3;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 112px 0 72px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 38px;
    align-items: end;
}

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

.hero-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    background: rgba(13, 148, 136, 0.85);
    padding: 7px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 10px 26px rgba(13, 148, 136, 0.24);
}

.hero h1,
.hero h2 {
    margin: 20px 0 16px;
    color: #ffffff;
    font-size: clamp(34px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
}

.hero h1 span,
.hero h2 span {
    display: block;
    color: #fbbf24;
}

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

.hero-meta span,
.pill {
    color: #ecfeff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 7px 12px;
    border-radius: 999px;
    backdrop-filter: blur(10px);
    font-size: 14px;
}

.hero-desc {
    max-width: 680px;
    color: #e5e7eb;
    font-size: 18px;
    line-height: 1.75;
    margin: 0 0 28px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 800;
    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(90deg, var(--teal-600), var(--cyan-600));
    box-shadow: 0 16px 32px rgba(8, 145, 178, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 20px 40px rgba(8, 145, 178, 0.33);
}

.btn-amber {
    color: #111827;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
}

.hero-panel {
    position: relative;
    border-radius: 28px;
    padding: 18px;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.28);
}

.hero-panel h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

.hero-rail {
    display: grid;
    gap: 12px;
}

.hero-mini {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
    align-items: center;
    color: #ffffff;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-mini:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateX(3px);
}

.hero-mini img {
    width: 74px;
    height: 96px;
    object-fit: cover;
    border-radius: 14px;
}

.hero-mini strong {
    display: block;
    line-height: 1.25;
    margin-bottom: 4px;
}

.hero-mini span {
    color: #a7f3d0;
    font-size: 13px;
}

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

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

.hero-dot.is-active {
    width: 54px;
    background: #fbbf24;
}

.section {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0;
}

.section--tight {
    padding: 38px 0;
}

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

.section-header h2,
.section-header h1,
.page-head h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.section-header p,
.page-head p {
    margin: 8px 0 0;
    color: #64748b;
    max-width: 760px;
}

.section-link {
    color: var(--teal-700);
    font-weight: 800;
}

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

.category-tile {
    min-height: 148px;
    border-radius: 24px;
    padding: 24px;
    color: #ffffff;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.22);
}

.category-tile::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    right: -42px;
    bottom: -44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.category-tile small {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    font-weight: 900;
}

.category-tile strong {
    display: block;
    position: relative;
    z-index: 1;
    margin-top: 18px;
    font-size: 22px;
}

.category-tile span {
    display: block;
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.82);
    margin-top: 6px;
    font-size: 14px;
}

.gradient-teal {
    background: linear-gradient(135deg, #0d9488, #0891b2);
}

.gradient-blue {
    background: linear-gradient(135deg, #2563eb, #0891b2);
}

.gradient-amber {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.gradient-purple {
    background: linear-gradient(135deg, #7c3aed, #db2777);
}

.gradient-rose {
    background: linear-gradient(135deg, #e11d48, #f97316);
}

.gradient-orange {
    background: linear-gradient(135deg, #ea580c, #dc2626);
}

.gradient-lime {
    background: linear-gradient(135deg, #65a30d, #0d9488);
}

.gradient-cyan {
    background: linear-gradient(135deg, #0891b2, #4f46e5);
}

.gradient-slate {
    background: linear-gradient(135deg, #334155, #0f172a);
}

.gradient-indigo {
    background: linear-gradient(135deg, #4f46e5, #0f766e);
}

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

.movie-card {
    min-width: 0;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-card__link {
    display: block;
    height: 100%;
}

.movie-card__poster {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #0d9488);
}

.movie-card__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.movie-card__poster::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), transparent);
}

.movie-card__type,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    color: #ffffff;
    background: rgba(13, 148, 136, 0.9);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
}

.rank-badge {
    left: 12px;
    right: auto;
    background: rgba(245, 158, 11, 0.95);
}

.movie-card__body {
    padding: 15px 16px 18px;
}

.movie-card__body h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 17px;
    line-height: 1.35;
    min-height: 45px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card__body p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #0f766e;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 800;
}

.movie-card--compact .movie-card__body h3 {
    min-height: auto;
}

.page-head {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0 18px;
}

.page-hero {
    background:
        radial-gradient(circle at 16% 12%, rgba(20, 184, 166, 0.25), transparent 28%),
        linear-gradient(135deg, #ecfeff, #ffffff 52%, #f8fafc);
    border-bottom: 1px solid #e2e8f0;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 12px;
    margin: 26px 0 0;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    height: 46px;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    padding: 0 14px;
    outline: 0;
    font: inherit;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.filter-empty {
    display: none;
    margin-top: 24px;
    color: #64748b;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 22px;
}

.filter-empty.is-visible {
    display: block;
}

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

.category-card {
    border-radius: 28px;
    padding: 28px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid #eef2f7;
}

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

.category-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
}

.category-card h2 {
    margin: 0;
    color: #0f172a;
    font-size: 25px;
}

.category-card p {
    color: #64748b;
    margin: 16px 0 18px;
}

.category-card ul {
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 9px;
}

.category-card li a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #334155;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.category-card li a:hover {
    color: var(--teal-700);
}

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

.rank-item {
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.07);
}

.rank-item__link {
    display: grid;
    grid-template-columns: 54px 72px 1fr 74px;
    gap: 16px;
    align-items: center;
    padding: 12px 18px;
}

.rank-item__num {
    color: #f59e0b;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.rank-item img {
    width: 72px;
    height: 96px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-item__main strong {
    display: block;
    color: #0f172a;
    font-size: 18px;
    margin-bottom: 4px;
}

.rank-item__main em {
    color: #64748b;
    font-style: normal;
    font-size: 14px;
}

.rank-item__heat {
    justify-self: end;
    color: #ffffff;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: 900;
}

.detail-layout {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 68px;
}

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

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

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

.player-card,
.detail-card,
.related-block {
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    border: 1px solid #eef2f7;
}

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

.player-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
    cursor: pointer;
}

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.18));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-layer.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-button {
    width: 88px;
    height: 88px;
    border: 0;
    border-radius: 999px;
    color: #0f172a;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    font-size: 30px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 18px 44px rgba(245, 158, 11, 0.38);
    transition: transform 0.2s ease;
}

.play-button:hover {
    transform: scale(1.08);
}

.player-info {
    padding: 24px 26px 28px;
}

.player-info h1 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
}

.player-info p {
    color: #475569;
    margin: 0;
    font-size: 16px;
}

.detail-side {
    display: grid;
    gap: 18px;
}

.detail-poster {
    border-radius: 26px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: var(--shadow-soft);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-card {
    padding: 22px;
}

.detail-card h2 {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 21px;
}

.meta-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.meta-row {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 12px;
    color: #334155;
    font-size: 14px;
}

.meta-row dt {
    color: #64748b;
}

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

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #0f766e;
    background: #ccfbf1;
    font-size: 13px;
    font-weight: 700;
}

.article-body {
    margin-top: 26px;
    display: grid;
    gap: 18px;
}

.article-section {
    padding: 26px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.07);
    border: 1px solid #eef2f7;
}

.article-section h2 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 24px;
}

.article-section p {
    color: #475569;
    margin: 0;
    line-height: 1.9;
    font-size: 16px;
}

.related-block {
    margin-top: 30px;
    padding: 26px;
}

.related-block h2 {
    margin: 0 0 20px;
    color: #0f172a;
    font-size: 25px;
}

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

.search-lead {
    color: #475569;
    margin-top: 8px;
}

.hidden-by-filter {
    display: none;
}

@media (max-width: 1100px) {
    .nav-links {
        gap: 14px;
        font-size: 14px;
    }

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

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

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

    .hero-panel {
        max-width: 560px;
    }
}

@media (max-width: 860px) {
    .site-nav {
        min-height: 64px;
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        order: 5;
        width: 100%;
        display: none;
        flex-wrap: wrap;
        padding: 8px 0 4px;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-search {
        order: 6;
        width: 100%;
        margin-left: 0;
        min-width: 0;
        display: none;
    }

    .nav-search.is-open {
        display: flex;
    }

    .hero-content {
        padding: 88px 0 64px;
    }

    .hero-panel {
        display: none;
    }

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

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

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

    .rank-item__link {
        grid-template-columns: 42px 60px 1fr;
    }

    .rank-item__heat {
        display: none;
    }

    .rank-item img {
        width: 60px;
        height: 80px;
    }
}

@media (max-width: 620px) {
    .brand__text strong {
        font-size: 18px;
    }

    .brand__text small {
        display: none;
    }

    .hero {
        min-height: 78vh;
    }

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

    .hero-desc {
        font-size: 15px;
    }

    .section {
        padding: 44px 0;
    }

    .section-header {
        display: block;
    }

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

    .movie-card__body {
        padding: 12px;
    }

    .movie-card__body h3 {
        font-size: 15px;
    }

    .movie-card__body p {
        font-size: 13px;
    }

    .category-grid,
    .related-grid,
    .category-overview {
        grid-template-columns: 1fr;
    }

    .detail-layout {
        padding-top: 24px;
    }

    .player-info,
    .article-section,
    .related-block {
        padding: 20px;
    }

    .play-button {
        width: 72px;
        height: 72px;
        font-size: 24px;
    }
}
