:root {
    color-scheme: light;
    --teal: #0f766e;
    --cyan: #0891b2;
    --blue: #2563eb;
    --amber: #f59e0b;
    --slate: #0f172a;
    --muted: #64748b;
    --surface: #ffffff;
    --soft: #f8fafc;
    --line: #e2e8f0;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #eef7f8 42%, #f8fafc 100%);
    color: #1f2937;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(90deg, var(--teal), var(--cyan));
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.24);
}

.top-nav {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand,
.desktop-nav,
.mobile-nav {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.desktop-nav {
    gap: 30px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 650;
}

.desktop-nav a {
    padding: 8px 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover {
    color: #fde68a;
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 24px 18px;
    background: rgba(15, 118, 110, 0.98);
}

.mobile-nav a {
    color: #ffffff;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

main {
    min-height: 60vh;
}

.hero {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
    align-items: stretch;
}

.hero-stage {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    border-radius: 30px;
    background: linear-gradient(135deg, #0f766e, #0891b2 52%, #2563eb);
    box-shadow: var(--shadow);
}

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

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

.hero-backdrop {
    position: absolute;
    inset: 0;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(22px) saturate(1.1);
    transform: scale(1.08);
    opacity: 0.38;
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 74% 20%, rgba(253, 230, 138, 0.25), transparent 25%),
        linear-gradient(115deg, rgba(15, 23, 42, 0.92), rgba(15, 118, 110, 0.78) 48%, rgba(8, 145, 178, 0.62));
}

.hero-content {
    position: relative;
    z-index: 1;
    min-height: 560px;
    padding: 56px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: center;
    gap: 34px;
    color: #ffffff;
}

.hero-copy h1 {
    margin: 12px 0 16px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 640px;
    margin: 0;
    color: #dbeafe;
    font-size: 20px;
    line-height: 1.8;
}

.eyebrow,
.section-kicker {
    color: #fcd34d;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

.hero-tags {
    margin: 24px 0 30px;
}

.hero-tags span,
.detail-badges span,
.tag-row span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.tag-row span {
    background: #ecfeff;
    color: #0f766e;
}

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

.primary-button,
.secondary-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    background: #ffffff;
    color: #0f766e;
    box-shadow: 0 18px 36px rgba(255, 255, 255, 0.25);
}

.secondary-button {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.primary-button:hover,
.secondary-button:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.hero-poster {
    display: block;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
    transform: rotate(2deg);
}

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

.hero-dots {
    position: absolute;
    left: 56px;
    bottom: 34px;
    z-index: 5;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

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

.hero-rank {
    border-radius: 30px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-rank-head,
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hero-rank-head span,
.section-heading h2 {
    color: #0f172a;
    font-weight: 850;
}

.hero-rank-head a,
.section-heading a,
.text-link {
    color: #0f766e;
    font-weight: 800;
}

.hero-rank-list {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

.hero-rank-list a,
.mini-rank a,
.side-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: #f8fafc;
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-rank-list a:hover,
.mini-rank a:hover,
.side-links a:hover {
    transform: translateX(3px);
    background: #ecfeff;
}

.hero-rank-list span,
.mini-rank span,
.rank-badge {
    min-width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.hero-rank-list strong,
.mini-rank strong {
    flex: 1;
    color: #1f2937;
    font-size: 14px;
}

.hero-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin: 18px 0;
}

.hero-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    color: #1f2937;
    min-height: 44px;
    padding: 0 14px;
    outline: 0;
}

.hero-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.hero-search button {
    border: 0;
    border-radius: 14px;
    padding: 0 18px;
    background: linear-gradient(90deg, var(--teal), var(--cyan));
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.hero-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-cats a {
    padding: 8px 12px;
    border-radius: 999px;
    background: #ecfeff;
    color: #0f766e;
    font-size: 13px;
    font-weight: 800;
}

.intro-section,
.section-wrap,
.page-hero,
.detail-hero,
.detail-layout {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.intro-section {
    margin-top: 34px;
    padding: 34px;
    border-radius: 28px;
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: center;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.intro-section h2,
.section-heading h2,
.page-hero h1,
.detail-hero h1 {
    margin: 8px 0;
    color: #0f172a;
    line-height: 1.15;
}

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

.intro-section p,
.page-hero p,
.detail-hero p {
    color: var(--muted);
    line-height: 1.85;
}

.section-wrap {
    margin-top: 42px;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #0f766e, #0891b2);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

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

.play-mark {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f766e;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.24);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
}

.movie-body {
    padding: 16px;
}

.movie-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0f766e;
    font-size: 12px;
    font-weight: 850;
}

.movie-card h3 {
    margin: 9px 0 8px;
    color: #111827;
    font-size: 17px;
    line-height: 1.35;
}

.movie-card p {
    min-height: 48px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.compact-card p {
    min-height: 42px;
}

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

.category-card {
    display: block;
    overflow: hidden;
    border-radius: 24px;
    padding: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.category-thumbs img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 14px;
}

.category-card h2,
.category-card h3 {
    margin: 0 0 8px;
    color: #0f172a;
}

.category-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.large-category span {
    display: inline-flex;
    margin-top: 14px;
    color: #0f766e;
    font-weight: 850;
}

.page-hero,
.detail-hero {
    margin-top: 28px;
    border-radius: 30px;
    padding: 48px;
    background:
        radial-gradient(circle at 80% 10%, rgba(252, 211, 77, 0.24), transparent 24%),
        linear-gradient(120deg, #0f766e, #0891b2 55%, #2563eb);
    color: #ffffff;
    box-shadow: var(--shadow);
}

.page-hero {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: center;
}

.page-hero h1,
.detail-hero h1 {
    color: #ffffff;
    font-size: clamp(34px, 5vw, 56px);
}

.page-hero p,
.detail-hero p {
    max-width: 780px;
    color: #dbeafe;
    font-size: 18px;
}

.breadcrumb {
    display: inline-flex;
    margin-bottom: 12px;
    color: #fde68a;
    font-weight: 800;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.55);
    margin: 0 8px;
}

.category-hero {
    align-items: stretch;
}

.mini-rank {
    min-width: 320px;
    padding: 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.mini-rank h2 {
    margin: 0 0 14px;
}

.mini-rank a {
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.92);
}

.mini-rank em {
    color: #0f766e;
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}

.filter-panel {
    margin-bottom: 22px;
    padding: 18px;
    border-radius: 22px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 14px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.filter-panel label {
    display: grid;
    gap: 7px;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.empty-result {
    display: none;
    margin: 28px 0;
    padding: 24px;
    border-radius: 18px;
    background: #ffffff;
    color: var(--muted);
    text-align: center;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.empty-result.is-visible {
    display: block;
}

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

.watch-card,
.detail-side {
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
    cursor: pointer;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background:
        radial-gradient(circle at center, rgba(15, 118, 110, 0.28), transparent 26%),
        rgba(0, 0, 0, 0.26);
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #0f766e;
    font-size: 34px;
    font-weight: 900;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.36);
}

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

.watch-info {
    padding: 28px;
}

.detail-badges {
    margin-bottom: 22px;
}

.detail-badges span {
    background: linear-gradient(90deg, var(--teal), var(--cyan));
}

.watch-info h2 {
    margin: 26px 0 12px;
    color: #0f172a;
    font-size: 24px;
}

.watch-info p {
    margin: 0;
    color: #475569;
    font-size: 16px;
    line-height: 1.9;
    white-space: pre-line;
}

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

.detail-side {
    padding: 18px;
}

.detail-cover {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 20px;
}

.detail-meta-box {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.detail-meta-box p {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 0;
    padding: 12px;
    border-radius: 14px;
    background: #f8fafc;
}

.detail-meta-box span {
    color: var(--muted);
}

.detail-meta-box strong {
    color: #0f172a;
}

.side-links {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

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

.related-card {
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.related-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.related-card span {
    display: block;
    padding: 12px;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
}

.site-footer {
    margin-top: 60px;
    background: linear-gradient(180deg, #1f2937, #111827);
    color: #cbd5e1;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.4fr;
    gap: 28px;
}

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

.footer-brand p {
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-content: start;
}

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

.footer-links a:hover {
    color: #5eead4;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .hero,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-rank,
    .detail-side {
        order: 2;
    }

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

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

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

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

    .mobile-menu-button {
        display: block;
    }

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

    .hero-poster {
        display: none;
    }

    .hero-stage,
    .hero-content {
        min-height: 600px;
    }

    .hero-dots {
        left: 34px;
    }

    .intro-section,
    .page-hero,
    .filter-panel,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .intro-section,
    .page-hero {
        flex-direction: column;
        align-items: flex-start;
    }

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

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

    .mini-rank {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 560px) {
    .top-nav,
    .hero,
    .intro-section,
    .section-wrap,
    .page-hero,
    .detail-hero,
    .detail-layout,
    .footer-inner,
    .footer-bottom {
        width: min(100% - 22px, 1180px);
    }

    .brand {
        font-size: 18px;
    }

    .hero,
    .section-wrap {
        margin-top: 22px;
    }

    .hero-content,
    .page-hero,
    .detail-hero,
    .intro-section {
        padding: 24px;
    }

    .hero-copy h1 {
        font-size: 38px;
    }

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

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

    .movie-body {
        padding: 12px;
    }

    .movie-card h3 {
        font-size: 15px;
    }

    .movie-card p {
        font-size: 12px;
    }

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