:root {
    --site-bg: #f8fafc;
    --site-panel: #ffffff;
    --site-dark: #0f172a;
    --site-dark-soft: #1e293b;
    --site-text: #1e293b;
    --site-muted: #64748b;
    --site-line: #e2e8f0;
    --site-accent: #059669;
    --site-accent-soft: #10b981;
    --site-accent-deep: #047857;
    --site-radius: 1rem;
    --site-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

html {
    scroll-behavior: smooth;
}

.site-body {
    min-height: 100vh;
    background: var(--site-bg);
    color: var(--site-text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.96);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(16px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    flex-shrink: 0;
}

.logo-mark {
    width: 40px;
    height: 40px;
    color: var(--site-accent-soft);
    filter: drop-shadow(0 10px 18px rgba(16, 185, 129, 0.22));
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-title {
    font-weight: 800;
    font-size: 1.32rem;
    letter-spacing: 0.02em;
}

.brand-subtitle {
    color: #cbd5e1;
    font-size: 0.78rem;
    margin-top: 3px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
    white-space: nowrap;
}

.nav-link {
    color: #e2e8f0;
    font-size: 0.96rem;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--site-accent-soft);
    transform: translateY(-1px);
}

.header-search {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.header-search input {
    width: 150px;
    padding: 9px 12px;
    background: transparent;
    color: #ffffff;
    outline: none;
}

.header-search input::placeholder {
    color: #94a3b8;
}

.header-search button {
    padding: 9px 14px;
    background: var(--site-accent);
    color: #ffffff;
    font-weight: 700;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 12px 16px 18px;
    background: var(--site-dark);
}

.mobile-panel a {
    display: block;
    padding: 11px 0;
    color: #e2e8f0;
    font-weight: 600;
}

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

.hero-carousel {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: var(--site-dark);
}

.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-image,
.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.78));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(720px, 100%);
    color: #ffffff;
    padding: 64px 0 118px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    color: var(--site-accent-soft);
    text-transform: uppercase;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
}

.hero-copy h1 {
    font-size: clamp(2.6rem, 7vw, 5.8rem);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.05em;
    margin-bottom: 24px;
}

.hero-copy p {
    color: #e2e8f0;
    font-size: clamp(1.08rem, 2vw, 1.42rem);
    line-height: 1.75;
    margin-bottom: 24px;
}

.hero-tags,
.tag-row,
.tag-cloud,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-row span,
.tag-cloud span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(5, 150, 105, 0.12);
    color: var(--site-accent-deep);
    font-size: 0.82rem;
    font-weight: 700;
}

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

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

.primary-button,
.ghost-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    min-height: 48px;
    padding: 0 28px;
    background: var(--site-accent);
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(5, 150, 105, 0.35);
}

.primary-button:hover {
    background: var(--site-accent-deep);
    transform: translateY(-2px);
}

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

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

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

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

.hero-dot.is-active {
    width: 34px;
    background: var(--site-accent-soft);
}

.hero-search-panel {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 22px;
    width: min(720px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--site-shadow);
}

.hero-search-panel input {
    flex: 1;
    min-width: 0;
    padding: 17px 22px;
    outline: none;
    color: var(--site-text);
}

.hero-search-panel button {
    padding: 0 28px;
    background: var(--site-accent);
    color: #ffffff;
    font-weight: 900;
}

.section {
    padding: 72px 0;
}

.white-section {
    background: #ffffff;
}

.soft-section {
    background: linear-gradient(135deg, #f1f5f9, #f8fafc);
}

.dark-section {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #ffffff;
}

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

.section-heading-row h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.section-heading-row p {
    color: var(--site-muted);
    line-height: 1.7;
}

.section-heading-row.inverted p {
    color: #cbd5e1;
}

.section-link {
    min-height: 42px;
    padding: 0 18px;
    color: var(--site-accent-deep);
    background: #ecfdf5;
}

.dark-section .section-link {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

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

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

.movie-card {
    background: #ffffff;
    border-radius: var(--site-radius);
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.09);
    border: 1px solid rgba(226, 232, 240, 0.9);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.dark-section .movie-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--site-shadow);
}

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

.poster-frame {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f172a;
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .poster-frame img {
    transform: scale(1.08);
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 3;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
}

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 7px 12px;
    background: rgba(5, 150, 105, 0.92);
    font-size: 0.78rem;
}

.rank-badge {
    top: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.28);
}

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

.card-meta {
    display: flex;
    gap: 8px;
    color: var(--site-muted);
    font-size: 0.82rem;
    margin-bottom: 8px;
}

.movie-card h2 {
    font-size: 1.08rem;
    line-height: 1.35;
    font-weight: 900;
    margin-bottom: 9px;
}

.movie-card h2 a:hover {
    color: var(--site-accent);
}

.movie-card p {
    min-height: 46px;
    color: var(--site-muted);
    font-size: 0.92rem;
    line-height: 1.62;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dark-section .movie-card p,
.dark-section .card-meta {
    color: #cbd5e1;
}

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

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

.category-card,
.overview-card a {
    display: block;
    min-height: 150px;
    padding: 22px;
    border-radius: var(--site-radius);
    background: #ffffff;
    border: 1px solid var(--site-line);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover,
.overview-card a:hover {
    transform: translateY(-5px);
    border-color: rgba(5, 150, 105, 0.42);
    box-shadow: var(--site-shadow);
}

.category-card strong,
.overview-card h2 {
    display: block;
    color: var(--site-text);
    font-size: 1.12rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.category-card span,
.overview-card p {
    color: var(--site-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.overview-index {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: var(--site-accent);
    font-weight: 900;
    margin-bottom: 18px;
}

.page-hero {
    color: #ffffff;
    background: radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.34), transparent 28%), linear-gradient(135deg, #0f172a, #1e293b 55%, #064e3b);
}

.compact-hero {
    padding: 76px 0;
}

.compact-hero h1 {
    max-width: 860px;
    font-size: clamp(2.1rem, 5vw, 4rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 18px;
}

.compact-hero p:not(.section-kicker) {
    max-width: 760px;
    color: #cbd5e1;
    font-size: 1.08rem;
    line-height: 1.8;
}

.filter-panel {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: var(--site-radius);
    background: #f8fafc;
    border: 1px solid var(--site-line);
}

.filter-panel label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: var(--site-muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--site-line);
    border-radius: 12px;
    background: #ffffff;
    padding: 12px 13px;
    color: var(--site-text);
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--site-accent);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    background: var(--site-dark);
    color: #ffffff;
}

.detail-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.74), rgba(15, 23, 42, 0.9));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 34px 0 70px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    color: #cbd5e1;
    font-size: 0.92rem;
    margin-bottom: 34px;
}

.breadcrumbs a:hover {
    color: var(--site-accent-soft);
}

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

.detail-poster {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: #0f172a;
}

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

.detail-info h1 {
    font-size: clamp(2.2rem, 6vw, 5rem);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.05em;
    margin-bottom: 20px;
}

.detail-one-line {
    max-width: 820px;
    color: #e2e8f0;
    font-size: 1.15rem;
    line-height: 1.78;
    margin-bottom: 22px;
}

.detail-main-section {
    padding-top: 46px;
}

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

.player-block,
.text-panel,
.side-card {
    border-radius: var(--site-radius);
    background: #ffffff;
    border: 1px solid var(--site-line);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.player-block {
    overflow: hidden;
    margin-bottom: 22px;
}

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

.movie-player {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.74));
    font-size: 1.1rem;
    font-weight: 900;
    z-index: 3;
}

.player-shell.is-playing .player-overlay {
    display: none;
}

.player-icon {
    width: 76px;
    height: 76px;
    border-radius: 999px;
    background: var(--site-accent);
    box-shadow: 0 18px 40px rgba(5, 150, 105, 0.34);
    position: relative;
}

.player-icon::after {
    content: "";
    position: absolute;
    left: 31px;
    top: 23px;
    border-left: 22px solid #ffffff;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
}

.text-panel {
    padding: 24px;
    margin-bottom: 22px;
}

.text-panel h2,
.side-card h2 {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.text-panel p {
    color: #334155;
    line-height: 1.92;
    font-size: 1.03rem;
}

.detail-side {
    position: sticky;
    top: 96px;
}

.side-card {
    padding: 22px;
    margin-bottom: 18px;
}

.side-card dl {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    font-size: 0.95rem;
}

.side-card dt {
    color: var(--site-muted);
    font-weight: 800;
}

.side-card dd {
    color: var(--site-text);
    min-width: 0;
}

.side-card a {
    color: var(--site-accent-deep);
    font-weight: 800;
}

.site-footer {
    background: var(--site-dark);
    color: #cbd5e1;
    padding-top: 54px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 38px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 1.15rem;
}

.site-footer p,
.site-footer a {
    color: #94a3b8;
    line-height: 1.76;
}

.site-footer a:hover {
    color: var(--site-accent-soft);
}

.site-footer h2 {
    color: #ffffff;
    font-size: 1.04rem;
    font-weight: 900;
    margin-bottom: 14px;
}

.site-footer li + li {
    margin-top: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    padding: 18px 16px;
    color: #64748b;
    text-align: center;
    font-size: 0.92rem;
}

@media (max-width: 1180px) {
    .desktop-nav {
        gap: 12px;
    }

    .header-search {
        display: none;
    }

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

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

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

    .mobile-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .header-inner {
        min-height: 66px;
    }

    .brand-subtitle {
        display: none;
    }

    .hero-copy {
        padding-bottom: 140px;
    }

    .hero-search-panel {
        flex-direction: column;
        border-radius: 22px;
    }

    .hero-search-panel button {
        min-height: 48px;
    }

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

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

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

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

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

    .detail-poster {
        width: min(260px, 72vw);
    }

    .detail-side {
        position: static;
    }

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

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

    .brand-title {
        font-size: 1.08rem;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
    }

    .hero-carousel,
    .hero-content {
        min-height: 78vh;
    }

    .hero-copy h1 {
        font-size: 2.42rem;
    }

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

    .movie-grid,
    .featured-grid,
    .rank-grid,
    .related-grid,
    .rank-page-grid,
    .category-grid,
    .overview-grid {
        grid-template-columns: 1fr;
    }

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

    .compact-hero {
        padding: 58px 0;
    }

    .detail-hero-inner {
        padding-bottom: 46px;
    }

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