:root {
    --rose: #e11d48;
    --rose-dark: #be123c;
    --pink: #ec4899;
    --purple: #7c3aed;
    --gold: #f59e0b;
    --ink: #111827;
    --muted: #6b7280;
    --line: #ffe4e6;
    --soft: #fff1f2;
    --bg: #fff7fb;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(190, 18, 60, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    color: var(--ink);
    background: linear-gradient(135deg, #fff1f2 0%, #ffffff 48%, #fdf2f8 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 241, 242, 0.96), rgba(253, 242, 248, 0.96), rgba(245, 243, 255, 0.96));
    border-bottom: 1px solid rgba(244, 63, 94, 0.15);
    box-shadow: 0 8px 25px rgba(190, 18, 60, 0.10);
    backdrop-filter: blur(14px);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 210px;
}

.brand-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 24px;
    background: linear-gradient(135deg, #fb7185, var(--pink));
    box-shadow: 0 10px 25px rgba(225, 29, 72, 0.28);
    transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.08) rotate(-4deg);
}

.brand-copy strong {
    display: block;
    font-size: 24px;
    line-height: 1.05;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-copy small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

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

.desktop-nav a {
    position: relative;
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: var(--rose);
    transition: width 0.2s ease;
}

.desktop-nav a:hover {
    color: var(--rose);
}

.desktop-nav a:hover::after {
    width: 100%;
}

.header-search {
    position: relative;
    width: 280px;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #fecdd3;
    border-radius: 999px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search:focus-within {
    border-color: #fb7185;
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.15);
}

.header-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 10px 12px 10px 18px;
}

.header-search button,
.page-search-form button,
.quick-search-card button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    padding: 10px 16px;
    cursor: pointer;
}

.mobile-menu-button {
    display: none;
    border: 0;
    background: transparent;
    font-size: 30px;
    color: #374151;
}

.mobile-nav {
    display: none;
    border-top: 1px solid #fecdd3;
    background: rgba(255, 255, 255, 0.96);
    padding: 12px 24px 18px;
}

.mobile-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #ffe4e6;
    color: #374151;
    font-weight: 700;
}

.hero {
    position: relative;
    height: 610px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

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

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 34%, rgba(236, 72, 153, 0.26), transparent 36%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.12));
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #ffffff;
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fbbf24;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 13px;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
    margin: 14px 0 16px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.04;
    font-weight: 900;
}

.hero-content p {
    margin: 0 0 24px;
    max-width: 680px;
    color: #e5e7eb;
    font-size: 20px;
    line-height: 1.8;
}

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

.hero-tags span,
.detail-meta span {
    padding: 9px 15px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    font-weight: 700;
    font-size: 14px;
}

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

.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, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    padding: 13px 24px;
    box-shadow: 0 15px 28px rgba(225, 29, 72, 0.28);
}

.primary-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 38px rgba(225, 29, 72, 0.34);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.54);
    padding: 12px 22px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.22);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 30px;
    z-index: 5;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

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

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

.quick-panel {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
    margin-top: -70px;
    position: relative;
    z-index: 6;
}

.quick-search-card,
.rank-entry-card,
.category-overview-card,
.content-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(251, 113, 133, 0.16);
    border-radius: 28px;
    padding: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.quick-search-card h2,
.rank-entry-card h2 {
    margin: 10px 0 20px;
    font-size: 28px;
}

.quick-search-card form,
.page-search-form {
    display: flex;
    overflow: hidden;
    border: 2px solid #fecdd3;
    border-radius: 999px;
    background: #ffffff;
}

.quick-search-card input,
.page-search-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 14px 18px;
}

.rank-link-list {
    display: grid;
    gap: 9px;
    margin-bottom: 16px;
}

.rank-link-list a {
    display: grid;
    grid-template-columns: 30px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 16px;
    background: linear-gradient(90deg, #fff1f2, #fdf2f8);
}

.rank-link-list span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    font-weight: 900;
}

.rank-link-list strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-link-list em {
    color: var(--rose);
    font-size: 12px;
    font-style: normal;
}

.text-link {
    color: var(--rose);
    font-weight: 900;
}

.section-block {
    padding: 70px 0 30px;
}

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

.section-title h2 {
    margin: 6px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

.section-title a {
    color: var(--rose);
    font-weight: 900;
}

.channel-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.channel-card {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border-radius: 24px;
    color: #ffffff;
    background:
        radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.26), transparent 35%),
        linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 18px 35px rgba(225, 29, 72, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.channel-card:nth-child(3n) {
    background:
        radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.26), transparent 35%),
        linear-gradient(135deg, var(--purple), var(--pink));
}

.channel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 45px rgba(225, 29, 72, 0.30);
}

.channel-card strong {
    font-size: 22px;
}

.channel-card span {
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
}

.channel-card em {
    font-style: normal;
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 46px rgba(225, 29, 72, 0.18);
}

.movie-poster {
    position: relative;
    display: block;
    height: 260px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffe4e6, #fdf2f8);
}

.movie-card-small .movie-poster {
    height: 220px;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.movie-views,
.rank-badge {
    position: absolute;
    top: 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.70);
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
}

.movie-views {
    right: 12px;
}

.rank-badge {
    left: 12px;
    min-width: 34px;
    text-align: center;
    background: linear-gradient(135deg, var(--gold), var(--rose));
}

.movie-info {
    padding: 18px;
}

.movie-info h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.3;
}

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

.movie-info p {
    min-height: 48px;
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
}

.movie-tags span {
    border-radius: 999px;
    padding: 5px 9px;
    color: var(--rose);
    background: linear-gradient(90deg, #fff1f2, #fdf2f8);
    font-size: 12px;
    font-weight: 800;
}

.large-tags span {
    font-size: 13px;
    padding: 8px 12px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #6b7280;
    font-size: 13px;
}

.soft-section {
    background: linear-gradient(90deg, #faf5ff, #fdf2f8);
    border-block: 1px solid rgba(251, 113, 133, 0.12);
}

.horizontal-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 185px;
    gap: 18px;
    overflow-x: auto;
    padding: 6px 0 20px;
}

.mini-card {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.mini-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.mini-card span {
    display: block;
    padding: 12px;
    min-height: 56px;
    color: #374151;
    font-weight: 800;
    line-height: 1.35;
}

.page-hero {
    padding: 92px 0 82px;
    color: #ffffff;
    background:
        radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.20), transparent 32%),
        linear-gradient(135deg, #9f1239, #e11d48 48%, #db2777);
}

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

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

.category-overview-head h2 {
    margin: 8px 0 8px;
    font-size: 30px;
}

.category-overview-head p {
    margin: 0 0 18px;
    color: var(--muted);
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 14px;
    margin-top: 28px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.filter-bar input,
.filter-bar select {
    min-width: 0;
    border: 2px solid #fecdd3;
    border-radius: 999px;
    padding: 12px 16px;
    outline: 0;
    background: #ffffff;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #fb7185;
}

.table-wrap {
    overflow-x: auto;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.rank-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.rank-table th,
.rank-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #ffe4e6;
    text-align: left;
}

.rank-table th {
    color: #881337;
    background: #fff1f2;
}

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

.search-hero .page-search-form {
    max-width: 720px;
    margin-top: 28px;
}

.detail-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

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

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px) brightness(0.56);
    transform: scale(1.05);
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 22%, rgba(236, 72, 153, 0.32), transparent 34%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.65));
}

.detail-hero-inner {
    position: relative;
    padding: 38px 0 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 42px;
    color: rgba(255, 255, 255, 0.78);
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.36);
}

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

.detail-copy p {
    max-width: 760px;
    color: #e5e7eb;
    font-size: 19px;
    line-height: 1.85;
}

.player-section {
    margin-top: -80px;
    position: relative;
    z-index: 5;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    aspect-ratio: 16 / 9;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.24), rgba(225, 29, 72, 0.32));
}

.play-overlay span {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 12px 35px rgba(225, 29, 72, 0.40);
    font-size: 34px;
}

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

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

.detail-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 340px;
    gap: 22px;
    padding: 48px 0 0;
}

.content-card h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.content-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.9;
}

.detail-facts dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px 16px;
    margin: 0;
}

.detail-facts dt {
    color: #9f1239;
    font-weight: 900;
}

.detail-facts dd {
    margin: 0;
    color: #374151;
}

.site-footer {
    margin-top: 60px;
    color: #d1d5db;
    background: linear-gradient(90deg, #111827, #1f2937, #111827);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 34px;
    padding: 52px 0;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 20px;
}

.site-footer p {
    margin: 0;
    color: #9ca3af;
    line-height: 1.75;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li {
    margin-bottom: 10px;
}

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

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

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

@media (max-width: 1080px) {
    .header-search {
        display: none;
    }

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

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

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

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

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

    .hero {
        height: 560px;
    }

    .hero-content p {
        font-size: 17px;
    }

    .quick-panel,
    .category-overview-grid,
    .detail-layout,
    .detail-content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .quick-panel {
        margin-top: 24px;
    }

    .channel-grid,
    .movie-grid,
    .compact-grid,
    .mini-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

    .brand-copy strong {
        font-size: 20px;
    }

    .brand-copy small {
        display: none;
    }

    .hero {
        height: 520px;
    }

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

    .page-hero {
        padding: 66px 0 56px;
    }

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

    .channel-grid,
    .movie-grid,
    .compact-grid,
    .mini-grid {
        grid-template-columns: 1fr;
    }

    .movie-poster,
    .movie-card-small .movie-poster {
        height: 300px;
    }

    .quick-search-card form,
    .page-search-form {
        border-radius: 22px;
        flex-direction: column;
    }

    .quick-search-card button,
    .page-search-form button {
        width: 100%;
    }
}
