:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #ecfdf5;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --accent: #059669;
    --accent-dark: #047857;
    --accent-soft: #d1fae5;
    --accent-glow: rgba(16, 185, 129, 0.26);
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
    --radius: 18px;
    --radius-lg: 28px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.nav-wrap {
    max-width: var(--max);
    margin: 0 auto;
    min-height: 68px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

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

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #10b981, #0f766e);
    box-shadow: 0 12px 28px var(--accent-glow);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-weight: 900;
    font-size: 21px;
    letter-spacing: -0.02em;
}

.logo-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    position: relative;
    color: #374151;
    font-size: 15px;
    font-weight: 700;
    padding: 22px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #374151;
    background: #ffffff;
    font-weight: 700;
    transition: all 0.2s ease;
}

.search-pill:hover {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 10px 24px rgba(5, 150, 105, 0.13);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #374151;
    background: #f3f4f6;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: currentColor;
}

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

.mobile-menu.open {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 13px 22px;
    color: #374151;
    font-weight: 700;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--accent);
    background: #ecfdf5;
}

.hero {
    position: relative;
    min-height: 64vh;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 1s ease, transform 1s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 64vh;
    object-fit: cover;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.22), transparent 34%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.45) 48%, rgba(0, 0, 0, 0.18));
}

.hero-content {
    position: relative;
    z-index: 4;
    max-width: var(--max);
    min-height: 64vh;
    margin: 0 auto;
    padding: 90px 22px 72px;
    display: flex;
    align-items: flex-end;
}

.hero-copy {
    max-width: 780px;
    color: #ffffff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #d1fae5;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.hero-title {
    margin: 0 0 16px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.04em;
    text-shadow: 0 22px 45px rgba(0, 0, 0, 0.55);
}

.hero-desc {
    max-width: 720px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 22px);
    text-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-meta span {
    padding: 7px 11px;
    border-radius: 999px;
    color: #e5e7eb;
    background: rgba(17, 24, 39, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.22s ease;
}

.btn-primary {
    color: #ffffff;
    background: var(--accent);
    box-shadow: 0 18px 36px rgba(5, 150, 105, 0.32);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.btn-ghost {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(12px);
}

.btn-ghost:hover {
    color: #d1fae5;
    background: rgba(255, 255, 255, 0.20);
    transform: translateY(-2px);
}

.hero-dots {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: 4px;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 10;
    width: min(var(--max), calc(100% - 44px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    cursor: pointer;
    transition: all 0.25s ease;
}

.hero-dot.active {
    width: 32px;
    background: #ffffff;
}

.main {
    max-width: var(--max);
    margin: 0 auto;
    padding: 44px 22px 70px;
}

.page-hero {
    margin: 30px 0 36px;
    padding: 42px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.20), transparent 30%),
        linear-gradient(135deg, #ffffff, #ecfdf5);
    border: 1px solid rgba(16, 185, 129, 0.16);
    box-shadow: var(--shadow-soft);
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.14;
    letter-spacing: -0.03em;
}

.page-hero p {
    margin: 0;
    max-width: 760px;
    color: #4b5563;
    font-size: 17px;
}

.section {
    margin-bottom: 56px;
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-title .mark {
    width: 10px;
    height: 30px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 10px 20px var(--accent-glow);
}

.section-link {
    color: var(--accent);
    font-weight: 900;
}

.section-link:hover {
    color: var(--accent-dark);
}

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

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

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.95);
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

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

.movie-card .poster {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #064e3b);
}

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

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

.movie-card .poster::after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent);
}

.badge-row {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 12px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 0 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(5, 150, 105, 0.92);
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.badge-dark {
    background: rgba(17, 24, 39, 0.72);
}

.card-body {
    padding: 16px;
}

.card-title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.28;
    font-weight: 900;
}

.card-title a:hover {
    color: var(--accent);
}

.card-desc {
    margin: 0 0 12px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
}

.card-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f3f4f6;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 13px;
}

.card-tags span {
    padding: 4px 8px;
    border-radius: 999px;
    color: #047857;
    background: #ecfdf5;
    font-size: 12px;
    font-weight: 800;
}

.movie-card.horizontal {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
}

.movie-card.horizontal .poster img {
    height: 100%;
    min-height: 185px;
}

.movie-card.large {
    min-height: 100%;
}

.movie-card.large .poster img {
    height: 380px;
}

.category-panel {
    padding: 24px;
    border: 1px solid rgba(16, 185, 129, 0.16);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #ffffff, #ecfdf5);
    box-shadow: var(--shadow-soft);
    transition: all 0.22s ease;
}

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

.category-panel h2,
.category-panel h3 {
    margin: 0 0 9px;
    font-size: 22px;
}

.category-panel p {
    margin: 0 0 18px;
    color: #4b5563;
}

.category-panel .enter {
    color: var(--accent);
    font-weight: 900;
}

.feature-band {
    margin: 54px 0;
    padding: 34px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.25), transparent 28%),
        linear-gradient(135deg, #ecfdf5, #f0fdfa);
    border: 1px solid rgba(16, 185, 129, 0.16);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.rank-num {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981, #0f766e);
    font-weight: 950;
    box-shadow: 0 12px 22px var(--accent-glow);
}

.rank-title {
    margin: 0 0 5px;
    font-size: 17px;
    font-weight: 900;
}

.rank-title a:hover {
    color: var(--accent);
}

.rank-meta {
    color: #6b7280;
    font-size: 13px;
}

.rank-score {
    color: var(--accent);
    font-weight: 950;
    white-space: nowrap;
}

.filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px 170px;
    gap: 14px;
    margin: 0 0 26px;
    padding: 18px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.filter-input,
.filter-select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    color: #111827;
    outline: none;
}

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

.empty-state {
    display: none;
    padding: 38px;
    text-align: center;
    color: #6b7280;
    border-radius: var(--radius);
    background: #ffffff;
    border: 1px solid var(--line);
}

.empty-state.show {
    display: block;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
    margin: 26px 0 18px;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
    padding: 30px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.22), transparent 26%),
        #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.detail-cover {
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, #111827, #064e3b);
    box-shadow: var(--shadow);
}

.detail-cover img {
    width: 100%;
    min-height: 500px;
    object-fit: cover;
}

.detail-info h1 {
    margin: 0 0 15px;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-line {
    color: #374151;
    font-size: 18px;
    margin: 0 0 22px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-weight: 900;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 24px;
}

.detail-tags span {
    padding: 7px 11px;
    border-radius: 999px;
    color: #374151;
    background: #f3f4f6;
    font-weight: 800;
}

.player-section {
    margin: 34px 0;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #020617;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.player-box video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at center, rgba(16, 185, 129, 0.22), transparent 28%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.30), rgba(2, 6, 23, 0.76));
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-button {
    width: 88px;
    height: 88px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--accent);
    box-shadow: 0 22px 50px rgba(5, 150, 105, 0.44);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.22s ease;
}

.play-button:hover {
    transform: scale(1.06);
    background: var(--accent-dark);
}

.play-button span {
    display: block;
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 17px solid transparent;
    border-bottom: 17px solid transparent;
    border-left: 25px solid currentColor;
}

.player-status {
    position: absolute;
    left: 18px;
    bottom: 16px;
    z-index: 4;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 800;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
}

.article-block {
    margin: 34px 0;
    padding: 30px;
    border-radius: var(--radius);
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.article-block h2 {
    margin: 0 0 14px;
    font-size: 25px;
}

.article-block p {
    margin: 0 0 14px;
    color: #374151;
    font-size: 16px;
}

.site-footer {
    background: #111827;
    color: #d1d5db;
}

.footer-wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 46px 22px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
}

.site-footer .logo-name {
    color: #ffffff;
}

.site-footer .logo-sub,
.site-footer p,
.site-footer a {
    color: #9ca3af;
}

.site-footer a:hover {
    color: #a7f3d0;
}

.footer-title {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 17px;
}

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

@media (max-width: 980px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

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

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

    .detail-hero {
        grid-template-columns: 280px minmax(0, 1fr);
    }

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

    .footer-wrap {
        grid-template-columns: 1fr;
    }
}

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

    .logo-name {
        font-size: 18px;
    }

    .logo-sub {
        display: none;
    }

    .hero,
    .hero-slide img,
    .hero-content {
        min-height: 72vh;
    }

    .hero-content {
        padding: 72px 18px 46px;
    }

    .hero-title {
        font-size: 38px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-dots {
        margin: 4px 0 0;
    }

    .main {
        padding: 26px 16px 50px;
    }

    .page-hero,
    .feature-band,
    .article-block,
    .detail-hero {
        padding: 22px;
        border-radius: 20px;
    }

    .grid,
    .grid-2,
    .grid-3,
    .grid-4,
    .grid-5 {
        grid-template-columns: 1fr;
    }

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

    .movie-card.horizontal {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .movie-card.horizontal .poster img {
        min-height: 170px;
    }

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

    .detail-cover img {
        min-height: auto;
    }

    .rank-item {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .rank-score {
        grid-column: 2;
    }
}
