:root {
    color-scheme: light;
    --bg: #f8fbff;
    --bg-soft: #eef9ff;
    --text: #172033;
    --muted: #5d6b82;
    --line: #dbe8f3;
    --brand: #2563eb;
    --brand-2: #06b6d4;
    --brand-3: #14b8a6;
    --card: #ffffff;
    --shadow: 0 22px 70px rgba(37, 99, 235, 0.15);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 10%, rgba(6, 182, 212, 0.15), transparent 30%),
        radial-gradient(circle at 85% 20%, rgba(20, 184, 166, 0.12), transparent 28%),
        var(--bg);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(110deg, #2563eb 0%, #0891b2 52%, #0f766e 100%);
    box-shadow: 0 14px 36px rgba(15, 118, 110, 0.22);
}

.site-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 76px;
}

.site-header__wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 12px;
    opacity: 0.25;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
}

.site-logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.site-logo::before {
    content: "▶";
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 15px;
    background: rgba(255,255,255,0.18);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}

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

.site-nav a,
.mobile-panel a {
    font-weight: 700;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    opacity: 1;
    transform: translateY(-1px);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22);
}

.header-search input {
    width: 190px;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 8px 10px;
}

.header-search input::placeholder {
    color: rgba(255,255,255,0.78);
}

.header-search button,
.big-search button {
    border: 0;
    border-radius: 999px;
    color: #0f172a;
    background: #ffffff;
    padding: 8px 16px;
    font-weight: 800;
    cursor: pointer;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(255,255,255,0.16);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    padding: 0 0 18px;
}

.mobile-panel__links {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-panel__links a {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.14);
}

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

.hero__slides {
    min-height: 620px;
}

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

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

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

.hero-slide__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.68) 43%, rgba(15,23,42,0.26) 100%),
        linear-gradient(0deg, rgba(15,23,42,0.92) 0%, transparent 46%);
}

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

.hero-slide__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 620px;
    max-width: 740px;
}

.eyebrow {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #0e7490;
    background: rgba(236, 254, 255, 0.9);
    font-weight: 900;
    font-size: 14px;
}

.hero-slide h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-slide p,
.page-hero p,
.detail-info p {
    max-width: 720px;
    margin: 24px 0 0;
    color: rgba(255,255,255,0.86);
    font-size: 18px;
    line-height: 1.8;
}

.hero-slide__tags,
.detail-tags,
.movie-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-slide__tags {
    margin-top: 22px;
}

.hero-slide__tags span,
.detail-tags span,
.movie-card__tags span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    color: #075985;
    background: #e0f2fe;
    font-size: 12px;
    font-weight: 800;
}

.hero-slide__actions,
.page-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.32);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255,255,255,0.14);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28);
}

.hero__dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 34px;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero__dots button {
    width: 13px;
    height: 13px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
}

.hero__dots button.is-active {
    width: 38px;
    background: #ffffff;
}

.section {
    padding: 74px 0;
}

.section-soft {
    background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(236, 254, 255, 0.55));
}

.section-searchbar {
    padding: 34px 0;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
    gap: 24px;
    align-items: center;
    margin-top: -80px;
    position: relative;
    z-index: 6;
    padding: 28px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-panel h2,
.section-heading h2,
.article-card h2,
.side-card h2 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.03em;
}

.search-panel p,
.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
}

.big-search {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 999px;
    background: #eef9ff;
    box-shadow: inset 0 0 0 1px #cfeefb;
}

.big-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 12px 16px;
    color: var(--text);
    background: transparent;
}

.big-search button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.section-heading > a {
    margin-left: auto;
    color: var(--brand);
    font-weight: 900;
}

.section-heading.compact {
    margin-bottom: 20px;
}

.section-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 14px 30px rgba(37,99,235,0.24);
    font-weight: 900;
}

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 22px;
    background: var(--card);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 52px rgba(37,99,235,0.16);
}

.movie-card__image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

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

.movie-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
}

.movie-card strong {
    display: block;
    font-size: 18px;
    line-height: 1.3;
}

.movie-card small,
.movie-card__desc {
    color: var(--muted);
    line-height: 1.6;
}

.movie-card__desc {
    font-size: 14px;
}

.movie-card--wide {
    display: grid;
    grid-template-columns: 44% 1fr;
}

.movie-card--wide .movie-card__image {
    aspect-ratio: auto;
    min-height: 260px;
}

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

.quick-category,
.category-card {
    border-radius: 24px;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 12px 34px rgba(15,23,42,0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-category {
    display: block;
    padding: 24px;
}

.quick-category:hover,
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(37,99,235,0.13);
}

.quick-category span,
.category-card strong {
    display: block;
    font-size: 22px;
    font-weight: 900;
}

.quick-category small,
.category-card p {
    display: block;
    margin-top: 9px;
    color: var(--muted);
    line-height: 1.7;
}

.home-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
    align-items: start;
}

.ranking-panel,
.ranking-board,
.article-card,
.side-card {
    border-radius: 26px;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 14px 42px rgba(15,23,42,0.08);
}

.ranking-panel {
    position: sticky;
    top: 98px;
    padding: 22px;
}

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

.ranking-board {
    padding: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ranking-item {
    display: grid;
    grid-template-columns: 44px 68px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #f8fbff;
    transition: transform 0.2s ease, background 0.2s ease;
}

.ranking-item:hover {
    transform: translateX(3px);
    background: #eff6ff;
}

.ranking-item__num {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 13px;
    color: var(--brand);
    background: #dbeafe;
    font-weight: 900;
}

.ranking-item.top .ranking-item__num {
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.ranking-item__cover {
    display: block;
    overflow: hidden;
    height: 48px;
    border-radius: 14px;
    background: #dbeafe;
}

.ranking-item__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-item strong,
.ranking-item small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-item small {
    margin-top: 4px;
    color: var(--muted);
}

.page-hero {
    padding: 98px 0 70px;
    color: #ffffff;
    background:
        linear-gradient(110deg, rgba(37,99,235,0.94), rgba(8,145,178,0.9), rgba(15,118,110,0.92)),
        radial-gradient(circle at top right, rgba(255,255,255,0.25), transparent 34%);
}

.page-hero p {
    color: rgba(255,255,255,0.86);
}

.category-card {
    overflow: hidden;
}

.category-card__main {
    display: block;
    padding: 24px;
    background: linear-gradient(135deg, rgba(239,246,255,0.96), rgba(236,254,255,0.96));
}

.category-card__main span {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 7px 10px;
    border-radius: 999px;
    color: #0369a1;
    background: #e0f2fe;
    font-weight: 900;
    font-size: 12px;
}

.category-card__links {
    display: grid;
    gap: 8px;
    padding: 18px 24px 24px;
}

.category-card__links a {
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 12px 34px rgba(15,23,42,0.07);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    outline: 0;
    padding: 13px 14px;
    color: var(--text);
    background: #ffffff;
}

.filter-bar select {
    max-width: 220px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 34px;
}

.pagination a,
.pagination span {
    min-width: 40px;
    padding: 10px 14px;
    border-radius: 14px;
    text-align: center;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15,23,42,0.07);
    font-weight: 900;
}

.pagination .is-current {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.detail-hero {
    color: #ffffff;
    background:
        linear-gradient(110deg, rgba(15,23,42,0.96), rgba(8,47,73,0.9)),
        radial-gradient(circle at top right, rgba(6,182,212,0.32), transparent 35%);
}

.detail-hero__inner {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 70px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
    background: #0f172a;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255,255,255,0.72);
}

.breadcrumb a:hover {
    color: #ffffff;
}

.detail-tags {
    margin: 22px 0;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 28px;
}

.detail-meta span {
    padding: 9px 12px;
    border-radius: 14px;
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.12);
}

.player-section {
    padding-top: 44px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 26px 72px rgba(2,6,23,0.28);
    aspect-ratio: 16 / 9;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2,6,23,0.22), rgba(2,6,23,0.62));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-overlay__icon {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 18px 44px rgba(37,99,235,0.34);
    font-size: 32px;
}

.play-overlay span:last-child {
    font-size: 22px;
    font-weight: 900;
}

.player-message {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    color: #ffffff;
    text-align: center;
    pointer-events: none;
}

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

.article-card,
.side-card {
    padding: 28px;
}

.article-card h2 + p {
    margin-top: 12px;
}

.article-card p {
    color: var(--muted);
    line-height: 2;
    font-size: 17px;
}

.article-card h2:not(:first-child) {
    margin-top: 30px;
}

.side-card {
    position: sticky;
    top: 98px;
}

.side-card dl {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    margin: 18px 0 0;
}

.side-card dt {
    color: var(--muted);
}

.side-card dd {
    margin: 0;
    font-weight: 800;
}

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

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    padding: 34px 0;
}

.site-footer strong {
    color: #ffffff;
    font-size: 20px;
}

.site-footer p {
    margin: 8px 0 0;
}

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

.is-hidden-card {
    display: none !important;
}

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

    .nav-toggle {
        display: block;
    }

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

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

    .home-columns,
    .content-layout,
    .detail-hero__inner,
    .search-panel {
        grid-template-columns: 1fr;
    }

    .ranking-panel,
    .side-card {
        position: static;
    }
}

@media (max-width: 780px) {
    .hero,
    .hero__slides,
    .hero-slide__content {
        min-height: 560px;
    }

    .movie-grid,
    .movie-grid--compact,
    .quick-category-grid,
    .category-overview,
    .ranking-board,
    .podium-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section {
        padding: 52px 0;
    }

    .filter-bar,
    .big-search,
    .site-footer__inner {
        flex-direction: column;
    }

    .filter-bar select {
        max-width: none;
    }

    .movie-card--wide {
        grid-template-columns: 1fr;
    }
}

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

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

    .hero-slide h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 36px;
    }

    .hero-slide p,
    .page-hero p,
    .detail-info p {
        font-size: 16px;
    }

    .movie-grid,
    .movie-grid--compact,
    .quick-category-grid,
    .category-overview,
    .ranking-board,
    .podium-grid {
        grid-template-columns: 1fr;
    }

    .detail-hero__inner {
        padding: 44px 0;
    }

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