:root {
    --rose: #f43f5e;
    --pink: #ec4899;
    --purple: #a855f7;
    --blue: #3b82f6;
    --cyan: #06b6d4;
    --green: #22c55e;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #fff1f2;
    --card: #ffffff;
    --shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    background: linear-gradient(180deg, #fff1f2 0%, #ffffff 46%, #eff6ff 100%);
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(244, 63, 94, 0.32);
}

.brand-text {
    font-size: 21px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
}

.nav-link {
    color: #374151;
    font-weight: 650;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.top-search,
.mobile-search,
.hero-search,
.search-panel form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-search input,
.mobile-search input,
.hero-search input,
.search-panel input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 11px 16px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.top-search input {
    width: 210px;
}

.top-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.search-panel input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.16);
}

button,
.btn,
.top-search button,
.mobile-search button,
.hero-search button,
.search-panel button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

button:hover,
.btn:hover,
.top-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.search-panel button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(244, 63, 94, 0.24);
}

.btn.secondary {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: transparent;
}

.btn.light {
    color: var(--rose);
    background: #ffffff;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    color: #374151;
    background: #ffffff;
    border: 1px solid var(--line);
}

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

.mobile-links {
    display: grid;
    gap: 12px;
    padding-top: 14px;
}

.hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(120deg, var(--rose), var(--pink) 48%, var(--purple));
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.24), transparent 28%),
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.14), transparent 34%),
        rgba(0, 0, 0, 0.08);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 36px;
    align-items: center;
    padding: 72px 0 92px;
}

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

.hero-copy p {
    margin: 0 0 28px;
    max-width: 640px;
    color: #ffe4e6;
    font-size: clamp(18px, 2vw, 24px);
}

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

.hero-search {
    max-width: 560px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.hero-search input {
    border-color: rgba(255, 255, 255, 0.4);
}

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

.hero-pills a {
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.hero-stage {
    min-width: 0;
}

.hero-slider {
    position: relative;
    min-height: 440px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
    transform: translateX(24px) scale(0.98);
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) scale(1);
}

.hero-card {
    height: 100%;
    display: grid;
    grid-template-columns: 0.86fr 1.14fr;
    overflow: hidden;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.23);
    backdrop-filter: blur(18px);
}

.hero-card img {
    height: 100%;
    min-height: 440px;
    object-fit: cover;
}

.hero-card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px;
}

.hero-label,
.section-label {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose), var(--pink));
}

.hero-card h2 {
    margin: 0 0 14px;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.12;
}

.hero-card p {
    display: -webkit-box;
    margin: 0 0 22px;
    color: #fff1f2;
    line-height: 1.8;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-dots {
    position: absolute;
    left: 34px;
    bottom: 26px;
    z-index: 3;
    display: flex;
    gap: 9px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
}

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

.section {
    padding: 64px 0;
}

.section.tight {
    padding: 42px 0;
}

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

.section-head h2,
.page-title h1,
.detail-title h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.18;
}

.section-head p,
.page-title p,
.detail-title p {
    margin: 10px 0 0;
    color: var(--muted);
}

.view-more {
    color: var(--rose);
    font-weight: 800;
}

.editor-pick {
    margin-top: -46px;
    position: relative;
    z-index: 3;
}

.editor-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    align-items: center;
    padding: 34px;
    border-radius: 28px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.editor-card img {
    height: 360px;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.editor-card h2 {
    margin: 0 0 14px;
    font-size: clamp(26px, 3vw, 40px);
}

.editor-card p {
    color: #4b5563;
    line-height: 1.85;
}

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

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.13);
}

.movie-card .poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
}

.movie-card .poster img {
    height: 260px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.poster-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(6px);
}

.movie-info {
    padding: 18px;
}

.movie-info h2 {
    margin: 0 0 9px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-info h2 a:hover {
    color: var(--rose);
}

.movie-info p {
    display: -webkit-box;
    margin: 0 0 13px;
    min-height: 44px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 14px;
}

.tag-row span,
.meta-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    color: #be123c;
    font-size: 12px;
    font-weight: 750;
    background: #ffe4e6;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #6b7280;
    font-size: 13px;
}

.movie-card.compact .poster img {
    height: 210px;
}

.movie-card.horizontal {
    display: grid;
    grid-template-columns: 170px 1fr;
}

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

.topic-band {
    color: #ffffff;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.topic-band .section-head h2,
.topic-band .section-head p,
.topic-band .view-more {
    color: #ffffff;
}

.category-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    color: #374151;
    font-weight: 800;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.category-card {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    justify-content: space-between;
    padding: 26px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.category-card h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-card p {
    margin: 0 0 16px;
    color: #6b7280;
    line-height: 1.8;
}

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

.mini-links a {
    color: #374151;
    font-size: 14px;
}

.mini-links a:hover {
    color: var(--rose);
}

.page-hero {
    padding: 56px 0 38px;
    background: linear-gradient(180deg, #fff1f2 0%, rgba(255, 255, 255, 0) 100%);
}

.page-title {
    max-width: 780px;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 12px;
    margin: 0 0 28px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.search-empty,
.no-results {
    display: none;
    padding: 32px;
    border-radius: 22px;
    color: #6b7280;
    background: #ffffff;
    text-align: center;
}

.search-panel {
    margin-top: 24px;
    padding: 22px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.search-results {
    margin-top: 30px;
}

.rank-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 26px;
}

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

.rank-line {
    display: grid;
    grid-template-columns: 42px 1fr 70px;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 11px 15px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 9px 24px rgba(15, 23, 42, 0.06);
}

.rank-line b {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
}

.rank-line span {
    font-weight: 800;
}

.rank-line em {
    color: #6b7280;
    font-style: normal;
    text-align: right;
}

.rank-card {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    border-radius: 22px;
    color: #ffffff;
    background: #111827;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.rank-card img {
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    opacity: 0.75;
    transition: transform 0.4s ease;
}

.rank-card:hover img {
    transform: scale(1.06);
}

.rank-card span {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    font-size: 18px;
    font-weight: 900;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

.detail-hero {
    padding: 50px 0 34px;
    background: linear-gradient(120deg, #fff1f2, #ffffff 50%, #eff6ff);
}

.detail-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 34px;
    align-items: center;
}

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.detail-cover img {
    height: 520px;
    object-fit: cover;
}

.detail-title h1 {
    margin-bottom: 16px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.detail-text {
    color: #4b5563;
    font-size: 17px;
    line-height: 1.9;
}

.player-section {
    padding: 36px 0 20px;
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border-radius: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.72));
}

.player-overlay span {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--rose);
    font-size: 32px;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

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

.player-overlay.is-hidden {
    display: none;
}

.detail-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}

.article-panel,
.side-panel {
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.article-panel h2,
.side-panel h2 {
    margin: 0 0 18px;
    font-size: 26px;
}

.article-panel p {
    margin: 0 0 18px;
    color: #4b5563;
    line-height: 1.95;
}

.side-panel .rank-line {
    grid-template-columns: 34px 1fr 52px;
    box-shadow: none;
    background: #f9fafb;
}

.site-footer {
    margin-top: 64px;
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 0.65fr 1fr;
    gap: 32px;
    padding: 44px 0;
}

.footer-grid strong {
    display: block;
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 22px;
}

.footer-grid p {
    margin: 0;
    line-height: 1.8;
}

.footer-links,
.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-content: flex-start;
}

.footer-links a,
.footer-tags a {
    color: #e5e7eb;
}

.footer-links a:hover,
.footer-tags a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding: 18px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    text-align: center;
    color: #9ca3af;
}

@media (max-width: 980px) {
    .main-nav,
    .top-search {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .hero-inner,
    .editor-card,
    .detail-grid,
    .detail-body,
    .rank-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        padding-top: 48px;
    }

    .hero-slider {
        min-height: 540px;
    }

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

    .hero-card img {
        min-height: 260px;
        height: 260px;
    }

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

    .filter-bar {
        grid-template-columns: 1fr;
    }

    .detail-cover img {
        height: 420px;
    }
}

@media (max-width: 620px) {
    .nav-shell {
        height: 62px;
    }

    .brand-text {
        font-size: 18px;
    }

    .hero-search,
    .search-panel form {
        border-radius: 22px;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-slider {
        min-height: 590px;
    }

    .hero-card-info {
        padding: 24px;
    }

    .editor-card,
    .article-panel,
    .side-panel,
    .category-card {
        padding: 22px;
    }

    .grid.two,
    .grid.three,
    .grid.four,
    .grid.six {
        grid-template-columns: 1fr;
    }

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

    .movie-card .poster img,
    .movie-card.compact .poster img {
        height: 240px;
    }

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

    .detail-cover img {
        height: 360px;
    }
}
