:root {
    --primary-900: #0b3f6e;
    --primary-800: #075492;
    --primary-700: #006fc6;
    --primary-600: #0584dd;
    --primary-100: #e6f4ff;
    --accent-600: #0d9488;
    --accent-500: #14b8a2;
    --accent-300: #5eead4;
    --neutral-950: #020617;
    --neutral-900: #0f172a;
    --neutral-800: #1e293b;
    --neutral-700: #334155;
    --neutral-600: #475569;
    --neutral-500: #64748b;
    --neutral-300: #cbd5e1;
    --neutral-200: #e2e8f0;
    --neutral-100: #f1f5f9;
    --neutral-50: #f8fafc;
    --white: #ffffff;
    --shadow-md: 0 12px 28px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 22px 60px rgba(15, 23, 42, 0.18);
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--neutral-900);
    background: var(--neutral-50);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(90deg, var(--primary-900), var(--primary-700));
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.22);
}

.site-header-inner {
    width: min(1200px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.logo-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary-900);
    background: linear-gradient(135deg, var(--accent-300), var(--white));
    font-size: 14px;
}

.logo-text {
    font-size: 21px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
}

.nav-link {
    padding: 10px 13px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.88);
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
}

.nav-link-soft {
    color: rgba(255, 255, 255, 0.72);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--white);
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 14px;
}

.mobile-nav.is-open {
    display: grid;
    gap: 8px;
}

.mobile-link {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
}

.page-main {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 70px;
}

.hero-carousel {
    position: relative;
    height: 430px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    background: var(--neutral-800);
}

.hero-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0, 0, 0.2, 1);
}

.hero-slide {
    position: relative;
    min-width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: absolute;
    left: clamp(24px, 5vw, 58px);
    right: clamp(24px, 5vw, 58px);
    bottom: clamp(28px, 6vw, 58px);
    max-width: 760px;
    color: var(--white);
}

.hero-eyebrow {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.hero-eyebrow span {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1.1;
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(16px, 2vw, 19px);
}

.hero-actions,
.section-actions,
.filter-row,
.detail-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

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

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

.button-primary {
    color: var(--white);
    background: var(--primary-700);
    box-shadow: 0 12px 30px rgba(0, 111, 198, 0.35);
}

.button-primary:hover {
    background: var(--primary-800);
}

.button-accent {
    color: var(--neutral-950);
    background: var(--accent-300);
}

.button-ghost {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.hero-nav {
    position: absolute;
    top: 50%;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: rgba(0, 0, 0, 0.45);
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.hero-carousel:hover .hero-nav,
.hero-nav:focus-visible {
    opacity: 1;
}

.hero-nav:hover {
    background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

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

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

.section-block {
    margin-top: 48px;
}

.section-card {
    padding: clamp(22px, 4vw, 34px);
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

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

.section-head h1,
.section-head h2 {
    margin: 0;
    font-size: clamp(26px, 3.4vw, 38px);
    line-height: 1.2;
}

.section-head p,
.page-lead {
    margin: 8px 0 0;
    color: var(--neutral-600);
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.18);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--neutral-200);
}

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

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

.movie-cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), transparent 62%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.duration-badge,
.category-badge,
.rank-chip {
    position: absolute;
    z-index: 1;
    padding: 5px 8px;
    border-radius: 8px;
    color: var(--white);
    font-size: 12px;
    line-height: 1;
}

.duration-badge {
    right: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, 0.72);
}

.category-badge {
    top: 10px;
    left: 10px;
    background: var(--accent-500);
}

.movie-card-body {
    padding: 15px;
}

.movie-card-body h2 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

.movie-card-body h2 a:hover {
    color: var(--primary-700);
}

.movie-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--neutral-600);
    font-size: 13px;
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.movie-tags span,
.tag-pill {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--primary-800);
    background: var(--primary-100);
    font-size: 12px;
}

.movie-desc {
    display: -webkit-box;
    min-height: 44px;
    margin: 0;
    overflow: hidden;
    color: var(--neutral-600);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

.category-tile {
    min-height: 150px;
    padding: 22px;
    border-radius: var(--radius-lg);
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-800), var(--accent-600));
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

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

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

.rank-item {
    position: relative;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 76px;
    padding: 10px;
    border: 1px solid var(--neutral-200);
    border-radius: 16px;
    background: var(--white);
    transition: border 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    border-color: var(--primary-700);
    transform: translateX(2px);
}

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

.rank-copy {
    min-width: 0;
}

.rank-copy strong,
.rank-copy em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-copy em {
    color: var(--neutral-500);
    font-size: 13px;
    font-style: normal;
}

.rank-chip {
    position: static;
    background: var(--primary-700);
    white-space: nowrap;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 22px;
    color: var(--neutral-500);
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: var(--primary-700);
}

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

.player-card,
.detail-panel {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.player-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--neutral-950);
}

.player-wrap video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--neutral-950);
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    color: var(--white);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.player-overlay img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.player-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.28));
    z-index: 1;
}

.player-icon {
    position: relative;
    z-index: 2;
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--primary-900);
    background: rgba(255, 255, 255, 0.9);
    font-size: 28px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

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

.player-title {
    padding: 22px;
}

.player-title h1 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
}

.detail-panel {
    padding: 22px;
}

.detail-panel img {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 18px;
    object-fit: cover;
    margin-bottom: 18px;
}

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

.detail-meta div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid var(--neutral-200);
}

.detail-meta dt {
    color: var(--neutral-500);
}

.detail-meta dd {
    margin: 0;
    text-align: right;
    font-weight: 700;
}

.article-card {
    margin-top: 28px;
    padding: clamp(22px, 4vw, 34px);
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.article-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.article-card p {
    margin: 0 0 18px;
    color: var(--neutral-700);
    font-size: 16px;
}

.filter-panel {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
    padding: 22px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.search-input,
.select-input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--neutral-300);
    border-radius: 12px;
    padding: 10px 13px;
    color: var(--neutral-900);
    background: var(--white);
    font: inherit;
}

.search-input:focus,
.select-input:focus {
    outline: 3px solid rgba(20, 184, 162, 0.2);
    border-color: var(--accent-500);
}

.filter-row {
    align-items: stretch;
}

.filter-row > * {
    flex: 1 1 190px;
}

.empty-state {
    display: none;
    padding: 26px;
    text-align: center;
    color: var(--neutral-600);
    border: 1px dashed var(--neutral-300);
    border-radius: var(--radius-lg);
    background: var(--neutral-50);
}

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

.pagination-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
}

.pagination-row a,
.pagination-row span {
    min-width: 40px;
    padding: 8px 12px;
    border-radius: 12px;
    text-align: center;
    background: var(--white);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.pagination-row span {
    color: var(--white);
    background: var(--primary-700);
}

.site-footer {
    color: var(--neutral-300);
    background: var(--neutral-900);
}

.footer-grid {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 34px;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 32px;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 16px;
}

.footer-grid p {
    margin: 12px 0 0;
}

.footer-grid a {
    display: block;
    margin: 8px 0;
    color: var(--neutral-300);
}

.footer-grid a:hover {
    color: var(--accent-300);
}

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

.footer-bottom {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    text-align: center;
    border-top: 1px solid var(--neutral-800);
}

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

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

    .hero-carousel {
        height: 500px;
    }

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

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

@media (max-width: 680px) {
    .site-header-inner,
    .page-main,
    .footer-grid,
    .footer-bottom,
    .mobile-nav {
        width: min(100% - 24px, 1200px);
    }

    .logo-text {
        font-size: 18px;
    }

    .hero-carousel {
        height: 520px;
        border-radius: 18px;
    }

    .hero-nav {
        opacity: 1;
    }

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

    .section-head {
        display: block;
    }

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

    .rank-chip {
        display: none;
    }
}
