:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --primary-soft: #e0f2fe;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --panel: #ffffff;
    --page: #f8fafc;
    --deep: #0f172a;
    --radius: 1.25rem;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: var(--page);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

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

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

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), #2563eb);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(2, 132, 199, 0.28);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 13px;
    color: #374151;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav-link:hover,
.site-nav-link.is-active {
    color: var(--primary-dark);
    background: var(--primary-soft);
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 0;
    border-radius: 12px;
    background: #f1f5f9;
}

.mobile-menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: #0f172a;
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

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

.mobile-panel-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 14px 0 18px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: #ffffff;
    background: #0b1120;
}

.hero-track {
    position: relative;
    min-height: 620px;
}

.hero-slide {
    display: none;
    min-height: 620px;
}

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

.hero-background {
    position: absolute;
    inset: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.34), transparent 32%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.78) 46%, rgba(2, 6, 23, 0.28) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent 50%);
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.58fr);
    align-items: center;
    min-height: 620px;
    gap: 54px;
    padding: 72px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    margin: 0 0 18px;
    padding: 7px 13px;
    color: #bae6fd;
    background: rgba(14, 165, 233, 0.18);
    border: 1px solid rgba(186, 230, 253, 0.28);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
}

.hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.96;
    letter-spacing: -0.06em;
    font-weight: 900;
}

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

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-actions,
.section-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    box-shadow: 0 18px 34px rgba(14, 165, 233, 0.26);
}

.button-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.button-light {
    color: #075985;
    background: #ffffff;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    display: block;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 32px 72px rgba(2, 6, 23, 0.46);
    transform: rotate(2deg);
}

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

.hero-poster span,
.play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    transform: translate(-50%, -50%);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 30px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-control,
.hero-dot {
    border: 0;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    cursor: pointer;
}

.hero-control {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 20px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
}

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

.section {
    padding: 70px 0;
}

.section-soft {
    background: linear-gradient(135deg, #e0f2fe, #eff6ff 56%, #ffffff);
}

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

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

.section-title p {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--muted);
}

.link-more {
    color: var(--primary-dark);
    font-weight: 900;
    white-space: nowrap;
}

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

.movie-card {
    overflow: hidden;
    background: var(--panel);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    box-shadow: 0 14px 34px 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);
}

.movie-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #0f172a;
}

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

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

.movie-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 32%, rgba(2, 6, 23, 0.84));
    opacity: 0;
    transition: opacity 0.22s ease;
}

.movie-card:hover .movie-cover::after {
    opacity: 1;
}

.play-icon {
    z-index: 2;
    width: 54px;
    height: 54px;
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.04);
}

.year-badge,
.rank-badge {
    position: absolute;
    z-index: 3;
    top: 12px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    color: #ffffff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.year-badge {
    right: 12px;
    background: var(--primary);
}

.rank-badge {
    left: 12px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.movie-body {
    padding: 16px;
}

.movie-body h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

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

.movie-body p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.tag-row span {
    color: #075985;
    background: var(--primary-soft);
}

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

.category-card {
    display: flex;
    flex-direction: column;
    min-height: 168px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 22px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 21px;
    font-weight: 900;
}

.category-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.category-card span {
    margin-top: auto;
    color: var(--primary-dark);
    font-weight: 900;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 170px 170px 170px;
    gap: 12px;
    margin: 0 0 28px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    color: var(--ink);
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 13px;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.filter-status {
    margin: -10px 0 24px;
    color: var(--muted);
    font-size: 14px;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 58px 120px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.ranking-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #ffffff;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    border-radius: 16px;
    font-weight: 900;
}

.ranking-item img {
    width: 120px;
    height: 78px;
    object-fit: cover;
    border-radius: 14px;
}

.ranking-item h2,
.ranking-item h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 900;
}

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

.page-hero {
    padding: 64px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 18% 20%, rgba(14, 165, 233, 0.38), transparent 30%),
        linear-gradient(135deg, #0f172a, #075985 56%, #1d4ed8);
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 14px 0 0;
    color: #dbeafe;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: #bae6fd;
    font-size: 14px;
    font-weight: 800;
}

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

.detail-panel,
.sidebar-panel {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.detail-panel {
    overflow: hidden;
}

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

.player-box video {
    width: 100%;
    height: 100%;
    background: #020617;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 0;
    background: #020617;
    cursor: pointer;
    transition: opacity 0.25s ease;
}

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

.player-cover span {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.93);
    border-radius: 999px;
    font-size: 30px;
    box-shadow: 0 20px 48px rgba(2, 6, 23, 0.38);
}

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

.detail-content {
    padding: 28px;
}

.detail-content h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.04em;
}

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

.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    color: #075985;
    background: var(--primary-soft);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.detail-content h2,
.sidebar-panel h2 {
    margin: 28px 0 10px;
    font-size: 24px;
    font-weight: 900;
}

.detail-content p {
    margin: 0 0 16px;
    color: #334155;
    font-size: 16px;
}

.sidebar-panel {
    padding: 18px;
}

.sidebar-panel h2 {
    margin-top: 0;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 16px;
    transition: background 0.2s ease;
}

.compact-card:hover {
    background: #f1f5f9;
}

.compact-card img {
    width: 92px;
    height: 62px;
    object-fit: cover;
    border-radius: 12px;
}

.compact-card strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 900;
    line-height: 1.35;
}

.compact-card em {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.sitemap-list {
    columns: 4 220px;
    column-gap: 28px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.sitemap-list li {
    break-inside: avoid;
    margin: 0 0 9px;
}

.sitemap-list a {
    color: #075985;
    font-weight: 800;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.15fr;
    gap: 34px;
    padding: 52px 0;
}

.footer-logo {
    color: #ffffff;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 900;
}

.site-footer p {
    margin: 12px 0 0;
    color: #94a3b8;
}

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

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

.site-footer a:hover {
    color: #38bdf8;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0;
    color: #94a3b8;
    font-size: 14px;
}

@media (max-width: 1080px) {
    .site-nav {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

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

    .hero-poster {
        max-width: 360px;
        margin: 0 auto;
    }

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

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

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

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

    .hero,
    .hero-track,
    .hero-slide,
    .hero-content {
        min-height: 720px;
    }

    .hero-content {
        gap: 28px;
        padding: 42px 0 94px;
    }

    .hero-actions,
    .section-actions,
    .detail-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .movie-grid,
    .ranking-list,
    .category-grid,
    .filter-panel,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .ranking-item {
        grid-template-columns: 46px 92px 1fr;
        gap: 10px;
    }

    .ranking-item img {
        width: 92px;
        height: 62px;
    }

    .section {
        padding: 46px 0;
    }

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

    .detail-content {
        padding: 22px;
    }

    .footer-bottom .container {
        flex-direction: column;
    }
}
