:root {
    --cyan: #06b6d4;
    --blue: #2563eb;
    --deep: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --paper: #ffffff;
    --soft: #f8fafc;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
    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(--deep);
    background: linear-gradient(180deg, #ecfeff 0%, #f8fafc 22%, #ffffff 100%);
    min-height: 100vh;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(236, 254, 255, 0.96), rgba(239, 246, 255, 0.96), rgba(236, 254, 255, 0.96));
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(6, 182, 212, 0.16);
    box-shadow: 0 6px 20px rgba(14, 116, 144, 0.08);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, #22d3ee, #2563eb);
    box-shadow: 0 10px 24px rgba(6, 182, 212, 0.32);
}

.brand-text strong,
.footer-brand strong {
    display: block;
    font-size: 22px;
    line-height: 1;
    background: linear-gradient(90deg, #0891b2, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}

.main-nav {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.nav-link,
.mobile-link {
    padding: 10px 14px;
    border-radius: 12px;
    color: #334155;
    font-weight: 700;
    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    background: var(--cyan);
    color: white;
    box-shadow: 0 10px 22px rgba(6, 182, 212, 0.24);
}

.header-search {
    width: 290px;
    height: 42px;
    display: flex;
    align-items: center;
    border: 2px solid rgba(6, 182, 212, 0.22);
    border-radius: 999px;
    background: white;
    overflow: hidden;
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-bar input,
.filter-bar select,
.search-box input {
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
}

.header-search input {
    flex: 1;
    min-width: 0;
    padding: 0 14px;
}

.header-search button,
.mobile-search button,
.hero-search button,
.search-box button {
    border: 0;
    color: white;
    font-weight: 800;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    cursor: pointer;
}

.header-search button {
    height: 100%;
    padding: 0 16px;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: white;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #0f172a;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 0 22px 18px;
    background: white;
    border-top: 1px solid var(--line);
}

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

.mobile-search {
    display: flex;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.mobile-search input {
    flex: 1;
    padding: 0 14px;
}

.mobile-search button {
    padding: 0 18px;
}

main,
.page-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 22px 70px;
}

.hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    align-items: stretch;
    margin: 26px auto 46px;
}

.hero-stage {
    position: relative;
    min-height: 560px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
    transition: opacity 0.7s ease;
}

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

.hero-content {
    max-width: 700px;
    padding: 64px;
    color: white;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #cffafe;
    background: rgba(6, 182, 212, 0.22);
    border: 1px solid rgba(165, 243, 252, 0.24);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-content h1,
.hero-content h2 {
    margin: 18px 0 0;
    font-size: clamp(34px, 5vw, 70px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-content h2 + p,
.hero-content h1 + h2 + p,
.hero-content h1 + p {
    margin-top: 18px;
}

.hero-content p {
    max-width: 620px;
    color: #e0f2fe;
    font-size: 18px;
    line-height: 1.9;
}

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

.hero-tags {
    margin: 22px 0;
}

.hero-tags span,
.card-tags span,
.detail-tags span {
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.12);
    color: #0e7490;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 10px;
}

.hero-tags span {
    background: rgba(255, 255, 255, 0.16);
    color: white;
}

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

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

.primary-button {
    color: white;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.32);
}

.primary-button:hover,
.text-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 38px rgba(37, 99, 235, 0.36);
}

.ghost-button {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.1);
}

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

.hero-dots {
    position: absolute;
    left: 64px;
    bottom: 40px;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.35);
}

.hero-dots button.is-active {
    background: white;
}

.hero-panel {
    padding: 24px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(6, 182, 212, 0.16);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.hero-search label {
    display: block;
    color: #0e7490;
    font-weight: 900;
    margin-bottom: 10px;
}

.hero-search div {
    display: flex;
    height: 48px;
    border: 2px solid rgba(6, 182, 212, 0.22);
    border-radius: 16px;
    overflow: hidden;
    background: white;
}

.hero-search input {
    flex: 1;
    min-width: 0;
    padding: 0 14px;
}

.hero-search button {
    padding: 0 18px;
}

.hero-category-grid {
    margin: 22px 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.hero-category-grid a,
.category-card,
.info-card {
    border: 1px solid rgba(6, 182, 212, 0.16);
    background: linear-gradient(135deg, #ffffff, #ecfeff);
    border-radius: 18px;
    transition: 0.25s ease;
}

.hero-category-grid a {
    padding: 12px;
    font-weight: 800;
    color: #0f172a;
}

.hero-category-grid a:hover,
.category-card:hover,
.info-card:hover,
.movie-card:hover,
.rank-row:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(6, 182, 212, 0.34);
}

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

.hero-mini-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #f8fafc;
}

.hero-mini-card img {
    width: 74px;
    height: 52px;
    object-fit: cover;
    border-radius: 12px;
}

.hero-mini-card span {
    font-weight: 900;
    line-height: 1.4;
}

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

.section-head,
.page-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.section-head h2,
.page-title h1 {
    margin: 8px 0 0;
    font-size: clamp(26px, 3vw, 42px);
    letter-spacing: -0.03em;
}

.section-head p,
.page-title p {
    color: var(--muted);
    line-height: 1.8;
    max-width: 760px;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, 0.86);
    background: white;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
    transition: 0.25s ease;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #e2e8f0;
    transition: transform 0.45s ease;
}

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

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.24);
}

.card-body {
    padding: 16px;
}

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

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

.movie-meta {
    margin: 0 0 10px;
    color: #64748b;
    font-size: 13px;
}

.movie-desc {
    min-height: 48px;
    margin: 0 0 14px;
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

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

.category-card,
.info-card {
    padding: 22px;
}

.category-card h2,
.info-card h3 {
    margin: 0 0 10px;
    font-size: 21px;
}

.category-card p,
.info-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
    background: white;
    border: 1px solid var(--line);
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.05);
    margin-bottom: 24px;
}

.filter-bar input,
.filter-bar select {
    height: 46px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #f8fafc;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 62px 86px minmax(0, 1fr) 120px;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border-radius: 20px;
    background: white;
    border: 1px solid var(--line);
    transition: 0.25s ease;
}

.rank-number {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.rank-row img {
    width: 86px;
    height: 62px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-title h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.rank-title p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.rank-score {
    text-align: right;
    color: #0e7490;
    font-size: 20px;
    font-weight: 900;
}

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

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

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

.player-card,
.detail-card,
.side-card,
.search-panel {
    border-radius: 26px;
    background: white;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.player-wrap {
    position: relative;
    background: black;
    aspect-ratio: 16 / 9;
}

.player-wrap video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: black;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    background-position: center;
    background-size: cover;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.82));
}

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

.play-button {
    position: relative;
    width: 88px;
    height: 88px;
    border: 0;
    border-radius: 50%;
    color: white;
    font-size: 34px;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 24px 46px rgba(37, 99, 235, 0.42);
    cursor: pointer;
}

.detail-card,
.side-card,
.search-panel {
    padding: 24px;
}

.detail-card h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 48px);
    letter-spacing: -0.04em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 20px;
    color: #64748b;
    font-weight: 800;
}

.detail-card h2,
.side-card h2 {
    margin: 26px 0 12px;
    font-size: 24px;
}

.detail-card p {
    color: #334155;
    line-height: 2;
    margin: 0 0 14px;
}

.side-card {
    position: sticky;
    top: 104px;
}

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

.side-list a {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 16px;
    background: #f8fafc;
}

.side-list img {
    width: 70px;
    height: 52px;
    object-fit: cover;
    border-radius: 12px;
}

.side-list strong {
    display: block;
    line-height: 1.4;
}

.side-list small {
    color: #64748b;
}

.search-panel {
    margin-bottom: 24px;
}

.search-box {
    display: flex;
    height: 54px;
    border-radius: 18px;
    border: 1px solid var(--line);
    overflow: hidden;
    background: #f8fafc;
}

.search-box input {
    flex: 1;
    padding: 0 18px;
}

.search-box button {
    padding: 0 24px;
}

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

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 22px;
}

.footer-brand p {
    max-width: 680px;
    margin: 8px 0 0;
    color: #cbd5e1;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    margin: 28px 0;
    color: #cbd5e1;
}

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

.copyright {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
}

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

.empty-state {
    padding: 34px;
    text-align: center;
    color: #64748b;
    border: 1px dashed #cbd5e1;
    border-radius: 22px;
    background: #f8fafc;
}

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

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

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

    .hero-stage {
        min-height: 500px;
    }

    .side-card {
        position: static;
    }

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

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

@media (max-width: 760px) {
    .header-inner {
        min-height: 68px;
        padding: 0 16px;
    }

    main,
    .page-main {
        padding: 20px 16px 54px;
    }

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

    .hero-stage {
        min-height: 560px;
        border-radius: 24px;
    }

    .hero-content {
        padding: 34px 24px 74px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-dots {
        left: 24px;
        bottom: 28px;
    }

    .hero-panel {
        border-radius: 24px;
    }

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

    .card-body {
        padding: 13px;
    }

    .card-body h3 {
        font-size: 16px;
    }

    .movie-desc,
    .card-tags {
        display: none;
    }

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

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

    .rank-score {
        grid-column: 3;
        text-align: left;
        font-size: 16px;
    }

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

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

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