:root {
    --red: #ef4444;
    --red-dark: #dc2626;
    --pink: #ec4899;
    --pink-dark: #db2777;
    --mint: #10b981;
    --cool: #06b6d4;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #fff7f8;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(135deg, #fff1f2 0%, #fff7fb 42%, #ffffff 100%);
    min-height: 100vh;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(229, 231, 235, 0.9);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 72px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand, .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--red-dark), var(--pink-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--red), var(--pink));
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.28);
    font-size: 14px;
}

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

.desktop-nav a, .mobile-panel nav a {
    color: #374151;
    font-weight: 650;
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover, .desktop-nav a.is-active, .mobile-panel nav a:hover, .mobile-panel nav a.is-active {
    color: var(--red-dark);
}

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

.header-search input, .mobile-search input, .filter-box input {
    height: 42px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 0 16px;
    outline: none;
    min-width: 220px;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus, .mobile-search input:focus, .filter-box input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.13);
}

.header-search button, .mobile-search button, .hero-action, .outline-action, .filter-pill, .player-button {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 750;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button, .mobile-search button, .hero-action, .player-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--red), var(--pink));
    box-shadow: 0 14px 30px rgba(239, 68, 68, 0.22);
}

.header-search button, .mobile-search button {
    height: 42px;
    padding: 0 18px;
}

.header-search button:hover, .mobile-search button:hover, .hero-action:hover, .player-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(236, 72, 153, 0.3);
}

.menu-button {
    display: none;
    margin-left: auto;
    border: 0;
    background: #f3f4f6;
    color: #374151;
    border-radius: 12px;
    width: 42px;
    height: 42px;
    font-size: 20px;
}

.mobile-panel {
    display: none;
    padding: 16px 24px 22px;
    border-top: 1px solid #f3f4f6;
}

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

.mobile-search {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.mobile-search input {
    flex: 1;
    min-width: 0;
}

.mobile-panel nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hero-shell {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 12% 18%, rgba(239, 68, 68, 0.22), transparent 28%), radial-gradient(circle at 82% 12%, rgba(236, 72, 153, 0.18), transparent 32%), linear-gradient(135deg, #111827, #3f1f33 58%, #7f1d1d);
    color: #ffffff;
}

.hero-shell::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 120px;
    background: linear-gradient(0deg, rgba(255, 247, 248, 1), rgba(255, 247, 248, 0));
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 640px;
    margin: 0 auto;
    padding: 80px 24px 96px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 42px;
    align-items: center;
}

.hero-copy {
    max-width: 680px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffe4e6;
    font-weight: 700;
    margin-bottom: 22px;
}

.hero-copy h1 {
    margin: 0 0 22px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-copy p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.9;
    margin: 0 0 28px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.hero-action, .outline-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
}

.outline-action {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.outline-action:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-categories a {
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
}

.hero-gallery {
    position: relative;
    border-radius: 32px;
    min-height: 520px;
    box-shadow: var(--shadow);
}

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

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

.hero-slide-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 32px;
    background: #111827;
}

.hero-slide-card img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    opacity: 0.86;
    transform: scale(1.02);
}

.hero-slide-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.08) 58%, rgba(0, 0, 0, 0.15));
}

.hero-slide-text {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 26px;
    z-index: 2;
}

.hero-slide-text span {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.88);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-slide-text h2 {
    margin: 0 0 10px;
    font-size: clamp(26px, 4vw, 42px);
}

.hero-slide-text p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

.hero-dots {
    position: absolute;
    z-index: 3;
    top: 24px;
    right: 24px;
    display: flex;
    gap: 8px;
}

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

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

.section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px;
}

.section.compact {
    padding-top: 48px;
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 10px;
    font-size: clamp(28px, 3vw, 40px);
    letter-spacing: -0.03em;
}

.section-title::before {
    content: "";
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--red), var(--pink));
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.22);
}

.section-header p, .page-lead {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
    max-width: 760px;
}

.more-link {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    color: var(--red-dark);
    font-weight: 750;
}

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

.category-card {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border: 1px solid #ffe4e6;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff, #fff1f2);
    box-shadow: 0 12px 26px rgba(239, 68, 68, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 38px rgba(239, 68, 68, 0.14);
}

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

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

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

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

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(17, 24, 39, 0.14);
}

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

.movie-card-list .movie-poster {
    height: auto;
    min-height: 160px;
}

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

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

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

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--red);
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-info {
    padding: 18px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #9ca3af;
    font-size: 13px;
    margin-bottom: 10px;
}

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

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

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

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-list span {
    padding: 4px 9px;
    border-radius: 999px;
    background: #fef2f2;
    color: var(--red-dark);
    font-size: 12px;
    font-weight: 650;
}

.rank-wrap {
    display: grid;
    gap: 14px;
}

.rank-item {
    display: grid;
    grid-template-columns: 54px 120px minmax(0, 1fr) 68px;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(17, 24, 39, 0.12);
}

.rank-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--pink));
    font-size: 20px;
    font-weight: 850;
}

.rank-item img {
    width: 120px;
    height: 76px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-content {
    min-width: 0;
}

.rank-content strong, .rank-content em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-content em {
    margin-top: 6px;
    color: var(--muted);
    font-style: normal;
    font-size: 14px;
}

.rank-score {
    justify-self: end;
    color: var(--red-dark);
    font-size: 22px;
    font-weight: 850;
}

.page-hero {
    padding: 64px 24px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(236, 72, 153, 0.1), rgba(255, 255, 255, 0.88));
}

.page-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 56px);
    letter-spacing: -0.04em;
}

.filter-box {
    margin: 26px 0 30px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.filter-box input {
    flex: 1;
    min-width: 240px;
}

.filter-pill {
    min-height: 40px;
    padding: 0 14px;
    background: #fff1f2;
    color: var(--red-dark);
}

.filter-pill.is-active, .filter-pill:hover {
    color: #ffffff;
    background: linear-gradient(90deg, var(--red), var(--pink));
}

.no-results {
    display: none;
    padding: 34px;
    text-align: center;
    color: var(--muted);
    border-radius: 24px;
    background: #ffffff;
}

.no-results.is-visible {
    display: block;
}

.detail-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 44px 24px 28px;
}

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

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

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    gap: 28px;
    align-items: start;
}

.player-card, .detail-side, .story-card {
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.player-stage {
    position: relative;
    background: #000000;
    aspect-ratio: 16 / 9;
}

.player-stage video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.32));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-button {
    width: 86px;
    height: 86px;
    font-size: 34px;
}

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

.player-meta {
    padding: 24px;
}

.player-meta h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -0.04em;
}

.info-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.info-badges span {
    padding: 8px 12px;
    border-radius: 999px;
    background: #f9fafb;
    color: #4b5563;
    font-weight: 700;
    font-size: 13px;
}

.detail-side {
    padding: 20px;
}

.detail-side img {
    width: 100%;
    border-radius: 22px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    margin-bottom: 18px;
}

.side-list {
    display: grid;
    gap: 10px;
    color: #4b5563;
}

.side-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
}

.story-card {
    padding: 28px;
    margin-top: 28px;
}

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

.story-card p {
    margin: 0;
    color: #374151;
    line-height: 2;
    font-size: 16px;
    white-space: pre-line;
}

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

.site-footer {
    margin-top: 48px;
    color: #e5e7eb;
    background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 54px 24px 42px;
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
    gap: 32px;
}

.site-footer p {
    color: #9ca3af;
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #fda4af;
    font-size: 18px;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 9px;
}

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

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    font-size: 14px;
}

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

    .hero-inner, .detail-grid {
        grid-template-columns: 1fr;
    }

    .hero-gallery {
        min-height: 480px;
    }

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

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

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

    .desktop-nav {
        display: none;
    }

    .menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-inner {
        padding: 52px 16px 72px;
        min-height: auto;
    }

    .hero-gallery, .hero-slide-card img {
        min-height: 440px;
    }

    .section, .detail-hero {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section-header {
        display: block;
    }

    .section-header .more-link {
        margin-top: 12px;
    }

    .category-grid, .movie-grid, .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .movie-poster {
        height: 210px;
    }

    .rank-item {
        grid-template-columns: 46px 86px minmax(0, 1fr);
    }

    .rank-score {
        display: none;
    }

    .rank-item img {
        width: 86px;
        height: 60px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .brand {
        font-size: 18px;
    }

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

    .hero-buttons, .mobile-search, .filter-row {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-action, .outline-action, .mobile-search button, .filter-box input {
        width: 100%;
    }

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

    .movie-poster {
        height: 260px;
    }

    .page-hero {
        padding: 44px 16px;
    }

    .story-card, .player-meta {
        padding: 20px;
    }
}
