:root {
    --page-bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #eef6ff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #dbeafe;
    --primary: #0891b2;
    --primary-dark: #0e7490;
    --accent: #2563eb;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
    --radius: 24px;
}

* {
    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(--text);
    background: var(--page-bg);
    line-height: 1.7;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(120deg, rgba(8, 145, 178, 0.96), rgba(37, 99, 235, 0.96));
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 26px;
}

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

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

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

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

.site-nav a,
.mobile-panel a {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active,
.mobile-panel a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.header-search {
    width: 292px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.header-search input,
.page-search input,
.search-band input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: inherit;
    padding: 12px 16px;
}

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

.header-search button,
.page-search button,
.search-band button {
    border: 0;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.24);
    padding: 12px 18px;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 6px 0;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    gap: 14px;
}

.mobile-panel.open {
    display: grid;
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #071527;
    color: #ffffff;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    align-items: center;
    gap: 54px;
    opacity: 0;
    transform: translateX(32px);
    pointer-events: none;
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0 calc(50% - 50vw);
    z-index: 0;
    overflow: hidden;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
    filter: blur(10px) saturate(1.1);
    transform: scale(1.05);
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 26% 32%, rgba(34, 211, 238, 0.42), transparent 36%),
        linear-gradient(90deg, rgba(7, 21, 39, 0.96), rgba(7, 21, 39, 0.72) 48%, rgba(7, 21, 39, 0.92));
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 1;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    border-radius: 999px;
    padding: 7px 14px;
    background: rgba(8, 145, 178, 0.14);
    color: #0891b2;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.hero .hero-kicker,
.detail-hero .hero-kicker,
.page-hero .hero-kicker {
    background: rgba(255, 255, 255, 0.16);
    color: #cffafe;
}

.hero h1 {
    max-width: 760px;
    margin: 22px 0 20px;
    font-size: clamp(40px, 7vw, 86px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 19px;
}

.hero-tags,
.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.hero-tags span,
.movie-tags span {
    border-radius: 999px;
    padding: 6px 12px;
    color: #075985;
    background: #e0f2fe;
    font-size: 13px;
    font-weight: 800;
}

.hero .hero-tags span,
.detail-hero .hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

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

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

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 16px 34px rgba(8, 145, 178, 0.32);
}

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

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

.hero-poster {
    display: block;
    border-radius: 32px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    min-height: 440px;
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.42), rgba(37, 99, 235, 0.42));
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.45);
}

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

.hero-control {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-control button {
    border: 0;
    color: #ffffff;
    cursor: pointer;
}

.hero-control > button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    font-size: 28px;
}

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

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

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

.search-band {
    width: min(1180px, calc(100% - 32px));
    margin: -44px auto 52px;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 460px);
    gap: 20px;
    align-items: center;
    border-radius: var(--radius);
    padding: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: var(--shadow);
}

.search-band strong {
    display: block;
    font-size: 26px;
}

.search-band span {
    color: rgba(255, 255, 255, 0.8);
}

.search-band form,
.page-search {
    display: flex;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

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

.soft-section {
    width: 100%;
    max-width: none;
    padding: 64px max(16px, calc((100% - 1180px) / 2));
    background: linear-gradient(180deg, #ffffff, #eff6ff);
}

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

.section-head h2 {
    margin: 12px 0 4px;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.18;
    letter-spacing: -0.04em;
}

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

.section-more {
    flex: 0 0 auto;
    color: var(--primary-dark);
    font-weight: 900;
}

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

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

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

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

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

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

.poster-mask {
    position: absolute;
    inset: auto 14px 14px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
    background: rgba(8, 145, 178, 0.88);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-mask {
    opacity: 1;
    transform: translateY(0);
}

.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.34);
}

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

.movie-title {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
}

.movie-line {
    min-height: 54px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #0e7490;
    font-size: 13px;
    font-weight: 800;
}

.movie-meta span {
    border-radius: 999px;
    padding: 4px 9px;
    background: #ecfeff;
}

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

.category-tile,
.category-card-large {
    border-radius: 22px;
    padding: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 18px 42px rgba(8, 145, 178, 0.2);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.category-card-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 55px rgba(8, 145, 178, 0.3);
}

.category-tile strong,
.category-card-title {
    display: block;
    font-size: 20px;
    font-weight: 900;
}

.category-tile span,
.category-card-large span,
.category-card-large p {
    color: rgba(255, 255, 255, 0.82);
}

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

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.category-samples a {
    border-radius: 999px;
    padding: 6px 10px;
    color: #075985;
    background: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.page-hero,
.detail-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 36px auto 0;
    border-radius: 34px;
    color: #ffffff;
    background:
        radial-gradient(circle at 18% 20%, rgba(34, 211, 238, 0.46), transparent 30%),
        linear-gradient(135deg, #0f172a, #0e7490 54%, #2563eb);
    box-shadow: var(--shadow);
}

.small-hero {
    padding: 56px;
}

.small-hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.small-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
}

.breadcrumb {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary-dark);
    font-weight: 800;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
    gap: 38px;
    align-items: center;
    padding: 34px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #cffafe, #dbeafe);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
}

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

.detail-info h1 {
    margin: 18px 0 16px;
    font-size: clamp(34px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

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

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

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

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: radial-gradient(circle at 50% 42%, rgba(8, 145, 178, 0.38), rgba(2, 6, 23, 0.58));
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-icon {
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 18px 44px rgba(8, 145, 178, 0.4);
}

.detail-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 42px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 26px;
}

.detail-copy,
.detail-side {
    border-radius: 28px;
    padding: 30px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.detail-copy h2,
.detail-side h2 {
    margin: 0 0 16px;
    font-size: 26px;
    letter-spacing: -0.03em;
}

.detail-copy p {
    margin: 0 0 24px;
    color: #334155;
}

.detail-side table {
    width: 100%;
    border-collapse: collapse;
}

.detail-side th,
.detail-side td {
    border-bottom: 1px solid var(--line);
    padding: 13px 0;
    text-align: left;
    vertical-align: top;
}

.detail-side th {
    width: 72px;
    color: var(--muted);
}

.detail-side a {
    color: var(--primary-dark);
    font-weight: 900;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border-radius: 16px;
    padding: 14px 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row:hover {
    transform: translateX(4px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

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

.ranking-title {
    overflow: hidden;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ranking-info {
    color: var(--muted);
    font-size: 14px;
}

.search-grid .search-item.is-hidden {
    display: none;
}

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

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
    display: grid;
    gap: 16px;
}

.footer-brand {
    font-size: 24px;
    font-weight: 900;
}

.site-footer p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 800;
}

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

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

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

@media (max-width: 820px) {
    .site-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .hero {
        min-height: 820px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 80px 0 110px;
    }

    .hero-poster {
        width: min(320px, 78vw);
        min-height: auto;
        justify-self: center;
    }

    .search-band,
    .detail-hero,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

    .small-hero {
        padding: 38px 24px;
    }

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

    .ranking-info {
        grid-column: 2;
    }
}

@media (max-width: 560px) {
    .brand-text {
        font-size: 18px;
    }

    .hero h1,
    .detail-info h1 {
        font-size: 38px;
    }

    .movie-grid,
    .compact-grid,
    .category-grid,
    .category-large-grid {
        grid-template-columns: 1fr;
    }

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

    .search-band form,
    .page-search {
        flex-direction: column;
        border-radius: 20px;
    }

    .search-band button,
    .page-search button {
        width: 100%;
    }
}
