html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #030712;
    color: #f9fafb;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

* {
    box-sizing: border-box;
}

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

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

button,
input {
    font: inherit;
}

button {
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(3, 7, 18, 0.92);
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: grid;
    width: 2.7rem;
    height: 2.7rem;
    place-items: center;
    border-radius: 0.95rem;
    color: #052e2b;
    background: linear-gradient(135deg, #34d399, #14b8a6);
    box-shadow: 0 18px 45px rgba(16, 185, 129, 0.22);
}

.brand-text {
    font-size: 1.15rem;
    background: linear-gradient(135deg, #ffffff, #6ee7b7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.45rem;
    color: #d1d5db;
    font-size: 0.95rem;
}

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

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
    color: #34d399;
}

.mobile-nav-button {
    display: none;
    width: 2.6rem;
    height: 2.6rem;
    background: rgba(31, 41, 55, 0.95);
    border-radius: 0.75rem;
    padding: 0.55rem;
}

.mobile-nav-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #f9fafb;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 0 1.25rem 1rem;
    border-top: 1px solid rgba(31, 41, 55, 0.85);
}

.mobile-nav.open {
    display: grid;
    gap: 0.85rem;
}

.hero-slider {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transform: scale(1.03);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 30%, rgba(16, 185, 129, 0.24), transparent 34%),
        linear-gradient(90deg, rgba(3, 7, 18, 0.98) 0%, rgba(3, 7, 18, 0.74) 45%, rgba(3, 7, 18, 0.25) 100%),
        linear-gradient(0deg, #030712 0%, rgba(3, 7, 18, 0.1) 35%);
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 3rem;
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 6rem 0 5rem;
}

.hero-copy {
    max-width: 760px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 1rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(52, 211, 153, 0.45);
    border-radius: 999px;
    color: #6ee7b7;
    background: rgba(6, 78, 59, 0.34);
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0 0 1rem;
    font-size: clamp(2.8rem, 8vw, 5.7rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.hero-desc {
    max-width: 680px;
    margin: 0 0 1.35rem;
    color: #d1d5db;
    font-size: clamp(1rem, 2vw, 1.35rem);
    line-height: 1.8;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: 0.25rem 0.65rem;
    border: 1px solid rgba(55, 65, 81, 0.9);
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(17, 24, 39, 0.76);
    font-size: 0.78rem;
}

.hero-tags {
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.primary-button,
.ghost-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.primary-button {
    min-height: 2.8rem;
    padding: 0.7rem 1.3rem;
    color: #052e2b;
    background: linear-gradient(135deg, #34d399, #14b8a6);
    box-shadow: 0 18px 45px rgba(16, 185, 129, 0.25);
}

.ghost-button {
    min-height: 2.8rem;
    padding: 0.65rem 1.15rem;
    border: 1px solid rgba(52, 211, 153, 0.28);
    color: #d1fae5;
    background: rgba(15, 23, 42, 0.72);
}

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

.ghost-button:hover {
    border-color: rgba(52, 211, 153, 0.72);
    color: #6ee7b7;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(52, 211, 153, 0.28);
    border-radius: 1.4rem;
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

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

.hero-controls {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.hero-arrow,
.hero-dot {
    color: #f9fafb;
    background: rgba(17, 24, 39, 0.72);
    border: 1px solid rgba(75, 85, 99, 0.78);
    backdrop-filter: blur(10px);
}

.hero-arrow {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 999px;
    font-size: 1.6rem;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 0.4rem;
}

.hero-dot {
    width: 0.75rem;
    height: 0.75rem;
    padding: 0;
    border-radius: 999px;
}

.hero-dot.active {
    width: 2.2rem;
    background: #34d399;
    border-color: #34d399;
}

.page-main {
    padding-top: 2rem;
}

.content-section {
    width: min(1280px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 3.2rem 0;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.6rem;
}

.section-head h2,
.article-section h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.45rem);
    line-height: 1.1;
}

.section-head p {
    max-width: 760px;
    margin: 0.6rem 0 0;
    color: #9ca3af;
    line-height: 1.8;
}

.section-link,
.text-link {
    color: #6ee7b7;
}

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

.category-tile {
    min-height: 9rem;
    padding: 1.15rem;
    border: 1px solid rgba(31, 41, 55, 0.95);
    border-radius: 1rem;
    background:
        linear-gradient(135deg, rgba(16, 185, 129, 0.16), transparent),
        rgba(17, 24, 39, 0.78);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-tile span {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 1.15rem;
    font-weight: 800;
}

.category-tile small {
    color: #9ca3af;
    line-height: 1.7;
}

.category-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(52, 211, 153, 0.72);
}

.tool-panel {
    display: grid;
    gap: 0.95rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid rgba(31, 41, 55, 0.95);
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.78);
}

.search-box {
    display: grid;
    gap: 0.5rem;
    color: #d1d5db;
    font-size: 0.86rem;
    font-weight: 700;
}

.search-input {
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(55, 65, 81, 0.95);
    border-radius: 0.9rem;
    outline: none;
    color: #f9fafb;
    background: #030712;
}

.search-input:focus {
    border-color: rgba(52, 211, 153, 0.8);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.filter-chip {
    min-height: 2.25rem;
    padding: 0.35rem 0.8rem;
    border: 1px solid rgba(55, 65, 81, 0.95);
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(31, 41, 55, 0.7);
}

.filter-chip.active,
.filter-chip:hover {
    color: #052e2b;
    background: #34d399;
    border-color: #34d399;
}

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

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

.movie-card {
    min-width: 0;
}

.movie-card[hidden],
.rank-row[hidden] {
    display: none;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(31, 41, 55, 0.95);
    border-radius: 1rem;
    background: #111827;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.poster-link:hover img {
    transform: scale(1.08);
    opacity: 0.92;
}

.poster-gradient {
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.play-pill,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
}

.play-pill {
    right: 0.6rem;
    bottom: 0.6rem;
    min-height: 2rem;
    padding: 0.25rem 0.65rem;
    color: #052e2b;
    background: #34d399;
    font-size: 0.76rem;
}

.rank-badge {
    top: 0.6rem;
    left: 0.6rem;
    min-width: 2rem;
    height: 2rem;
    color: #052e2b;
    background: linear-gradient(135deg, #fbbf24, #34d399);
}

.movie-card-body {
    padding: 0.75rem 0.15rem 0;
}

.movie-card h3,
.rank-info h2,
.category-card h2 {
    margin: 0;
    color: #f9fafb;
    font-size: 1rem;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-info h2 a:hover,
.category-card h2 a:hover {
    color: #34d399;
}

.card-meta,
.card-line {
    margin: 0.35rem 0 0;
    color: #9ca3af;
    font-size: 0.84rem;
    line-height: 1.6;
}

.card-line {
    min-height: 2.7rem;
}

.movie-card .tag-list {
    margin-top: 0.55rem;
}

.page-hero {
    width: min(1280px, calc(100% - 2rem));
    margin: 0 auto 1rem;
    padding: 4rem;
    border: 1px solid rgba(31, 41, 55, 0.95);
    border-radius: 1.4rem;
    background:
        radial-gradient(circle at 85% 10%, rgba(16, 185, 129, 0.28), transparent 30%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(3, 7, 18, 0.96));
}

.page-hero h1 {
    margin: 0 0 0.85rem;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.05;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #cbd5e1;
    line-height: 1.8;
}

.category-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.category-card {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(31, 41, 55, 0.95);
    border-radius: 1.2rem;
    background: rgba(15, 23, 42, 0.78);
}

.category-cover {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
}

.category-cover img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 0.65rem;
    background: #111827;
}

.category-card-body p {
    margin: 0.65rem 0 1rem;
    color: #9ca3af;
    line-height: 1.8;
}

.rank-list {
    display: grid;
    gap: 0.8rem;
}

.rank-row {
    display: grid;
    grid-template-columns: 3rem 5.8rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem;
    border: 1px solid rgba(31, 41, 55, 0.95);
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.78);
}

.rank-number {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border-radius: 0.8rem;
    color: #052e2b;
    background: #34d399;
    font-weight: 900;
}

.rank-thumb img {
    width: 5.8rem;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 0.75rem;
}

.rank-info p {
    margin: 0.4rem 0 0.55rem;
    color: #9ca3af;
    line-height: 1.7;
}

.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.rank-meta span {
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(31, 41, 55, 0.9);
    font-size: 0.78rem;
}

.small-button {
    min-height: 2.35rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.84rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    width: min(1280px, calc(100% - 2rem));
    margin: 0 auto 1.3rem;
    color: #9ca3af;
    font-size: 0.9rem;
}

.breadcrumb a:hover {
    color: #34d399;
}

.detail-hero {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 2.2rem;
    width: min(1280px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem;
    border: 1px solid rgba(31, 41, 55, 0.95);
    border-radius: 1.4rem;
    background:
        radial-gradient(circle at 85% 0%, rgba(16, 185, 129, 0.22), transparent 34%),
        rgba(15, 23, 42, 0.82);
}

.detail-poster-wrap {
    overflow: hidden;
    border-radius: 1.1rem;
    background: #111827;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
}

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

.detail-copy h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-one-line {
    max-width: 820px;
    margin: 0 0 1.2rem;
    color: #d1d5db;
    font-size: 1.08rem;
    line-height: 1.9;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 760px;
    margin: 0 0 1.2rem;
    padding: 0;
    list-style: none;
}

.detail-meta li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(31, 41, 55, 0.95);
    border-radius: 0.8rem;
    background: rgba(3, 7, 18, 0.55);
}

.detail-meta strong {
    color: #9ca3af;
}

.detail-meta span {
    color: #f9fafb;
    text-align: right;
}

.detail-tags {
    margin-bottom: 1.35rem;
}

.player-section {
    padding-top: 2rem;
}

.video-player {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(52, 211, 153, 0.28);
    border-radius: 1.25rem;
    background: #000;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.7rem;
    color: #f9fafb;
    background:
        radial-gradient(circle at center, rgba(16, 185, 129, 0.22), transparent 32%),
        rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.video-player.is-playing .player-overlay {
    display: none;
}

.big-play {
    display: grid;
    width: 5rem;
    height: 5rem;
    place-items: center;
    border-radius: 999px;
    color: #052e2b;
    background: #34d399;
    font-size: 2rem;
    box-shadow: 0 18px 45px rgba(16, 185, 129, 0.3);
}

.player-message {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    color: #fecaca;
    text-align: center;
    pointer-events: none;
}

.article-section {
    max-width: 980px;
    color: #d1d5db;
    line-height: 2;
}

.article-section h2 {
    margin: 0 0 0.8rem;
    color: #f9fafb;
}

.article-section p {
    margin: 0 0 1.8rem;
    font-size: 1.05rem;
}

.site-footer {
    margin-top: 3rem;
    border-top: 1px solid rgba(31, 41, 55, 0.95);
    background: rgba(3, 7, 18, 0.96);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(1280px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0;
    color: #9ca3af;
}

.footer-brand {
    color: #f9fafb;
    font-weight: 900;
}

.footer-inner p {
    max-width: 680px;
    margin: 0;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

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

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

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

    .mobile-nav-button {
        display: block;
    }

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

    .hero-poster {
        display: none;
    }

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

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

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

    .rank-row {
        grid-template-columns: 2.8rem 4.5rem minmax(0, 1fr);
    }

    .rank-row .primary-button {
        grid-column: 3;
        width: fit-content;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .hero-slider {
        min-height: 82vh;
    }

    .hero-content {
        padding: 4.5rem 0 5.5rem;
    }

    .hero-controls {
        left: 1rem;
        right: auto;
        bottom: 1rem;
    }

    .content-section {
        padding: 2.2rem 0;
    }

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

    .movie-grid,
    .compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem;
    }

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

    .page-hero,
    .detail-hero {
        padding: 1.3rem;
    }

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

    .rank-row {
        grid-template-columns: 2.4rem 4rem minmax(0, 1fr);
        gap: 0.75rem;
    }

    .rank-thumb img {
        width: 4rem;
    }
}
