:root {
    --bg: #f7fffb;
    --surface: #ffffff;
    --ink: #10211c;
    --muted: #66756f;
    --soft: #e6f7ef;
    --line: #d9eee5;
    --primary: #10b981;
    --primary-dark: #059669;
    --teal: #14b8a6;
    --shadow: 0 24px 60px rgba(15, 118, 110, 0.14);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--ink);
    background: linear-gradient(135deg, #ffffff 0%, #f1fdf8 45%, #effcfb 100%);
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.14);
    box-shadow: 0 12px 34px rgba(15, 118, 110, 0.06);
}

.nav-wrap {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--teal));
    box-shadow: 0 14px 26px rgba(16, 185, 129, 0.28);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-copy strong,
.footer-brand strong {
    font-size: 22px;
    background: linear-gradient(90deg, var(--primary-dark), var(--teal));
    -webkit-background-clip: text;
    color: transparent;
}

.brand-copy small {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.main-nav a,
.mobile-panel a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #32443e;
    font-weight: 600;
    transition: 0.25s ease;
}

.main-nav a:hover,
.mobile-panel a:hover {
    color: var(--primary-dark);
    background: var(--soft);
}

.nav-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search input,
.mobile-search input,
.page-search-input {
    width: 230px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 12px 16px;
    outline: none;
    color: var(--ink);
    background: #ffffff;
    transition: 0.25s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.page-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.nav-search button,
.mobile-search button,
.btn,
.card-action,
.section-action,
.filter-chip {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    transition: 0.25s ease;
}

.nav-search button,
.mobile-search button {
    padding: 11px 18px;
    color: #ffffff;
    background: var(--primary);
}

.nav-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: var(--soft);
    color: var(--primary-dark);
    border-radius: 14px;
    width: 42px;
    height: 42px;
    font-size: 22px;
}

.mobile-panel {
    display: none;
    padding: 16px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.mobile-panel nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.hero-section {
    position: relative;
    height: 640px;
    overflow: hidden;
    background: #061a16;
}

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

.hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

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

.hero-image {
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 20%, rgba(20, 184, 166, 0.32), transparent 30%),
        linear-gradient(90deg, rgba(2, 20, 16, 0.88) 0%, rgba(2, 20, 16, 0.64) 48%, rgba(2, 20, 16, 0.16) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #ffffff;
    max-width: 1180px;
}

.hero-kicker,
.section-kicker {
    margin: 0 0 12px;
    color: var(--primary);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.hero-content h1,
.hero-content h2 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-content h2 + p,
.hero-content h1 + h2 + p {
    margin-top: 22px;
}

.hero-content p {
    max-width: 700px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 20px;
    line-height: 1.75;
}

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

.hero-meta span,
.meta-row span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #146452;
    background: #e8fbf3;
    font-size: 13px;
    font-weight: 700;
}

.hero-meta span {
    color: #d5fff2;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.btn,
.card-action,
.section-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 22px;
}

.btn.primary,
.card-action {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--teal));
    box-shadow: 0 14px 30px rgba(16, 185, 129, 0.24);
}

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

.btn.text {
    color: #ffffff;
    background: transparent;
}

.btn:hover,
.card-action:hover,
.section-action:hover,
.filter-chip:hover {
    transform: translateY(-2px);
}

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

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

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

.section-block {
    padding: 72px 0;
}

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

.section-head h2,
.page-hero h1,
.detail-info h1,
.player-section h2,
.article-card h2 {
    margin: 0;
    color: #10211c;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.03em;
}

.section-head p,
.page-hero p,
.detail-lead,
.article-card p,
.channel-panel p,
.category-card p,
.card-body p,
.rank-item p,
.site-footer p {
    color: var(--muted);
    line-height: 1.75;
}

.section-action {
    color: var(--primary-dark);
    background: var(--soft);
}

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

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

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

.movie-card,
.category-card,
.channel-panel,
.article-card,
.video-shell {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(16, 185, 129, 0.12);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.movie-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: 0.25s ease;
}

.movie-card:hover,
.category-card:hover,
.channel-panel:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 70px rgba(15, 118, 110, 0.20);
}

.poster-link,
.channel-cover,
.category-card {
    position: relative;
    display: block;
    overflow: hidden;
}

.poster-link img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: linear-gradient(135deg, #dffaf1, #ccfbf1);
    transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img,
.category-card:hover img,
.channel-panel:hover img {
    transform: scale(1.05);
}

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

.card-body h3,
.rank-item h3,
.channel-panel h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}

.card-body h3 a:hover,
.rank-item h3 a:hover,
.channel-panel h2 a:hover {
    color: var(--primary-dark);
}

.card-body p {
    margin: 0;
    font-size: 14px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-list span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #047857;
    background: #ecfdf5;
    font-size: 12px;
    font-weight: 700;
}

.card-action {
    align-self: flex-start;
    min-height: 38px;
    margin-top: auto;
    padding: 9px 16px;
    font-size: 14px;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: auto 96px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid var(--line);
}

.rank-thumb img {
    width: 96px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 16px;
}

.list-rank,
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #10b981);
}

.list-rank {
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

.rank-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
}

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

.category-card {
    min-height: 260px;
    color: #ffffff;
}

.category-card img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 20, 16, 0.20), rgba(2, 20, 16, 0.88));
}

.category-card span,
.category-card p {
    position: relative;
    z-index: 2;
    display: block;
    padding: 0 22px;
}

.category-card span {
    margin-top: 145px;
    font-size: 24px;
    font-weight: 900;
}

.category-card p {
    color: rgba(255, 255, 255, 0.82);
}

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

.channel-panel {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 22px;
    padding: 18px;
}

.channel-cover img {
    height: 220px;
    object-fit: cover;
    border-radius: 18px;
}

.channel-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 18px;
}

.channel-links a {
    padding: 6px 10px;
    border-radius: 999px;
    color: #047857;
    background: #ecfdf5;
    font-size: 13px;
    font-weight: 700;
}

.page-hero,
.detail-top {
    padding: 58px 0;
    background:
        radial-gradient(circle at 82% 18%, rgba(20, 184, 166, 0.18), transparent 28%),
        linear-gradient(135deg, #ffffff, #f0fdf9);
    border-bottom: 1px solid var(--line);
}

.soft-hero,
.category-hero {
    min-height: 280px;
    display: flex;
    align-items: center;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-weight: 700;
}

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

.filter-panel {
    padding: 24px 0;
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid var(--line);
}

.filter-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.page-search-input {
    width: min(420px, 100%);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    padding: 10px 16px;
    color: #047857;
    background: #ecfdf5;
}

.filter-chip.is-active {
    color: #ffffff;
    background: var(--primary);
}

.detail-grid {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 36px;
    align-items: center;
}

.detail-poster {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.detail-info h1 {
    margin-bottom: 18px;
}

.detail-lead {
    max-width: 800px;
    font-size: 18px;
}

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

.detail-tags {
    margin-bottom: 8px;
}

.detail-actions .btn.ghost {
    color: var(--primary-dark);
    border-color: var(--line);
    background: #ffffff;
}

.player-section {
    padding: 64px 0;
    background: #071512;
    color: #ffffff;
}

.player-section h2 {
    color: #ffffff;
    margin-bottom: 22px;
}

.video-shell {
    position: relative;
    background: #000000;
    border-radius: 30px;
    overflow: hidden;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.video-shell video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    outline: none;
}

.player-cover {
    position: absolute;
    inset: 0;
    border: 0;
    cursor: pointer;
    padding: 0;
    color: #ffffff;
    background: #000000;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
    height: 100%;
    object-fit: cover;
    opacity: 0.48;
}

.play-pulse {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--teal));
    box-shadow: 0 0 0 18px rgba(16, 185, 129, 0.22);
    font-size: 34px;
}

.player-cover strong {
    position: absolute;
    left: 50%;
    top: calc(50% + 70px);
    transform: translateX(-50%);
    font-size: 20px;
}

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

.detail-article {
    padding: 64px 0 12px;
}

.article-card {
    padding: 34px;
}

.article-card h2 + p {
    margin-top: 12px;
}

.article-card p + h2 {
    margin-top: 28px;
}

.site-footer {
    padding: 56px 0 26px;
    background: #ffffff;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 34px;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #047857;
    background: #ecfdf5;
    font-weight: 700;
    font-size: 14px;
}

.footer-bottom {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.is-hidden-by-filter {
    display: none !important;
}

@media (max-width: 1180px) {
    .featured-grid,
    .compact-grid,
    .ranking-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

@media (max-width: 880px) {
    .main-nav,
    .nav-search {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

    .hero-section {
        height: 620px;
    }

    .hero-content {
        justify-content: flex-end;
        padding-bottom: 90px;
    }

    .movie-grid,
    .featured-grid,
    .compact-grid,
    .ranking-grid,
    .category-grid,
    .channel-grid,
    .rank-list,
    .rank-list.two-column,
    .footer-grid,
    .detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-grid {
        align-items: start;
    }

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

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

    .brand-copy small {
        display: none;
    }

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

    .hero-actions,
    .detail-actions,
    .filter-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    .card-action,
    .section-action,
    .filter-chip {
        width: 100%;
    }

    .movie-grid,
    .featured-grid,
    .compact-grid,
    .ranking-grid,
    .category-grid,
    .channel-grid,
    .rank-list,
    .rank-list.two-column,
    .footer-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .channel-panel,
    .rank-item {
        grid-template-columns: 1fr;
    }

    .rank-thumb img,
    .channel-cover img {
        width: 100%;
        height: auto;
    }

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

    .section-block,
    .player-section,
    .detail-article {
        padding: 46px 0;
    }
}
