:root {
    color-scheme: dark;
    --bg: #07110f;
    --bg-soft: #0d1c18;
    --panel: rgba(12, 28, 24, 0.82);
    --panel-strong: rgba(16, 38, 33, 0.96);
    --line: rgba(152, 216, 200, 0.18);
    --text: #f8fffd;
    --muted: #a7bdb7;
    --brand: #98d8c8;
    --brand-strong: #5ba896;
    --gold: #ffd166;
    --danger: #ff6b6b;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 0%, rgba(152, 216, 200, 0.18), transparent 36rem),
        radial-gradient(circle at 80% 10%, rgba(91, 168, 150, 0.16), transparent 32rem),
        linear-gradient(135deg, #06100e 0%, #10231f 48%, #07110f 100%);
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(10, 31, 27, 0.96), rgba(24, 74, 64, 0.92), rgba(91, 168, 150, 0.9));
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.26);
}

.header-inner {
    width: min(1480px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    color: var(--brand);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.desktop-nav a,
.mobile-panel a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    font-size: 15px;
    transition: color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.header-search,
.mobile-search,
.big-search,
.inline-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search input,
.mobile-search input,
.big-search input,
.inline-filter input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #12332c;
    background: rgba(255, 255, 255, 0.92);
    padding: 12px 18px;
    outline: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.header-search input {
    width: 260px;
}

.header-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.inline-filter input:focus {
    box-shadow: 0 0 0 4px rgba(152, 216, 200, 0.28);
}

.header-search button,
.mobile-search button,
.big-search button {
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    color: #10231f;
    background: var(--brand);
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.big-search button:hover {
    transform: translateY(-1px);
    background: #b7f4e6;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
}

.mobile-panel {
    display: none;
    width: min(1480px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

main,
.page-shell {
    width: min(1480px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-carousel {
    position: relative;
    width: min(1480px, calc(100% - 32px));
    min-height: 680px;
    margin: 28px auto 0;
    border-radius: 34px;
    overflow: hidden;
    background: #10231f;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.52fr);
    gap: 36px;
    align-items: center;
    padding: 70px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: scale(1.02);
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: blur(22px) saturate(1.1);
    transform: scale(1.12);
    opacity: 0.34;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 13, 11, 0.96) 0%, rgba(7, 17, 15, 0.76) 46%, rgba(12, 28, 24, 0.42) 100%),
        radial-gradient(circle at 74% 34%, rgba(152, 216, 200, 0.28), transparent 28rem);
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 2;
}

.eyebrow,
.section-title span,
.page-hero span,
.category-card-large span {
    display: inline-flex;
    width: fit-content;
    border: 1px solid rgba(152, 216, 200, 0.3);
    border-radius: 999px;
    background: rgba(152, 216, 200, 0.12);
    color: var(--brand);
    padding: 8px 13px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 860px;
    margin: 24px 0 18px;
    font-size: clamp(42px, 6vw, 86px);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 780px;
    margin: 0;
    color: #d7efea;
    font-size: 18px;
    line-height: 1.9;
}

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

.hero-tags {
    margin: 26px 0 34px;
}

.hero-tags span,
.tag-row span,
.detail-meta span,
.card-meta span {
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #eafffb;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 700;
}

.hero-actions,
.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

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

.primary-btn {
    background: linear-gradient(135deg, var(--brand), #d8fff4);
    color: #0d251f;
    box-shadow: 0 16px 36px rgba(152, 216, 200, 0.28);
}

.primary-btn.small {
    min-height: 40px;
    padding: 0 18px;
    font-size: 14px;
}

.ghost-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px);
}

.hero-poster {
    width: min(360px, 100%);
    justify-self: center;
    border-radius: 30px;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.06);
}

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #0d251f;
    background: rgba(152, 216, 200, 0.92);
    transform: translate(-50%, -50%);
    font-size: 30px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.34);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateX(-50%);
}

.hero-prev,
.hero-next,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-prev,
.hero-next {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    font-size: 30px;
    line-height: 1;
}

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

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

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

.search-band,
.section-block,
.side-panel,
.category-card-large,
.page-hero,
.movie-article,
.side-info-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(16px);
}

.search-band {
    margin: 26px 0;
    padding: 30px;
    display: grid;
    grid-template-columns: minmax(260px, 0.6fr) minmax(280px, 1fr);
    gap: 28px;
    align-items: center;
}

.search-band h2,
.section-title h2,
.page-hero h1,
.side-panel h2,
.category-card-large h2,
.movie-article h1,
.movie-article h2 {
    margin: 0;
    letter-spacing: -0.03em;
}

.search-band p,
.page-hero p,
.category-card-large p,
.site-footer p,
.movie-article p,
.side-info-card p {
    color: var(--muted);
    line-height: 1.8;
}

.big-search input {
    min-height: 56px;
    font-size: 16px;
}

.big-search button {
    min-height: 56px;
    padding: 0 28px;
}

.section-block {
    margin: 26px 0;
    padding: 28px;
}

.section-title {
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title h2 {
    margin-top: 10px;
    font-size: clamp(26px, 3vw, 42px);
}

.section-title a {
    color: var(--brand);
    font-weight: 900;
}

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

.category-pill {
    display: grid;
    gap: 8px;
    min-height: 132px;
    padding: 22px;
    border: 1px solid rgba(152, 216, 200, 0.16);
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(152, 216, 200, 0.18), transparent 11rem),
        rgba(255, 255, 255, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-pill:hover {
    transform: translateY(-4px);
    border-color: rgba(152, 216, 200, 0.48);
}

.category-pill strong {
    font-size: 22px;
}

.category-pill span {
    color: var(--muted);
    line-height: 1.65;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.055);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(152, 216, 200, 0.42);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.26s ease, filter 0.26s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.07);
    filter: brightness(0.82);
}

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

.play-chip {
    left: 14px;
    bottom: 14px;
    padding: 9px 12px;
    color: #0d251f;
    background: rgba(152, 216, 200, 0.94);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .play-chip {
    opacity: 1;
    transform: translateY(0);
}

.rank-badge {
    right: 12px;
    top: 12px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold), #ff9f1c);
    color: #211400;
}

.card-body {
    padding: 15px;
}

.card-meta {
    gap: 6px;
    margin-bottom: 10px;
}

.card-meta span {
    padding: 5px 8px;
    font-size: 11px;
}

.card-body h3 {
    margin: 0 0 8px;
    min-height: 48px;
    font-size: 17px;
    line-height: 1.4;
}

.card-body h3 a:hover {
    color: var(--brand);
}

.card-body p {
    min-height: 70px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.72;
}

.tag-row span {
    padding: 5px 9px;
    font-size: 12px;
}

.two-column-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 26px;
    align-items: start;
}

.compact-section {
    margin-top: 0;
}

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

.side-panel {
    padding: 26px;
}

.side-panel h2 {
    margin-bottom: 18px;
    font-size: 26px;
}

.mini-list {
    display: grid;
    gap: 12px;
}

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

.mini-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
}

.mini-card img {
    width: 58px;
    height: 78px;
    object-fit: cover;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
}

.mini-card span {
    min-width: 0;
    font-weight: 800;
    line-height: 1.45;
}

.page-shell {
    padding: 28px 0 0;
}

.page-hero {
    padding: 44px;
    margin-bottom: 26px;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -8%;
    top: -35%;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: rgba(152, 216, 200, 0.13);
    filter: blur(4px);
}

.page-hero h1 {
    position: relative;
    z-index: 2;
    margin-top: 14px;
    font-size: clamp(36px, 5vw, 68px);
}

.page-hero p,
.inline-filter,
.quick-filter-row,
.page-hero span {
    position: relative;
    z-index: 2;
}

.inline-filter {
    max-width: 720px;
    margin-top: 24px;
}

.inline-filter input {
    min-height: 54px;
    color: #10231f;
}

.quick-filter-row {
    margin-top: 18px;
}

.quick-filter-row a {
    border: 1px solid rgba(152, 216, 200, 0.2);
    border-radius: 999px;
    padding: 8px 13px;
    background: rgba(152, 216, 200, 0.08);
    color: var(--brand);
    font-weight: 800;
}

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

.category-card-large {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    gap: 24px;
    padding: 28px;
    align-items: center;
}

.category-card-large h2 {
    margin-top: 14px;
    font-size: 32px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--muted);
}

.breadcrumbs a {
    color: var(--brand);
    font-weight: 800;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 26px;
    align-items: start;
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: rgba(0, 0, 0, 0.36);
    cursor: pointer;
    z-index: 5;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-overlay span {
    width: 92px;
    height: 92px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand);
    color: #0d251f;
    font-size: 38px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
}

.movie-article {
    margin-top: 24px;
    padding: 30px;
}

.movie-article h1 {
    font-size: clamp(32px, 4.2vw, 56px);
    line-height: 1.05;
}

.detail-meta {
    margin: 18px 0;
}

.one-line {
    color: #eafffb;
    font-size: 18px;
}

.detail-tags {
    margin: 18px 0 26px;
}

.movie-article h2 {
    margin-top: 28px;
    font-size: 26px;
}

.movie-article p {
    font-size: 16px;
}

.detail-side {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 18px;
}

.detail-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 26px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
}

.side-info-card {
    padding: 22px;
}

.side-info-card h2 {
    margin: 0 0 8px;
}

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

.site-footer {
    width: min(1480px, calc(100% - 32px));
    margin: 36px auto 0;
    padding: 34px 0 28px;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr 0.8fr;
    gap: 40px;
}

.site-footer h3 {
    margin: 0 0 14px;
}

.site-footer a {
    display: block;
    margin: 8px 0;
    color: var(--muted);
}

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

.footer-logo {
    margin-bottom: 10px;
    color: var(--brand);
}

.copyright {
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 14px;
}

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

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

    .menu-toggle {
        display: block;
    }

    .header-search {
        margin-left: auto;
    }

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

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

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

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

    .hero-carousel {
        min-height: 820px;
        border-radius: 26px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 38px;
        text-align: left;
    }

    .hero-poster {
        width: 250px;
        justify-self: start;
    }

    .search-band,
    .two-column-block,
    .detail-layout,
    .footer-grid,
    .category-card-large {
        grid-template-columns: 1fr;
    }

    .detail-side {
        position: static;
        grid-template-columns: 220px minmax(0, 1fr);
    }

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

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

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

@media (max-width: 680px) {
    .header-inner,
    main,
    .page-shell,
    .hero-carousel,
    .site-footer,
    .mobile-panel {
        width: min(100% - 20px, 1480px);
    }

    .logo {
        font-size: 18px;
    }

    .hero-carousel {
        min-height: 760px;
        margin-top: 14px;
    }

    .hero-slide {
        padding: 26px;
        gap: 18px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .hero-poster {
        width: 190px;
    }

    .section-block,
    .search-band,
    .page-hero,
    .movie-article,
    .side-panel,
    .category-card-large {
        padding: 20px;
        border-radius: 20px;
    }

    .big-search {
        display: grid;
    }

    .category-grid,
    .movie-grid,
    .ranking-grid,
    .related-grid,
    .mini-list.tight {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .card-body {
        padding: 12px;
    }

    .card-body h3 {
        font-size: 15px;
        min-height: 42px;
    }

    .card-body p {
        min-height: 58px;
        font-size: 12px;
    }

    .detail-side {
        grid-template-columns: 1fr;
    }

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

    .player-overlay span {
        width: 72px;
        height: 72px;
        font-size: 30px;
    }
}
