* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #1f2937;
    background: linear-gradient(180deg, rgba(240, 249, 255, 0.45), #ffffff 360px);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

.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);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(16px);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

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

.logo-text {
    display: grid;
    gap: 2px;
}

.logo-text strong {
    font-size: 20px;
    line-height: 1;
    background: linear-gradient(90deg, #0284c7, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-text small {
    color: #64748b;
    font-size: 12px;
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 10px;
    color: #475569;
    font-size: 14px;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #0369a1;
    background: #e0f2fe;
}

.nav-link.soft {
    display: none;
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.category-filter-box input,
.search-panel input {
    width: 220px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: 10px 14px;
    outline: none;
    color: #0f172a;
    background: #ffffff;
    transition: 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.category-filter-box input:focus,
.search-panel input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16);
}

.header-search button,
.mobile-search button,
.search-panel button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #ffffff;
    background: #0ea5e9;
    cursor: pointer;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #0369a1;
    background: #e0f2fe;
    cursor: pointer;
    font-size: 22px;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.96);
}

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

.mobile-link {
    padding: 12px 14px;
    border-radius: 12px;
    color: #475569;
    background: #f8fafc;
}

.mobile-link.active {
    color: #0369a1;
    background: #e0f2fe;
}

.page-shell {
    padding: 32px 0 64px;
}

.hero {
    margin-bottom: 56px;
}

.hero-stage {
    position: relative;
    height: 580px;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
}

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.86), rgba(15, 23, 42, 0.55) 46%, rgba(2, 6, 23, 0.08));
}

.hero-copy {
    position: absolute;
    left: 7%;
    top: 50%;
    width: min(620px, 78%);
    transform: translateY(-50%);
    color: #ffffff;
}

.hero-pills,
.detail-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.hero-pills span,
.detail-pills span {
    padding: 7px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(14, 165, 233, 0.88);
    backdrop-filter: blur(12px);
    font-size: 14px;
}

.hero-pills span + span,
.detail-pills span + span {
    background: rgba(255, 255, 255, 0.2);
}

.hero-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.hero-copy p {
    margin: 0 0 22px;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.8;
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-list span {
    padding: 7px 12px;
    border-radius: 10px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    font-size: 13px;
    backdrop-filter: blur(10px);
}

.detail-tags span,
.tag-list span {
    color: #0369a1;
    background: #e0f2fe;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: #0ea5e9;
    box-shadow: 0 16px 34px rgba(14, 165, 233, 0.34);
}

.primary-button:hover {
    background: #0284c7;
    transform: translateY(-1px);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(10px);
}

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

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.48);
    backdrop-filter: blur(10px);
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
    transition: 0.2s ease;
}

.hero-control:hover {
    background: rgba(2, 6, 23, 0.7);
}

.hero-control.prev {
    left: 18px;
}

.hero-control.next {
    right: 18px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: 0.2s ease;
}

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

.hero-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-top: 16px;
}

.hero-thumb {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    transition: 0.2s ease;
}

.hero-thumb:hover {
    border-color: #7dd3fc;
    transform: translateY(-2px);
}

.hero-thumb img {
    width: 56px;
    height: 76px;
    border-radius: 10px;
    object-fit: cover;
}

.hero-thumb span {
    color: #334155;
    font-weight: 700;
    line-height: 1.4;
}

.content-section {
    margin-bottom: 56px;
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading h2 {
    margin: 0 0 8px;
    color: #1e293b;
    font-size: clamp(24px, 3vw, 34px);
}

.section-heading p {
    margin: 0;
    color: #64748b;
}

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

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

.rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 220px;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 4px 18px;
    scroll-snap-type: x proximity;
}

.movie-card {
    min-width: 0;
}

.movie-card.hidden {
    display: none;
}

.card-link {
    display: block;
    overflow: hidden;
    height: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.card-link:hover {
    border-color: #bae6fd;
    box-shadow: 0 20px 42px rgba(14, 165, 233, 0.14);
    transform: translateY(-4px);
}

.card-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(145deg, #e0f2fe, #f8fafc);
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.45s ease;
}

.card-link:hover .card-cover img {
    transform: scale(1.08);
}

.card-cover::after {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0), rgba(2, 6, 23, 0.62));
    transition: 0.3s ease;
}

.card-link:hover .card-cover::after {
    opacity: 1;
}

.card-type {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 9px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.68);
    font-size: 12px;
    backdrop-filter: blur(8px);
}

.card-body {
    padding: 15px;
}

.card-body h2 {
    margin: 0 0 8px;
    overflow: hidden;
    color: #1e293b;
    font-size: 16px;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.card-link:hover .card-body h2 {
    color: #0284c7;
}

.card-line {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta,
.detail-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
}

.card-meta span:not(:last-child)::after {
    margin-left: 8px;
    color: #cbd5e1;
    content: "•";
}

.tag-list.small {
    margin-top: 10px;
}

.tag-list.small span {
    padding: 5px 8px;
    font-size: 12px;
}

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

.category-card {
    position: relative;
    display: grid;
    min-height: 188px;
    overflow: hidden;
    align-items: end;
    padding: 22px;
    border-radius: 22px;
    color: #ffffff;
    background: #0f172a;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.16);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.52;
    transition: 0.35s ease;
}

.category-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.86));
}

.category-card:hover img {
    transform: scale(1.08);
    opacity: 0.65;
}

.category-card span,
.category-card p {
    position: relative;
    z-index: 1;
}

.category-card span {
    font-size: 22px;
    font-weight: 800;
}

.category-card p {
    margin: 8px 0 0;
    color: #dbeafe;
    line-height: 1.6;
}

.list-stack,
.ranking-list {
    display: grid;
    gap: 16px;
}

.ranking-list.compact {
    gap: 12px;
}

.list-card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    transition: 0.22s ease;
}

.list-card.hidden {
    display: none;
}

.list-card:hover {
    border-color: #bae6fd;
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(14, 165, 233, 0.12);
}

.list-link {
    display: grid;
    grid-template-columns: auto 126px 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px;
}

.list-link > img {
    width: 126px;
    height: 168px;
    border-radius: 14px;
    object-fit: cover;
}

.rank-no {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    font-weight: 800;
}

.list-content h2 {
    margin: 0 0 10px;
    color: #1e293b;
    font-size: 20px;
}

.list-content p {
    display: -webkit-box;
    margin: 0 0 12px;
    overflow: hidden;
    color: #64748b;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.page-hero.simple,
.detail-hero {
    display: grid;
    gap: 24px;
    margin-bottom: 34px;
    padding: 34px;
    overflow: hidden;
    border: 1px solid #e0f2fe;
    border-radius: 28px;
    background: linear-gradient(135deg, #eff6ff, #ffffff 58%, #e0f2fe);
    box-shadow: 0 16px 48px rgba(14, 165, 233, 0.08);
}

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

.category-page-hero,
.search-hero {
    grid-template-columns: 1fr minmax(260px, 360px);
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 7px 13px;
    border-radius: 999px;
    color: #0369a1;
    background: #e0f2fe;
    font-weight: 700;
    font-size: 13px;
}

.page-hero h1,
.detail-intro h1 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.15;
}

.page-hero p,
.detail-intro p {
    margin: 0;
    color: #475569;
    font-size: 17px;
    line-height: 1.8;
}

.category-filter-box,
.search-panel {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid #dbeafe;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
}

.category-filter-box label {
    color: #0369a1;
    font-weight: 800;
}

.category-filter-box input,
.search-panel input {
    width: 100%;
}

.category-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.category-overview-card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
    transition: 0.22s ease;
}

.category-overview-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 46px rgba(14, 165, 233, 0.12);
}

.category-overview-card a {
    display: grid;
    grid-template-columns: 170px 1fr;
    min-height: 210px;
}

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

.category-overview-card div {
    padding: 24px;
}

.category-overview-card h2 {
    margin: 0 0 10px;
    color: #1e293b;
}

.category-overview-card p {
    margin: 0 0 14px;
    color: #64748b;
    line-height: 1.7;
}

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

.category-samples span {
    padding: 6px 10px;
    border-radius: 999px;
    color: #0369a1;
    background: #e0f2fe;
    font-size: 12px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: #64748b;
    font-size: 14px;
}

.breadcrumb a {
    color: #0284c7;
}

.detail-shell {
    max-width: 1120px;
}

.detail-hero {
    grid-template-columns: 270px 1fr;
    align-items: center;
}

.detail-poster img {
    width: 270px;
    aspect-ratio: 2 / 3;
    border-radius: 22px;
    object-fit: cover;
    box-shadow: 0 20px 52px rgba(15, 23, 42, 0.22);
}

.detail-intro .primary-button {
    margin-top: 26px;
}

.detail-meta-line {
    margin: 18px 0;
    color: #334155;
}

.player-wrap {
    margin-bottom: 28px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.34);
    aspect-ratio: 16 / 9;
}

.player-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

.player-center {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    width: 82px;
    height: 82px;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(14, 165, 233, 0.9);
    box-shadow: 0 18px 38px rgba(14, 165, 233, 0.3);
    cursor: pointer;
    transition: 0.2s ease;
}

.player-center span {
    margin-left: 6px;
    font-size: 34px;
}

.player-center:hover {
    background: #0284c7;
    transform: translate(-50%, -50%) scale(1.04);
}

.player-center.playing {
    opacity: 0;
    pointer-events: none;
}

.player-message {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: none;
    padding: 12px 14px;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    text-align: center;
}

.player-message.show {
    display: block;
}

.detail-card {
    margin-bottom: 48px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
}

.detail-card h2 {
    margin: 28px 0 12px;
    color: #1e293b;
    font-size: 20px;
}

.detail-card h2:first-child {
    margin-top: 0;
}

.detail-card p {
    margin: 0;
    color: #475569;
    line-height: 1.9;
}

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

.site-footer {
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 28px;
    padding: 42px 0;
}

.footer-brand p {
    max-width: 420px;
    color: #64748b;
    line-height: 1.8;
}

.footer-links h2 {
    margin: 0 0 14px;
    color: #1e293b;
    font-size: 17px;
}

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

.footer-link-list a {
    color: #64748b;
    transition: 0.2s ease;
}

.footer-link-list a:hover {
    color: #0284c7;
}

@media (min-width: 1200px) {
    .nav-link.soft {
        display: inline-flex;
    }
}

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

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

    .hero-stage {
        height: 520px;
    }

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

    .category-overview-grid,
    .category-page-hero,
    .search-hero,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

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

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

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

    .hero-copy {
        left: 24px;
        right: 24px;
        width: auto;
    }

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

    .hero-control {
        display: none;
    }

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

    .rail {
        grid-auto-columns: 180px;
    }

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

    .category-overview-card a,
    .detail-hero,
    .list-link {
        grid-template-columns: 1fr;
    }

    .list-link > img {
        width: 100%;
        height: 220px;
    }

    .rank-no {
        position: absolute;
        margin: 12px;
    }

    .list-card {
        position: relative;
    }

    .detail-poster img {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .page-hero.simple,
    .detail-hero,
    .detail-card {
        padding: 22px;
        border-radius: 22px;
    }

    .player-center {
        width: 66px;
        height: 66px;
    }

    .footer-grid {
        padding: 32px 0;
    }
}

@media (max-width: 460px) {
    .movie-grid,
    .movie-grid.wide,
    .related-grid {
        grid-template-columns: 1fr;
    }

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

    .card-cover {
        aspect-ratio: 16 / 12;
    }
}
