:root {
    --sky: #0ea5e9;
    --blue: #2563eb;
    --deep: #0f172a;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #f8fafc;
    --line: #e5e7eb;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 18px;
}

* {
    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(--ink);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 58%, #f1f5f9 100%);
    line-height: 1.65;
}

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

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

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(90deg, var(--sky), var(--blue));
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

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

.brand-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--blue);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
}

.brand-name {
    font-size: 22px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.desktop-nav a,
.mobile-nav a {
    padding: 10px 14px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    transition: background 0.25s ease, color 0.25s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.big-search input {
    min-width: 220px;
    border: 0;
    outline: 0;
    border-radius: 999px;
    padding: 11px 16px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.94);
}

.header-search button,
.mobile-search button,
.big-search button {
    border: 0;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.28);
    border-radius: 999px;
    padding: 11px 18px;
    cursor: pointer;
    font-weight: 700;
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

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

.mobile-nav.is-open {
    display: grid;
    gap: 8px;
}

.hero {
    position: relative;
    height: min(620px, 80vh);
    min-height: 430px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 30%, rgba(14, 165, 233, 0.26), transparent 32%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.68) 46%, rgba(2, 6, 23, 0.32) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding-bottom: 72px;
}

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

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #0ea5e9;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-kicker {
    color: #bae6fd;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero p {
    max-width: 680px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

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

.hero-tags span,
.tag-row span,
.detail-tags span {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #0369a1;
    background: #e0f2fe;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

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

.primary-button,
.ghost-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--sky), var(--blue));
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.primary-button.small {
    min-height: 40px;
    padding: 0 18px;
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.ghost-button.light {
    color: var(--blue);
    border-color: #bfdbfe;
    background: #eff6ff;
}

.hero-control {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(8px);
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
}

.hero-control.prev {
    left: 22px;
}

.hero-control.next {
    right: 22px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 26px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

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

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

.quick-panel {
    margin-top: -34px;
    position: relative;
    z-index: 3;
}

.quick-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
}

.quick-card,
.story-card,
.channel-block {
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.quick-card {
    padding: 26px;
}

.quick-card h2 {
    margin: 0 0 18px;
    font-size: 24px;
}

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

.big-search input {
    flex: 1;
    border: 1px solid var(--line);
    background: #ffffff;
}

.big-search button {
    background: linear-gradient(90deg, var(--sky), var(--blue));
}

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

.channel-chips a,
.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: #0369a1;
    background: #e0f2fe;
    font-weight: 700;
    font-size: 13px;
}

.main-layout,
.page-stack {
    padding: 44px 0 70px;
}

.content-section {
    margin-bottom: 56px;
}

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

.section-heading.compact {
    align-items: center;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.2;
}

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

.section-more {
    color: var(--blue);
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

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

.movie-grid.mini {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 8px 22px 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 18px 42px rgba(15, 23, 42, 0.16);
}

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

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

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

.card-cover::after,
.ranking-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.74));
    opacity: 0.76;
}

.card-year,
.card-region,
.card-play {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(8px);
}

.card-year {
    top: 10px;
    right: 10px;
    padding: 3px 9px;
    font-size: 12px;
    font-weight: 800;
}

.card-region {
    left: 10px;
    bottom: 10px;
    padding: 3px 9px;
    font-size: 12px;
}

.card-play {
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    font-size: 20px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
    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: 14px;
}

.card-body h3 {
    margin: 0 0 7px;
    font-size: 16px;
    line-height: 1.35;
}

.card-body h3 a:hover,
.ranking-info h2 a:hover {
    color: var(--blue);
}

.card-body p {
    min-height: 46px;
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta,
.ranking-meta,
.page-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.card-meta {
    justify-content: space-between;
    margin-bottom: 10px;
}

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

.category-tile {
    padding: 20px;
    border-radius: 20px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky), var(--blue));
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.2);
    transition: transform 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
}

.category-tile span,
.category-tile strong,
.category-tile small {
    display: block;
}

.category-tile span {
    font-size: 18px;
    font-weight: 800;
}

.category-tile strong {
    margin: 10px 0 6px;
    font-size: 28px;
}

.category-tile small {
    color: rgba(255, 255, 255, 0.82);
}

.split-section {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    gap: 28px;
}

.split-section .content-section {
    margin: 0;
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
}

.rank-num {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky), var(--blue));
    font-weight: 800;
}

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

.rank-score {
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
}

.page-hero,
.detail-hero {
    color: #ffffff;
    background:
        radial-gradient(circle at 78% 18%, rgba(186, 230, 253, 0.34), transparent 30%),
        linear-gradient(135deg, var(--sky), var(--blue));
}

.page-hero {
    padding: 66px 0;
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 6vw, 54px);
    line-height: 1.1;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.page-hero .eyebrow {
    color: #e0f2fe;
}

.page-stats {
    margin-top: 20px;
}

.page-stats span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.channel-block {
    padding: 24px;
    margin-bottom: 28px;
}

.channel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.channel-head h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.channel-head p {
    margin: 0;
    color: var(--muted);
}

.ranking-list {
    display: grid;
    gap: 16px;
    padding: 44px 0 70px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 126px 1fr;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.ranking-cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 16px;
    background: #e0f2fe;
}

.ranking-cover span {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--sky), var(--blue));
    font-weight: 900;
}

.ranking-info h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.ranking-info p {
    margin: 0 0 14px;
    color: var(--muted);
}

.ranking-meta strong {
    color: var(--blue);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.filter-bar select {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    background: #ffffff;
}

.detail-hero {
    padding: 46px 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 34px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 24px;
    background: #e0f2fe;
    box-shadow: var(--shadow);
}

.detail-info h1 {
    margin: 0 0 14px;
    font-size: clamp(36px, 6vw, 62px);
    line-height: 1.05;
}

.detail-one-line {
    max-width: 780px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

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

.detail-meta div {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
}

.detail-meta dt {
    color: rgba(255, 255, 255, 0.74);
    font-size: 12px;
}

.detail-meta dd {
    margin: 4px 0 0;
    font-weight: 800;
}

.player-section {
    padding: 42px 0 0;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #020617;
    box-shadow: var(--shadow);
}

.player-box video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.24), rgba(2, 6, 23, 0.62));
    cursor: pointer;
}

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

.player-overlay span {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--blue);
    background: #ffffff;
    font-size: 30px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.22);
}

.player-overlay strong {
    font-size: 20px;
}

.detail-content {
    padding: 34px 0 70px;
}

.story-card {
    padding: 26px;
    margin-bottom: 24px;
}

.story-card h2 {
    margin: 0 0 12px;
    font-size: 26px;
}

.story-card p {
    margin: 0;
    color: #374151;
    font-size: 17px;
}

.related-section {
    margin-top: 34px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 28px;
    padding: 42px 0;
}

.footer-brand {
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 18px;
}

.site-footer p {
    margin: 0;
    color: #94a3b8;
}

.footer-links a {
    color: #bfdbfe;
    background: rgba(14, 165, 233, 0.14);
}

.sitemap-section {
    padding: 44px 0 70px;
}

.sitemap-section h2 {
    margin-top: 34px;
}

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

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

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

.sitemap-list a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: #075985;
    background: #e0f2fe;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .movie-grid,
    .movie-grid.mini {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .split-section {
        grid-template-columns: 1fr;
    }

    .split-section .movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

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

    .header-inner {
        min-height: 66px;
    }

    .hero {
        min-height: 520px;
    }

    .hero-content {
        align-items: center;
        padding: 70px 0 58px;
    }

    .hero-control {
        display: none;
    }

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

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

    .ranking-item {
        grid-template-columns: 96px 1fr;
    }

    .compact-list,
    .movie-link-list {
        grid-template-columns: 1fr;
    }
}

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

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

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

    .category-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .big-search {
        flex-direction: column;
    }

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

    .page-hero,
    .detail-hero {
        padding: 42px 0;
    }

    .card-body {
        padding: 12px;
    }
}
