:root {
    --page-bg: #f8fafc;
    --text-main: #172033;
    --text-soft: #64748b;
    --line: rgba(15, 23, 42, 0.1);
    --cyan: #06b6d4;
    --blue: #2563eb;
    --purple: #7c3aed;
    --orange: #f59e0b;
    --rose: #ef4444;
    --white: #ffffff;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

.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.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue), var(--purple));
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.nav {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #334155;
    font-weight: 700;
}

.nav a {
    padding: 10px 14px;
    border-radius: 999px;
    transition: 0.25s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--blue);
    background: rgba(37, 99, 235, 0.08);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #eef2ff;
    color: var(--blue);
    font-size: 24px;
}

.hero {
    min-height: 680px;
    position: relative;
    overflow: hidden;
    color: white;
    background: linear-gradient(135deg, #22d3ee 0%, #2563eb 48%, #7c3aed 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.1) 75%, transparent 75%, transparent);
    background-size: 46px 46px;
    opacity: 0.28;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 22%, rgba(255,255,255,0.28), transparent 28%), rgba(2, 6, 23, 0.18);
}

.hero-shell {
    position: relative;
    z-index: 2;
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.76fr);
    align-items: center;
    gap: 42px;
    padding: 80px 0;
}

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

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 13px;
    font-weight: 800;
}

.hero h1 {
    margin: 20px 0 18px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.hero-lead {
    margin: 0 0 18px;
    font-size: clamp(20px, 2.5vw, 30px);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.94);
}

.hero-desc {
    margin: 0 0 30px;
    max-width: 660px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 17px;
    line-height: 1.8;
}

.hero-actions,
.detail-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;
    padding: 0 20px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    font-weight: 900;
    transition: 0.25s ease;
}

.btn-primary {
    color: var(--blue);
    background: white;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.18);
}

.btn-primary:hover {
    background: #fde68a;
    transform: translateY(-2px) scale(1.02);
}

.btn-ghost {
    color: white;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.hero-search {
    margin-top: 28px;
    display: flex;
    max-width: 620px;
    padding: 8px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(16px);
}

.hero-search input,
.filter-input {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 18px;
    padding: 0 18px;
    min-height: 48px;
    color: #0f172a;
    background: white;
    font-size: 15px;
}

.hero-search button {
    flex: 0 0 auto;
    margin-left: 8px;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 18px;
    color: white;
    background: linear-gradient(135deg, #0891b2, #2563eb);
    font-weight: 900;
    cursor: pointer;
}

.hero-stage {
    position: relative;
}

.hero-slider {
    position: relative;
    min-height: 500px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(26px) scale(0.98);
    transition: 0.7s ease;
    pointer-events: none;
}

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

.hero-card {
    height: 100%;
    border-radius: 34px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.45), rgba(2, 6, 23, 0.72));
    box-shadow: 0 34px 80px rgba(15, 23, 42, 0.34);
    border: 1px solid rgba(255,255,255,0.22);
}

.hero-art,
.poster,
.detail-poster,
.player-cover {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.88), rgba(37, 99, 235, 0.88), rgba(124, 58, 237, 0.88));
}

.hero-art {
    height: 100%;
    min-height: 500px;
}

.hero-art img,
.poster img,
.detail-poster img,
.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.media-empty::before {
    content: "";
    position: absolute;
    inset: 22px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: radial-gradient(circle at 28% 22%, rgba(255,255,255,0.3), transparent 28%);
}

.hero-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 32px;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.92));
}

.hero-info h2 {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.2;
}

.hero-info p {
    margin: 0 0 18px;
    color: rgba(255,255,255,0.86);
    line-height: 1.7;
}

.hero-meta,
.card-meta,
.detail-meta,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.94);
    font-size: 12px;
    font-weight: 800;
}

.pill.light {
    color: #334155;
    background: #eef2ff;
}

.slider-dots {
    position: absolute;
    z-index: 5;
    display: flex;
    gap: 9px;
    right: 24px;
    top: 24px;
}

.slider-dots button {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: rgba(255,255,255,0.48);
    transition: 0.25s ease;
}

.slider-dots button.active {
    width: 28px;
    background: white;
}

.section {
    padding: 72px 0;
}

.section.alt {
    background: #ffffff;
}

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

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

.section-title {
    margin: 8px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.04em;
}

.section-subtitle {
    margin: 9px 0 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.link-more {
    color: var(--blue);
    font-weight: 900;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: white;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: 0.25s ease;
}

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

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

.poster {
    aspect-ratio: 16 / 10;
}

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

.card-body {
    padding: 18px;
}

.card-title {
    margin: 0 0 9px;
    font-size: 18px;
    line-height: 1.35;
}

.card-title a:hover {
    color: var(--blue);
}

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

.card-meta {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.card-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

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

.category-card {
    min-height: 156px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    border-radius: 24px;
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue), var(--purple));
    box-shadow: 0 20px 48px rgba(37, 99, 235, 0.18);
    transition: 0.25s ease;
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #fb7185, #f97316);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #22c55e, #06b6d4);
}

.category-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.category-card h3 {
    margin: 0 0 7px;
    font-size: 21px;
}

.category-card p {
    margin: 0;
    color: rgba(255,255,255,0.86);
    line-height: 1.6;
    font-size: 13px;
}

.cta {
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue), var(--purple));
    text-align: center;
}

.cta .section-title,
.cta .section-subtitle {
    color: white;
}

.page-hero {
    padding: 78px 0 50px;
    color: white;
    background: linear-gradient(135deg, #06b6d4, #2563eb, #7c3aed);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.25;
    background: radial-gradient(circle at 70% 10%, rgba(255,255,255,0.45), transparent 24%);
}

.page-hero .container {
    position: relative;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(36px, 5vw, 60px);
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255,255,255,0.86);
    font-size: 17px;
    line-height: 1.8;
}

.filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    margin: 28px 0 0;
}

.filter-select {
    min-height: 48px;
    border: 0;
    border-radius: 18px;
    padding: 0 18px;
    color: #0f172a;
    background: white;
    outline: 0;
    font-weight: 800;
}

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

.breadcrumb a:hover {
    color: white;
}

.detail-head {
    padding: 48px 0;
    color: white;
    background: linear-gradient(135deg, #0f172a, #164e63 48%, #312e81);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(250px, 340px) minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
}

.detail-content h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-desc {
    margin: 0 0 22px;
    color: rgba(255,255,255,0.86);
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta {
    margin-bottom: 24px;
}

.player-section {
    padding: 56px 0 22px;
    background: #0f172a;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.45);
}

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

.player-start {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 88px;
    height: 88px;
    border: 0;
    border-radius: 50%;
    color: var(--blue);
    background: rgba(255,255,255,0.94);
    font-size: 34px;
    cursor: pointer;
    box-shadow: 0 18px 42px rgba(0,0,0,0.3);
    transition: 0.25s ease;
}

.player-start:hover {
    transform: translate(-50%, -50%) scale(1.08);
    background: #fde68a;
}

.player-shell.ready .player-start {
    opacity: 0;
    pointer-events: none;
}

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

.article-card,
.side-card {
    border-radius: 26px;
    background: white;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
    padding: 28px;
}

.article-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.article-card p {
    color: #334155;
    line-height: 1.9;
    font-size: 16px;
}

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

.tag {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 60px minmax(120px, 190px) minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 22px;
    background: white;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.rank-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(135deg, var(--orange), var(--rose));
    font-weight: 900;
}

.rank-thumb {
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
}

.rank-title {
    margin: 0 0 8px;
    font-size: 19px;
}

.rank-title a:hover {
    color: var(--blue);
}

.rank-desc {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.site-footer {
    padding: 42px 0;
    color: #cbd5e1;
    background: #0f172a;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-links a:hover {
    color: white;
}

.hide-card {
    display: none !important;
}

@media (max-width: 1024px) {
    .hero-shell,
    .detail-layout,
    .content-wrap {
        grid-template-columns: 1fr;
    }

    .hero-slider {
        min-height: 440px;
    }

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

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

    .rank-item {
        grid-template-columns: 52px 120px minmax(0, 1fr);
    }

    .rank-go {
        display: none;
    }
}

@media (max-width: 720px) {
    .header-inner {
        min-height: 64px;
    }

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

    .nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 22px;
        background: white;
        box-shadow: var(--shadow);
    }

    .nav.open {
        display: flex;
    }

    .hero,
    .hero-shell {
        min-height: auto;
    }

    .hero-shell {
        padding: 54px 0;
    }

    .hero-search,
    .filters {
        grid-template-columns: 1fr;
        display: grid;
    }

    .hero-search button {
        margin-left: 0;
    }

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

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

    .rank-item {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .rank-thumb {
        display: none;
    }

    .detail-poster {
        max-width: 320px;
    }
}
