:root {
    --page-bg: #fff7ed;
    --text: #1f2937;
    --muted: #6b7280;
    --pink: #ec4899;
    --orange: #f97316;
    --yellow: #eab308;
    --line: rgba(249, 168, 212, 0.5);
    --glass: rgba(255, 255, 255, 0.82);
    --shadow: 0 20px 45px rgba(236, 72, 153, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(14px);
    box-shadow: 0 6px 28px rgba(236, 72, 153, 0.08);
}

.navbar {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.32);
    font-size: 15px;
}

.nav-links,
.mobile-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a,
.mobile-nav a {
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--pink);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #374151;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 16px;
}

.mobile-nav a {
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(253, 242, 248, 0.75);
}

.hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: linear-gradient(135deg, #ec4899 0%, #fb923c 48%, #eab308 100%);
}

.stars {
    position: absolute;
    inset: 0;
    opacity: 0.28;
    background-image: radial-gradient(2px 2px at 20px 30px, #ffffff, transparent), radial-gradient(2px 2px at 60px 70px, #ffffff, transparent), radial-gradient(1px 1px at 50px 50px, #ffffff, transparent), radial-gradient(1px 1px at 130px 80px, #ffffff, transparent), radial-gradient(2px 2px at 90px 10px, #ffffff, transparent);
    background-size: 200px 100px;
    animation: twinkle 5s infinite;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.42;
    }
}

.hero-stage {
    position: relative;
    min-height: 560px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
    gap: 44px;
    align-items: center;
    opacity: 0;
    transform: translateY(24px);
    pointer-events: none;
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-copy {
    position: relative;
    z-index: 2;
    color: #ffffff;
    padding: 76px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-weight: 800;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.hero p {
    max-width: 680px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

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

.btn-primary {
    color: var(--pink);
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

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

.hero-visual {
    position: relative;
    z-index: 2;
    width: min(390px, 100%);
    margin-left: auto;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
    transform: rotate(2deg);
}

.hero-visual img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.74));
}

.hero-badge {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 3;
    color: #ffffff;
    font-weight: 800;
}

.hero-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 26px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.hero-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

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

.section {
    padding: 58px 0 0;
}

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

.section-title h2,
.page-title h1 {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.15;
    font-weight: 900;
    color: #1f2937;
}

.section-title p,
.page-title p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(249, 168, 212, 0.5);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 26px rgba(236, 72, 153, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(236, 72, 153, 0.58);
    box-shadow: var(--shadow);
}

.movie-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: rgba(253, 242, 248, 0.45);
}

.movie-cover img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.movie-card:hover .movie-cover img {
    transform: scale(1.06);
    opacity: 0.92;
}

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

.movie-type,
.movie-year {
    position: absolute;
    z-index: 2;
    top: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(236, 72, 153, 0.92);
}

.movie-type {
    left: 12px;
}

.movie-year {
    right: 12px;
    background: rgba(249, 115, 22, 0.92);
}

.movie-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 999px;
    color: var(--pink);
    background: rgba(255, 255, 255, 0.92);
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    font-weight: 900;
}

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

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

.movie-card h2,
.movie-card h3 {
    margin: 0 0 9px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-card h2 a:hover,
.movie-card h3 a:hover {
    color: var(--pink);
}

.movie-card p {
    min-height: 46px;
    margin: 0 0 12px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #db2777;
    background: #fce7f3;
    font-size: 12px;
    font-weight: 800;
}

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

.category-panel {
    position: relative;
    min-height: 154px;
    overflow: hidden;
    padding: 22px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #ec4899, #f97316);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-panel:nth-child(2n) {
    background: linear-gradient(135deg, #f97316, #eab308);
}

.category-panel:nth-child(3n) {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.category-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 54px rgba(236, 72, 153, 0.18);
}

.category-panel h2,
.category-panel h3 {
    position: relative;
    z-index: 2;
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 900;
}

.category-panel p {
    position: relative;
    z-index: 2;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    line-height: 1.7;
}

.category-panel::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -36px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.page-hero {
    padding: 58px 0 34px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.11), rgba(249, 115, 22, 0.1), rgba(234, 179, 8, 0.13));
}

.page-title {
    max-width: 820px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 160px 160px 160px;
    gap: 14px;
    margin: 26px 0 32px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--glass);
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.08);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(249, 168, 212, 0.68);
    border-radius: 14px;
    padding: 0 13px;
    color: #374151;
    background: #ffffff;
    outline: none;
}

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

.empty-state {
    display: none;
    padding: 32px;
    border-radius: 24px;
    text-align: center;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.78);
}

.empty-state.show {
    display: block;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 78px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 22px rgba(236, 72, 153, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

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

.rank-poster img {
    width: 78px;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    object-fit: cover;
}

.rank-info h2,
.rank-info h3 {
    margin: 0 0 7px;
    font-size: 17px;
    font-weight: 900;
}

.rank-info p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 700;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
    padding-top: 34px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #111827;
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.28);
}

.video-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111827;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: #111827;
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.78));
}

.player-button {
    position: absolute;
    z-index: 2;
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    border-radius: 999px;
    color: var(--pink);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    font-size: 28px;
    font-weight: 900;
}

.player-shell.is-playing .player-cover {
    opacity: 0;
    pointer-events: none;
}

.detail-card,
.side-card {
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 28px rgba(236, 72, 153, 0.08);
}

.detail-card {
    margin-top: 24px;
    padding: 26px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    color: #6b7280;
    font-size: 14px;
}

.breadcrumb a {
    color: #db2777;
    font-weight: 800;
}

.detail-card h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    font-weight: 900;
}

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

.detail-meta span {
    padding: 7px 11px;
    border-radius: 999px;
    color: #db2777;
    background: #fce7f3;
    font-size: 13px;
    font-weight: 800;
}

.detail-content h2 {
    margin: 26px 0 12px;
    font-size: 24px;
    font-weight: 900;
}

.detail-content p {
    margin: 0 0 16px;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.9;
}

.side-card {
    padding: 18px;
}

.side-card h2 {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 900;
}

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

.side-link {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.side-link img {
    width: 76px;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    object-fit: cover;
}

.side-link strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.35;
}

.side-link span {
    color: var(--muted);
    font-size: 12px;
}

.site-footer {
    margin-top: 70px;
    padding: 42px 0;
    border-top: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(252, 231, 243, 0.78), rgba(255, 237, 213, 0.78), rgba(254, 249, 195, 0.78));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
}

.footer-grid h2,
.footer-grid h3 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 900;
}

.footer-grid p,
.footer-grid a {
    color: #6b7280;
    line-height: 1.8;
    font-size: 14px;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.copyright {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(249, 168, 212, 0.55);
    color: #6b7280;
    text-align: center;
    font-size: 13px;
}

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

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

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

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 16px;
        align-content: center;
        padding: 34px 0 74px;
    }

    .hero-copy {
        padding: 34px 0 0;
    }

    .hero-visual {
        width: min(260px, 70vw);
        margin: 0 auto;
        transform: rotate(0deg);
    }

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

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

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

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

    .rank-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 22px, 1200px);
    }

    .logo {
        font-size: 21px;
    }

    .hero,
    .hero-stage {
        min-height: 720px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

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

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

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

    .movie-card h2,
    .movie-card h3 {
        font-size: 16px;
    }

    .detail-card {
        padding: 18px;
    }

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

    .rank-poster img {
        width: 68px;
    }
}
