
:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --text: #111827;
    --muted: #64748b;
    --line: #e2e8f0;
    --cyan: #0891b2;
    --cyan-dark: #0e7490;
    --blue: #2563eb;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

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

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--cyan-dark);
    letter-spacing: -0.02em;
}

.logo-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 12px 24px rgba(8, 145, 178, 0.24);
}

.logo-text {
    font-size: 22px;
    white-space: nowrap;
}

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

.nav-link {
    position: relative;
    padding: 9px 12px;
    border-radius: 12px;
    color: #475569;
    font-size: 15px;
    font-weight: 650;
    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--cyan-dark);
    background: linear-gradient(90deg, #ecfeff, #eff6ff);
}

.header-search {
    display: flex;
    align-items: center;
    min-width: 250px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
}

.header-search input,
.big-search input,
.filter-bar input,
.filter-bar select {
    border: 0;
    outline: 0;
    color: var(--text);
    background: #fff;
}

.header-search input {
    width: 100%;
    padding: 10px 14px;
}

.header-search button,
.big-search button {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    padding: 10px 16px;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    padding: 10px;
    border: 0;
    background: transparent;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: #0f172a;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 0 16px 16px;
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #fff;
    background: #0f172a;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.45), transparent 32%),
        radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.42), transparent 34%),
        linear-gradient(135deg, #0f172a 0%, #164e63 46%, #1d4ed8 100%);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.52));
}

.hero-inner {
    position: relative;
    z-index: 1;
    min-height: 680px;
    display: flex;
    align-items: center;
}

.hero-slider {
    width: 100%;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.1fr) 380px;
    align-items: center;
    gap: 58px;
}

.hero-slide.is-active {
    display: grid;
    animation: fadeUp 0.55s ease both;
}

.hero-kicker {
    display: inline-flex;
    margin-bottom: 20px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    color: #cffafe;
    font-weight: 700;
}

.hero h1 {
    margin: 0 0 12px;
    max-width: 820px;
    font-size: clamp(42px, 6vw, 74px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero h2 {
    margin: 0 0 16px;
    font-size: clamp(24px, 3vw, 38px);
    color: #cffafe;
}

.hero p {
    max-width: 720px;
    margin: 0 0 26px;
    color: #e0f2fe;
    font-size: 20px;
}

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

.hero-tags span,
.tag-row span,
.footer-badges span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 11px;
    background: rgba(255, 255, 255, 0.16);
    color: inherit;
    font-size: 13px;
    font-weight: 650;
}

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

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

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.28);
}

.ghost-button {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
}

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

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: linear-gradient(135deg, #1e293b, #0e7490);
}

.hero-poster span {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #0f172a;
    background: #fff;
    font-weight: 900;
}

.hero-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 42px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.hero-dot {
    width: 34px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
}

.hero-dot.is-active {
    background: #fff;
}

.stats-strip {
    margin-top: -42px;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.stats-grid div {
    text-align: center;
    padding: 18px 8px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.stats-grid strong {
    display: block;
    color: var(--cyan-dark);
    font-size: 30px;
    line-height: 1;
}

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

.search-panel,
.content-section {
    margin-top: 70px;
}

.search-panel {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 28px;
    padding: 30px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #ecfeff, #eff6ff);
    box-shadow: var(--shadow);
}

.search-panel h2,
.section-heading h2,
.detail-section h2,
.player-card h2,
.side-card h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(26px, 3vw, 40px);
    letter-spacing: -0.03em;
}

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

.big-search {
    display: flex;
    overflow: hidden;
    border: 1px solid #bae6fd;
    border-radius: 999px;
    background: #fff;
}

.big-search input {
    flex: 1;
    padding: 16px 20px;
}

.big-search button {
    min-width: 110px;
}

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

.section-more {
    color: var(--cyan-dark);
    background: #ecfeff;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transition: 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.14);
}

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

.card-cover img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: 0.35s ease;
}

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

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    color: #fff;
    font-weight: 800;
    border-radius: 999px;
    background: rgba(8, 145, 178, 0.92);
    backdrop-filter: blur(12px);
}

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 6px 12px;
    font-size: 13px;
}

.rank-badge {
    top: 12px;
    left: 12px;
    min-width: 36px;
    text-align: center;
    padding: 6px 10px;
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.card-body h3 a:hover {
    color: var(--cyan-dark);
}

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

.tag-row span {
    color: var(--cyan-dark);
    background: #ecfeff;
}

.card-compact .card-body p {
    display: none;
}

.category-section {
    padding: 72px 0;
    background: #fff;
}

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

.category-card,
.category-overview-main {
    display: flex;
    min-height: 190px;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    overflow: hidden;
    border-radius: 24px;
    color: #fff;
    box-shadow: var(--shadow);
}

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

.category-card strong,
.category-overview-main strong {
    font-size: 18px;
}

.category-card em,
.category-overview-main p {
    margin: 0;
    font-style: normal;
    opacity: 0.9;
}

.category-cyan { background: linear-gradient(135deg, #0891b2, #2563eb); }
.category-blue { background: linear-gradient(135deg, #2563eb, #4f46e5); }
.category-green { background: linear-gradient(135deg, #059669, #0d9488); }
.category-orange { background: linear-gradient(135deg, #f97316, #dc2626); }
.category-purple { background: linear-gradient(135deg, #7c3aed, #2563eb); }
.category-slate { background: linear-gradient(135deg, #334155, #0f172a); }
.category-red { background: linear-gradient(135deg, #dc2626, #f97316); }
.category-pink { background: linear-gradient(135deg, #db2777, #f43f5e); }
.category-teal { background: linear-gradient(135deg, #0d9488, #06b6d4); }
.category-indigo { background: linear-gradient(135deg, #4f46e5, #0891b2); }

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

.ranking-item {
    display: grid;
    grid-template-columns: 52px 58px minmax(0, 1fr) 72px;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    transition: 0.2s ease;
}

.ranking-item:hover {
    transform: translateX(4px);
    border-color: #67e8f9;
}

.ranking-number {
    font-size: 20px;
    font-weight: 900;
    color: var(--cyan-dark);
    text-align: center;
}

.ranking-item img {
    width: 58px;
    height: 78px;
    object-fit: cover;
    border-radius: 12px;
    background: #e0f2fe;
}

.ranking-info {
    min-width: 0;
}

.ranking-info strong,
.ranking-info em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-info em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.ranking-score {
    justify-self: end;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--cyan-dark);
    background: #ecfeff;
    font-weight: 900;
}

.page-hero {
    color: #fff;
    background:
        radial-gradient(circle at 15% 20%, rgba(34, 211, 238, 0.36), transparent 34%),
        linear-gradient(135deg, #0f172a, #164e63 54%, #2563eb);
}

.page-hero .container {
    padding: 86px 0 74px;
}

.page-hero p {
    margin: 0 0 10px;
    color: #cffafe;
    font-weight: 800;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.page-hero span {
    display: block;
    max-width: 760px;
    color: #e0f2fe;
    font-size: 18px;
}

.category-overview-card {
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
}

.category-samples {
    display: grid;
    gap: 8px;
    padding: 18px;
}

.category-samples a {
    overflow: hidden;
    color: #334155;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-samples a:hover {
    color: var(--cyan-dark);
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 160px 160px 160px;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.filter-bar input,
.filter-bar select {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 13px;
}

.result-count {
    margin: 0 0 20px;
    color: var(--muted);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #0f172a;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.24;
    filter: blur(6px);
}

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

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #0f172a 15%, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.62));
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: center;
    gap: 38px;
    padding: 72px 0;
}

.detail-poster img {
    width: 260px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.36);
    background: #0e7490;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #bae6fd;
    font-size: 14px;
}

.breadcrumbs em {
    font-style: normal;
    color: #fff;
}

.detail-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(36px, 5vw, 66px);
    line-height: 1.04;
}

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

.detail-meta {
    margin: 20px 0;
}

.detail-tags span {
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.16);
}

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

.player-card,
.detail-section,
.side-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.player-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.player-title-row span {
    color: var(--cyan-dark);
    font-weight: 800;
}

.video-box {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #020617;
}

.site-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.video-play-button {
    position: absolute;
    inset: 50% auto auto 50%;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transform: translate(-50%, -50%);
    padding: 15px 22px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 16px 38px rgba(37, 99, 235, 0.35);
    cursor: pointer;
}

.video-play-button.is-hidden {
    display: none;
}

.detail-section {
    margin-top: 22px;
}

.detail-section h2,
.side-card h2,
.player-card h2 {
    font-size: 24px;
}

.detail-section p {
    color: #334155;
    font-size: 17px;
}

.side-card + .side-card {
    margin-top: 22px;
}

.side-card dl {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px 12px;
    margin: 18px 0 0;
}

.side-card dt {
    color: var(--muted);
}

.side-card dd {
    margin: 0;
    color: #0f172a;
    font-weight: 700;
}

.side-link {
    display: block;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--cyan-dark);
    background: #ecfeff;
    font-weight: 800;
}

.site-footer {
    margin-top: 80px;
    color: #cbd5e1;
    background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 0.8fr;
    gap: 42px;
    padding: 58px 0;
}

.footer-logo {
    color: #fff;
    font-size: 24px;
}

.footer-brand p {
    max-width: 520px;
    color: #94a3b8;
}

.footer-badges span {
    color: #cffafe;
    background: rgba(255, 255, 255, 0.1);
}

.site-footer h3 {
    margin: 0 0 16px;
    color: #fff;
}

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

.footer-list a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #cbd5e1;
}

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

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    color: #94a3b8;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .menu-toggle {
        display: flex;
    }

    .mobile-nav.is-open {
        display: flex;
    }

    .hero-slide {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

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

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

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

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

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

    .hero,
    .hero-inner {
        min-height: 620px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-panel,
    .section-heading,
    .player-title-row {
        grid-template-columns: 1fr;
        display: grid;
    }

    .big-search {
        border-radius: 18px;
        flex-direction: column;
    }

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

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

    .detail-hero-inner {
        grid-template-columns: 1fr;
    }

    .detail-poster img {
        width: 190px;
    }

    .ranking-item {
        grid-template-columns: 42px 52px minmax(0, 1fr);
    }

    .ranking-score {
        display: none;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .movie-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }
}
