:root {
    --site-primary: #0284c7;
    --site-primary-dark: #0369a1;
    --site-secondary: #d97706;
    --site-bg: #fafaf9;
    --site-card: #ffffff;
    --site-text: #292524;
    --site-muted: #78716c;
    --site-border: #e7e5e4;
    --site-dark: #1c1917;
    --site-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --site-shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: var(--site-bg);
    color: var(--site-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

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

img {
    max-width: 100%;
    height: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(231, 229, 228, 0.86);
    box-shadow: var(--site-shadow);
    backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--site-dark);
    white-space: nowrap;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--site-primary), #38bdf8);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.28);
    font-size: 15px;
}

.brand-text {
    font-size: 19px;
    letter-spacing: -0.02em;
}

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

.nav-link {
    padding: 9px 12px;
    border-radius: 999px;
    color: #57534e;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--site-primary-dark);
    background: #e0f2fe;
}

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

.header-search .input-field {
    height: 40px;
    background: #ffffff;
}

.search-button {
    height: 40px;
    padding: 0 15px;
    border: none;
    border-radius: 10px;
    background: var(--site-primary);
    color: #ffffff;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 12px;
    background: #f5f5f4;
    padding: 9px;
}

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

.mobile-panel {
    display: none;
    border-top: 1px solid var(--site-border);
    background: #ffffff;
}

.mobile-panel.is-open {
    display: block;
}

.mobile-panel-inner {
    display: grid;
    gap: 10px;
    padding-top: 14px;
    padding-bottom: 18px;
}

.mobile-panel a {
    padding: 9px 0;
    color: #57534e;
    font-weight: 700;
}

.hero-slider {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: #0f172a;
}

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

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

.hero-bg,
.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08);
}

.hero-shade,
.detail-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.82)),
        radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.45), transparent 35%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 360px;
    align-items: center;
    gap: 52px;
    min-height: 560px;
    padding-top: 54px;
    padding-bottom: 54px;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.16);
    color: #bae6fd;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(32px, 6vw, 62px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.055em;
}

.hero-movie-title {
    margin-top: 12px !important;
    color: #e0f2fe !important;
    font-size: clamp(24px, 3vw, 36px) !important;
    letter-spacing: -0.035em !important;
}

.hero-copy p {
    max-width: 760px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.85;
}

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

.hero-tags span,
.movie-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

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

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 12px;
    color: #ffffff;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
}

.hero-poster {
    display: block;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: var(--site-shadow-lg);
    transform: rotate(2deg);
}

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

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.46);
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

.hero-indicators {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: 26px;
    display: flex;
    gap: 9px;
    transform: translateX(-50%);
}

.hero-indicator {
    width: 9px;
    height: 9px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: width 0.25s ease, background-color 0.25s ease;
}

.hero-indicator.is-active {
    width: 30px;
    background: #ffffff;
}

.quick-cats {
    padding-top: 28px;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-pills a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: #ffffff;
    color: #57534e;
    font-weight: 800;
    box-shadow: var(--site-shadow);
}

.category-pills a:hover,
.category-pills a.is-active {
    background: var(--site-primary);
    color: #ffffff;
}

.content-section {
    padding-top: 48px;
    padding-bottom: 48px;
}

.feature-band {
    background: #f5f5f4;
}

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

.section-heading h2 {
    margin: 0;
    color: #1c1917;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--site-muted);
    line-height: 1.75;
}

.section-more {
    flex-shrink: 0;
    color: var(--site-primary-dark);
    font-weight: 800;
}

.movie-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 220px);
    gap: 18px;
    overflow-x: auto;
    padding: 3px 3px 16px;
    scroll-snap-type: x proximity;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 20px;
}

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(231, 229, 228, 0.82);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--site-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.13);
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #e0f2fe, #f5f5f4);
}

.poster-wrap img {
    width: 100%;
    aspect-ratio: 3 / 4.2;
    object-fit: cover;
    transition: transform 0.32s ease;
}

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

.play-dot,
.rank-badge {
    position: absolute;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.play-dot {
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(2, 132, 199, 0.92);
}

.rank-badge {
    top: 10px;
    left: 10px;
    min-width: 34px;
    height: 30px;
    padding: 0 8px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.movie-card-body {
    padding: 14px 14px 16px;
}

.movie-title {
    display: -webkit-box;
    min-height: 45px;
    overflow: hidden;
    color: #1c1917;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.42;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    margin-top: 7px;
    color: #78716c;
    font-size: 13px;
    line-height: 1.45;
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 40px;
    margin: 10px 0 0;
    overflow: hidden;
    color: #57534e;
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card .movie-tags {
    margin-top: 12px;
}

.movie-card .movie-tags span {
    background: #f0f9ff;
    color: #0369a1;
    font-size: 12px;
}

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

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.category-grid-wide {
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
}

.category-card {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    border-radius: 24px;
    background: #0f172a;
    color: #ffffff;
    box-shadow: var(--site-shadow-lg);
}

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

.category-card:hover img {
    transform: scale(1.06);
}

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.92));
}

.category-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: end;
    min-height: 260px;
    padding: 24px;
}

.category-card h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 900;
}

.category-card p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.72;
}

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

.category-samples a {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.category-card-content > a:last-child {
    width: fit-content;
    margin-top: 18px;
    padding: 9px 16px;
    border-radius: 999px;
    background: #ffffff;
    color: #0369a1;
    font-weight: 900;
}

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

.page-hero {
    padding: 72px 0 58px;
    background:
        radial-gradient(circle at 18% 10%, rgba(14, 165, 233, 0.52), transparent 30%),
        linear-gradient(135deg, #0f172a, #1e293b 55%, #0369a1);
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 900;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 780px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 17px;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.breadcrumb a {
    color: #bae6fd;
    font-weight: 800;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 12px;
    margin-bottom: 22px;
}

.empty-state {
    padding: 28px;
    border: 1px dashed var(--site-border);
    border-radius: 16px;
    color: #57534e;
    text-align: center;
    background: #ffffff;
}

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

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 40px;
    padding-bottom: 54px;
}

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

.detail-poster {
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    box-shadow: var(--site-shadow-lg);
}

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

.detail-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.045em;
}

.detail-copy p {
    max-width: 860px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.8;
}

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

.detail-copy .btn-primary {
    display: inline-flex;
    margin-top: 28px;
}

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

.player-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.player-panel,
.side-card,
.detail-text,
.info-list {
    border: 1px solid rgba(231, 229, 228, 0.86);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--site-shadow);
}

.player-panel {
    overflow: hidden;
}

.player-stage {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-stage video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.play-mask {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: none;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.24), rgba(15, 23, 42, 0.66));
    color: #ffffff;
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-mask span {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: var(--site-primary);
    box-shadow: 0 18px 42px rgba(2, 132, 199, 0.42);
    font-size: 28px;
}

.play-mask strong {
    font-size: 20px;
}

.play-mask.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-panel h2,
.player-panel p {
    margin-left: 22px;
    margin-right: 22px;
}

.player-panel h2 {
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 900;
}

.player-panel p {
    margin-top: 0;
    margin-bottom: 22px;
    color: #57534e;
    line-height: 1.75;
}

.side-card {
    padding: 18px;
}

.side-card h2 {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 900;
}

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

.side-links a {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.side-links img {
    width: 72px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    background: #e0f2fe;
}

.side-links span {
    display: -webkit-box;
    overflow: hidden;
    font-weight: 800;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.detail-text {
    padding: 26px;
}

.detail-text h2 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 900;
}

.detail-text h2:not(:first-child) {
    margin-top: 28px;
}

.detail-text p {
    margin: 0;
    color: #44403c;
    font-size: 16px;
    line-height: 1.9;
}

.info-list {
    display: grid;
    gap: 0;
    align-self: start;
    padding: 6px 18px;
    list-style: none;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--site-border);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list span {
    color: #78716c;
}

.info-list strong {
    text-align: right;
}

.site-footer {
    margin-top: 48px;
    background: #1c1917;
    color: #d6d3d1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 0.8fr;
    gap: 38px;
    padding-top: 44px;
    padding-bottom: 38px;
}

.footer-brand {
    color: #ffffff;
}

.site-footer p {
    max-width: 520px;
    margin: 14px 0 0;
    color: #a8a29e;
    line-height: 1.75;
}

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

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

.footer-links a {
    color: #d6d3d1;
    font-weight: 700;
}

.footer-links a:hover {
    color: #7dd3fc;
}

.footer-bottom {
    padding: 20px 16px;
    border-top: 1px solid #292524;
    color: #a8a29e;
    text-align: center;
}

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

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 32px;
    }
}

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

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

    .hero-slider,
    .hero-content {
        min-height: 660px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 26px;
    }

    .hero-poster {
        max-width: 210px;
        transform: none;
    }

    .hero-control {
        display: none;
    }

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

    .filter-bar,
    .detail-layout,
    .player-layout,
    .detail-body,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        max-width: 230px;
    }
}

@media (max-width: 560px) {
    .header-inner {
        min-height: 62px;
    }

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

    .hero-slider,
    .hero-content {
        min-height: 700px;
    }

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

    .hero-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-ghost {
        width: 100%;
        justify-content: center;
    }

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

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

    .movie-title {
        min-height: 41px;
        font-size: 14px;
    }

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

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

    .page-hero {
        padding: 54px 0 42px;
    }

    .detail-hero-inner {
        padding-top: 28px;
    }

    .detail-text,
    .side-card {
        padding: 18px;
    }
}
