:root {
    color-scheme: light;
    --sky: #0284c7;
    --sky-dark: #075985;
    --blue: #2563eb;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --white: #ffffff;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 12px 28px rgba(2, 132, 199, 0.12);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--slate-800);
    background: linear-gradient(180deg, var(--slate-50), var(--white));
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--sky), var(--blue));
    color: var(--white);
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.25);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 70px;
}

.brand,
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.brand-text,
.footer-brand div {
    display: grid;
    line-height: 1.2;
}

.brand strong,
.footer-brand strong {
    font-size: 20px;
    letter-spacing: 0.04em;
}

.brand small,
.footer-brand small {
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
}

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

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

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.header-search input,
.mobile-search input {
    width: 210px;
    border: 0;
    outline: 0;
    color: var(--white);
    background: transparent;
    padding: 9px 12px;
}

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

.header-search button,
.mobile-search button {
    border: 0;
    border-radius: 999px;
    background: var(--white);
    color: var(--sky-dark);
    padding: 8px 14px;
    font-weight: 700;
}

.mobile-menu-button {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
}

.mobile-menu {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

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

.mobile-menu nav,
.mobile-category-line {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

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

.mobile-category-line a {
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: var(--slate-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.65fr);
    gap: 48px;
    align-items: center;
    padding: 90px max(24px, calc((100vw - 1180px) / 2)) 110px;
    background-size: cover;
    background-position: center;
    color: var(--white);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero::before,
.page-hero::before,
.detail-hero::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    filter: blur(40px);
    top: 60px;
    right: 10%;
}

.hero-copy {
    position: relative;
    max-width: 730px;
    z-index: 2;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #bae6fd;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.detail-title-block h1,
.page-hero h1 {
    margin: 16px 0;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy p,
.detail-title-block p,
.page-hero p {
    max-width: 760px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 24px);
    line-height: 1.7;
}

.hero-tags,
.tag-row,
.detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.tag-row span,
.detail-meta-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.12);
    color: #0369a1;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span,
.detail-meta-row span {
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
    backdrop-filter: blur(6px);
}

.hero-actions,
.cta-block div {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.primary-button,
.ghost-button,
.category-enter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 13px 22px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    background: var(--white);
    color: var(--sky-dark);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.18);
}

.primary-button:hover,
.ghost-button:hover,
.category-enter:hover {
    transform: translateY(-2px) scale(1.01);
}

.ghost-button {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.ghost-button.dark {
    color: var(--sky-dark);
    border-color: rgba(2, 132, 199, 0.24);
    background: rgba(255, 255, 255, 0.7);
}

.primary-button.full {
    width: 100%;
}

.hero-poster {
    position: relative;
    display: block;
    height: min(470px, 58vw);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 35px 90px rgba(2, 6, 23, 0.45);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.38), rgba(37, 99, 235, 0.34));
}

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

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

.hero-dot {
    width: 32px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
}

.hero-dot.active {
    background: var(--white);
}

.section-block {
    padding: 70px 0;
}

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

.section-heading h2 {
    margin: 7px 0 0;
    color: var(--slate-800);
    font-size: clamp(28px, 3vw, 42px);
    letter-spacing: -0.03em;
}

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

.light-heading h2,
.light-heading a {
    color: var(--white);
}

.small-heading h2 {
    font-size: 28px;
}

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

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

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

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
}

.movie-card-featured:first-child {
    grid-column: span 2;
}

.movie-card-featured:first-child .movie-cover {
    aspect-ratio: 16 / 10;
}

.movie-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    border-radius: 999px;
    padding: 7px 12px;
    color: var(--white);
    background: rgba(2, 132, 199, 0.88);
    font-size: 12px;
    font-weight: 800;
}

.movie-info {
    padding: 18px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--slate-500);
    font-size: 13px;
}

.movie-info h2 {
    margin: 10px 0 8px;
    color: var(--slate-900);
    font-size: 20px;
    line-height: 1.35;
}

.movie-info p {
    display: -webkit-box;
    min-height: 52px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin: 0 0 14px;
    color: var(--slate-600);
    line-height: 1.7;
}

.category-band {
    padding: 70px 0;
    color: var(--white);
    background: linear-gradient(135deg, var(--sky), var(--blue));
    box-shadow: inset 0 28px 70px rgba(255, 255, 255, 0.12);
}

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

.category-card,
.category-overview-card,
.home-panel,
.detail-content-card,
.side-card,
.filter-bar,
.search-box,
.ranking-card,
.cta-block,
.sitemap-list {
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.category-card {
    display: grid;
    gap: 10px;
    min-height: 155px;
    padding: 24px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
}

.category-card span,
.category-overview-title {
    font-size: 22px;
    font-weight: 900;
}

.category-card strong {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    line-height: 1.7;
}

.home-columns {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 28px;
}

.home-panel {
    padding: 28px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: var(--slate-50);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover,
.compact-card:hover,
.ranking-card:hover {
    background: #e0f2fe;
    transform: translateY(-2px);
}

.rank-number,
.ranking-number {
    color: var(--sky-dark);
    font-weight: 900;
}

.rank-title {
    font-weight: 800;
}

.rank-meta {
    color: var(--slate-500);
    font-size: 13px;
}

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

.compact-grid.single-column {
    grid-template-columns: 1fr;
}

.compact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    background: var(--slate-50);
    transition: background 0.2s ease, transform 0.2s ease;
}

.compact-cover {
    width: 54px;
    height: 72px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    background-size: cover;
    background-position: center;
}

.compact-text {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.compact-text strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-text small {
    color: var(--slate-500);
}

.cta-block {
    margin-bottom: 70px;
    padding: 50px;
    text-align: center;
    background: linear-gradient(135deg, #f0f9ff, #eff6ff);
}

.cta-block h2 {
    margin: 0 0 12px;
    font-size: clamp(32px, 5vw, 52px);
}

.cta-block p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--slate-600);
    font-size: 18px;
    line-height: 1.8;
}

.cta-block div {
    justify-content: center;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0;
    color: var(--white);
    background: linear-gradient(120deg, var(--sky), var(--blue));
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.breadcrumb a::after {
    content: "/";
    margin-left: 10px;
    opacity: 0.55;
}

.breadcrumb.inverted {
    color: rgba(255, 255, 255, 0.82);
}

.category-overview-card {
    display: grid;
    gap: 16px;
    padding: 24px;
}

.category-overview-card p {
    margin: 0;
    color: var(--slate-600);
    line-height: 1.7;
}

.category-samples {
    display: grid;
    gap: 8px;
    color: var(--slate-700);
}

.category-enter {
    justify-self: start;
    color: var(--white);
    background: var(--sky);
}

.filter-bar,
.search-box {
    display: grid;
    grid-template-columns: 1fr 220px 220px;
    gap: 18px;
    align-items: end;
    margin-bottom: 26px;
    padding: 22px;
}

.filter-bar label {
    display: grid;
    gap: 8px;
    color: var(--slate-600);
    font-size: 14px;
    font-weight: 700;
}

.filter-bar input,
.filter-bar select,
.search-box input {
    width: 100%;
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    outline: 0;
    padding: 13px 15px;
    color: var(--slate-800);
    background: var(--slate-50);
}

.search-layout {
    max-width: 1120px;
}

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

.search-box button {
    border: 0;
    border-radius: 16px;
    padding: 13px 22px;
    color: var(--white);
    background: var(--sky);
    font-weight: 800;
}

.search-status {
    min-height: 28px;
    margin-bottom: 18px;
    color: var(--slate-600);
    font-weight: 700;
}

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

.ranking-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-cover {
    width: 92px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
}

.ranking-info h2 {
    margin: 5px 0 6px;
    font-size: 22px;
}

.ranking-info p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin: 0 0 10px;
    color: var(--slate-600);
    line-height: 1.6;
}

.detail-hero {
    min-height: 420px;
    background-size: cover;
    background-position: center;
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
}

.detail-title-block {
    max-width: 860px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    padding: 56px 0 70px;
}

.detail-main,
.detail-sidebar {
    display: grid;
    gap: 24px;
    align-content: start;
}

.player-panel {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--slate-950);
    box-shadow: var(--shadow);
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.movie-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.58));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34), 0 22px 50px rgba(0, 0, 0, 0.32);
    font-size: 34px;
}

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

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

.detail-content-card h2,
.side-card h2 {
    margin: 0 0 14px;
    color: var(--slate-900);
    font-size: 24px;
}

.detail-content-card p,
.side-card p {
    margin: 0 0 24px;
    color: var(--slate-600);
    font-size: 17px;
    line-height: 1.9;
}

.detail-tags {
    margin-top: 8px;
}

.poster-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    object-fit: cover;
    margin-bottom: 18px;
}

.prev-next {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.prev-next a {
    display: grid;
    gap: 5px;
    border-radius: var(--radius-lg);
    padding: 18px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.prev-next span {
    color: var(--slate-500);
    font-size: 13px;
}

.prev-next strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sitemap-list {
    padding: 28px;
}

.sitemap-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.sitemap-groups a {
    border-radius: 999px;
    padding: 10px 14px;
    color: var(--white);
    background: var(--sky);
    font-weight: 800;
}

.sitemap-list ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sitemap-list li {
    display: grid;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid var(--slate-200);
}

.sitemap-list span {
    color: var(--slate-500);
    font-size: 13px;
}

.site-footer {
    color: var(--white);
    background: linear-gradient(180deg, var(--slate-800), var(--slate-950));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
    padding: 54px 0;
}

.footer-grid h2 {
    margin: 0 0 16px;
    color: #7dd3fc;
    font-size: 18px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.8;
}

.footer-grid ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 0 24px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

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

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

    .hero-slide {
        grid-template-columns: 1fr;
        min-height: 720px;
    }

    .hero-poster {
        max-width: 420px;
        height: 420px;
    }

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

    .movie-card-featured:first-child {
        grid-column: span 1;
    }

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

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

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

    .brand small,
    .brand-text small {
        display: none;
    }

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

    .hero {
        min-height: 760px;
    }

    .hero-slide {
        padding: 52px 18px 95px;
    }

    .hero-copy h1,
    .detail-title-block h1,
    .page-hero h1 {
        font-size: 38px;
    }

    .hero-poster {
        width: 100%;
        height: 360px;
    }

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

    .movie-grid,
    .featured-grid,
    .category-grid,
    .category-overview-grid,
    .compact-grid,
    .sitemap-list ul,
    .prev-next {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 42px 1fr;
    }

    .rank-meta {
        grid-column: 2;
    }

    .search-box {
        grid-template-columns: 1fr;
    }

    .ranking-card {
        grid-template-columns: 72px 1fr;
    }

    .ranking-cover {
        width: 72px;
    }

    .detail-layout {
        padding-top: 28px;
    }

    .detail-content-card,
    .side-card,
    .home-panel,
    .cta-block,
    .sitemap-list {
        padding: 22px;
    }
}
