:root {
    color-scheme: light;
    --text: #1f2937;
    --muted: #6b7280;
    --soft: #fff7ed;
    --line: #f3e8e8;
    --pink: #ec4899;
    --pink-dark: #db2777;
    --orange: #f97316;
    --yellow: #facc15;
    --shadow: 0 24px 70px rgba(236, 72, 153, 0.15);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: #ffffff;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 35px rgba(31, 41, 55, 0.08);
    backdrop-filter: blur(18px);
}

.top-strip {
    padding: 8px 16px;
    text-align: center;
    font-size: 14px;
    color: #ffffff;
    background: linear-gradient(90deg, #fb923c, #f472b6, #ef4444);
}

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

.nav-wrap {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

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

.logo-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(236, 72, 153, 0.28);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #4b5563;
    font-size: 15px;
    font-weight: 650;
}

.desktop-nav a {
    position: relative;
    padding: 8px 0;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--pink-dark);
    transition: transform 0.25s ease;
}

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

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
    transform: scaleX(1);
}

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

.header-search input,
.local-search input {
    width: 210px;
    padding: 11px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    color: #374151;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.header-search button,
.local-search button,
.primary-button,
.secondary-button,
.category-chip,
.rank-link {
    border: 0;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.header-search button {
    padding: 11px 18px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--orange));
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    color: #374151;
    background: #f9fafb;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-menu a {
    display: block;
    padding: 13px 0;
    border-top: 1px solid #f3f4f6;
    color: #4b5563;
    font-weight: 650;
}

.hero-slider {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: linear-gradient(135deg, #fce7f3, #fff7ed 48%, #fef3c7);
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.18;
    filter: saturate(1.1) blur(1px);
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(45px);
    opacity: 0.38;
}

.hero-glow.one {
    width: 230px;
    height: 230px;
    left: 8%;
    top: 14%;
    background: #f472b6;
}

.hero-glow.two {
    width: 280px;
    height: 280px;
    right: 7%;
    bottom: 18%;
    background: #fb923c;
}

.hero-glow.three {
    width: 220px;
    height: 220px;
    left: 45%;
    bottom: 6%;
    background: #fde047;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 640px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
    gap: 46px;
    align-items: center;
    padding: 58px 0 76px;
}

.hero-badge,
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 9px 16px;
    color: #374151;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    box-shadow: 0 12px 35px rgba(236, 72, 153, 0.12);
    backdrop-filter: blur(12px);
}

.hero-title {
    margin: 22px 0 18px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    font-weight: 900;
}

.gradient-text {
    background: linear-gradient(90deg, var(--pink-dark), var(--orange), var(--yellow));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-title span:last-child {
    color: #1f2937;
}

.hero-desc {
    max-width: 680px;
    margin: 0 0 28px;
    font-size: 20px;
    line-height: 1.8;
    color: #4b5563;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-meta span,
.card-meta span,
.detail-meta span,
.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    color: #6b21a8;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(236, 72, 153, 0.16);
    font-size: 13px;
    font-weight: 700;
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--orange));
    box-shadow: 0 18px 38px rgba(236, 72, 153, 0.28);
}

.secondary-button {
    color: #374151;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.96);
}

.primary-button:hover,
.secondary-button:hover,
.category-chip:hover,
.rank-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(236, 72, 153, 0.2);
}

.hero-poster-card {
    position: relative;
    padding: 16px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-poster-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 26px;
    object-fit: cover;
    background: linear-gradient(135deg, #fce7f3, #fed7aa);
}

.hero-side-card {
    position: absolute;
    left: -28px;
    bottom: 32px;
    max-width: 230px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 20px 48px rgba(31, 41, 55, 0.16);
}

.hero-controls {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-controls button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(236, 72, 153, 0.9);
    cursor: pointer;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.28);
}

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

.section {
    padding: 70px 0;
}

.section.soft {
    background: #fff7ed;
}

.section.gray {
    background: #f9fafb;
}

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

.section-title {
    margin: 12px 0 10px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #111827;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid #f3e8e8;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(31, 41, 55, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(236, 72, 153, 0.25);
    box-shadow: 0 24px 52px rgba(236, 72, 153, 0.16);
}

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

.card-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.card-play {
    position: absolute;
    inset: auto 14px 14px auto;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    border-radius: 999px;
    box-shadow: 0 12px 26px rgba(236, 72, 153, 0.35);
}

.card-body {
    padding: 18px;
}

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

.card-title {
    margin: 14px 0 9px;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 850;
    color: #111827;
}

.card-title a:hover {
    color: var(--pink-dark);
}

.card-desc {
    display: -webkit-box;
    min-height: 54px;
    margin: 0 0 14px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.card-tags .tag-pill {
    color: #9a3412;
    background: #fff7ed;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 26px;
    border-radius: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, #ec4899, #f97316);
    box-shadow: 0 22px 48px rgba(236, 72, 153, 0.2);
}

.category-card::before {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    right: -42px;
    top: -42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.17);
}

.category-card h2,
.category-card h3 {
    position: relative;
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 900;
}

.category-card p {
    position: relative;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.8;
}

.category-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--pink-dark);
    font-weight: 800;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 78px 0;
    background: linear-gradient(135deg, #fce7f3, #fff7ed 52%, #fef3c7);
}

.page-hero::before,
.detail-hero::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: 6%;
    top: -120px;
    border-radius: 50%;
    background: rgba(244, 114, 182, 0.2);
    filter: blur(10px);
}

.page-hero .container,
.detail-hero .container {
    position: relative;
    z-index: 2;
}

.page-title {
    margin: 16px 0 16px;
    font-size: clamp(38px, 6vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.05em;
    font-weight: 950;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 30px;
    padding: 18px;
    border: 1px solid #f3e8e8;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(31, 41, 55, 0.06);
}

.local-search input {
    width: min(420px, 72vw);
}

.filter-empty {
    display: none;
    padding: 28px;
    border-radius: 24px;
    color: var(--muted);
    background: #fff7ed;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 70px 84px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid #f3e8e8;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(31, 41, 55, 0.06);
}

.rank-number {
    font-size: 24px;
    font-weight: 950;
    color: var(--pink-dark);
    text-align: center;
}

.rank-thumb img {
    width: 84px;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    object-fit: cover;
    background: linear-gradient(135deg, #fce7f3, #fed7aa);
}

.rank-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 850;
}

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

.rank-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--orange));
    font-weight: 800;
    white-space: nowrap;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: #7c2d12;
    font-size: 14px;
    font-weight: 700;
}

.detail-hero-inner {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

.detail-poster {
    padding: 14px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 22px;
    object-fit: cover;
    background: linear-gradient(135deg, #fce7f3, #fed7aa);
}

.detail-title {
    margin: 0 0 18px;
    font-size: clamp(36px, 6vw, 66px);
    line-height: 1.02;
    letter-spacing: -0.05em;
    font-weight: 950;
    color: #111827;
}

.detail-desc {
    margin: 0 0 24px;
    max-width: 780px;
    color: #4b5563;
    font-size: 19px;
    line-height: 1.85;
}

.player-section {
    padding: 70px 0 42px;
    background: #111827;
    color: #ffffff;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.62));
    cursor: pointer;
    z-index: 3;
}

.player-overlay.is-hidden {
    display: none;
}

.player-play {
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 24px 58px rgba(236, 72, 153, 0.45);
    font-size: 30px;
}

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

.article-panel,
.side-panel {
    border: 1px solid #f3e8e8;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(31, 41, 55, 0.06);
}

.article-panel {
    padding: 34px;
}

.article-panel h2,
.side-panel h2 {
    margin: 0 0 18px;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

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

.side-panel {
    padding: 22px;
    height: fit-content;
}

.side-link {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.side-link:last-child {
    border-bottom: 0;
}

.side-link img {
    width: 70px;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, #fce7f3, #fed7aa);
}

.side-link strong {
    display: block;
    margin-bottom: 6px;
    color: #111827;
}

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

.site-footer {
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #1f2937, #111827);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 34px;
    padding: 54px 0;
}

.footer-main h3,
.footer-main h4 {
    margin: 0 0 16px;
}

.footer-main h3 {
    font-size: 24px;
    background: linear-gradient(90deg, #f472b6, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-main p,
.footer-main a,
.footer-bottom {
    color: #d1d5db;
    line-height: 1.8;
    font-size: 14px;
}

.footer-main a {
    display: block;
    margin: 9px 0;
}

.footer-main a:hover {
    color: #f9a8d4;
}

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.hidden-card {
    display: none !important;
}

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

    .nav-toggle {
        display: inline-flex;
    }

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

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

    .hero-poster-card {
        max-width: 430px;
    }

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

@media (max-width: 760px) {
    .top-strip {
        font-size: 12px;
    }

    .logo {
        font-size: 20px;
    }

    .hero-slider,
    .hero-inner {
        min-height: 760px;
    }

    .hero-inner {
        gap: 28px;
        padding: 42px 0 90px;
    }

    .hero-desc,
    .detail-desc {
        font-size: 16px;
    }

    .section {
        padding: 48px 0;
    }

    .section-head {
        display: block;
    }

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

    .card-body {
        padding: 14px;
    }

    .ranking-item {
        grid-template-columns: 48px 70px minmax(0, 1fr);
    }

    .rank-link {
        grid-column: 3;
        width: fit-content;
    }

    .article-panel {
        padding: 24px;
    }

    .player-play {
        width: 70px;
        height: 70px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .movie-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero-title,
    .page-title,
    .detail-title {
        letter-spacing: -0.035em;
    }

    .rank-summary {
        display: none;
    }
}
