:root {
    --page-bg: #f8fafc;
    --paper: #ffffff;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --blue: #2563eb;
    --cyan: #06b6d4;
    --green: #10b981;
    --amber: #f59e0b;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f8fafc 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.header-inner {
    max-width: 1180px;
    min-height: 72px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    white-space: nowrap;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.25);
    font-size: 15px;
}

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

.nav-link {
    padding: 10px 13px;
    border-radius: 13px;
    color: #334155;
    font-size: 15px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue);
    background: #eff6ff;
}

.site-search {
    width: 270px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #ffffff;
}

.site-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 9px 8px 9px 14px;
    color: var(--ink);
    background: transparent;
}

.site-search button {
    border: 0;
    border-radius: 999px;
    padding: 9px 15px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    width: 42px;
    height: 42px;
    color: var(--ink);
    background: #f1f5f9;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    padding: 14px 22px 20px;
    background: #ffffff;
}

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

.mobile-panel nav {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.mobile-panel nav a {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
}

.mobile-search {
    width: 100%;
}

.hero-carousel {
    position: relative;
    min-height: 630px;
    overflow: hidden;
    background: linear-gradient(120deg, #1d4ed8, #0891b2, #0f766e);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 1.2s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-slide img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 72% 28%, rgba(6, 182, 212, 0.45), transparent 30%), linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(30, 64, 175, 0.68), rgba(15, 118, 110, 0.35));
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.16;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 25%, transparent 25%), linear-gradient(225deg, rgba(255, 255, 255, 0.18) 25%, transparent 25%);
    background-size: 46px 46px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: 110px 22px 170px;
    color: #ffffff;
}

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

.hero-copy h1 {
    margin: 0 0 24px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-copy h1 span {
    display: block;
    color: #a5f3fc;
}

.hero-copy p {
    max-width: 660px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.75;
}

.hero-meta,
.movie-eyebrow,
.detail-meta,
.breadcrumb,
.tag-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-meta {
    margin-bottom: 18px;
}

.hero-meta span,
.detail-meta span,
.movie-eyebrow span,
.tag-row span {
    border-radius: 999px;
    padding: 5px 11px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 700;
}

.movie-eyebrow span,
.tag-row span {
    color: #2563eb;
    background: #eff6ff;
    font-size: 12px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.primary-btn,
.secondary-btn,
.section-more,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    padding: 15px 25px;
    color: var(--blue);
    background: #ffffff;
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.18);
}

.secondary-btn {
    padding: 15px 25px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.36);
    backdrop-filter: blur(10px);
}

.primary-btn:hover,
.secondary-btn:hover,
.text-link:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 92px;
    z-index: 4;
    width: min(1180px, calc(100% - 44px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hero-dots {
    display: flex;
    gap: 10px;
}

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

.hero-dot.active {
    background: #ffffff;
}

.hero-arrows {
    display: flex;
    gap: 10px;
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
    backdrop-filter: blur(12px);
}

.floating-featured {
    position: relative;
    z-index: 5;
    max-width: 1180px;
    margin: -70px auto 54px;
    padding: 0 22px;
}

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

.page-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 58px 22px;
}

.section-band {
    background: linear-gradient(90deg, #f8fafc, #eff6ff);
}

.section-warm {
    background: linear-gradient(90deg, #fffbeb, #fff7ed);
}

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

.section-kicker {
    display: inline-flex;
    margin-bottom: 9px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.section-heading h1,
.section-heading h2,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.section-more,
.text-link {
    color: var(--blue);
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

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

.movie-card-wide .movie-poster,
.rank-card .movie-poster {
    aspect-ratio: 16 / 10;
}

.movie-poster img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 999px;
    padding: 5px 10px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.86);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.movie-card-body {
    padding: 17px;
}

.movie-card h3 {
    margin: 12px 0 8px;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-card h3 a:hover {
    color: var(--blue);
}

.movie-card p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.movie-card-wide {
    display: grid;
    grid-template-columns: minmax(160px, 42%) 1fr;
}

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

.channel-card {
    display: block;
    min-height: 190px;
    padding: 24px;
    border: 1px solid #dbeafe;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.channel-icon {
    width: 62px;
    height: 62px;
    margin-bottom: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    font-size: 24px;
    box-shadow: 0 18px 28px rgba(37, 99, 235, 0.24);
}

.channel-card h2,
.channel-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 900;
}

.channel-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.page-hero {
    background: linear-gradient(135deg, #eff6ff, #ecfeff 55%, #ffffff);
    border-bottom: 1px solid #dbeafe;
}

.page-hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 58px 22px;
}

.breadcrumb {
    margin-bottom: 18px;
    color: #64748b;
    font-size: 14px;
}

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

.local-search-box {
    margin: 0 0 26px;
}

.local-search-box input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 18px;
    padding: 15px 18px;
    outline: 0;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.local-search-box input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 18px;
    align-items: stretch;
}

.rank-number {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    font-size: 22px;
    font-weight: 900;
    box-shadow: var(--soft-shadow);
}

.rank-card {
    display: grid;
    grid-template-columns: 180px 1fr;
}

.rank-score {
    margin-top: 12px;
    color: #b45309;
    font-weight: 900;
}

.detail-shell {
    background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.2), transparent 38%), linear-gradient(135deg, #0f172a, #1e3a8a 60%, #0f766e);
    color: #ffffff;
}

.detail-hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: 44px 22px 68px;
}

.detail-title h1 {
    color: #ffffff;
}

.detail-title p {
    max-width: 860px;
    margin: 16px 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
    gap: 26px;
    margin-top: 32px;
    align-items: start;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
    aspect-ratio: 16 / 9;
}

.player-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.22), rgba(37, 99, 235, 0.22));
    cursor: pointer;
}

.play-ring {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    border-radius: 999px;
    padding: 16px 26px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(14px);
    font-weight: 900;
}

.play-ring span:first-child {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--blue);
    background: #ffffff;
}

.player-box.is-playing .player-overlay {
    display: none;
}

.detail-side {
    overflow: hidden;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px);
}

.detail-side img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-side-body {
    padding: 20px;
}

.detail-side-body h2 {
    margin: 0 0 12px;
    font-size: 21px;
    font-weight: 900;
}

.detail-side-body p {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.7;
}

.detail-content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 58px 22px;
}

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

.article-panel,
.aside-panel {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.article-panel {
    padding: 30px;
}

.article-panel h2,
.aside-panel h2 {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 900;
}

.article-panel p {
    margin: 0 0 22px;
    color: #334155;
    line-height: 1.92;
    font-size: 16px;
}

.aside-panel {
    padding: 22px;
}

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

.aside-list a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    color: #334155;
    background: #f8fafc;
}

.aside-list a:hover {
    color: var(--blue);
    background: #eff6ff;
}

.site-footer {
    margin-top: 40px;
    color: #cbd5e1;
    background: #0f172a;
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 46px 22px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-brand p {
    margin: 0;
    max-width: 430px;
    line-height: 1.8;
}

.footer-links h2 {
    margin: 0 0 15px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
}

.footer-links div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 22px;
    text-align: center;
    color: #94a3b8;
}

.hidden-by-search {
    display: none !important;
}

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

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

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

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

    .rank-card {
        grid-template-columns: 150px 1fr;
    }
}

@media (max-width: 720px) {
    .header-inner {
        min-height: 64px;
    }

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

    .hero-carousel {
        min-height: 680px;
    }

    .hero-content {
        padding-top: 86px;
        padding-bottom: 150px;
    }

    .hero-controls {
        bottom: 72px;
    }

    .hero-arrows {
        display: none;
    }

    .floating-featured {
        margin-top: -54px;
    }

    .featured-grid,
    .movie-grid,
    .movie-grid.two,
    .movie-grid.three,
    .channel-grid {
        grid-template-columns: 1fr;
    }

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

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

    .rank-number {
        font-size: 18px;
        border-radius: 16px;
    }

    .section-heading {
        display: block;
    }

    .section-more {
        margin-top: 12px;
    }

    .article-panel {
        padding: 22px;
    }
}
