* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 48%, #0f172a 100%);
    color: #e2e8f0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

[hidden] {
    display: none !important;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid #1e293b;
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.logo:hover {
    color: #fbbf24;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.16);
    color: #f59e0b;
    box-shadow: 0 0 32px rgba(245, 158, 11, 0.24);
}

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

.nav-link,
.mobile-link {
    border-radius: 12px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-link {
    padding: 10px 16px;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.active,
.mobile-link.active {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.78);
    color: #fff;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: #cbd5e1;
}

.mobile-nav {
    display: none;
    border-top: 1px solid #1e293b;
    background: rgba(15, 23, 42, 0.98);
    padding: 12px 16px 18px;
}

.mobile-link {
    display: block;
    padding: 13px 16px;
}

.site-hero {
    position: relative;
    min-height: 600px;
    overflow: hidden;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #1e293b;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.86) 44%, rgba(15, 23, 42, 0.18) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 48px;
    align-items: end;
    min-height: 600px;
    padding: 96px 0 76px;
}

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

.hero-badge,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 16px;
    padding: 5px 13px;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.16);
    color: #fbbf24;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
}

.hero-copy h1,
.page-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(38px, 7vw, 64px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

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

.hero-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-tags span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(51, 65, 85, 0.72);
    color: #dbeafe;
    font-size: 12px;
    font-weight: 600;
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 12px;
    font-weight: 800;
    transition: all 0.2s ease;
}

.primary-button {
    border: 1px solid #f59e0b;
    background: #f59e0b;
    color: #ffffff;
    box-shadow: 0 14px 34px rgba(245, 158, 11, 0.22);
}

.primary-button:hover {
    background: #d97706;
    border-color: #d97706;
    transform: translateY(-1px) scale(1.02);
}

.primary-button.small {
    min-height: 40px;
    padding: 0 18px;
    font-size: 14px;
}

.ghost-button {
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.42);
    color: #e2e8f0;
    backdrop-filter: blur(10px);
}

.ghost-button:hover {
    border-color: rgba(245, 158, 11, 0.5);
    color: #fbbf24;
    transform: translateY(-1px);
}

.hero-panel {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.64);
    padding: 22px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
}

.hero-search,
.filter-bar {
    display: flex;
    gap: 12px;
}

.hero-search input,
.filter-bar input {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    outline: none;
    background: rgba(30, 41, 59, 0.72);
    color: #ffffff;
    padding: 0 16px;
}

.hero-search input:focus,
.filter-bar input:focus {
    border-color: rgba(245, 158, 11, 0.72);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.hero-search button {
    min-width: 80px;
    border: 0;
    border-radius: 12px;
    background: #f59e0b;
    color: #fff;
    font-weight: 800;
}

.hero-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-category-links a {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(51, 65, 85, 0.58);
    color: #cbd5e1;
    font-size: 13px;
    transition: all 0.2s ease;
}

.hero-category-links a:hover {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
}

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

.split-section:nth-of-type(even),
.rank-section {
    background: rgba(30, 41, 59, 0.48);
}

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

.section-heading h2,
.rank-intro h2,
.side-panel h2,
.detail-copy h2,
.site-footer h2 {
    margin: 0;
    color: #ffffff;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-heading h2,
.rank-intro h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.section-more {
    color: #fbbf24;
    font-size: 14px;
    font-weight: 800;
}

.poster-grid,
.movie-grid {
    display: grid;
    gap: 24px;
}

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

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

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

.poster-card a,
.movie-card a {
    display: block;
}

.poster-cover,
.card-cover,
.rank-cover,
.related-cover {
    position: relative;
    overflow: hidden;
    background: #1e293b;
}

.poster-cover {
    aspect-ratio: 2 / 3;
    border-radius: 18px;
    margin-bottom: 12px;
}

.poster-cover img,
.card-cover img,
.rank-cover img,
.related-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.32s ease;
}

.poster-card:hover img,
.movie-card:hover img,
.rank-item:hover img,
.related-card:hover img {
    transform: scale(1.08);
}

.poster-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.12));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.poster-card:hover .poster-hover {
    opacity: 1;
}

.poster-hover span {
    border-radius: 999px;
    background: #f59e0b;
    color: #fff;
    padding: 9px 16px;
    font-weight: 800;
}

.poster-cover em {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 12px;
    font-style: normal;
    backdrop-filter: blur(10px);
}

.poster-card h3,
.movie-card h3,
.rank-item h3,
.related-card h4 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #ffffff;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color 0.2s ease;
}

.poster-card:hover h3,
.movie-card:hover h3,
.rank-item:hover h3,
.related-card:hover h4 {
    color: #fbbf24;
}

.poster-card p {
    margin: 3px 0 0;
    color: #94a3b8;
    font-size: 13px;
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.52);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    border-color: rgba(245, 158, 11, 0.72);
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.card-cover {
    aspect-ratio: 16 / 9;
}

.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.08));
}

.card-type {
    position: absolute;
    top: 12px;
    left: 12px;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.92);
    color: #ffffff;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    padding: 16px;
}

.card-body p {
    display: -webkit-box;
    overflow: hidden;
    margin: 8px 0 14px;
    color: #94a3b8;
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #64748b;
    font-size: 12px;
}

.rank-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.rank-intro {
    position: sticky;
    top: 92px;
}

.rank-intro p {
    margin: 16px 0 28px;
    color: #94a3b8;
}

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

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

.rank-item a {
    display: grid;
    grid-template-columns: 52px 120px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.56);
    padding: 12px;
    transition: all 0.2s ease;
}

.rank-item a:hover {
    border-color: rgba(245, 158, 11, 0.55);
    background: rgba(30, 41, 59, 0.72);
}

.rank-no {
    color: #f59e0b;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.rank-cover {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
}

.rank-copy p {
    display: -webkit-box;
    overflow: hidden;
    margin: 5px 0 8px;
    color: #94a3b8;
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rank-copy div {
    display: flex;
    gap: 10px;
    color: #64748b;
    font-size: 12px;
}

.page-hero {
    padding: 72px 0 48px;
    background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.14), transparent 32%), rgba(15, 23, 42, 0.7);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.compact-hero {
    padding: 84px 0 54px;
}

.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 36px;
    align-items: end;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    color: #94a3b8;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #fbbf24;
}

.breadcrumb strong {
    color: #ffffff;
}

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

.category-card a {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    min-height: 230px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.56);
    padding: 18px;
    transition: all 0.2s ease;
}

.category-card a:hover {
    border-color: rgba(245, 158, 11, 0.5);
    transform: translateY(-2px);
}

.category-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.category-stack img {
    width: 100%;
    height: 94px;
    border-radius: 14px;
    object-fit: cover;
    background: #1e293b;
}

.category-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-copy h2 {
    margin: 0;
    color: #fff;
    font-size: 26px;
}

.category-copy p {
    margin: 12px 0 20px;
    color: #94a3b8;
}

.category-copy span {
    color: #fbbf24;
    font-weight: 800;
}

.filter-bar {
    flex-direction: column;
    margin-bottom: 28px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.56);
    padding: 16px;
}

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

.filter-chips button {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.76);
    color: #cbd5e1;
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.filter-chips button:hover,
.filter-chips button.active {
    border-color: rgba(245, 158, 11, 0.7);
    background: rgba(245, 158, 11, 0.16);
    color: #fbbf24;
}

.detail-wrap {
    padding: 34px 0 72px;
}

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

.detail-breadcrumb {
    margin-bottom: 20px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000000;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.58));
}

.player-overlay span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.95);
    color: #ffffff;
    font-size: 34px;
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.28);
    transition: transform 0.2s ease;
}

.player-overlay:hover span {
    transform: scale(1.06);
}

.detail-copy {
    margin-top: 28px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.56);
    padding: 26px;
}

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

.detail-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.detail-copy .detail-title-row p {
    margin: 12px 0 0;
    color: #cbd5e1;
    font-size: 17px;
}

.detail-copy section {
    margin-top: 28px;
}

.detail-copy h2,
.side-panel h2 {
    font-size: 22px;
}

.detail-copy section p {
    margin: 12px 0 0;
    color: #cbd5e1;
    white-space: pre-line;
}

.detail-side {
    position: sticky;
    top: 92px;
}

.side-panel {
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.64);
    padding: 20px;
}

.related-list {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.related-card a {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border-radius: 14px;
    padding: 8px;
    transition: background 0.2s ease;
}

.related-card a:hover {
    background: rgba(51, 65, 85, 0.58);
}

.related-cover {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
}

.related-cover span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.32);
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.related-card:hover .related-cover span {
    opacity: 1;
}

.related-card h4 {
    font-size: 14px;
    line-height: 1.4;
}

.related-card p {
    margin: 5px 0 0;
    color: #94a3b8;
    font-size: 12px;
}

.site-footer {
    border-top: 1px solid #1e293b;
    background: rgba(15, 23, 42, 0.95);
    padding: 46px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
}

.footer-brand p {
    max-width: 560px;
    margin: 14px 0;
    color: #94a3b8;
}

.copyright {
    color: #64748b !important;
    font-size: 13px;
}

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

.site-footer ul {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer a:not(.logo) {
    color: #94a3b8;
    font-size: 14px;
    transition: color 0.2s ease;
}

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

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

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

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

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

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

    .menu-button {
        display: block;
    }

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

    .site-hero,
    .hero-content {
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 88px 0 48px;
    }

    .hero-panel {
        max-width: 100%;
    }

    .rank-layout,
    .detail-grid,
    .page-hero-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .rank-intro,
    .detail-side {
        position: static;
    }

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

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

    .category-stack img {
        height: 140px;
    }
}

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

    .hero-copy h1,
    .page-hero h1 {
        font-size: 36px;
    }

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

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

    .rank-item a {
        grid-template-columns: 42px 98px minmax(0, 1fr);
        gap: 10px;
    }

    .rank-copy p,
    .card-body p {
        -webkit-line-clamp: 2;
    }

    .hero-search {
        flex-direction: column;
    }

    .detail-title-row {
        flex-direction: column;
    }

    .detail-copy {
        padding: 20px;
    }

    .player-overlay span {
        width: 66px;
        height: 66px;
        font-size: 28px;
    }
}

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

    .poster-grid,
    .movie-grid,
    .wide-grid {
        grid-template-columns: 1fr;
    }

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

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

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

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

    .rank-item a,
    .related-card a {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .rank-no {
        display: none;
    }
}
