:root {
    --rose: #f43f5e;
    --rose-dark: #e11d48;
    --pink: #ec4899;
    --orange: #fb923c;
    --blue: #2563eb;
    --cyan: #06b6d4;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f9fafb;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(31, 41, 55, 0.14);
    --shadow-soft: 0 10px 26px rgba(31, 41, 55, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--soft);
    color: var(--ink);
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 10px 24px rgba(244, 63, 94, 0.32);
    font-size: 14px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.nav-link,
.mobile-link {
    color: #4b5563;
    font-weight: 600;
    transition: color 0.2s ease;
}

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

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search input,
.mobile-search input,
.quick-search input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: none;
    background: var(--white);
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
    width: 190px;
    padding: 10px 16px;
}

.nav-search input:focus,
.mobile-search input:focus,
.quick-search input:focus,
.search-page-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.14);
}

.nav-search button,
.mobile-search button,
.quick-search button,
.search-page-form button {
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--rose), var(--pink));
    cursor: pointer;
    font-weight: 700;
}

.nav-search button {
    padding: 10px 16px;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    color: var(--ink);
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

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

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

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

.mobile-search {
    display: flex;
    gap: 8px;
}

.mobile-search input {
    flex: 1;
    padding: 12px 16px;
}

.mobile-search button {
    padding: 12px 18px;
}

.hero-section {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(135deg, var(--rose), var(--pink) 52%, var(--orange));
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.23;
    pointer-events: none;
}

.orb-one {
    top: 46px;
    left: 8%;
    width: 260px;
    height: 260px;
    background: var(--white);
}

.orb-two {
    right: 5%;
    bottom: 30px;
    width: 360px;
    height: 360px;
    background: #fde047;
}

.hero-shell {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 82px 0 72px;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 42px;
    align-items: center;
}

.hero-slide.active {
    display: grid;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.20);
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow.dark {
    background: rgba(244, 63, 94, 0.10);
    color: var(--rose);
}

.hero-copy h1,
.page-hero h1 {
    margin: 18px 0 16px;
    font-size: clamp(36px, 6vw, 58px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-summary {
    width: min(620px, 100%);
    margin: 0 0 24px;
    color: #ffe4e6;
    font-size: 20px;
}

.hero-tags,
.detail-meta,
.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.detail-meta span {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    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), var(--pink));
    box-shadow: 0 14px 30px rgba(244, 63, 94, 0.30);
}

.hero-section .btn.primary {
    color: var(--rose);
    background: var(--white);
}

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

.btn.small {
    min-height: 38px;
    padding: 0 16px;
    font-size: 14px;
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 30px 65px rgba(0, 0, 0, 0.28);
    transform: translateZ(0);
}

.hero-poster img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.02) 60%);
}

.hero-poster-caption {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    z-index: 2;
}

.hero-poster-caption span {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--rose);
    font-size: 13px;
    font-weight: 800;
}

.hero-poster-caption strong {
    display: block;
    font-size: 26px;
}

.hero-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.hero-control button {
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: var(--white);
    cursor: pointer;
}

.hero-control > button {
    width: 42px;
    height: 42px;
    font-size: 26px;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    opacity: 0.55;
}

.hero-dot.active {
    width: 28px;
    opacity: 1;
}

.quick-search-section {
    width: min(960px, calc(100% - 32px));
    margin: -30px auto 0;
    position: relative;
    z-index: 4;
}

.quick-search,
.search-page-form {
    display: flex;
    gap: 12px;
    padding: 14px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.quick-search input,
.search-page-form input {
    flex: 1;
    padding: 14px 18px;
}

.quick-search button,
.search-page-form button {
    padding: 0 28px;
}

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

.section.soft {
    width: 100%;
    margin: 0;
    padding-left: max(16px, calc((100% - 1180px) / 2));
    padding-right: max(16px, calc((100% - 1180px) / 2));
    background: linear-gradient(90deg, #eff6ff, #ecfeff);
}

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

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

.section-header h2 {
    margin: 8px 0 0;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.2;
}

.section-header a {
    color: var(--rose);
    font-weight: 800;
}

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

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

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

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

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

.poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: #f3f4f6;
}

.poster img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--white);
    background: var(--rose);
    font-size: 12px;
    font-weight: 800;
}

.movie-card-body {
    padding: 18px;
}

.movie-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 56px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.movie-title:hover {
    color: var(--rose);
}

.movie-card-body p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 48px;
    margin: 8px 0 12px;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    color: #6b7280;
    font-size: 12px;
}

.movie-meta span {
    position: relative;
}

.movie-meta span + span::before {
    content: "·";
    margin-right: 10px;
    color: #9ca3af;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tag-row span {
    padding: 3px 8px;
    border-radius: 999px;
    color: var(--rose);
    background: rgba(244, 63, 94, 0.10);
    font-size: 12px;
    font-weight: 700;
}

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

.channel-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 22px;
    color: var(--white);
    box-shadow: var(--shadow-soft);
}

.channel-card img {
    height: 100%;
    min-height: 210px;
    object-fit: cover;
    filter: brightness(0.62);
    transition: transform 0.45s ease;
}

.channel-card:hover img {
    transform: scale(1.08);
}

.channel-card span,
.channel-card p {
    position: absolute;
    left: 18px;
    right: 18px;
    z-index: 2;
}

.channel-card span {
    bottom: 68px;
    font-size: 22px;
    font-weight: 900;
}

.channel-card p {
    bottom: 16px;
    margin: 0;
    color: #f3f4f6;
    font-size: 13px;
}

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

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

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

.movie-card.list-card .poster img {
    height: 100%;
    min-height: 142px;
}

.movie-card.list-card .movie-title {
    min-height: auto;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 54px 118px minmax(0, 1fr) 54px;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--rose), var(--pink));
    font-weight: 900;
}

.rank-thumb img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
}

.rank-info a {
    display: block;
    overflow: hidden;
    color: var(--ink);
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-info p {
    display: -webkit-box;
    overflow: hidden;
    margin: 4px 0;
    color: var(--muted);
    font-size: 13px;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.rank-info span {
    color: #9ca3af;
    font-size: 12px;
}

.rank-score {
    color: var(--rose);
    font-size: 20px;
    font-weight: 900;
    text-align: right;
}

.page-hero {
    color: var(--white);
}

.gradient-blue {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.gradient-rose {
    background: linear-gradient(135deg, var(--rose), var(--pink));
}

.gradient-orange {
    background: linear-gradient(135deg, var(--orange), var(--rose));
}

.page-hero-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 68px 0;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
}

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

.category-tile {
    overflow: hidden;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.tile-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: #e5e7eb;
}

.tile-thumbs img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.tile-body {
    padding: 22px;
}

.tile-body h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.tile-body p {
    min-height: 58px;
    margin: 0 0 18px;
    color: var(--muted);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto;
    gap: 18px;
    align-items: end;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.filter-search input {
    width: 100%;
    padding: 12px 16px;
}

.filter-selects {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-selects select {
    min-width: 140px;
    padding: 12px 16px;
}

.search-page-form {
    margin-bottom: 18px;
}

.result-line {
    min-height: 28px;
    margin-bottom: 18px;
    color: var(--muted);
    font-weight: 700;
}

.empty-state {
    padding: 60px 0;
    color: var(--muted);
    text-align: center;
    font-size: 18px;
}

.detail-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--rose);
    font-weight: 800;
}

.detail-hero {
    display: grid;
    grid-template-columns: 430px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 28px;
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.detail-cover {
    overflow: hidden;
    border-radius: 24px;
}

.detail-cover img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.detail-copy h1 {
    margin: 14px 0 12px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.15;
}

.detail-line {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 19px;
}

.detail-meta span {
    color: #4b5563;
    background: #f3f4f6;
}

.detail-tags {
    margin: 18px 0 24px;
}

.player-section,
.content-section,
.related-section {
    margin-top: 34px;
}

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

.movie-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    background: rgba(0, 0, 0, 0.42);
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 18px 42px rgba(244, 63, 94, 0.42);
    font-size: 34px;
    padding-left: 5px;
}

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

.player-loading {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.64);
    font-size: 13px;
    font-weight: 800;
}

.content-section {
    padding: 30px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.content-section h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.content-section p {
    margin: 0;
    color: #4b5563;
    font-size: 17px;
    line-height: 1.9;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 18px;
}

.footer-grid p {
    max-width: 430px;
    margin: 14px 0 0;
    color: #d1d5db;
}

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

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #9ca3af;
    font-size: 13px;
}

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

    .menu-toggle {
        display: block;
    }

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

    .rank-panel {
        position: static;
    }

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

@media (max-width: 640px) {
    .nav-wrap {
        width: min(100% - 24px, 1180px);
    }

    .brand {
        font-size: 18px;
    }

    .hero-shell {
        padding: 58px 0 54px;
    }

    .hero-tags span,
    .detail-meta span {
        font-size: 12px;
    }

    .quick-search,
    .search-page-form {
        flex-direction: column;
    }

    .quick-search button,
    .search-page-form button {
        min-height: 46px;
    }

    .section {
        padding: 48px 0;
    }

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

    .movie-grid.four,
    .movie-grid.three,
    .channel-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-row {
        grid-template-columns: 44px 92px minmax(0, 1fr);
    }

    .rank-score {
        grid-column: 3;
        text-align: left;
    }

    .detail-hero,
    .content-section {
        padding: 20px;
        border-radius: 22px;
    }

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

    .filter-selects select {
        width: 100%;
    }
}
