:root {
    --rose: #fb7185;
    --rose-dark: #e11d48;
    --orange: #fb923c;
    --amber: #f59e0b;
    --text: #1f2937;
    --muted: #6b7280;
    --panel: rgba(255, 255, 255, 0.82);
    --line: rgba(251, 113, 133, 0.18);
    --shadow: 0 20px 60px rgba(225, 29, 72, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 45%, #ffe4e6 100%);
    min-height: 100vh;
}

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 10px 30px rgba(251, 113, 133, 0.08);
    backdrop-filter: blur(18px);
}

.nav-shell {
    max-width: 1220px;
    height: 68px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

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

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 12px 30px rgba(251, 113, 133, 0.28);
    transition: transform 0.25s ease;
}

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

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

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

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

.nav-link,
.mobile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #374151;
    font-weight: 700;
    transition: all 0.25s ease;
}

.nav-link {
    min-height: 40px;
    padding: 0 16px;
}

.nav-link:hover,
.mobile-link:hover {
    color: var(--rose-dark);
    background: #fff1f2;
}

.nav-link.active,
.mobile-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 12px 24px rgba(251, 113, 133, 0.24);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: var(--rose-dark);
    background: #fff1f2;
    font-size: 24px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 0 20px 16px;
}

.mobile-nav.open {
    display: grid;
    gap: 8px;
}

.mobile-link {
    min-height: 44px;
    padding: 0 14px;
}

.hero-carousel {
    position: relative;
    max-width: 1220px;
    min-height: 540px;
    margin: 28px auto 0;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #111827;
}

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

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

.hero-slide img {
    transform: scale(1.02);
    filter: saturate(1.06);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(17, 24, 39, 0.72) 42%, rgba(17, 24, 39, 0.12) 100%), linear-gradient(0deg, rgba(17, 24, 39, 0.46), transparent 58%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    padding: 78px 70px;
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 13px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(251, 113, 133, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
    font-weight: 800;
    letter-spacing: 0.05em;
}

.hero-content h1,
.hero-content h2 {
    margin: 22px 0 18px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 560px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.8;
}

.hero-tags,
.detail-meta,
.rank-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.detail-meta span {
    border-radius: 999px;
    padding: 7px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 16px;
    font-weight: 900;
    transition: all 0.25s ease;
}

.btn.primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 16px 32px rgba(251, 113, 133, 0.32);
}

.btn.ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
}

.btn.ghost.dark {
    color: var(--rose-dark);
    background: #fff1f2;
    border-color: var(--line);
}

.btn:hover {
    transform: translateY(-2px);
}

.hero-controls {
    position: absolute;
    z-index: 4;
    right: 32px;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-controls button {
    cursor: pointer;
}

.hero-prev,
.hero-next {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 15px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    font-size: 30px;
    line-height: 1;
    backdrop-filter: blur(10px);
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
}

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

.quick-search-panel,
.content-section,
.page-main,
.detail-main,
.search-board {
    max-width: 1220px;
    margin-left: auto;
    margin-right: auto;
}

.quick-search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
    align-items: center;
    gap: 24px;
    margin-top: 24px;
    padding: 28px;
    border-radius: 28px;
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 16px 40px rgba(225, 29, 72, 0.08);
    backdrop-filter: blur(18px);
}

.quick-search-panel h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.quick-search-panel p {
    margin: 0;
    color: var(--muted);
}

.quick-search,
.search-tools {
    display: flex;
    gap: 10px;
}

.quick-search input,
.search-tools input,
.search-tools select {
    width: 100%;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0 16px;
    color: var(--text);
    background: #ffffff;
    outline: 0;
}

.quick-search input:focus,
.search-tools input:focus,
.search-tools select:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.12);
}

.quick-search button,
.search-tools button {
    min-width: 96px;
    height: 48px;
    border: 0;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    font-weight: 900;
    cursor: pointer;
}

.content-section {
    padding: 58px 20px 0;
}

.content-section.soft-panel {
    margin-top: 58px;
    padding: 40px 28px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 46px rgba(225, 29, 72, 0.08);
}

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

.section-heading.left {
    display: block;
}

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

.section-heading p {
    max-width: 560px;
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 16px 40px rgba(225, 29, 72, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 52px rgba(225, 29, 72, 0.15);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fecdd3, #fed7aa);
}

.poster-link img {
    transition: transform 0.35s ease;
}

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

.play-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    border-radius: 999px;
    padding: 8px 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 10px 26px rgba(225, 29, 72, 0.28);
}

.card-body {
    padding: 18px;
}

.card-meta {
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
}

.movie-card h3 {
    min-height: 52px;
    margin: 0;
    font-size: 18px;
    line-height: 1.45;
}

.movie-card h3 a:hover,
.rank-info h3 a:hover,
.category-samples a:hover {
    color: var(--rose-dark);
}

.movie-card p {
    min-height: 48px;
    margin: 10px 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-tags span,
.detail-tags span {
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--rose-dark);
    background: #fff1f2;
    font-size: 12px;
    font-weight: 800;
}

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

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

.category-card {
    min-height: 150px;
    padding: 22px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 241, 242, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 40px rgba(225, 29, 72, 0.08);
}

.category-card > a {
    display: grid;
    gap: 8px;
}

.category-card span {
    color: var(--rose-dark);
    font-size: 24px;
    font-weight: 900;
}

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

.category-samples {
    display: grid;
    gap: 6px;
    margin-top: 16px;
    color: #4b5563;
    font-size: 14px;
}

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

.type-grid a {
    min-height: 92px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 16px 36px rgba(251, 113, 133, 0.2);
}

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

.rank-card {
    display: grid;
    grid-template-columns: 138px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    border-radius: 26px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 34px rgba(225, 29, 72, 0.08);
}

.rank-poster {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.rank-info {
    position: relative;
    min-width: 0;
    padding: 10px 8px 10px 0;
}

.rank-number {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    font-weight: 900;
}

.rank-info h3 {
    margin: 14px 0 8px;
    font-size: 20px;
}

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

.rank-meta {
    margin-top: 12px;
    color: var(--rose-dark);
    font-size: 13px;
    font-weight: 800;
}

.section-more {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.section-more a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 16px;
    color: var(--rose-dark);
    background: #ffffff;
    border: 1px solid var(--line);
    font-weight: 900;
}

.page-main,
.detail-main {
    padding: 32px 20px 0;
}

.page-hero {
    min-height: 260px;
    border-radius: 34px;
    padding: 54px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.9), rgba(251, 146, 60, 0.86)), radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.32), transparent 32%);
    box-shadow: var(--shadow);
}

.page-hero span {
    display: inline-block;
    margin-bottom: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
}

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

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 34px;
}

.pagination a,
.pagination span {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--line);
    color: var(--text);
    font-weight: 900;
}

.pagination .current {
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
}

.search-board {
    padding: 40px 0 0;
}

.search-tools {
    align-items: center;
    padding: 20px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 34px rgba(225, 29, 72, 0.08);
}

.search-status {
    margin: 18px 0;
    color: var(--muted);
    font-weight: 700;
}

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

.breadcrumb a:hover {
    color: var(--rose-dark);
}

.detail-hero {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 32px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 3 / 4;
    box-shadow: 0 22px 50px rgba(17, 24, 39, 0.16);
}

.detail-info h1 {
    margin: 18px 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
}

.detail-info .lead {
    max-width: 760px;
    margin: 0 0 22px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.85;
}

.detail-meta span {
    color: var(--rose-dark);
    background: #fff1f2;
    border-color: var(--line);
    font-weight: 800;
}

.detail-tags {
    margin-top: 20px;
}

.player-section {
    margin-top: 40px;
    padding: 32px;
    border-radius: 34px;
    background: #111827;
    color: #ffffff;
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.24);
}

.player-section .section-heading p {
    color: rgba(255, 255, 255, 0.72);
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    aspect-ratio: 16 / 9;
}

.movie-player {
    display: block;
    width: 100%;
    height: 100%;
    background: #000000;
    cursor: pointer;
}

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.18), rgba(17, 24, 39, 0.36));
    cursor: pointer;
}

.play-layer span {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding-left: 5px;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 20px 50px rgba(251, 113, 133, 0.38);
    font-size: 36px;
}

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

.story-section {
    margin-top: 40px;
    padding: 36px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 16px 40px rgba(225, 29, 72, 0.08);
}

.story-section h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.story-section h2:not(:first-child) {
    margin-top: 30px;
}

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

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

.footer-grid {
    max-width: 1220px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
}

.footer-brand {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

.site-footer p {
    max-width: 520px;
    margin: 0;
    color: #9ca3af;
    line-height: 1.8;
}

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

.site-footer a {
    display: block;
    margin: 8px 0;
    color: #d1d5db;
}

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

.footer-bottom {
    max-width: 1220px;
    margin: 32px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #9ca3af;
}

@media (max-width: 1040px) {
    .movie-grid,
    .category-grid,
    .category-grid.large {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rank-grid,
    .quick-search-panel,
    .detail-hero {
        grid-template-columns: 1fr;
    }

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

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

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .hero-carousel {
        min-height: 620px;
        margin: 18px 14px 0;
        border-radius: 26px;
    }

    .hero-shade {
        background: linear-gradient(0deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.38));
    }

    .hero-content {
        padding: 260px 24px 34px;
    }

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

    .hero-controls {
        right: 20px;
        bottom: 18px;
    }

    .quick-search-panel {
        margin: 18px 14px 0;
        padding: 22px;
    }

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

    .content-section,
    .page-main,
    .detail-main,
    .search-board {
        padding-left: 14px;
        padding-right: 14px;
    }

    .movie-grid,
    .category-grid,
    .category-grid.large,
    .type-grid,
    .rank-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .page-hero,
    .detail-hero,
    .player-section,
    .story-section {
        padding: 24px;
        border-radius: 26px;
    }

    .detail-poster {
        max-width: none;
    }

    .section-heading {
        display: block;
    }
}
