:root {
    --emerald: #059669;
    --emerald-dark: #047857;
    --teal: #0d9488;
    --mint: #ecfdf5;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --card: #ffffff;
    --soft: #f8fafc;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(135deg, #f9fafb 0%, #ecfdf5 42%, #f8fafc 100%);
    line-height: 1.65;
}

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

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

img.is-missing {
    display: none;
}

button,
input {
    font: inherit;
}

.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(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: var(--ink);
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.28);
}

.logo-text {
    font-size: 20px;
    background: linear-gradient(135deg, var(--emerald-dark), var(--teal));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

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

.nav-link {
    display: inline-flex;
    padding: 9px 13px;
    border-radius: 12px;
    color: #374151;
    font-weight: 700;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--emerald-dark);
    background: var(--mint);
}

.header-search,
.mobile-search,
.page-search-form,
.search-band form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.page-search-form input,
.search-band input,
.listing-toolbar input {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 11px 16px;
    outline: 0;
    background: #ffffff;
    color: var(--ink);
    min-width: 0;
    transition: 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.page-search-form input:focus,
.search-band input:focus,
.listing-toolbar input:focus {
    border-color: rgba(5, 150, 105, 0.5);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
}

.header-search button,
.mobile-search button,
.page-search-form button,
.search-band button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    font-weight: 800;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    border: 0;
    background: var(--soft);
    border-radius: 12px;
    width: 42px;
    height: 42px;
    cursor: pointer;
}

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

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

.mobile-search input {
    flex: 1;
}

.mobile-nav {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.9s ease;
}

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

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #064e3b, #0f172a);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 20%, rgba(45, 212, 191, 0.22), transparent 34%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    color: #ffffff;
}

.hero-copy {
    max-width: 680px;
    padding-top: 28px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a7f3d0;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-kicker span,
.eyebrow {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(5, 150, 105, 0.2);
    border: 1px solid rgba(167, 243, 208, 0.35);
}

.hero-copy h1,
.hero-copy h2 {
    margin: 22px 0 18px;
    max-width: 820px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero-copy p {
    margin: 0;
    max-width: 640px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.hero-meta,
.detail-meta,
.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-meta {
    margin-top: 22px;
}

.hero-meta span,
.detail-meta span,
.movie-meta-line span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 800;
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 900;
    transition: 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    box-shadow: 0 14px 35px rgba(5, 150, 105, 0.3);
}

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

.btn-soft {
    color: #064e3b;
    background: rgba(236, 253, 245, 0.92);
}

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

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-controls > button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    font-size: 28px;
    backdrop-filter: blur(12px);
}

.hero-dots {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    max-width: min(680px, calc(100vw - 130px));
    padding: 4px;
}

.hero-dot {
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    padding: 9px 13px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    white-space: nowrap;
    cursor: pointer;
}

.hero-dot.is-active {
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    border-color: transparent;
}

.search-band {
    margin-top: -34px;
    position: relative;
    z-index: 3;
}

.search-band-inner {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 430px);
    gap: 22px;
    align-items: center;
    padding: 26px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    border: 1px solid rgba(229, 231, 235, 0.82);
}

.search-band h2,
.section-head h2,
.page-hero h1,
.detail-article h1,
.detail-article h2,
.side-card h2,
.rank-panel h2,
.listing-toolbar h2,
.site-footer h2 {
    margin: 0;
    color: var(--ink);
    line-height: 1.2;
}

.search-band p,
.section-head p,
.page-hero p,
.category-card p,
.movie-card p,
.detail-article p,
.rank-card p,
.site-footer p {
    color: var(--muted);
}

.search-band form input {
    flex: 1;
}

.content-section {
    padding: 58px 0 0;
}

.content-section.container,
.container.content-section {
    padding-top: 58px;
}

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

.section-head h2 {
    font-size: clamp(26px, 4vw, 38px);
    letter-spacing: -0.03em;
}

.section-head p {
    margin: 8px 0 0;
}

.section-head a,
.rank-panel-head a {
    color: var(--emerald-dark);
    font-weight: 900;
}

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

.category-card {
    display: block;
    min-height: 190px;
    padding: 22px;
    border-radius: var(--radius);
    background: linear-gradient(145deg, #ffffff, #f0fdfa);
    border: 1px solid rgba(209, 250, 229, 0.92);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    transition: 0.22s ease;
}

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

.category-card strong {
    display: block;
    font-size: 22px;
    color: var(--ink);
    margin-bottom: 10px;
}

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

.category-card div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-card span {
    max-width: 100%;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--emerald-dark);
    background: rgba(5, 150, 105, 0.08);
    font-size: 12px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    transition: 0.22s ease;
}

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

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.1;
    background:
        radial-gradient(circle at 30% 20%, rgba(16, 185, 129, 0.35), transparent 28%),
        linear-gradient(135deg, #064e3b, #0f172a);
    overflow: hidden;
}

.movie-poster img,
.rank-cover img,
.side-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.35s ease;
}

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

.poster-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 1;
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(5, 150, 105, 0.92);
    font-size: 12px;
    font-weight: 900;
}

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

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

.movie-meta-line span {
    color: var(--emerald-dark);
    background: var(--mint);
}

.movie-card h2 {
    margin: 0 0 9px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h2 a:hover,
.rank-card h2 a:hover {
    color: var(--emerald-dark);
}

.movie-card p {
    min-height: 52px;
    margin: 0 0 12px;
    font-size: 14px;
}

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

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-row span {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    color: #4b5563;
    background: #f3f4f6;
    font-size: 12px;
    font-weight: 800;
}

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

.rank-panel {
    position: sticky;
    top: 94px;
    padding: 22px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: var(--shadow);
}

.rank-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: #f9fafb;
    border: 1px solid #eef2f7;
}

.rank-row span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    font-weight: 900;
}

.rank-row strong,
.rank-row em {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-row em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.page-main {
    padding-bottom: 72px;
}

.page-hero {
    margin-top: 32px;
    padding: 48px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 90% 10%, rgba(45, 212, 191, 0.26), transparent 25%),
        linear-gradient(135deg, #064e3b, #0f172a);
    color: #ffffff;
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin-top: 18px;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.slim-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 24px;
    align-items: center;
}

.category-hero {
    min-height: 300px;
}

.hero-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-link-row a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 800;
}

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

.listing-panel {
    margin-top: 32px;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
}

.listing-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.listing-toolbar input {
    min-width: 260px;
}

.result-status {
    color: var(--muted);
    font-weight: 800;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid var(--line);
}

.rank-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #064e3b, #111827);
}

.rank-cover span {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
    padding: 4px 8px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(5, 150, 105, 0.94);
    font-size: 12px;
    font-weight: 900;
}

.rank-card h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.rank-card p {
    margin: 0 0 12px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 24px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--emerald-dark);
    font-weight: 900;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 28px;
    margin-top: 22px;
}

.player-card,
.detail-article,
.side-card {
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.player-card {
    padding: 14px;
}

.site-player {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 22px;
    background: #020617;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.72));
    cursor: pointer;
    transition: 0.2s ease;
}

.player-overlay strong {
    font-size: 18px;
}

.play-circle {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    box-shadow: 0 18px 40px rgba(5, 150, 105, 0.38);
    font-size: 30px;
    padding-left: 5px;
}

.site-player.is-started .player-overlay {
    opacity: 0;
    pointer-events: none;
}

.site-player:hover .player-overlay {
    opacity: 1;
}

.site-player.is-started:hover .player-overlay {
    opacity: 0;
}

.player-message {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    color: #fecaca;
    text-align: center;
    font-weight: 900;
    pointer-events: none;
}

.detail-article {
    margin-top: 20px;
    padding: 30px;
}

.detail-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 18px;
}

.detail-article h1 {
    margin-top: 16px;
    font-size: clamp(30px, 5vw, 52px);
    letter-spacing: -0.05em;
}

.lead-text {
    font-size: 20px;
}

.detail-meta {
    margin: 20px 0 28px;
}

.detail-meta span {
    color: var(--emerald-dark);
    background: var(--mint);
}

.detail-article h2 {
    margin-top: 26px;
    margin-bottom: 10px;
    font-size: 26px;
}

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

.detail-side {
    display: grid;
    gap: 18px;
    align-content: start;
}

.side-poster {
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 3 / 4.2;
    background: linear-gradient(135deg, #064e3b, #0f172a);
    box-shadow: var(--shadow);
}

.side-card {
    padding: 22px;
}

.side-card dl {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
    margin: 18px 0 0;
}

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

.side-card dd {
    margin: 0;
    font-weight: 800;
}

.site-footer {
    margin-top: 72px;
    padding: 46px 0 22px;
    background: #ffffff;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
}

.site-footer h2 {
    margin-bottom: 14px;
    font-size: 18px;
}

.site-footer a:not(.footer-logo) {
    display: block;
    margin: 8px 0;
    color: #4b5563;
    font-weight: 700;
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
    font-size: 14px;
}

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

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

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

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

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

    .two-column-section,
    .detail-layout,
    .slim-hero {
        grid-template-columns: 1fr;
    }

    .rank-panel {
        position: static;
    }
}

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

    .header-inner {
        height: 66px;
    }

    .header-search {
        display: none;
    }

    .logo-text {
        font-size: 17px;
    }

    .hero-slider {
        height: 590px;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: 40px;
    }

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

    .hero-actions,
    .hero-meta {
        gap: 8px;
    }

    .hero-actions .btn {
        flex: 1 1 140px;
    }

    .search-band-inner,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .search-band form,
    .page-search-form,
    .listing-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

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

    .listing-panel,
    .detail-article,
    .page-hero {
        padding: 22px;
        border-radius: 22px;
    }

    .rank-card {
        grid-template-columns: 90px minmax(0, 1fr);
        gap: 14px;
    }

    .rank-card h2 {
        font-size: 19px;
    }

    .detail-title-row {
        display: block;
    }

    .detail-title-row .btn {
        margin-top: 14px;
    }

    .side-card dl {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (max-width: 460px) {
    .movie-grid,
    .compact-grid,
    .category-grid,
    .large-category-grid {
        grid-template-columns: 1fr;
    }

    .hero-controls {
        bottom: 14px;
    }

    .hero-dots {
        display: none;
    }

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

    .rank-cover {
        max-width: 180px;
    }
}
