:root {
    --primary: #0284c7;
    --primary-light: #e0f2fe;
    --accent: #f59e0b;
    --accent-light: #fef3c7;
    --ink: #171717;
    --muted: #737373;
    --line: #e5e7eb;
    --page: #f8fafc;
    --white: #ffffff;
    --dark: #020617;
    --radius: 22px;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

body {
    min-height: 100vh;
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 42%, #f8fafc 100%);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.03em;
}

.logo-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #38bdf8);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.35);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #404040;
    font-weight: 600;
}

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

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--primary);
}

.header-search {
    position: relative;
    width: min(300px, 28vw);
}

.header-search input,
.toolbar input,
.toolbar select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    padding: 11px 46px 11px 18px;
}

.header-search button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--muted);
    cursor: pointer;
}

.header-search input:focus,
.toolbar input:focus,
.toolbar select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
}

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

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: var(--dark);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 0.9s ease;
    background-size: cover;
    background-position: center;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 120px 0 90px;
    color: var(--white);
}

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

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #7dd3fc;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 0.96;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.hero h2 {
    margin: 0 0 18px;
    font-size: clamp(28px, 4.6vw, 56px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 620px;
    margin: 0;
    color: #e5e7eb;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.hero-meta,
.movie-meta,
.detail-meta,
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-meta {
    margin: 24px 0 28px;
    color: #e2e8f0;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: inherit;
    font-size: 13px;
    font-weight: 700;
}

.badge.primary {
    background: var(--primary-light);
    color: #0369a1;
}

.badge.accent {
    background: var(--accent-light);
    color: #92400e;
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

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

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

.btn.primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 16px 34px rgba(2, 132, 199, 0.35);
}

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

.btn.light {
    background: var(--white);
    color: var(--primary);
    border: 1px solid #dbeafe;
}

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

.hero-dot {
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.2s ease, width 0.2s ease;
}

.hero-dot.is-active {
    width: 64px;
    background: var(--white);
}

.page-section {
    padding: 74px 0;
}

.page-section.tight {
    padding: 44px 0;
}

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

.section-title {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-desc {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(14, 165, 233, 0.35);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #bae6fd, #e0f2fe);
}

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

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

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

.poster-layer {
    position: absolute;
    inset: auto 12px 12px 12px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.movie-info {
    padding: 18px;
}

.movie-meta {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
}

.movie-info h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 850;
}

.movie-info h3 a:hover {
    color: var(--primary);
}

.movie-info p {
    margin: 0;
    color: #525252;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.category-card {
    min-height: 188px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 24px;
    padding: 22px;
    background: linear-gradient(135deg, #ffffff, #eff6ff);
    border: 1px solid #dbeafe;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card h3 {
    margin: 0 0 10px;
    font-size: 21px;
    font-weight: 900;
}

.category-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.65;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 96px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.rank-number {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), #38bdf8);
    color: var(--white);
    font-weight: 900;
}

.rank-poster {
    width: 96px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 16px;
    background: #e0f2fe;
}

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

.rank-main h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 850;
}

.rank-main p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.toolbar {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 14px;
    margin: 28px 0;
}

.toolbar input,
.toolbar select {
    min-height: 48px;
    padding: 0 18px;
}

.empty-state {
    display: none;
    margin-top: 26px;
    padding: 28px;
    border-radius: 24px;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
}

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

.breadcrumb {
    margin: 28px 0 18px;
    color: #64748b;
    font-size: 14px;
}

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

.detail-hero {
    padding: 28px 0 54px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 34px;
    align-items: start;
}

.player-panel,
.detail-panel {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

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

.player-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #020617;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at center, rgba(2, 132, 199, 0.15), rgba(2, 6, 23, 0.64));
    cursor: pointer;
    z-index: 3;
}

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

.play-button {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--primary);
    font-size: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
    cursor: pointer;
}

.player-caption,
.detail-panel {
    padding: 24px;
}

.detail-panel h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.04em;
}

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

.detail-panel p,
.article-content p {
    color: #404040;
    line-height: 1.85;
}

.article-content {
    display: grid;
    gap: 24px;
}

.content-box {
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.content-box h2 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 900;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

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

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

.footer-inner strong {
    color: var(--white);
}

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

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

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

@media (max-width: 780px) {
    .navbar {
        min-height: 64px;
    }

    .nav-links,
    .header-search {
        display: none;
    }

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

    .nav-links.is-open {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: grid;
        gap: 12px;
        padding: 18px;
        border: 1px solid #e2e8f0;
        border-radius: 22px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .hero {
        min-height: 650px;
    }

    .hero-content {
        padding-top: 96px;
    }

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

    .hero h2 {
        font-size: 34px;
    }

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

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

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

    .rank-item {
        grid-template-columns: 42px 80px 1fr;
    }

    .rank-item .btn {
        grid-column: 2 / -1;
        justify-self: start;
    }
}

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

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

    .rank-item {
        grid-template-columns: 40px 1fr;
    }

    .rank-poster {
        display: none;
    }

    .page-section {
        padding: 48px 0;
    }
}
