:root {
    --rose: #f43f5e;
    --pink: #ec4899;
    --deep: #0f172a;
    --muted: #64748b;
    --line: #ffe4e6;
    --soft: #fff1f2;
    --card: #ffffff;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #172033;
    background: linear-gradient(180deg, #fff7f8 0%, #ffffff 35%, #fff9fb 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

button,
input {
    font: inherit;
}

.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);
    border-bottom: 1px solid rgba(244, 63, 94, 0.12);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    min-height: 80px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    box-shadow: 0 14px 28px rgba(244, 63, 94, 0.28);
}

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

.brand-text em {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-style: normal;
    margin-top: 2px;
}

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

.main-nav a {
    color: #475569;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--rose);
    transform: translateY(-1px);
}

.top-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-search input,
.page-search input {
    width: 250px;
    border: 1px solid #fecdd3;
    outline: none;
    border-radius: 999px;
    padding: 11px 16px;
    background: #fff;
    color: #172033;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus,
.page-search input:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.top-search button,
.page-search button,
.btn-primary {
    border: 0;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    border-radius: 999px;
    padding: 11px 18px;
    background: linear-gradient(90deg, var(--pink), var(--rose));
    box-shadow: 0 14px 30px rgba(244, 63, 94, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-search button:hover,
.page-search button:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(244, 63, 94, 0.32);
}

.menu-toggle {
    display: none;
    border: 0;
    color: #475569;
    background: transparent;
    font-weight: 800;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    background: #fff1f2;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    background-size: cover;
    background-position: center;
    transition: opacity 0.75s ease, visibility 0.75s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.hero-content {
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 48px;
    align-items: center;
    padding: 70px 0 94px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: var(--rose);
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.14);
    border-radius: 999px;
    padding: 7px 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
    margin: 22px 0 18px;
    color: #111827;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-subtitle,
.page-hero p,
.detail-copy p {
    max-width: 740px;
    color: #475569;
    font-size: clamp(18px, 2.2vw, 24px);
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    color: #be123c;
    background: #ffe4e6;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 800;
}

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

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 24px;
}

.btn-ghost {
    color: #be123c;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid #fecdd3;
    border-radius: 999px;
    font-weight: 800;
}

.hero-poster {
    position: relative;
    min-height: 510px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.65);
    border-radius: 36px;
    padding: 28px;
    color: #fff;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) scale(1.02);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 32%, rgba(15, 23, 42, 0.78));
}

.hero-poster span,
.hero-poster strong {
    position: relative;
}

.hero-poster span {
    width: fit-content;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    padding: 7px 12px;
    font-weight: 800;
}

.hero-poster strong {
    font-size: 28px;
    line-height: 1.2;
}

.hero-control {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    color: #be123c;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    font-size: 28px;
    line-height: 1;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    background: #fecdd3;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.home-section,
.catalog-section,
.detail-content,
.rank-feature-section,
.rank-table-section,
.player-section,
.category-nav-section {
    padding: 64px 0;
}

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

.section-heading h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 10px 0 0;
    color: var(--muted);
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(244, 63, 94, 0.1);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 46px rgba(15, 23, 42, 0.14);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #ffe4e6, #fce7f3);
}

.poster-frame {
    display: block;
    aspect-ratio: 3 / 4;
    background-size: cover;
    background-position: center;
    transition: transform 0.35s ease;
}

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

.movie-year {
    position: absolute;
    left: 14px;
    top: 14px;
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    padding: 6px 11px;
    font-size: 13px;
    font-weight: 900;
}

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

.movie-meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #be123c;
    font-size: 13px;
    font-weight: 800;
}

.movie-card h3 {
    min-height: 58px;
    margin: 9px 0 9px;
    color: #111827;
    font-size: 20px;
    line-height: 1.35;
}

.movie-card p {
    min-height: 68px;
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.tag-row {
    margin: 16px 0 0;
}

.tag-row span {
    font-size: 12px;
    padding: 5px 9px;
}

.channel-section {
    background: #fff;
}

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

.channel-card {
    min-height: 168px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #fecdd3;
    border-radius: 24px;
    padding: 22px;
    background: linear-gradient(145deg, #fff 0%, #fff1f2 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.channel-card span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    font-weight: 900;
}

.channel-card strong {
    color: #111827;
    font-size: 22px;
    margin-top: 18px;
}

.channel-card em {
    color: var(--muted);
    font-style: normal;
    font-size: 14px;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: stretch;
}

.hot-section {
    background: linear-gradient(135deg, #fff1f2, #ffffff);
}

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

.rank-item,
.rank-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    border: 1px solid rgba(244, 63, 94, 0.1);
    border-radius: 18px;
    padding: 14px;
    background: #fff;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover,
.rank-row:hover {
    transform: translateX(4px);
    border-color: #fb7185;
}

.rank-item span,
.rank-no {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    font-weight: 900;
}

.rank-item strong {
    display: block;
    color: #111827;
    font-size: 18px;
}

.rank-item em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.feature-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 32px;
    padding: 34px;
    color: #fff;
    background: radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.24), transparent 28%), linear-gradient(145deg, #ec4899, #be123c);
    box-shadow: var(--shadow);
}

.feature-panel span {
    font-weight: 900;
    opacity: 0.86;
}

.feature-panel h2 {
    margin: 16px 0 14px;
    font-size: 34px;
    line-height: 1.12;
}

.feature-panel p {
    color: #ffe4e6;
    margin-bottom: 24px;
}

.feature-panel .btn-primary {
    align-self: flex-start;
    color: #be123c;
    background: #fff;
}

.page-hero {
    padding: 86px 0 72px;
    background: radial-gradient(circle at 84% 16%, rgba(244, 63, 94, 0.22), transparent 26%), linear-gradient(135deg, #fff1f2, #ffffff);
}

.small-hero h1,
.rank-hero h1 {
    font-size: clamp(42px, 6vw, 64px);
}

.page-search {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.page-search input {
    width: min(520px, 100%);
}

.category-nav-section {
    padding: 22px 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.category-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.category-tabs a {
    flex-shrink: 0;
    color: #be123c;
    border: 1px solid #fecdd3;
    border-radius: 999px;
    padding: 9px 15px;
    font-weight: 800;
}

.category-tabs a.active,
.category-tabs a:hover {
    color: #fff;
    background: linear-gradient(90deg, var(--pink), var(--rose));
}

.catalog-section {
    background: #fff;
}

.catalog-grid .movie-card.is-hidden {
    display: none;
}

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

.rank-hero-card {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    border-radius: 28px;
    overflow: hidden;
    padding: 28px;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
}

.rank-hero-card span {
    width: fit-content;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    padding: 7px 12px;
    font-weight: 900;
}

.rank-hero-card strong {
    margin-top: 16px;
    font-size: 28px;
}

.rank-hero-card em {
    color: #ffe4e6;
    font-style: normal;
}

.rank-table {
    display: grid;
    gap: 10px;
}

.rank-row {
    grid-template-columns: 56px minmax(0, 1.2fr) minmax(0, 1fr) 80px;
}

.rank-title {
    color: #111827;
    font-weight: 900;
}

.rank-genre,
.rank-year {
    color: var(--muted);
}

.detail-hero {
    color: #fff;
    background-size: cover;
    background-position: center;
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 44px;
    align-items: center;
    min-height: 620px;
    padding: 70px 0;
}

.detail-poster {
    min-height: 460px;
    border: 10px solid rgba(255, 255, 255, 0.2);
    border-radius: 32px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.detail-copy h1 {
    color: #fff;
}

.detail-copy p {
    color: #ffe4e6;
}

.detail-copy .hero-tags span {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

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

.video-shell video {
    width: 100%;
    min-height: 360px;
    max-height: 680px;
    display: block;
    background: #0f172a;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    color: #fff;
    border: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.24), rgba(15, 23, 42, 0.66));
    cursor: pointer;
}

.play-layer.is-hidden {
    display: none;
}

.play-layer span {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    box-shadow: 0 24px 48px rgba(244, 63, 94, 0.34);
    font-size: 34px;
}

.play-layer strong {
    font-size: 22px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 32px;
}

.detail-article,
.detail-side {
    border: 1px solid rgba(244, 63, 94, 0.12);
    border-radius: 28px;
    background: #fff;
    padding: 30px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
}

.detail-article h2,
.detail-side h2 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 28px;
}

.detail-article p {
    color: #475569;
    font-size: 17px;
    margin: 0 0 28px;
}

.detail-side dl {
    margin: 0;
}

.detail-side dt {
    color: #be123c;
    font-weight: 900;
    margin-top: 16px;
}

.detail-side dd {
    margin: 4px 0 0;
    color: #475569;
}

.site-footer {
    color: #ffe4e6;
    background: #0f172a;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px 220px;
    gap: 38px;
}

.footer-brand .brand-text strong {
    color: #fff;
    background: none;
    -webkit-text-fill-color: #fff;
}

.site-footer p {
    max-width: 580px;
    color: #cbd5e1;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #fff;
}

.site-footer a:not(.brand) {
    display: block;
    color: #cbd5e1;
    margin: 8px 0;
}

.footer-bottom {
    margin-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px;
    text-align: center;
    color: #94a3b8;
}

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

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

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

    .hero-content,
    .detail-hero-grid,
    .split-layout,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-poster,
    .detail-poster {
        min-height: 380px;
    }
}

@media (max-width: 760px) {
    .nav-wrap {
        min-height: 68px;
    }

    .brand-icon {
        width: 42px;
        height: 42px;
    }

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .main-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 74px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow: hidden;
        border: 1px solid #fecdd3;
        border-radius: 22px;
        background: #fff;
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 14px 18px;
        border-bottom: 1px solid #ffe4e6;
    }

    .hero,
    .hero-content {
        min-height: 640px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 42px;
    }

    .hero-poster {
        min-height: 240px;
        transform: none;
    }

    .movie-grid,
    .channel-grid,
    .rank-feature-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        display: block;
    }

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

    .rank-genre,
    .rank-year {
        grid-column: 2;
    }

    .video-shell video {
        min-height: 240px;
    }
}
