:root {
    --bg: #020617;
    --panel: #0f172a;
    --panel-soft: #111827;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --green: #10b981;
    --green-deep: #059669;
    --cyan: #06b6d4;
    --rose: #fb7185;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.16), transparent 36%), var(--bg);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.menu-open {
    overflow: hidden;
}

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

img {
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(2, 6, 23, 0.82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(135deg, var(--green), var(--cyan));
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.32);
}

.brand-name {
    white-space: nowrap;
    font-size: 19px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.desktop-nav a,
.mobile-panel a {
    color: #cbd5e1;
    padding: 10px 14px;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
    color: white;
    background: rgba(16, 185, 129, 0.14);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(320px, 32vw);
}

.nav-search input,
.mobile-panel input,
.hero-search input,
.quick-search-inner input,
.filter-bar input {
    width: 100%;
    color: white;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    padding: 12px 16px;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.mobile-panel input:focus,
.hero-search input:focus,
.quick-search-inner input:focus,
.filter-bar input:focus {
    border-color: rgba(16, 185, 129, 0.75);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.nav-search button,
.mobile-panel button,
.hero-search button,
.quick-search-inner button {
    border: 0;
    color: white;
    background: var(--green);
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 0.2s ease, background 0.2s ease;
}

.nav-search button:hover,
.mobile-panel button:hover,
.hero-search button:hover,
.quick-search-inner button:hover {
    background: var(--green-deep);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    color: white;
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid var(--line);
    border-radius: 12px;
    width: 44px;
    height: 44px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    padding: 16px 24px 24px;
    background: rgba(2, 6, 23, 0.96);
}

.mobile-panel form {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

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

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 0.7s ease;
    display: flex;
    align-items: center;
}

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

.hero-content,
.detail-hero-inner,
.page-hero > div {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.hero-content {
    max-width: 720px;
    padding-top: 80px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #34d399;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content h1,
.page-hero h1,
.detail-hero h1 {
    font-size: clamp(38px, 7vw, 68px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin: 0 0 22px;
}

.hero-content p,
.page-hero p,
.detail-hero p {
    color: #cbd5e1;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
    max-width: 760px;
    margin: 0 0 28px;
}

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

.hero-tags span,
.tag-row span {
    color: #a7f3d0;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
}

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

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

.primary-btn {
    color: white;
    background: linear-gradient(135deg, var(--green), var(--cyan));
    box-shadow: 0 16px 35px rgba(16, 185, 129, 0.28);
}

.ghost-btn,
.section-link {
    color: white;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
}

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

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

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

.quick-search-block {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.08));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.quick-search-inner {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 34px 0;
    display: grid;
    grid-template-columns: 1fr minmax(320px, 520px);
    gap: 28px;
    align-items: center;
}

.quick-search-inner h2 {
    margin: 0 0 10px;
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 900;
}

.quick-search-inner p {
    margin: 0;
    color: var(--muted);
}

.quick-search-inner form,
.hero-search {
    display: flex;
    gap: 10px;
}

.content-section {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 76px 0;
}

.no-pad-top {
    padding-top: 0;
}

.wide-section {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.34), rgba(15, 23, 42, 0.72));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

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

.section-heading h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

.mini-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
}

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

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

.hover-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.68));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .hover-play {
    opacity: 1;
}

.movie-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
}

.movie-meta {
    color: #34d399;
    font-size: 13px;
    font-weight: 700;
}

.movie-card h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.35;
}

.movie-card p {
    min-height: 48px;
    color: var(--muted);
    margin: 0;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

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

.category-tile {
    min-height: 180px;
    border-radius: 24px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile strong {
    font-size: 23px;
    margin-bottom: 8px;
}

.category-tile span {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 36px;
}

.rank-list {
    display: grid;
    gap: 14px;
}

.rank-row {
    display: grid;
    grid-template-columns: 54px 126px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.14);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
    transform: translateX(4px);
    border-color: rgba(16, 185, 129, 0.42);
    background: rgba(15, 23, 42, 0.98);
}

.rank-num {
    color: #34d399;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.rank-row img {
    width: 126px;
    height: 76px;
    object-fit: cover;
    border-radius: 14px;
    background: #111827;
}

.rank-content {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.rank-content strong {
    font-size: 18px;
}

.rank-content em {
    color: #34d399;
    font-style: normal;
    font-size: 13px;
}

.rank-content span {
    color: var(--muted);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.page-hero,
.detail-hero {
    min-height: 380px;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.25), transparent 34%), linear-gradient(135deg, #020617, #0f172a 70%, #064e3b);
    border-bottom: 1px solid var(--line);
}

.small-hero,
.search-hero,
.ranking-hero,
.category-hero {
    min-height: 330px;
}

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

.category-card-large {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.category-cover {
    min-height: 150px;
    border-radius: 20px;
    padding: 18px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    font-size: 24px;
    font-weight: 900;
}

.category-card-large h2 {
    margin: 4px 0 10px;
    font-size: 25px;
}

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

.inline-links,
.footer-links,
.detail-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.inline-links a,
.footer-links a,
.detail-nav-links a {
    color: #a7f3d0;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 13px;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    margin-bottom: 24px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--line);
}

.filter-bar label {
    font-weight: 800;
    white-space: nowrap;
}

.detail-hero {
    min-height: 540px;
    background-size: cover;
    background-position: center;
}

.detail-hero-inner {
    max-width: 850px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #cbd5e1;
    margin-bottom: 22px;
}

.breadcrumb a {
    color: #a7f3d0;
}

.player-section {
    width: min(1180px, calc(100% - 48px));
    margin: -80px auto 0;
    position: relative;
    z-index: 2;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: black;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: white;
    border: 0;
    text-align: center;
    padding: 30px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.18), rgba(2, 6, 23, 0.66) 48%, rgba(2, 6, 23, 0.92));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
    width: 92px;
    height: 92px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(135deg, var(--green), var(--cyan));
    box-shadow: 0 24px 55px rgba(16, 185, 129, 0.35);
    font-size: 36px;
    padding-left: 5px;
}

.play-overlay strong {
    font-size: clamp(26px, 5vw, 44px);
    max-width: 720px;
}

.play-overlay em {
    color: #cbd5e1;
    font-style: normal;
    max-width: 760px;
    line-height: 1.75;
}

.detail-grid-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
}

.detail-article,
.detail-side {
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.16);
    padding: 28px;
}

.detail-article h2,
.detail-side h2 {
    margin: 0 0 18px;
    font-size: 27px;
    font-weight: 900;
}

.detail-article p {
    color: #cbd5e1;
    line-height: 1.9;
    margin: 0 0 26px;
    font-size: 17px;
}

.detail-side dl {
    display: grid;
    gap: 14px;
    margin: 0 0 24px;
}

.detail-side dl div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    padding-bottom: 12px;
}

.detail-side dt {
    color: var(--muted);
}

.detail-side dd {
    margin: 0;
    text-align: right;
    color: white;
}

.site-footer {
    margin-top: 60px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(2, 6, 23, 0.98));
}

.footer-grid {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 34px;
}

.site-footer p {
    color: var(--muted);
    line-height: 1.8;
    max-width: 460px;
}

.site-footer h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

.compact-links a {
    font-size: 12px;
}

.copyright {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 20px 0 34px;
    color: #64748b;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.hero-search {
    max-width: 720px;
}

@media (max-width: 1100px) {
    .four-col {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .split-section,
    .detail-grid-section,
    .quick-search-inner,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .nav-search {
        display: none;
    }
}

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

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

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

    .hero-carousel {
        min-height: 560px;
    }

    .hero-content {
        padding-top: 48px;
    }

    .content-section {
        width: min(100% - 32px, 1180px);
        padding: 54px 0;
    }

    .player-section {
        width: min(100% - 32px, 1180px);
        margin-top: -48px;
    }

    .four-col,
    .three-col,
    .mini-card-grid,
    .category-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .rank-row {
        grid-template-columns: 42px 96px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-row img {
        width: 96px;
        height: 62px;
    }
}

@media (max-width: 560px) {
    .nav-wrap {
        min-height: 64px;
        padding: 0 16px;
    }

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

    .hero-content,
    .detail-hero-inner,
    .page-hero > div,
    .quick-search-inner,
    .footer-grid,
    .copyright {
        width: calc(100% - 32px);
    }

    .hero-carousel {
        min-height: 620px;
    }

    .hero-actions,
    .quick-search-inner form,
    .hero-search,
    .mobile-panel form,
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .four-col,
    .three-col,
    .mini-card-grid,
    .category-grid,
    .category-list-grid {
        grid-template-columns: 1fr;
    }

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

    .page-hero,
    .detail-hero {
        min-height: 440px;
    }

    .player-shell {
        border-radius: 18px;
    }

    .play-circle {
        width: 72px;
        height: 72px;
        font-size: 28px;
    }

    .detail-article,
    .detail-side {
        padding: 22px;
    }

    .rank-row {
        grid-template-columns: 1fr;
    }

    .rank-num {
        text-align: left;
    }

    .rank-row img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}
