:root {
    --sky-50: #f0f9ff;
    --sky-100: #e0f2fe;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --blue-600: #2563eb;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-900: #0f172a;
    --white: #ffffff;
    --shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 12px 32px rgba(14, 165, 233, 0.14);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--slate-900);
    background:
        radial-gradient(circle at 15% 0%, rgba(14, 165, 233, 0.18), transparent 34rem),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 42%, #f8fafc 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(186, 230, 253, 0.8);
    background: linear-gradient(90deg, rgba(240, 249, 255, 0.94), rgba(239, 246, 255, 0.92));
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.nav-shell {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 72px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--white);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--sky-500), var(--blue-600));
    box-shadow: var(--soft-shadow);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-copy strong,
.footer-brand {
    font-size: 1.2rem;
    background: linear-gradient(90deg, var(--sky-600), var(--blue-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-copy small {
    margin-top: 4px;
    color: var(--slate-500);
    font-size: 0.78rem;
    font-weight: 500;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.desktop-nav a,
.mobile-panel a {
    color: var(--slate-700);
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-panel a:hover,
.mobile-panel a.is-active {
    color: var(--sky-600);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 300px;
    padding: 6px;
    border: 1px solid rgba(125, 211, 252, 0.65);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
}

.nav-search input,
.search-panel input,
.filter-bar input,
.filter-bar select,
.mobile-panel input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--slate-900);
    background: transparent;
}

.nav-search input {
    padding: 0 8px 0 12px;
    min-width: 0;
}

.nav-search button,
.search-panel button,
.mobile-panel button {
    flex: 0 0 auto;
    padding: 9px 16px;
    color: var(--white);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sky-500), var(--blue-600));
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    padding: 9px 12px;
    color: var(--slate-700);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
}

.mobile-panel {
    display: grid;
    gap: 10px;
    padding: 14px 16px 18px;
    border-top: 1px solid var(--sky-100);
    background: rgba(255, 255, 255, 0.96);
}

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

.mobile-panel a {
    padding: 10px 12px;
    border-radius: 12px;
}

.mobile-panel form {
    display: flex;
    gap: 8px;
    padding: 7px;
    border: 1px solid var(--sky-100);
    border-radius: 18px;
    background: var(--sky-50);
}

.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    background: linear-gradient(135deg, #e0f2fe, #eef2ff 55%, #ffffff);
}

.hero-slides {
    position: relative;
    min-height: 650px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.65s ease, visibility 0.65s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(18px) saturate(1.25);
    transform: scale(1.08);
    opacity: 0.36;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(240, 249, 255, 0.96), rgba(239, 246, 255, 0.78), rgba(15, 23, 42, 0.28)),
        radial-gradient(circle at 78% 26%, rgba(14, 165, 233, 0.22), transparent 26rem);
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: center;
    gap: 58px;
    padding: 76px 0 92px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 14px;
    color: var(--sky-600);
    border: 1px solid rgba(14, 165, 233, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    font-size: 0.92rem;
    font-weight: 800;
}

.hero-copy h1,
.hero-copy h2,
.inner-hero h1,
.detail-copy h1 {
    margin: 0;
    color: var(--slate-900);
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.hero-copy h1,
.hero-copy h2 {
    font-size: clamp(2.7rem, 7vw, 5.8rem);
}

.hero-copy p,
.inner-hero p,
.detail-lead {
    margin: 22px 0 0;
    color: var(--slate-700);
    font-size: 1.08rem;
}

.hero-copy p {
    max-width: 650px;
    font-size: 1.18rem;
}

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

.tag-row span {
    padding: 5px 9px;
    color: var(--sky-700, #0369a1);
    border-radius: 999px;
    background: rgba(224, 242, 254, 0.9);
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-tags,
.detail-tags {
    margin-top: 22px;
}

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

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

.btn:hover,
.movie-card:hover,
.category-card:hover {
    transform: translateY(-3px);
}

.btn.primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--sky-500), var(--blue-600));
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.22);
}

.btn.ghost {
    color: var(--sky-700, #0369a1);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(14, 165, 233, 0.25);
}

.btn.subtle {
    color: var(--slate-700);
    background: rgba(241, 245, 249, 0.86);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.74);
    border-radius: 36px;
    box-shadow: var(--shadow);
    aspect-ratio: 3 / 4.2;
    background: var(--slate-100);
}

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

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

.hero-dots button {
    width: 34px;
    height: 8px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.24);
}

.hero-dots button.is-active {
    width: 54px;
    background: linear-gradient(90deg, var(--sky-500), var(--blue-600));
}

.quick-search {
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    margin-top: -36px;
}

.search-panel,
.quick-links,
.filter-bar {
    padding: 18px;
    border: 1px solid rgba(186, 230, 253, 0.9);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--soft-shadow);
}

.search-panel label {
    display: block;
    margin-bottom: 10px;
    color: var(--slate-700);
    font-weight: 800;
}

.search-panel div {
    display: flex;
    gap: 10px;
}

.search-panel input {
    padding: 14px 16px;
    border-radius: 999px;
    background: var(--sky-50);
}

.quick-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-links a {
    white-space: nowrap;
    padding: 12px 15px;
    color: var(--slate-700);
    border-radius: 999px;
    background: var(--slate-100);
    font-weight: 800;
}

.page-section {
    margin-top: 72px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.section-heading div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-heading span:first-child {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--white);
    border-radius: 16px;
    background: linear-gradient(135deg, var(--sky-500), var(--blue-600));
    box-shadow: var(--soft-shadow);
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    letter-spacing: -0.03em;
}

.section-heading a {
    color: var(--sky-600);
    font-weight: 800;
}

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

.featured-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.compact-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

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

.movie-card:hover {
    box-shadow: 0 22px 48px rgba(14, 165, 233, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.15;
    overflow: hidden;
    background: var(--slate-100);
}

.poster-link img,
.rank-cover img,
.category-card img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    color: var(--white);
    border-radius: 999px;
    background: rgba(2, 132, 199, 0.92);
    font-size: 0.78rem;
    font-weight: 900;
}

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 7px 10px;
    backdrop-filter: blur(10px);
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 34px;
    padding: 7px 10px;
    text-align: center;
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--slate-500);
    font-size: 0.8rem;
    font-weight: 800;
}

.movie-card h3,
.rank-info h3 {
    margin: 9px 0 8px;
    font-size: 1.08rem;
    line-height: 1.35;
}

.movie-card p,
.rank-info p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3.1em;
    margin: 0 0 12px;
    color: var(--slate-500);
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 22px;
    border-radius: var(--radius-lg);
    color: var(--white);
    box-shadow: var(--shadow);
    isolation: isolate;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.78));
}

.category-card img {
    position: absolute;
    inset: 0;
    z-index: -2;
    filter: saturate(1.08);
}

.category-card span {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    font-weight: 900;
}

.category-card strong {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    font-size: 1.05rem;
    line-height: 1.45;
}

.large-category-grid .category-card {
    min-height: 260px;
}

.ranking-preview,
.ranking-list {
    display: grid;
    gap: 16px;
}

.rank-row {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr) 96px;
    align-items: center;
    gap: 18px;
    padding: 12px;
}

.rank-cover {
    position: relative;
    display: block;
    overflow: hidden;
    height: 150px;
    border-radius: 18px;
    background: var(--slate-100);
}

.rank-cover span {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 2;
    min-width: 32px;
    padding: 6px 9px;
    color: var(--white);
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    text-align: center;
    font-weight: 900;
}

.rank-score {
    display: grid;
    justify-items: center;
    gap: 2px;
    color: var(--slate-500);
}

.rank-score strong {
    color: var(--sky-600);
    font-size: 1.2rem;
}

.inner-hero,
.detail-hero {
    margin-top: 54px;
    padding: 48px;
    border: 1px solid rgba(186, 230, 253, 0.75);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 82% 0%, rgba(14, 165, 233, 0.18), transparent 24rem),
        rgba(255, 255, 255, 0.88);
    box-shadow: var(--soft-shadow);
}

.inner-hero h1,
.detail-copy h1 {
    font-size: clamp(2.25rem, 5vw, 4.8rem);
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 12px;
    margin-bottom: 26px;
}

.filter-bar input,
.filter-bar select {
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--sky-50);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    color: var(--slate-500);
    font-size: 0.92rem;
    font-weight: 700;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: center;
    gap: 44px;
}

.detail-poster {
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.88);
    border-radius: 32px;
    aspect-ratio: 3 / 4.15;
    background: var(--slate-100);
    box-shadow: var(--shadow);
}

.watch-section {
    scroll-margin-top: 88px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    gap: 10px;
    color: var(--white);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.54));
}

.play-overlay span {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sky-500), var(--blue-600));
    box-shadow: 0 18px 46px rgba(14, 165, 233, 0.35);
    font-size: 2rem;
}

.play-overlay strong {
    font-size: 1.05rem;
}

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

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.detail-content article {
    padding: 28px;
    border: 1px solid rgba(226, 232, 240, 0.86);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}

.detail-content h2 {
    margin: 0 0 14px;
    font-size: 1.35rem;
}

.detail-content p {
    margin: 0;
    color: var(--slate-700);
}

.site-footer {
    margin-top: 90px;
    border-top: 1px solid var(--slate-200);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.88), rgba(241, 245, 249, 0.96));
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) 1fr 1fr;
    gap: 32px;
    padding: 48px 0 34px;
}

.footer-grid p {
    max-width: 520px;
    color: var(--slate-500);
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: var(--slate-700);
    font-size: 1rem;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a {
    color: var(--slate-500);
}

.footer-links a:hover {
    color: var(--sky-600);
}

.footer-bottom {
    padding: 18px;
    color: var(--slate-500);
    border-top: 1px solid var(--slate-200);
    text-align: center;
    font-size: 0.9rem;
}

.standalone-search {
    max-width: 760px;
    margin-top: 28px;
}

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

    .menu-toggle {
        display: inline-flex;
    }

    .hero-content {
        grid-template-columns: 1fr 300px;
        gap: 28px;
    }
}

@media (max-width: 820px) {
    .hero-slider,
    .hero-slides {
        min-height: 760px;
    }

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

    .hero-poster,
    .detail-poster {
        width: min(320px, 82vw);
        margin: 0 auto;
    }

    .quick-links {
        overflow-x: auto;
    }

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

    .rank-score {
        grid-column: 2;
        justify-items: start;
    }

    .rank-cover {
        height: 124px;
    }

    .inner-hero,
    .detail-hero {
        padding: 28px;
    }

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

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

    .brand-copy small {
        display: none;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: clamp(2.25rem, 15vw, 3.6rem);
    }

    .hero-actions,
    .detail-actions,
    .channel-actions,
    .search-panel div {
        flex-direction: column;
    }

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

    .movie-card h3,
    .rank-info h3 {
        font-size: 0.98rem;
    }

    .card-body {
        padding: 12px;
    }

    .tag-row span {
        font-size: 0.72rem;
    }
}
