:root {
    --cyan: #06b6d4;
    --blue: #2563eb;
    --deep-blue: #0f172a;
    --ink: #111827;
    --text: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --soft: #f8fafc;
    --card: #ffffff;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: #ffffff;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    box-shadow: 0 14px 38px rgba(37, 99, 235, 0.25);
}

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

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

.brand-icon {
    font-size: 32px;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.22));
    transition: transform 0.24s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.12) rotate(-6deg);
}

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

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

.desktop-nav a,
.nav-dropdown > button {
    color: rgba(255, 255, 255, 0.92);
    border: 0;
    background: transparent;
    padding: 22px 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.nav-dropdown > button:hover {
    color: #cffafe;
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    left: 50%;
    top: 100%;
    width: 210px;
    transform: translate(-50%, 10px);
    opacity: 0;
    visibility: hidden;
    display: grid;
    padding: 10px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.98);
    border-radius: 18px;
    box-shadow: var(--shadow);
    transition: all 0.22s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.dropdown-panel a {
    padding: 10px 12px;
    color: var(--text);
    border-radius: 12px;
}

.dropdown-panel a:hover {
    color: var(--blue);
    background: #ecfeff;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(330px, 28vw);
    padding: 4px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
}

.header-search input,
.hero-search input,
.page-search {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 10px 12px;
}

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

.header-search button,
.hero-search button {
    border: 0;
    color: var(--blue);
    background: #ffffff;
    border-radius: 999px;
    padding: 9px 16px;
    cursor: pointer;
    font-weight: 700;
}

.mobile-menu-button {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
}

.mobile-menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: #ffffff;
}

.mobile-nav {
    display: none;
    padding: 16px;
    background: rgba(29, 78, 216, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

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

.mobile-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-top: 8px;
}

.mobile-category-grid a,
.mobile-nav > a {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
}

.hero-carousel {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: var(--deep-blue);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-bg,
.detail-hero-bg,
.page-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay,
.detail-hero-shade,
.page-hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 40%, rgba(6, 182, 212, 0.35), transparent 38%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.88) 0%, rgba(15, 23, 42, 0.62) 44%, rgba(15, 23, 42, 0.18) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: center;
    gap: 48px;
    color: #ffffff;
}

.hero-badge,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    color: #0369a1;
    background: #cffafe;
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 18px 0;
    font-size: clamp(42px, 7vw, 74px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero-subtitle {
    width: min(660px, 100%);
    color: #e0f2fe;
    font-size: clamp(18px, 2.4vw, 26px);
    line-height: 1.6;
}

.hero-tags,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}

.hero-tags span,
.detail-meta span {
    color: #ecfeff;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 8px 12px;
    backdrop-filter: blur(12px);
}

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

.primary-button,
.ghost-button,
.section-action,
.text-button,
.category-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button {
    color: var(--blue);
    background: #ffffff;
    padding: 13px 24px;
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.18);
}

.primary-button:hover,
.section-action:hover,
.text-button:hover,
.category-link:hover {
    transform: translateY(-2px);
}

.ghost-button {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.82);
    padding: 11px 22px;
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.12);
}

.hero-poster {
    justify-self: end;
    width: min(360px, 100%);
    aspect-ratio: 3 / 4;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 36px 80px rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.26);
    transform: rotate(2deg);
}

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

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

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

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

.stats-band {
    margin-top: -44px;
    position: relative;
    z-index: 10;
}

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

.stats-grid a {
    padding: 22px;
    border-radius: 22px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.stats-grid strong,
.stats-grid span {
    display: block;
}

.stats-grid strong {
    font-size: 20px;
}

.stats-grid span {
    color: var(--muted);
    margin-top: 4px;
}

.content-section {
    padding: 72px 0;
}

.soft-bg {
    background: #f1f5f9;
}

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

.section-heading h2,
.rank-panel h2,
.page-hero h1,
.detail-copy h1 {
    margin: 12px 0 10px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.section-heading p,
.rank-panel p,
.page-hero p {
    color: var(--muted);
    max-width: 720px;
    margin: 0;
}

.section-action,
.text-button,
.category-link {
    color: #ffffff;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    padding: 10px 18px;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24);
}

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

.category-tile {
    min-height: 160px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(135deg, #ecfeff, #dbeafe);
    border: 1px solid #bae6fd;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

.category-tile strong {
    font-size: 22px;
    margin-bottom: 10px;
}

.category-tile span {
    color: var(--muted);
    font-size: 14px;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #0f172a;
}

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

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

.play-mark {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--blue);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    min-width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    border-radius: 13px;
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.28);
}

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

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

.movie-meta span {
    display: inline-flex;
    border-radius: 999px;
    background: #f1f5f9;
    padding: 4px 8px;
}

.movie-card h3 {
    margin: 12px 0 8px;
    font-size: 20px;
    line-height: 1.25;
}

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

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

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.tag-row span {
    color: #0369a1;
    background: #ecfeff;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 700;
}

.category-link {
    font-size: 13px;
    padding: 7px 12px;
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 30px;
    align-items: start;
}

.rank-panel {
    position: sticky;
    top: 92px;
    padding: 28px;
    border-radius: 28px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(6, 182, 212, 0.4), transparent 38%),
        linear-gradient(180deg, #1e3a8a, #0f172a);
    box-shadow: var(--shadow);
}

.rank-panel .section-kicker {
    color: #082f49;
}

.rank-panel p {
    color: #dbeafe;
}

.rank-list {
    display: grid;
    gap: 14px;
    margin: 22px 0;
}

.rank-list-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.rank-list-card h3 {
    margin-top: 0;
    color: #ffffff;
    font-size: 16px;
}

.rank-list-card p {
    color: #dbeafe;
    font-size: 13px;
}

.rank-number {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    font-weight: 900;
}

.full-button {
    width: 100%;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: var(--deep-blue);
}

.gradient-page-hero {
    background:
        radial-gradient(circle at 18% 20%, rgba(14, 165, 233, 0.6), transparent 30%),
        radial-gradient(circle at 85% 30%, rgba(37, 99, 235, 0.65), transparent 34%),
        linear-gradient(135deg, #0f172a, #164e63 48%, #1d4ed8);
}

.page-hero .container {
    position: relative;
    z-index: 2;
    padding: 88px 0;
}

.category-hero .page-hero-content {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

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

.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 24px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.filter-bar input {
    flex: 1;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 12px 16px;
    outline: 0;
}

.filter-bar input::placeholder,
.page-search::placeholder {
    color: #94a3b8;
}

.filter-bar a {
    color: #ffffff;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    border-radius: 999px;
    padding: 11px 17px;
    font-weight: 800;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    padding: 20px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-cover {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 22px;
}

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

.category-overview-card h2 {
    margin: 6px 0 10px;
    font-size: 28px;
}

.category-overview-card p {
    color: var(--muted);
}

.sample-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.sample-links a {
    color: #0369a1;
    background: #ecfeff;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
}

.detail-hero {
    min-height: 560px;
}

.detail-hero-content {
    position: relative;
    z-index: 2;
    padding: 38px 0 54px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 42px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 68px rgba(0, 0, 0, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

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

.detail-copy .lead-text {
    color: #e0f2fe;
    max-width: 820px;
    font-size: 20px;
}

.detail-tags span {
    background: rgba(255, 255, 255, 0.14);
    color: #ecfeff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.22), rgba(2, 6, 23, 0.72));
    cursor: pointer;
}

.player-overlay span {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    color: var(--blue);
    background: #ffffff;
    border-radius: 50%;
    font-size: 36px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.26);
}

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

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

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    padding: 0 0 28px;
}

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

.detail-article h2,
.detail-side h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.detail-article p {
    color: var(--text);
    font-size: 18px;
    margin: 0 0 26px;
    white-space: pre-line;
}

.detail-side dl {
    display: grid;
    gap: 14px;
    margin: 0;
}

.detail-side dl div {
    display: grid;
    gap: 5px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.detail-side dt {
    color: var(--muted);
    font-size: 13px;
}

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

.page-turner {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.page-turner a {
    padding: 12px;
    border-radius: 14px;
    color: #0369a1;
    background: #ecfeff;
    font-weight: 700;
}

.hero-search {
    display: flex;
    gap: 8px;
    width: min(620px, 100%);
    padding: 6px;
    margin-top: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.search-empty {
    padding: 30px;
    text-align: center;
    color: var(--muted);
    border-radius: 22px;
    background: #ffffff;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(180deg, #1f2937, #0f172a);
    padding-top: 58px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 22px;
}

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

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

.footer-grid a:hover {
    color: #67e8f9;
}

.footer-bottom {
    margin-top: 42px;
    padding: 18px;
    text-align: center;
    color: #94a3b8;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

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

    .hero-content,
    .detail-layout,
    .detail-content-grid,
    .two-column-section,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

    .rank-panel {
        position: static;
    }

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

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

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

    .hero-carousel,
    .hero-content {
        min-height: 590px;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

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

    .section-heading {
        display: block;
    }

    .section-action {
        margin-top: 16px;
    }

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

    .detail-layout {
        gap: 24px;
    }

    .detail-poster {
        width: min(250px, 76vw);
    }

    .filter-bar,
    .hero-search {
        display: grid;
        border-radius: 20px;
    }
}

@media (max-width: 520px) {
    .stats-grid,
    .category-grid,
    .movie-grid,
    .compact-grid,
    .related-grid,
    .ranking-grid {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 48px 0;
    }

    .detail-article,
    .detail-side {
        padding: 20px;
    }
}
