:root {
    --site-bg: #f8fafc;
    --panel: #ffffff;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --primary: #059669;
    --primary-dark: #047857;
    --accent: #0f766e;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--site-bg);
    line-height: 1.65;
}

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: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #10b981, #0f766e);
    box-shadow: 0 12px 24px rgba(5, 150, 105, 0.22);
}

.logo-text {
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #059669, #0f766e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #334155;
    font-weight: 700;
}

.desktop-nav a,
.mobile-nav a {
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--primary);
}

.header-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
}

.header-search input {
    width: 210px;
    border: 0;
    outline: 0;
    padding: 8px 4px 8px 12px;
    color: var(--ink);
    background: transparent;
}

.header-search button,
.primary-button,
.secondary-button,
.section-link,
.filter-button {
    border: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.header-search button,
.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, #10b981, #0f766e);
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(5, 150, 105, 0.2);
}

.header-search button {
    padding: 8px 16px;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    font-weight: 800;
}

.header-search button:hover,
.primary-button:hover,
.secondary-button:hover,
.section-link:hover,
.filter-button:hover {
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 19px;
    height: 2px;
    border-radius: 999px;
    background: #334155;
}

.mobile-nav {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    gap: 14px;
    font-weight: 800;
    color: #334155;
}

.mobile-nav.is-open {
    display: grid;
}

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

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

.hero-slide {
    opacity: 0;
    transition: opacity 0.9s ease;
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.32), transparent 42%), #020617;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
    transform: scale(1.02);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.18) 100%), linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(700px, 100%);
    color: #ffffff;
    padding-top: 12px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6ee7b7;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero p {
    margin: 20px 0 0;
    font-size: clamp(16px, 2vw, 20px);
    color: #dbeafe;
    max-width: 660px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
    color: #d1fae5;
    font-weight: 700;
}

.hero-meta span {
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.42);
    border: 1px solid rgba(110, 231, 183, 0.28);
}

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

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

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

.hero-dot.is-active {
    background: #34d399;
}

.page-hero {
    padding: 76px 0 64px;
    color: #ffffff;
    background: radial-gradient(circle at top right, rgba(52, 211, 153, 0.32), transparent 38%), linear-gradient(135deg, #064e3b, #0f766e 52%, #134e4a);
}

.page-hero-inner,
.content-wrap {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.12;
    letter-spacing: -0.05em;
}

.page-hero p {
    margin: 16px 0 0;
    max-width: 760px;
    color: #d1fae5;
    font-size: 18px;
}

.content-wrap {
    padding: 56px 0;
}

.section-block {
    margin-bottom: 58px;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.16;
    letter-spacing: -0.04em;
}

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

.section-link {
    flex: 0 0 auto;
    padding: 10px 16px;
    color: var(--primary-dark);
    border: 1px solid rgba(5, 150, 105, 0.28);
    border-radius: 999px;
    background: rgba(236, 253, 245, 0.85);
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.86);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: rgba(16, 185, 129, 0.36);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #0f766e);
}

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

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

.poster-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.58), transparent 48%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-frame::after {
    opacity: 1;
}

.poster-year,
.poster-type {
    position: absolute;
    z-index: 2;
    top: 12px;
    padding: 5px 9px;
    border-radius: 10px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.62);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 800;
}

.poster-year {
    right: 12px;
}

.poster-type {
    left: 12px;
    background: rgba(5, 150, 105, 0.82);
}

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

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--primary);
}

.movie-meta,
.movie-desc {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.movie-desc {
    display: -webkit-box;
    min-height: 43px;
    margin-top: 9px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #047857;
    background: #ecfdf5;
    font-size: 12px;
    font-weight: 800;
}

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

.category-card {
    position: relative;
    min-height: 160px;
    overflow: hidden;
    border-radius: 24px;
    padding: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f766e, #10b981);
    box-shadow: 0 18px 36px rgba(15, 118, 110, 0.18);
}

.category-card:nth-child(3n + 1) {
    background: linear-gradient(135deg, #064e3b, #059669);
}

.category-card:nth-child(3n + 2) {
    background: linear-gradient(135deg, #115e59, #14b8a6);
}

.category-card::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -42px;
    bottom: -44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.category-card h3 {
    position: relative;
    margin: 0;
    font-size: 22px;
}

.category-card p {
    position: relative;
    margin: 12px 0 0;
    color: #d1fae5;
}

.filter-panel {
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

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

.filter-input {
    min-width: min(420px, 100%);
    flex: 1;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    outline: 0;
    background: #f8fafc;
}

.filter-input:focus {
    border-color: rgba(16, 185, 129, 0.62);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.filter-button {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #334155;
    background: #ffffff;
    font-weight: 800;
}

.filter-button.is-active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, #10b981, #0f766e);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: #64748b;
    font-weight: 700;
}

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

.detail-hero {
    padding: 44px 0 52px;
    color: #ffffff;
    background: radial-gradient(circle at 82% 10%, rgba(52, 211, 153, 0.32), transparent 36%), linear-gradient(135deg, #020617, #0f172a 48%, #064e3b);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 36px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, #0f172a, #0f766e);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
}

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

.detail-copy h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.detail-copy p {
    max-width: 840px;
    color: #dbeafe;
    font-size: 18px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 20px;
}

.detail-meta span {
    padding: 7px 11px;
    border-radius: 999px;
    color: #d1fae5;
    background: rgba(5, 150, 105, 0.22);
    border: 1px solid rgba(110, 231, 183, 0.2);
    font-weight: 800;
}

.player-section {
    margin-top: 42px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow);
}

.player-box video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-poster,
.player-overlay {
    position: absolute;
    inset: 0;
}

.player-poster {
    z-index: 1;
    background: linear-gradient(135deg, #0f172a, #064e3b);
}

.player-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.38;
    filter: blur(1px);
}

.player-overlay {
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.55), rgba(2, 6, 23, 0.18));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 170px;
    min-height: 58px;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981, #0f766e);
    box-shadow: 0 22px 45px rgba(5, 150, 105, 0.32);
    font-weight: 900;
    cursor: pointer;
}

.play-icon {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid #ffffff;
}

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

.article-panel,
.side-panel {
    border: 1px solid rgba(226, 232, 240, 0.86);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.article-panel {
    padding: 30px;
}

.article-panel h2,
.side-panel h2 {
    margin: 0 0 16px;
    font-size: 26px;
    letter-spacing: -0.03em;
}

.article-panel p {
    margin: 0 0 18px;
    color: #334155;
    font-size: 17px;
}

.side-panel {
    padding: 22px;
}

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

.side-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
}

.side-item-poster {
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #0f172a, #0f766e);
}

.side-item-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-item h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
}

.side-item p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 44px 86px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.rank-number {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981, #0f766e);
    font-weight: 900;
}

.rank-poster {
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #0f172a, #0f766e);
}

.rank-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-copy h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.rank-copy p {
    margin: 0;
    color: var(--muted);
}

.site-footer {
    color: #e2e8f0;
    background: linear-gradient(135deg, #020617, #0f172a 55%, #064e3b);
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 36px;
}

.footer-inner h2,
.footer-inner h3 {
    margin: 0 0 14px;
    color: #6ee7b7;
}

.footer-inner p {
    margin: 0;
    color: #cbd5e1;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a {
    color: #cbd5e1;
}

.footer-links a:hover {
    color: #6ee7b7;
}

.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #94a3b8;
    font-size: 14px;
}

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

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

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

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

    .menu-toggle {
        display: inline-flex;
    }

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

    .hero {
        height: 560px;
    }

    .movie-grid,
    .movie-grid-wide {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

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

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

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

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

@media (max-width: 560px) {
    .logo-text {
        font-size: 18px;
    }

    .hero {
        height: 520px;
    }

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

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

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

    .movie-card h3 {
        font-size: 15px;
    }

    .rank-item {
        grid-template-columns: 34px 68px 1fr;
        gap: 10px;
        padding: 10px;
    }
}
