:root {
    --primary: #0ea5e9;
    --primary-dark: #0369a1;
    --primary-soft: #e0f2fe;
    --secondary: #0f172a;
    --text: #1f2937;
    --muted: #64748b;
    --line: #e5e7eb;
    --card: #ffffff;
    --page: #f8fafc;
    --accent: #10b981;
    --orange: #f97316;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

body {
    background: var(--page);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

img {
    object-fit: cover;
}

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

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

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

.logo-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.28);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link,
.mobile-nav-link {
    color: #475569;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: var(--primary-dark);
    background: var(--primary-soft);
}

.top-search {
    margin-left: auto;
    width: min(360px, 35vw);
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
}

.top-search input,
.home-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-width: 0;
    outline: none;
    color: var(--text);
}

.top-search input {
    height: 42px;
    padding: 0 16px;
}

.top-search button,
.home-search button {
    flex-shrink: 0;
    height: 42px;
    padding: 0 18px;
    color: #ffffff;
    font-weight: 800;
    background: var(--primary);
}

.menu-button {
    width: 42px;
    height: 42px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border-radius: 12px;
    background: var(--primary-soft);
}

.menu-button span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary-dark);
}

.mobile-nav {
    display: none;
    padding: 0 20px 16px;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-carousel {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: #020617;
}

.hero-track {
    position: relative;
    min-height: 70vh;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: saturate(1.05);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 40%, rgba(14, 165, 233, 0.18), transparent 28%), linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.68) 48%, rgba(15, 23, 42, 0.22) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    min-height: 70vh;
    padding: 86px 24px 112px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.55fr);
    align-items: center;
    gap: 56px;
}

.hero-copy {
    max-width: 760px;
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 14px;
    color: #075985;
    font-size: 14px;
    font-weight: 900;
    border-radius: 999px;
    background: rgba(224, 242, 254, 0.92);
}

.hero-copy .eyebrow,
.detail-info .eyebrow {
    color: #e0f2fe;
    background: rgba(14, 165, 233, 0.22);
    border: 1px solid rgba(186, 230, 253, 0.26);
}

.hero-copy h1 {
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.06em;
    text-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.hero-copy p {
    max-width: 680px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.7;
}

.hero-tags,
.detail-meta,
.tag-row,
.detail-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.detail-meta span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-actions {
    margin-top: 32px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.primary-button,
.ghost-button,
.section-more,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: all 0.2s ease;
}

.primary-button {
    min-height: 48px;
    padding: 0 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 16px 34px rgba(14, 165, 233, 0.34);
}

.primary-button:hover,
.home-search button:hover,
.top-search button:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
}

.ghost-button {
    min-height: 48px;
    padding: 0 20px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.hero-poster {
    position: relative;
    justify-self: center;
    width: min(100%, 360px);
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.22);
    transform: rotate(2deg);
    transition: all 0.4s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) scale(1.03);
}

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

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72px;
    height: 72px;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.88);
    box-shadow: 0 18px 40px rgba(14, 165, 233, 0.4);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 3;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(14px);
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.44);
}

.hero-dot.is-active {
    width: 28px;
    border-radius: 999px;
    background: #ffffff;
}

.hero-arrow {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.quick-panel,
.content-section,
.rank-section,
.page-main {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.quick-panel {
    position: relative;
    margin-top: -42px;
    z-index: 5;
}

.home-search {
    display: flex;
    align-items: center;
    overflow: hidden;
    min-height: 72px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.home-search input {
    height: 72px;
    padding: 0 26px;
    font-size: 17px;
}

.home-search button {
    height: 72px;
    padding: 0 30px;
    font-size: 16px;
}

.category-strip {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.category-tile {
    min-height: 132px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    border-radius: 24px;
    color: var(--secondary);
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.86);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    transition: all 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-card-large:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.13);
}

.category-tile strong {
    font-size: 20px;
    font-weight: 950;
}

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

.content-section,
.rank-section {
    padding-top: 56px;
}

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

.section-heading h2,
.page-hero h1,
.detail-info h1,
.story-card h2 {
    color: var(--secondary);
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-heading h2 {
    font-size: clamp(26px, 3vw, 40px);
}

.section-heading p,
.page-hero p,
.story-card p,
.detail-one-line {
    color: var(--muted);
    line-height: 1.8;
}

.section-more,
.text-link {
    min-height: 40px;
    padding: 0 16px;
    color: var(--primary-dark);
    background: var(--primary-soft);
}

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

.movie-grid.full-list,
.rank-page-list {
    padding-bottom: 56px;
}

.movie-card {
    overflow: hidden;
    border-radius: 26px;
    background: var(--card);
    border: 1px solid rgba(226, 232, 240, 0.86);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    transition: all 0.25s ease;
}

.poster-link,
.poster-wrap {
    display: block;
}

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

.poster-wrap img {
    width: 100%;
    height: 100%;
    transition: transform 0.35s ease;
}

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

.play-badge,
.card-rank {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    border-radius: 999px;
}

.play-badge {
    right: 12px;
    bottom: 12px;
    min-height: 32px;
    padding: 0 12px;
    background: rgba(14, 165, 233, 0.92);
}

.card-rank {
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--orange), #ef4444);
}

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

.movie-card h3 {
    min-height: 54px;
    color: var(--secondary);
    font-size: 18px;
    line-height: 1.5;
    font-weight: 900;
}

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

.movie-meta {
    margin-top: 8px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
}

.movie-desc {
    min-height: 48px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    margin-top: 14px;
}

.tag-row span {
    color: #075985;
    background: var(--primary-soft);
}

.rank-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.compact-card {
    display: grid;
    grid-template-columns: auto 68px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.86);
    transition: all 0.2s ease;
}

.compact-card:hover {
    transform: translateX(4px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
}

.rank-index {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 950;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.compact-card img {
    width: 68px;
    height: 90px;
    border-radius: 14px;
}

.compact-card strong,
.compact-card em {
    display: block;
}

.compact-card strong {
    color: var(--secondary);
    font-weight: 900;
    line-height: 1.45;
}

.compact-card em {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.site-footer {
    margin-top: 68px;
    background: #0f172a;
    color: #cbd5e1;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 44px 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
}

.footer-logo {
    color: #ffffff;
    font-size: 22px;
}

.footer-inner p {
    max-width: 560px;
    margin-top: 12px;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #e0f2fe;
}

.page-main {
    padding-top: 34px;
}

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

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

.page-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
    padding: 42px;
    border-radius: 34px;
    background: linear-gradient(135deg, #ffffff, #e0f2fe 58%, #d1fae5);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.small-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
}

.small-hero p {
    max-width: 820px;
    margin-top: 14px;
    font-size: 17px;
}

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

.category-card-large {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 20px;
    padding: 20px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.86);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
    transition: all 0.25s ease;
}

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

.category-cover img {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
}

.category-card-large h2 {
    color: var(--secondary);
    font-size: 26px;
    font-weight: 950;
}

.category-card-large p {
    margin: 10px 0 18px;
    color: var(--muted);
    line-height: 1.8;
}

.filter-panel {
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 12px;
}

.filter-panel input,
.filter-panel select {
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    font-weight: 700;
}

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

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

.detail-main {
    max-width: 1180px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 34px;
    border-radius: 34px;
    color: #ffffff;
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.32), transparent 30%), linear-gradient(135deg, #020617, #0f172a 62%, #075985);
    box-shadow: var(--shadow);
}

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 2 / 3;
}

.detail-info h1 {
    color: #ffffff;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.12;
}

.detail-one-line {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

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

.detail-meta span,
.detail-tags span {
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.detail-tags {
    margin-top: 16px;
}

.player-panel {
    margin-top: 28px;
}

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

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

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.72));
}

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

.play-icon {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 22px 52px rgba(14, 165, 233, 0.42);
    font-size: 30px;
}

.play-overlay strong {
    font-size: 18px;
    font-weight: 900;
}

.detail-content {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.story-card {
    padding: 28px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.86);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.story-card h2 {
    margin-bottom: 14px;
    font-size: 24px;
}

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

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

    .top-search {
        width: min(460px, 50vw);
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero-poster {
        display: none;
    }

    .category-strip,
    .movie-grid,
    .rank-page-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .category-overview-grid,
    .detail-content {
        grid-template-columns: 1fr;
    }

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

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

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

    .top-search {
        display: none;
    }

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

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

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

    .hero-content {
        padding: 76px 18px 110px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-button,
    .ghost-button {
        width: 100%;
    }

    .quick-panel,
    .content-section,
    .rank-section,
    .page-main {
        padding-left: 16px;
        padding-right: 16px;
    }

    .home-search {
        min-height: 62px;
        border-radius: 20px;
    }

    .home-search input,
    .home-search button {
        height: 62px;
    }

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

    .category-strip,
    .movie-grid,
    .rank-page-list,
    .rank-grid,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

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

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

    .movie-card h3 {
        min-height: auto;
        font-size: 16px;
    }

    .movie-desc {
        display: none;
    }

    .category-card-large,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .category-card-large,
    .page-hero,
    .detail-hero,
    .story-card {
        padding: 22px;
        border-radius: 24px;
    }

    .category-cover {
        max-width: 260px;
    }

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

    .detail-cover {
        max-width: 260px;
    }

    .detail-content {
        gap: 14px;
    }

    .footer-inner {
        flex-direction: column;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .category-strip,
    .movie-grid,
    .rank-page-list,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .compact-card {
        grid-template-columns: auto 58px minmax(0, 1fr);
    }

    .compact-card img {
        width: 58px;
        height: 78px;
    }
}
