:root {
    --sky-50: #f0f9ff;
    --sky-100: #e0f2fe;
    --sky-200: #bae6fd;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --sky-700: #0369a1;
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 12px 30px rgba(14, 165, 233, 0.16);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--gray-800);
    background: linear-gradient(180deg, var(--sky-50), var(--white) 38%, var(--gray-50));
}

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

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

main {
    min-height: 70vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--sky-200);
    background: rgba(240, 249, 255, 0.93);
    backdrop-filter: blur(16px);
    box-shadow: 0 6px 24px rgba(14, 165, 233, 0.08);
}

.nav-wrap {
    max-width: 1200px;
    height: 72px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--white);
    font-weight: 800;
    background: linear-gradient(135deg, var(--sky-500), #2563eb);
    box-shadow: 0 10px 22px rgba(14, 165, 233, 0.28);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 21px;
    color: var(--gray-800);
    letter-spacing: 0.01em;
}

.brand-text small {
    margin-top: 3px;
    color: var(--gray-500);
    font-size: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a,
.mobile-menu a,
.section-more,
.filter-chip {
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a {
    padding: 9px 15px;
    color: var(--gray-700);
    font-weight: 700;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--sky-700);
    background: var(--sky-100);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: var(--gray-700);
    background: var(--sky-100);
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 18px;
}

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

.mobile-menu a {
    display: block;
    padding: 12px 14px;
    margin: 6px 0;
    color: var(--gray-700);
    background: rgba(255, 255, 255, 0.75);
}

.mobile-category-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
    margin-top: 8px;
}

.page-wrap,
.hero-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 34px 20px;
}

.hero-carousel {
    position: relative;
    height: 520px;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, #0f172a, #0369a1);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

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

.hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 132, 199, 0.48) 52%, rgba(2, 6, 23, 0.18));
}

.hero-content {
    position: absolute;
    left: 48px;
    bottom: 48px;
    max-width: 650px;
    color: var(--white);
}

.hero-kicker,
.detail-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 7px 14px;
    border-radius: 999px;
    color: var(--white);
    background: var(--sky-500);
    font-weight: 800;
    font-size: 14px;
}

.hero-content h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hero-content p {
    margin: 0 0 24px;
    color: #e5eef7;
    font-size: 18px;
    line-height: 1.8;
}

.hero-actions,
.hero-dots,
.search-actions,
.detail-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    color: var(--sky-700);
    background: var(--white);
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.18);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    background: var(--sky-50);
    box-shadow: 0 16px 32px rgba(2, 6, 23, 0.24);
}

.btn.secondary {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: none;
}

.hero-dots {
    position: absolute;
    right: 38px;
    bottom: 38px;
}

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

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

.search-panel {
    margin-top: -34px;
    position: relative;
    z-index: 2;
    padding: 20px;
    border: 1px solid rgba(186, 230, 253, 0.9);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--soft-shadow);
}

.search-panel form,
.search-tools {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
}

.search-panel input,
.search-box input,
.search-box select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--sky-200);
    border-radius: 999px;
    padding: 0 18px;
    outline: none;
    color: var(--gray-800);
    background: var(--white);
    font-size: 15px;
}

.search-panel input:focus,
.search-box input:focus,
.search-box select:focus {
    border-color: var(--sky-500);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.13);
}

.search-panel button,
.search-box button {
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    padding: 0 24px;
    color: var(--white);
    background: linear-gradient(135deg, var(--sky-500), #2563eb);
    font-weight: 900;
    cursor: pointer;
}

.quick-links,
.filter-row,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-links {
    margin-top: 14px;
}

.quick-links a,
.filter-chip,
.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--sky-100);
    color: var(--sky-700);
    font-weight: 800;
}

.quick-links a,
.filter-chip {
    padding: 8px 13px;
}

.filter-chip {
    border: 0;
    cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover,
.quick-links a:hover {
    color: var(--white);
    background: var(--sky-600);
    transform: translateY(-1px);
}

.content-section {
    margin-top: 58px;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(25px, 3vw, 34px);
    color: var(--gray-800);
}

.section-heading h2::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 30px;
    margin-right: 12px;
    border-radius: 999px;
    vertical-align: -5px;
    background: var(--sky-600);
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--gray-600);
    line-height: 1.7;
}

.section-more {
    padding: 10px 16px;
    color: var(--sky-700);
    background: var(--sky-100);
    font-weight: 900;
    white-space: nowrap;
}

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

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

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

.movie-card,
.category-card,
.info-card {
    overflow: hidden;
    border: 1px solid var(--gray-200);
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover,
.category-card:hover,
.info-card:hover {
    transform: translateY(-6px);
    border-color: var(--sky-200);
    box-shadow: 0 18px 40px rgba(14, 165, 233, 0.16);
}

.poster-link,
.category-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, var(--sky-100), var(--blue-100));
}

.movie-card.is-large .poster-link {
    aspect-ratio: 16 / 10;
}

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

.movie-card:hover img,
.category-card:hover img {
    transform: scale(1.06);
}

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(2, 132, 199, 0.92);
    font-size: 12px;
    font-weight: 900;
}

.card-body,
.category-card-body,
.info-card {
    padding: 18px;
}

.card-meta,
.detail-meta,
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 800;
}

.card-body h3,
.category-card h3 {
    margin: 10px 0 8px;
    color: var(--gray-900);
    line-height: 1.38;
    font-size: 18px;
}

.card-body p,
.category-card p,
.info-card p,
.detail-copy p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.75;
}

.card-body p {
    display: -webkit-box;
    min-height: 50px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    margin-top: 14px;
}

.tag-row span,
.detail-tags span {
    padding: 6px 10px;
    font-size: 12px;
}

.feature-band {
    padding: 30px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--sky-100), var(--blue-100));
    box-shadow: var(--soft-shadow);
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 42px 58px 1fr;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--gray-200);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-item:hover {
    transform: translateX(4px);
    border-color: var(--sky-300, #7dd3fc);
}

.ranking-no {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--sky-500), #2563eb);
    font-weight: 900;
}

.ranking-item img {
    width: 58px;
    height: 78px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--sky-100);
}

.ranking-info {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.ranking-info strong {
    color: var(--gray-900);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-info small {
    color: var(--gray-500);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-hero {
    padding: 70px 0 34px;
    background: radial-gradient(circle at 20% 0%, rgba(14, 165, 233, 0.2), transparent 34%), linear-gradient(180deg, var(--sky-50), transparent);
}

.page-hero h1 {
    max-width: 880px;
    margin: 0;
    color: var(--gray-900);
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--gray-600);
    font-size: 18px;
    line-height: 1.8;
}

.search-box {
    display: grid;
    gap: 14px;
    padding: 20px;
    margin-bottom: 28px;
    border-radius: 24px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
}

.search-box .search-tools {
    grid-template-columns: 1fr 180px auto;
}

.category-card-body h3 {
    margin: 0 0 9px;
    font-size: 22px;
}

.category-card-body .btn-line {
    display: inline-flex;
    margin-top: 18px;
    color: var(--sky-700);
    font-weight: 900;
}

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

.detail-panel,
.side-panel,
.player-shell {
    border-radius: 26px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.detail-panel {
    overflow: hidden;
}

.detail-hero {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 26px;
    padding: 26px;
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.95), rgba(255, 255, 255, 0.92));
}

.detail-poster {
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 2 / 3;
    background: var(--sky-100);
    box-shadow: var(--soft-shadow);
}

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

.detail-head h1 {
    margin: 0 0 16px;
    color: var(--gray-900);
    font-size: clamp(31px, 4vw, 48px);
    line-height: 1.12;
}

.detail-head .lead {
    margin: 18px 0;
    color: var(--gray-700);
    font-size: 18px;
    line-height: 1.8;
}

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

.player-shell {
    margin-top: 24px;
    padding: 18px;
}

.video-frame {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #020617;
    aspect-ratio: 16 / 9;
}

.video-frame video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.68));
    cursor: pointer;
    z-index: 3;
}

.play-overlay span {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--sky-500);
    box-shadow: 0 18px 36px rgba(14, 165, 233, 0.38);
    font-size: 32px;
}

.play-overlay strong {
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    font-size: 17px;
}

.play-overlay.is-hidden {
    display: none;
}

.detail-copy {
    padding: 28px;
}

.detail-copy h2,
.side-panel h2 {
    margin: 0 0 14px;
    color: var(--gray-900);
    font-size: 24px;
}

.detail-copy p + h2 {
    margin-top: 30px;
}

.side-panel {
    padding: 18px;
    position: sticky;
    top: 96px;
}

.side-panel .ranking-item {
    grid-template-columns: 34px 52px 1fr;
    padding: 10px;
}

.side-panel .ranking-no {
    width: 32px;
    height: 32px;
    border-radius: 11px;
}

.side-panel .ranking-item img {
    width: 52px;
    height: 70px;
}

.breadcrumb {
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--sky-700);
}

.no-results {
    display: none;
    padding: 28px;
    border-radius: 20px;
    text-align: center;
    color: var(--gray-600);
    background: var(--white);
    border: 1px solid var(--gray-200);
}

.site-footer {
    margin-top: 78px;
    border-top: 1px solid var(--gray-200);
    background: linear-gradient(180deg, var(--gray-50), var(--gray-100));
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 42px 20px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 34px;
}

.site-footer p {
    max-width: 620px;
    color: var(--gray-600);
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

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

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--sky-700);
    background: var(--sky-100);
    font-weight: 800;
    font-size: 14px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px 26px;
    color: var(--gray-500);
    font-size: 14px;
}

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

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

    .side-panel {
        position: static;
    }
}

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

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

    .hero-carousel {
        height: 560px;
        border-radius: 24px;
    }

    .hero-content {
        left: 24px;
        right: 24px;
        bottom: 32px;
    }

    .hero-dots {
        right: 24px;
        bottom: 22px;
    }

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

    .search-panel form,
    .search-box .search-tools {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 560px) {
    .nav-wrap {
        height: 66px;
        padding: 0 14px;
    }

    .brand-text strong {
        font-size: 18px;
    }

    .page-wrap,
    .hero-wrap {
        padding: 24px 14px;
    }

    .hero-carousel {
        height: 560px;
        border-radius: 20px;
    }

    .hero-mask {
        background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.88));
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-content p {
        font-size: 16px;
    }

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

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

    .detail-copy,
    .detail-hero {
        padding: 20px;
    }
}
