:root {
    --pink-50: #fdf2f8;
    --pink-100: #fce7f3;
    --pink-400: #f472b6;
    --pink-500: #ec4899;
    --pink-600: #db2777;
    --orange-50: #fff7ed;
    --orange-300: #fdba74;
    --yellow-300: #fde047;
    --yellow-900: #713f12;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --shadow-sm: 0 4px 10px rgba(236, 72, 153, 0.08);
    --shadow-md: 0 10px 25px rgba(236, 72, 153, 0.14);
    --shadow-lg: 0 22px 50px rgba(236, 72, 153, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-800);
    background: linear-gradient(180deg, var(--orange-50), var(--pink-50) 45%, var(--orange-50));
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(253, 242, 248, 0.96), rgba(255, 247, 237, 0.96));
    border-bottom: 1px solid rgba(251, 207, 232, 0.9);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 68px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-weight: 800;
}

.logo-mark {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: #fff;
    background: var(--pink-400);
    box-shadow: 0 10px 24px rgba(236, 72, 153, 0.32);
}

.logo-text {
    font-size: 24px;
    background: linear-gradient(90deg, var(--pink-500), #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link,
.mobile-link,
.footer-nav a {
    color: var(--gray-700);
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active,
.footer-nav a:hover {
    color: var(--pink-500);
}

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

.top-search input,
.mobile-search input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
    border: 1px solid #fbcfe8;
    border-radius: 999px;
    background: #fff;
    color: var(--gray-800);
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.top-search input {
    width: 180px;
    padding: 9px 14px;
}

.top-search button,
.mobile-search button,
.search-page-form button,
.primary-btn,
.ghost-btn {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
}

.top-search button,
.mobile-search button,
.search-page-form button,
.primary-btn {
    color: #fff;
    background: var(--pink-500);
    box-shadow: 0 12px 26px rgba(236, 72, 153, 0.28);
}

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

.top-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.35);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(252, 231, 243, 0.9);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 99px;
    background: var(--gray-700);
}

.mobile-menu {
    border-top: 1px solid rgba(251, 207, 232, 0.9);
    background: rgba(255, 247, 237, 0.98);
}

.mobile-nav {
    display: grid;
    gap: 8px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0;
}

.mobile-link {
    display: block;
    padding: 10px 14px;
    border-radius: 12px;
}

.mobile-link:hover {
    background: var(--pink-50);
}

.mobile-search {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

.mobile-search input {
    flex: 1;
    padding: 10px 14px;
}

.mobile-search button,
.search-page-form button {
    padding: 10px 18px;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 72px 0 82px;
    color: #fff;
    background: linear-gradient(105deg, var(--pink-400), var(--orange-300) 55%, var(--yellow-300));
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image: radial-gradient(circle at 16px 16px, rgba(255, 255, 255, 0.7) 0 4px, transparent 5px);
    background-size: 54px 54px;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-copy {
    max-width: 820px;
    margin: 0 auto 42px;
    text-align: center;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.12;
    font-weight: 900;
    text-shadow: 0 6px 18px rgba(111, 31, 80, 0.24);
}

.hero-copy p {
    margin: 0 auto;
    max-width: 760px;
    font-size: clamp(18px, 2.1vw, 26px);
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 4px 12px rgba(111, 31, 80, 0.2);
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

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

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

.hero-card {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    border-radius: 26px;
    box-shadow: var(--shadow-lg);
    transform: translateY(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 60px rgba(124, 45, 18, 0.24);
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.14) 62%, rgba(0, 0, 0, 0.04));
}

.hero-content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    gap: 10px;
    padding: 26px;
}

.hero-content strong {
    font-size: 25px;
    line-height: 1.22;
}

.hero-content em {
    display: -webkit-box;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.9);
    font-style: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.hero-tags b,
.poster-badge,
.pill-link,
.tag-row span,
.tag-cloud span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 750;
}

.hero-tags b {
    color: var(--yellow-900);
    background: var(--yellow-300);
    padding: 5px 11px;
}

.content-section {
    padding: 60px 0;
}

.soft-band {
    padding: 60px 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(252, 231, 243, 0.72), rgba(255, 247, 237, 0.62));
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
}

.section-heading a {
    color: var(--pink-500);
    font-weight: 800;
}

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

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

.movie-card,
.wide-card,
.category-tile,
.article-card,
.rank-panel,
.filter-panel,
.detail-side {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(251, 207, 232, 0.72);
    box-shadow: var(--shadow-sm);
}

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

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pink-100), var(--orange-50));
}

.poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #fff;
    background: rgba(236, 72, 153, 0.92);
    padding: 5px 10px;
}

.movie-card-body {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.movie-title,
.wide-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--gray-800);
    font-size: 18px;
    font-weight: 850;
    line-height: 1.32;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

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

.movie-card-body p,
.wide-card p,
.category-tile span,
.detail-line,
.article-card p,
.site-footer p {
    margin: 0;
    color: var(--gray-500);
}

.movie-card-body p,
.wide-card p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 50px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--gray-500);
    font-size: 13px;
}

.pill-link {
    width: fit-content;
    color: var(--pink-600);
    background: var(--pink-50);
    padding: 5px 10px;
}

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

.wide-card {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 18px;
    padding: 14px;
    border-radius: 20px;
}

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

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

.tag-row span {
    color: var(--pink-600);
    background: var(--pink-50);
    padding: 4px 9px;
}

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

.category-tile {
    display: grid;
    gap: 10px;
    min-height: 138px;
    padding: 22px;
    border-radius: 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: var(--shadow-md);
}

.category-tile strong {
    color: var(--pink-600);
    font-size: 22px;
}

.large-categories .category-tile {
    min-height: 170px;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}

.rank-panel {
    position: sticky;
    top: 92px;
    padding: 22px;
    border-radius: 24px;
}

.compact-heading {
    margin-bottom: 18px;
}

.rank-list,
.ranking-grid {
    display: grid;
    gap: 12px;
}

.rank-item {
    display: grid;
    grid-template-columns: 44px 56px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(253, 242, 248, 0.7);
    transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    background: #fff;
}

.rank-num {
    color: var(--pink-500);
    font-weight: 900;
    font-size: 20px;
}

.rank-item img {
    width: 56px;
    height: 74px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-info {
    display: grid;
    gap: 4px;
    min-width: 0;
}

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

.rank-info em {
    color: var(--gray-500);
    font-style: normal;
    font-size: 13px;
}

.rank-score {
    color: var(--yellow-900);
    background: var(--yellow-300);
    border-radius: 999px;
    padding: 5px 9px;
    font-weight: 850;
}

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

.page-hero,
.detail-hero {
    padding: 46px 0;
    background: linear-gradient(105deg, rgba(244, 114, 182, 0.18), rgba(253, 186, 116, 0.22), rgba(253, 224, 71, 0.2));
}

.page-hero h1,
.detail-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.18;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--gray-500);
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: var(--gray-500);
    font-size: 14px;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 12px;
    padding: 16px;
    margin-bottom: 26px;
    border-radius: 22px;
}

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

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

.player-area {
    min-width: 0;
}

.detail-line {
    margin-bottom: 20px;
    font-size: 18px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #000;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9;
}

.player-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    gap: 12px;
    color: #fff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.24));
    border: 0;
    cursor: pointer;
    font-size: 20px;
    font-weight: 850;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border-radius: 999px;
    background: var(--pink-500);
    box-shadow: 0 14px 30px rgba(236, 72, 153, 0.36);
}

.detail-side {
    overflow: hidden;
    border-radius: 24px;
}

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

.detail-facts {
    display: grid;
    gap: 10px;
    padding: 18px;
    color: var(--gray-700);
}

.full-btn {
    width: calc(100% - 36px);
    margin: 0 18px 18px;
}

.detail-content {
    padding: 42px 0 0;
}

.article-card {
    padding: 28px;
    border-radius: 24px;
}

.article-card h2 {
    margin: 0 0 14px;
    font-size: 25px;
}

.article-card h2:not(:first-child) {
    margin-top: 28px;
}

.article-card p {
    font-size: 17px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud span {
    color: var(--pink-600);
    background: var(--pink-50);
    padding: 7px 12px;
}

.search-page-form {
    max-width: 740px;
    margin-top: 24px;
}

.search-page-form input {
    flex: 1;
    padding: 14px 18px;
}

.site-footer {
    margin-top: 40px;
    padding: 42px 0 24px;
    color: var(--gray-700);
    background: linear-gradient(180deg, var(--pink-50), var(--orange-50));
    border-top: 1px solid rgba(251, 207, 232, 0.9);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 28px;
}

.footer-grid strong {
    display: block;
    margin-bottom: 8px;
    font-size: 22px;
    color: var(--pink-600);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.footer-copy {
    margin-top: 22px;
    color: var(--gray-500);
    font-size: 14px;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1100px) {
    .desktop-nav {
        gap: 14px;
    }

    .top-search {
        display: none;
    }

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

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

    .rank-panel {
        position: static;
    }
}

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .hero-section {
        padding: 48px 0 56px;
    }

    .hero-grid,
    .wide-grid,
    .category-grid,
    .ranking-grid,
    .movie-grid,
    .small-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .footer-grid {
        display: grid;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .logo-text {
        font-size: 20px;
    }

    .hero-grid,
    .wide-grid,
    .category-grid,
    .ranking-grid,
    .movie-grid,
    .small-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        min-height: 360px;
    }

    .wide-card {
        grid-template-columns: 108px 1fr;
    }

    .rank-item {
        grid-template-columns: 38px 52px 1fr;
    }

    .rank-score {
        display: none;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-side {
        max-width: 340px;
    }
}
