:root {
    --pink: #ec4899;
    --rose: #f43f5e;
    --orange: #fb923c;
    --ink: #1f2937;
    --muted: #6b7280;
    --soft: #fff1f2;
    --line: #ffe4e6;
    --shadow: 0 18px 42px rgba(244, 63, 94, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7f9 0%, #ffffff 34%, #fff7f9 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 228, 230, 0.9);
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 24px rgba(244, 63, 94, 0.06);
}

.header-inner {
    max-width: 1200px;
    height: 76px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    box-shadow: 0 10px 26px rgba(236, 72, 153, 0.26);
}

.brand-text {
    display: grid;
    line-height: 1.15;
}

.brand-text strong,
.footer-brand {
    font-size: 20px;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
    font-weight: 600;
    color: #374151;
}

.main-nav a,
.nav-dropdown button {
    border: 0;
    background: transparent;
    color: #374151;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.nav-dropdown button:hover {
    color: var(--pink);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: 180px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-panel a {
    display: block;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 14px;
}

.nav-dropdown-panel a:hover {
    background: var(--soft);
}

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

.top-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
    border: 1px solid #fbcfe8;
    outline: 0;
    border-radius: 999px;
    background: #ffffff;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.top-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.top-search button,
.mobile-search button,
.primary-btn,
.secondary-btn,
.filter-panel button {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search button,
.mobile-search button,
.primary-btn,
.filter-panel button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    box-shadow: 0 12px 24px rgba(236, 72, 153, 0.20);
}

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

.mobile-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: var(--soft);
    color: var(--rose);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    padding: 16px 20px 20px;
    background: rgba(255, 255, 255, 0.94);
}

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

.mobile-search input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
}

.mobile-search button {
    padding: 11px 16px;
}

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

.mobile-panel nav a {
    padding: 11px 12px;
    border-radius: 12px;
    color: #374151;
}

.mobile-panel nav a:hover {
    background: var(--soft);
    color: var(--pink);
}

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

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

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

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.55), rgba(17, 24, 39, 0.10));
}

.hero-content {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: min(1200px, calc(100% - 40px));
    transform: translate(-50%, -50%);
    color: #ffffff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(236, 72, 153, 0.35);
}

.hero h1,
.hero h2 {
    max-width: 700px;
    margin: 18px 0 14px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.26);
}

.hero p {
    max-width: 660px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.75;
}

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

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 22px;
}

.secondary-btn {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.primary-btn:hover,
.secondary-btn:hover,
.filter-panel button:hover,
.top-search button:hover,
.mobile-search button:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 18px 34px rgba(236, 72, 153, 0.28);
}

.hero-nav {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.84);
    color: #111827;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

.hero-dots {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 22px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    margin-top: 64px;
}

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

.section-title {
    margin: 0;
    font-size: clamp(26px, 4vw, 34px);
    line-height: 1.2;
}

.section-desc {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.more-link {
    color: var(--pink);
    font-weight: 700;
    white-space: nowrap;
}

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

.movie-card,
.list-card,
.category-tile,
.detail-panel,
.filter-panel,
.player-card {
    border: 1px solid rgba(255, 228, 230, 0.95);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 24px rgba(244, 63, 94, 0.08);
}

.movie-card {
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #ffe4e6, #fdf2f8);
}

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

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

.movie-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.58));
    opacity: 0.84;
}

.movie-type {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    font-size: 12px;
    font-weight: 700;
}

.play-mark {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--pink);
    background: rgba(255, 255, 255, 0.88);
    transform: translate(-50%, -50%) scale(0.92);
    transition: transform 0.25s ease;
}

.movie-card:hover .play-mark {
    transform: translate(-50%, -50%) scale(1.06);
}

.movie-info {
    padding: 16px;
}

.movie-title,
.list-title {
    display: block;
    color: #111827;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
}

.movie-title:hover,
.list-title:hover {
    color: var(--pink);
}

.movie-desc,
.list-body p {
    display: -webkit-box;
    margin: 8px 0 12px;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

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

.tag-row span,
.detail-tags span {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    color: #be185d;
    background: #fce7f3;
    font-size: 12px;
    font-weight: 700;
}

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

.list-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
}

.rank-num {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--rose));
    font-weight: 900;
}

.list-cover {
    flex: 0 0 118px;
    height: 76px;
    overflow: hidden;
    border-radius: 16px;
    background: var(--soft);
}

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

.list-body {
    min-width: 0;
    flex: 1;
}

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

.category-tile {
    padding: 22px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile strong {
    display: block;
    margin-bottom: 8px;
    color: #111827;
    font-size: 20px;
}

.category-tile p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.page-hero {
    padding: 68px 0 36px;
}

.page-hero-card {
    padding: 34px;
    border-radius: 28px;
    color: #ffffff;
    background: radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.26), transparent 28%), linear-gradient(135deg, var(--pink), var(--rose));
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(32px, 5vw, 48px);
}

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

.filter-panel {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr) auto;
    gap: 12px;
    padding: 18px;
    margin-bottom: 28px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    padding: 12px 14px;
}

.filter-panel button {
    padding: 12px 18px;
}

.empty-state {
    display: none;
    padding: 50px 20px;
    text-align: center;
    color: var(--muted);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--pink);
    font-weight: 700;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
    gap: 28px;
}

.player-card {
    overflow: hidden;
}

.player-shell {
    position: relative;
    background: #000000;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.20), rgba(0, 0, 0, 0.28) 38%, rgba(0, 0, 0, 0.56));
    cursor: pointer;
    z-index: 2;
    transition: opacity 0.2s ease;
}

.play-overlay.is-hidden,
.player-shell.is-playing .play-overlay {
    opacity: 0;
    pointer-events: none;
}

.play-button {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--pink);
    background: rgba(255, 255, 255, 0.92);
    font-size: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.26);
}

.detail-panel {
    padding: 24px;
    margin-top: 22px;
}

.detail-panel h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
}

.detail-panel h2,
.side-box h2 {
    margin: 0 0 14px;
    font-size: 22px;
}

.detail-panel p {
    color: #4b5563;
    line-height: 1.9;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 18px;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--soft);
    color: #be185d;
    font-weight: 700;
    font-size: 13px;
}

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

.side-box {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 24px rgba(244, 63, 94, 0.08);
}

.side-box + .side-box {
    margin-top: 20px;
}

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

.mini-card {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 12px;
    align-items: center;
}

.mini-card img {
    width: 86px;
    height: 58px;
    object-fit: cover;
    border-radius: 12px;
}

.mini-card strong {
    display: block;
    color: #111827;
    line-height: 1.35;
}

.mini-card span {
    color: var(--muted);
    font-size: 13px;
}

.site-footer {
    margin-top: 80px;
    border-top: 1px solid var(--line);
    background: linear-gradient(135deg, #fff1f2, #fdf2f8);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 20px 20px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-inner p {
    max-width: 520px;
    color: var(--muted);
    line-height: 1.8;
}

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

.footer-links a {
    color: #4b5563;
    font-weight: 700;
}

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

.copyright {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 28px;
    color: #9ca3af;
    font-size: 13px;
}

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

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

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

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

    .detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .header-inner {
        height: 66px;
        padding: 0 16px;
    }

    .brand-text small {
        display: none;
    }

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

    .hero {
        height: 440px;
    }

    .hero-content {
        width: calc(100% - 32px);
    }

    .hero h1,
    .hero h2 {
        font-size: 36px;
    }

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

    .hero-nav {
        display: none;
    }

    .section {
        margin-top: 46px;
    }

    .section-head,
    .footer-inner {
        display: block;
    }

    .more-link {
        display: inline-block;
        margin-top: 12px;
    }

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

    .list-card {
        align-items: flex-start;
    }

    .list-cover {
        flex-basis: 100px;
        height: 70px;
    }

    .rank-num {
        display: none;
    }

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

    .page-hero {
        padding-top: 42px;
    }

    .page-hero-card {
        padding: 26px;
    }

    .detail-panel,
    .side-box {
        padding: 18px;
    }
}
