:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --rose-700: #be123c;
    --rose-600: #e11d48;
    --rose-500: #f43f5e;
    --orange-400: #fb923c;
    --amber-300: #fcd34d;
    --white: #ffffff;
    --shadow: 0 16px 36px rgba(15, 23, 42, 0.13);
    --soft-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #111827;
    background: var(--slate-50);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    color: var(--white);
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.24);
    backdrop-filter: blur(16px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 24px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
}

.logo-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--rose-500), var(--orange-400));
    box-shadow: 0 0 0 6px rgba(244, 63, 94, 0.12);
}

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

.logo-text strong,
.footer-logo {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, #fb7185, var(--orange-400));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-text small {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 12px;
}

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

.nav-link {
    color: #e2e8f0;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: #fb7185;
}

.header-search,
.mobile-search,
.search-page-form {
    display: flex;
    align-items: center;
    border-radius: 999px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.header-search input,
.mobile-search input,
.search-page-form input {
    width: 230px;
    border: 0;
    outline: 0;
    padding: 11px 16px;
    color: var(--white);
    background: transparent;
}

.header-search button,
.mobile-search button,
.search-page-form button {
    border: 0;
    color: var(--white);
    background: var(--rose-500);
    padding: 11px 18px;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--white);
    border-radius: 99px;
}

.mobile-panel {
    display: none;
    padding: 14px 16px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--slate-800);
}

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

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

.mobile-link {
    padding: 10px 6px;
    color: #e2e8f0;
    font-weight: 600;
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(90deg, var(--slate-950), var(--slate-700));
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.38), rgba(15, 23, 42, 0.42));
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 760px;
    color: var(--white);
}

.hero-badge,
.eyebrow,
.type-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    font-weight: 800;
}

.hero-badge {
    padding: 7px 13px;
    margin-bottom: 20px;
    color: var(--white);
    background: var(--rose-500);
}

.hero h1 {
    margin: 0 0 18px;
    max-width: 780px;
    font-size: clamp(42px, 7vw, 74px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 650px;
    margin: 0 0 28px;
    color: #e2e8f0;
    font-size: clamp(17px, 2vw, 23px);
}

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

.hero-actions span {
    color: #cbd5e1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--rose-500), var(--rose-700));
    box-shadow: 0 12px 26px rgba(244, 63, 94, 0.3);
}

.btn-ghost {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 34px;
    display: flex;
    gap: 9px;
    transform: translateX(-50%);
}

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

.hero-dot.active {
    width: 34px;
    background: var(--rose-500);
}

.section {
    padding: 62px 0;
}

.tinted {
    background: linear-gradient(90deg, #fff1f2, #fff7ed);
}

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

.section-title.compact {
    margin-bottom: 18px;
}

.section-title h2,
.side-panel h2,
.article-card h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-title a,
.side-more {
    color: var(--rose-600);
    font-weight: 800;
}

.eyebrow {
    margin-bottom: 8px;
    color: var(--rose-600);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster,
.rail-cover,
.latest-cover,
.ranking-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--slate-900);
}

.poster {
    aspect-ratio: 16 / 9;
}

.poster img,
.rail-cover img,
.latest-cover img,
.ranking-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .poster img,
.rail-card:hover img,
.latest-item:hover img,
.ranking-row:hover img {
    transform: scale(1.08);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.poster-badge,
.poster-time,
.rail-cover span,
.latest-cover span {
    position: absolute;
    z-index: 2;
    border-radius: 8px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
}

.poster-badge {
    left: 10px;
    top: 10px;
    padding: 4px 8px;
    background: var(--rose-500);
}

.poster-time,
.rail-cover span,
.latest-cover span {
    right: 10px;
    bottom: 10px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.72);
}

.card-body {
    padding: 18px;
}

.card-body h3,
.rail-card h3,
.latest-info h3,
.ranking-content h2 {
    margin: 0;
    font-size: 19px;
    line-height: 1.28;
}

.card-body h3 a,
.rail-card h3 a,
.latest-info h3 a,
.ranking-content h2 a {
    transition: color 0.2s ease;
}

.card-body h3 a:hover,
.rail-card h3 a:hover,
.latest-info h3 a:hover,
.ranking-content h2 a:hover {
    color: var(--rose-600);
}

.card-body p {
    display: -webkit-box;
    min-height: 44px;
    margin: 10px 0 14px;
    overflow: hidden;
    color: #64748b;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta,
.detail-meta,
.ranking-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #64748b;
    font-size: 13px;
}

.card-meta span,
.detail-meta span,
.ranking-meta span,
.tag-list span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1f5f9;
}

.rail {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 4px 0 12px;
    scroll-snap-type: x proximity;
}

.rail-card {
    width: 310px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.rail-cover {
    aspect-ratio: 16 / 9;
    margin-bottom: 12px;
    border-radius: var(--radius);
}

.rail-card h3 {
    font-size: 18px;
}

.rail-card p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 14px;
}

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

.latest-list {
    display: grid;
    gap: 18px;
}

.latest-item,
.ranking-row {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.latest-cover {
    min-height: 140px;
}

.latest-info,
.ranking-content {
    padding: 18px;
}

.type-pill {
    padding: 5px 10px;
    color: var(--rose-700);
    background: #ffe4e6;
    font-size: 12px;
}

.latest-info h3 {
    margin-top: 10px;
}

.latest-info p,
.ranking-content p,
.article-card p,
.detail-one-line {
    color: #64748b;
}

.latest-info small {
    color: #94a3b8;
}

.side-panel {
    position: sticky;
    top: 92px;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.rank-list {
    display: grid;
    gap: 12px;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.rank-list a {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    background: #f8fafc;
}

.rank-num {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--rose-500), var(--orange-400));
    font-weight: 800;
}

.rank-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 700;
}

.rank-score {
    color: var(--rose-600);
    font-weight: 900;
}

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

.category-tile {
    min-height: 170px;
    padding: 24px;
    border-radius: var(--radius);
    color: var(--white);
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:nth-child(2n) {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.category-tile:nth-child(3n) {
    background: linear-gradient(135deg, #f43f5e, #be123c);
}

.category-tile:nth-child(4n) {
    background: linear-gradient(135deg, #f97316, #c2410c);
}

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

.category-tile span,
.category-tile strong,
.category-tile em {
    display: block;
}

.category-tile span {
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 900;
}

.category-tile strong {
    min-height: 48px;
    opacity: 0.88;
    font-size: 14px;
}

.category-tile em {
    margin-top: 18px;
    font-style: normal;
    font-weight: 900;
}

.page-hero,
.detail-head {
    color: var(--white);
    background: radial-gradient(circle at 20% 0%, rgba(244, 63, 94, 0.5), transparent 32%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.page-hero {
    padding: 76px 0;
}

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

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

.page-hero .eyebrow {
    color: #fb7185;
}

.preview-stack,
.ranking-stack {
    display: grid;
    gap: 34px;
}

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.filter-bar input {
    width: min(460px, 100%);
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    outline: 0;
    padding: 12px 18px;
}

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

.filter-tags button {
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    color: #475569;
    background: #f1f5f9;
    cursor: pointer;
}

.filter-tags button.active,
.filter-tags button:hover {
    color: var(--white);
    background: var(--rose-500);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: #cbd5e1;
    font-size: 14px;
}

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

.detail-head {
    padding: 46px 0 56px;
}

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

.detail-poster {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

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

.detail-info h1 {
    margin: 18px 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 860px;
    margin: 0 0 18px;
    color: #e2e8f0;
    font-size: 19px;
}

.detail-meta {
    margin-bottom: 18px;
}

.detail-meta span {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.12);
}

.detail-meta strong {
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--amber-300);
    background: rgba(252, 211, 77, 0.12);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 24px;
}

.tag-list span {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.12);
}

.player-section {
    padding-bottom: 18px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.42));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay.is-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.play-icon {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose-500), var(--orange-400));
    box-shadow: 0 12px 30px rgba(244, 63, 94, 0.35);
    font-size: 34px;
}

.play-overlay strong {
    font-size: 20px;
}

.article-card {
    padding: 30px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.article-card h2 + p {
    margin-top: 10px;
}

.article-card p + h2 {
    margin-top: 24px;
}

.article-card p {
    margin-bottom: 0;
    font-size: 17px;
}

.ranking-row {
    grid-template-columns: 240px minmax(0, 1fr);
}

.ranking-cover {
    min-height: 160px;
}

.ranking-index {
    display: inline-grid;
    width: 46px;
    height: 46px;
    place-items: center;
    margin-bottom: 8px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--rose-500), var(--orange-400));
    font-weight: 900;
}

.ranking-meta strong {
    color: var(--rose-600);
}

.search-page-form {
    width: min(720px, 100%);
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.12);
}

.search-page-form input {
    flex: 1;
    width: auto;
}

.site-footer {
    color: #cbd5e1;
    background: var(--slate-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 34px;
    padding: 48px 0;
}

.footer-grid p {
    max-width: 560px;
    color: #94a3b8;
}

.footer-grid h3 {
    margin: 0 0 14px;
    color: var(--white);
}

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

.footer-grid a:hover {
    color: #fb7185;
}

.footer-pill {
    display: inline-flex;
    margin-top: 10px;
    padding: 7px 11px;
    border-radius: 999px;
    color: #fecdd3;
    background: rgba(244, 63, 94, 0.12);
    font-size: 13px;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    padding: 18px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 14px;
}

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

@media (max-width: 1100px) {
    .movie-grid,
    .small-grid,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .header-search {
        display: none;
    }

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

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

    .menu-toggle {
        display: block;
    }

    .hero {
        height: 560px;
    }

    .hero-content {
        justify-content: flex-end;
        padding-bottom: 86px;
    }

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

    .two-column,
    .detail-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .side-panel {
        position: static;
    }

    .latest-item,
    .ranking-row {
        grid-template-columns: 150px minmax(0, 1fr);
    }

    .detail-poster {
        max-width: 520px;
    }

    .filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-bar input {
        width: 100%;
    }
}

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

    .nav-wrap {
        min-height: 62px;
    }

    .logo-text strong {
        font-size: 18px;
    }

    .hero {
        height: 520px;
    }

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

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

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

    .hero-actions .btn {
        width: 100%;
    }

    .section {
        padding: 42px 0;
    }

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

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

    .latest-item,
    .ranking-row {
        grid-template-columns: 1fr;
    }

    .latest-cover,
    .ranking-cover {
        aspect-ratio: 16 / 9;
    }

    .detail-head,
    .page-hero {
        padding: 36px 0;
    }

    .player-shell {
        border-radius: 16px;
    }

    .article-card {
        padding: 22px;
    }
}
