:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #ecfeff;
    --text: #111827;
    --muted: #64748b;
    --line: #e5e7eb;
    --dark: #020617;
    --dark-soft: #0f172a;
    --cyan: #06b6d4;
    --cyan-deep: #0891b2;
    --teal: #14b8a6;
    --teal-deep: #0f766e;
    --amber: #f59e0b;
    --radius: 18px;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #f8fafc 0%, #ecfeff 48%, #f8fafc 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.96);
    border-bottom: 1px solid rgba(34, 211, 238, 0.18);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.22);
    backdrop-filter: blur(14px);
}

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

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

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--teal));
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(20, 184, 166, 0.32);
}

.brand-name,
.footer-brand span:last-child {
    font-size: 20px;
    background: linear-gradient(90deg, #67e8f9, #5eead4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 15px;
    white-space: nowrap;
}

.desktop-nav a,
.mobile-nav a {
    color: rgba(255, 255, 255, 0.86);
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover {
    color: #67e8f9;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(103, 232, 249, 0.26);
    border-radius: 12px;
    cursor: pointer;
}

.mobile-nav {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 0 18px;
    display: grid;
    gap: 10px;
}

.mobile-nav[hidden] {
    display: none;
}

.hero-slider {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    color: #ffffff;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.8s ease, transform 1.2s ease;
    pointer-events: none;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.58), rgba(2, 6, 23, 0.22));
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 84px 0 120px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 14px;
    color: #cffafe;
    background: rgba(8, 145, 178, 0.35);
    border: 1px solid rgba(103, 232, 249, 0.35);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(17px, 2vw, 22px);
}

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

.btn-primary,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    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-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--cyan), var(--teal));
    box-shadow: 0 16px 32px rgba(20, 184, 166, 0.28);
}

.btn-secondary {
    color: #cffafe;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.btn-ghost {
    color: var(--cyan-deep);
    background: #ecfeff;
    border: 1px solid #bae6fd;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
}

.hero-control:hover {
    background: rgba(2, 6, 23, 0.78);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

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

main {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.section {
    padding: 70px 0 0;
}

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

.section-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--cyan-deep);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.section-head h1,
.section-head h2,
.page-title h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

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

.feature-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: -42px;
    position: relative;
    z-index: 8;
}

.feature-box {
    padding: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.95), rgba(20, 184, 166, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.feature-box strong {
    display: block;
    margin-bottom: 6px;
    font-size: 22px;
}

.feature-box span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

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

.movie-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    border-color: rgba(6, 182, 212, 0.42);
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.16);
    transform: translateY(-7px);
}

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

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

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

.card-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.card-type {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 4px 9px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.72);
    border-radius: 999px;
    font-size: 12px;
    backdrop-filter: blur(8px);
}

.card-play {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--teal));
    border-radius: 999px;
    box-shadow: 0 20px 36px rgba(6, 182, 212, 0.3);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.78);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
    padding: 18px;
}

.card-body h2,
.card-body h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.card-body h2 a:hover,
.card-body h3 a:hover {
    color: var(--cyan-deep);
}

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

.card-desc {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #475569;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-row span,
.tag-chip {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 9px;
    color: var(--cyan-deep);
    background: #ecfeff;
    border: 1px solid #cffafe;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

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

.category-card {
    min-height: 190px;
    padding: 26px;
    color: #ffffff;
    background: radial-gradient(circle at top right, rgba(103, 232, 249, 0.36), transparent 40%), linear-gradient(135deg, #0f172a, #0e7490 58%, #0f766e);
    border: 1px solid rgba(103, 232, 249, 0.16);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
    transform: translateY(-6px);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 12px;
    font-size: 24px;
}

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

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.5fr);
    gap: 26px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 50px 92px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
    border-color: rgba(6, 182, 212, 0.4);
    transform: translateX(4px);
}

.rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--teal));
    border-radius: 12px;
    font-weight: 900;
}

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

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

.rank-info em,
.mini-card em {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.page-hero {
    width: 100%;
    margin: 0;
    color: #ffffff;
    background: radial-gradient(circle at top right, rgba(34, 211, 238, 0.35), transparent 34%), linear-gradient(135deg, #020617, #0f172a 52%, #0f766e);
}

.page-title {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0 76px;
}

.page-title h1 {
    color: #ffffff;
}

.page-title p {
    color: rgba(255, 255, 255, 0.76);
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 13px;
    outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.empty-state {
    display: none;
    padding: 48px 20px;
    color: var(--muted);
    text-align: center;
    background: #ffffff;
    border-radius: var(--radius);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px 0 18px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--cyan-deep);
}

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

.player-panel,
.detail-card,
.related-panel {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.player-panel {
    overflow: hidden;
}

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

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 4;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    color: #ffffff;
    background: #020617;
    border: 0;
    cursor: pointer;
}

.player-cover.is-hidden,
.player-cover[hidden] {
    display: none;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
}

.big-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--teal));
    border-radius: 999px;
    box-shadow: 0 22px 48px rgba(6, 182, 212, 0.36);
    font-size: 36px;
    transform: translate(-50%, -50%);
}

.player-caption {
    padding: 22px 24px;
    background: linear-gradient(135deg, #ffffff, #ecfeff);
}

.player-caption h1 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.18;
}

.player-caption p {
    margin: 0;
    color: var(--muted);
}

.detail-card {
    margin-top: 24px;
    padding: 28px;
}

.detail-card h2,
.related-panel h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-size: 24px;
}

.detail-card h2::before,
.related-panel h2::before {
    content: "";
    width: 5px;
    height: 26px;
    background: linear-gradient(180deg, var(--cyan), var(--teal));
    border-radius: 999px;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.detail-meta span {
    padding: 12px;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    font-size: 14px;
}

.detail-meta strong {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.detail-text {
    color: #334155;
    font-size: 16px;
}

.detail-text p {
    margin: 0 0 18px;
}

.related-panel {
    position: sticky;
    top: 92px;
    padding: 20px;
}

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

.mini-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.mini-card img {
    width: 112px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
}

.mini-card strong {
    display: -webkit-box;
    overflow: hidden;
    color: #1e293b;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mini-card:hover strong {
    color: var(--cyan-deep);
}

.pagination-note {
    margin-top: 28px;
    color: var(--muted);
    text-align: center;
}

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

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

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

    .related-panel {
        position: static;
    }
}

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

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

    .hero-slider {
        min-height: 74vh;
    }

    .hero-control {
        display: none;
    }

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

    .section-head {
        display: block;
    }

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

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

@media (max-width: 560px) {
    .header-inner,
    main,
    .page-title,
    .footer-inner,
    .hero-content {
        width: min(100% - 24px, 1240px);
    }

    .brand-name {
        max-width: 210px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        font-size: 17px;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: 38px;
    }

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

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

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

    .rank-item img {
        width: 78px;
        height: 52px;
    }

    .mini-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .mini-card img {
        width: 96px;
        height: 64px;
    }
}
