:root {
    --cake-cream: #FFF5E1;
    --cake-rose: #FFC0CB;
    --cake-peach: #FFDAB9;
    --cake-lavender: #E6E6FA;
    --cake-strawberry: #FFB6C1;
    --cake-coral: #FF7F50;
    --cake-mint: #98D8C8;
    --bow-pink: #FF69B4;
    --bow-hotpink: #FF1493;
    --ink: #2f2933;
    --muted: #6f6672;
    --line: rgba(255, 182, 193, 0.46);
    --white: #ffffff;
    --shadow-cake: 0 8px 16px -4px rgba(255, 182, 193, 0.32);
    --shadow-cake-hover: 0 12px 24px -4px rgba(255, 105, 180, 0.42);
    --shadow-bow: 0 4px 12px rgba(255, 20, 147, 0.30);
    --radius-cake: 2rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(135deg, var(--cake-cream) 0%, var(--cake-rose) 52%, var(--cake-peach) 100%);
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

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

.layer-cake {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #ffb6c1, pink, #fffacd, pink, #ffb6c1);
    opacity: 0.24;
}

.layer-cake::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, transparent, transparent 10px, rgba(255,255,255,0.14) 10px, rgba(255,255,255,0.14) 20px);
}

.sprinkle-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, #FF69B4 2px, transparent 2px),
        radial-gradient(circle, #98D8C8 2px, transparent 2px),
        radial-gradient(circle, #FFD700 2px, transparent 2px);
    background-size: 50px 50px, 70px 70px, 90px 90px;
    background-position: 0 0, 25px 25px, 50px 50px;
    opacity: 0.10;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-cake);
}

.header-inner {
    height: 80px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-cake);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    background: linear-gradient(135deg, var(--cake-strawberry), var(--bow-hotpink));
    box-shadow: var(--shadow-bow);
    transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
    animation: wiggle 1s ease-in-out infinite;
}

.brand-mark.small {
    width: 40px;
    height: 40px;
    font-size: 20px;
}

.brand-text {
    display: grid;
    line-height: 1.1;
}

.brand-text strong,
.footer-brand strong {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--bow-pink), var(--bow-hotpink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

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

.nav-link {
    display: inline-flex;
    align-items: center;
    border: 0;
    background: transparent;
    color: #514953;
    font-weight: 650;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--bow-hotpink);
}

.nav-link:hover {
    transform: translateY(-1px);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    width: 260px;
    transform: translateX(-50%) translateY(8px);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-cake-hover);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-panel a {
    padding: 10px 12px;
    border-radius: 14px;
    color: #514953;
    font-size: 14px;
}

.nav-dropdown-panel a:hover {
    color: var(--bow-hotpink);
    background: var(--cake-rose);
}

.header-search {
    display: flex;
    width: min(250px, 24vw);
    background: #fff;
    border: 2px solid rgba(255, 182, 193, 0.7);
    border-radius: 999px;
    overflow: hidden;
}

.header-search input,
.big-search input,
.filter-panel input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
}

.header-search input {
    padding: 10px 0 10px 16px;
}

.header-search button,
.big-search button {
    border: 0;
    color: #fff;
    background: linear-gradient(90deg, var(--bow-pink), var(--bow-hotpink));
    font-weight: 750;
}

.header-search button {
    padding: 10px 16px;
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: var(--bow-hotpink);
    background: var(--cake-rose);
    font-size: 22px;
}

.mobile-panel {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid var(--line);
}

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

.mobile-panel nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 14px;
}

.mobile-panel a {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    color: #514953;
}

.mobile-panel a:hover {
    color: var(--bow-hotpink);
    background: var(--cake-rose);
}

.mobile-search {
    display: flex;
    margin-top: 14px;
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
}

.mobile-search input {
    flex: 1;
    padding: 12px 14px;
    border: 0;
    outline: 0;
}

.mobile-search button {
    padding: 12px 18px;
    border: 0;
    color: #fff;
    background: linear-gradient(90deg, var(--bow-pink), var(--bow-hotpink));
}

.hero-carousel {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    isolation: isolate;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.01);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(22px) saturate(1.1);
    transform: scale(1.12);
    opacity: 0.30;
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 245, 225, 0.96), rgba(255, 192, 203, 0.72), rgba(255, 218, 185, 0.88));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    align-items: center;
    gap: 54px;
    padding: 90px 0 120px;
}

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--bow-hotpink);
    font-weight: 800;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-cake);
}

.hero-copy h1 {
    margin: 20px 0 8px;
    font-size: clamp(34px, 6vw, 68px);
    line-height: 1.08;
    letter-spacing: -0.05em;
    background: linear-gradient(90deg, var(--bow-pink), var(--bow-hotpink), #ff7f50);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.08);
}

.hero-copy h2 {
    margin: 0 0 16px;
    font-size: clamp(25px, 3.4vw, 44px);
    color: #332b35;
}

.hero-copy p {
    margin: 0;
    max-width: 690px;
    color: #5d5360;
    font-size: 18px;
    line-height: 1.85;
}

.hero-tags,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-tags span,
.detail-meta span,
.tag-cloud a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 182, 193, 0.68);
    border-radius: 999px;
    color: #514953;
    background: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    box-shadow: 0 6px 12px -10px rgba(255, 20, 147, 0.6);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.btn-cake,
.btn-ghost,
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-cake {
    padding: 12px 26px;
    color: #fff;
    background: linear-gradient(90deg, var(--bow-pink), var(--bow-hotpink));
    box-shadow: var(--shadow-cake);
}

.btn-cake:hover,
.pill:hover,
.big-search button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-cake-hover);
}

.btn-cake:active,
.pill:active {
    transform: scale(0.97);
}

.btn-ghost {
    padding: 11px 22px;
    color: var(--bow-hotpink);
    border: 2px solid rgba(255, 20, 147, 0.24);
    background: rgba(255, 255, 255, 0.78);
}

.btn-ghost:hover {
    background: #fff;
    box-shadow: var(--shadow-cake);
}

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    min-height: 420px;
    border: 8px solid rgba(255, 255, 255, 0.62);
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 28px 56px -20px rgba(255, 20, 147, 0.56);
    transform: rotate(2deg);
}

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

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

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72px;
    height: 72px;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 20, 147, 0.88);
    box-shadow: var(--shadow-bow);
    font-size: 30px;
}

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

.hero-arrow,
.hero-dot {
    border: 0;
    color: #fff;
    background: rgba(255, 20, 147, 0.68);
    box-shadow: var(--shadow-cake);
}

.hero-arrow {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 32px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 105, 180, 0.42);
}

.hero-dot.active {
    width: 28px;
    border-radius: 999px;
    background: var(--bow-hotpink);
}

.quick-search-panel {
    position: relative;
    z-index: 5;
    margin-top: -34px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-cake-hover);
}

.big-search {
    display: flex;
    width: 100%;
    min-height: 58px;
    border: 2px solid rgba(255, 182, 193, 0.7);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.big-search input {
    padding: 0 22px;
    font-size: 16px;
}

.big-search button {
    min-width: 120px;
    padding: 0 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quick-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.pill {
    min-height: 38px;
    padding: 8px 16px;
    color: #514953;
    background: rgba(255, 245, 225, 0.86);
    border: 1px solid var(--line);
}

.section-block,
.page-main {
    margin-top: 64px;
}

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

.section-heading h2,
.page-hero h1,
.category-zone h2,
.detail-copy h1,
.player-section h2,
.detail-text h2 {
    margin: 0;
    color: #332b35;
}

.section-heading h2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(24px, 3vw, 34px);
}

.section-heading h2 span {
    color: var(--bow-hotpink);
}

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

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

.section-heading.compact h2 {
    font-size: 24px;
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 182, 193, 0.36);
    border-radius: var(--radius-cake);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-cake);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(255, 20, 147, 0.35);
    box-shadow: var(--shadow-cake-hover);
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cake-rose), var(--cake-peach));
}

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

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

.play-circle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 56px;
    height: 56px;
    transform: translate(-50%, -50%) scale(0.85);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 20, 147, 0.86);
    box-shadow: var(--shadow-bow);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.duration {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.68);
    font-size: 12px;
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    background: linear-gradient(135deg, #facc15, #f97316);
    box-shadow: var(--shadow-bow);
}

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

.card-body h3 {
    margin: 0 0 10px;
    color: #332b35;
    font-size: 17px;
    line-height: 1.35;
}

.card-body h3 a:hover {
    color: var(--bow-hotpink);
}

.card-body p {
    min-height: 44px;
    margin: 0 0 14px;
    color: #6a606d;
    font-size: 14px;
    line-height: 1.6;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #7a6c78;
    font-size: 12px;
}

.meta-row span {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 192, 203, 0.34);
}

.movie-card.horizontal {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
}

.horizontal-poster {
    aspect-ratio: 16 / 10;
    border-radius: 18px;
}

.movie-card.horizontal .card-body {
    padding: 0;
}

.movie-card.horizontal .card-body p {
    min-height: 0;
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.75fr);
    gap: 34px;
    align-items: start;
}

.vertical-list {
    display: grid;
    gap: 16px;
}

.rank-side {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-cake);
    background: rgba(255, 255, 255, 0.64);
    box-shadow: var(--shadow-cake);
}

.sticky-side {
    position: sticky;
    top: 100px;
}

.category-zone {
    padding: 34px;
    border-radius: var(--radius-cake);
    text-align: center;
    background: linear-gradient(90deg, rgba(255, 192, 203, 0.86), rgba(255, 218, 185, 0.92));
    box-shadow: var(--shadow-cake);
}

.category-zone h2 {
    font-size: 34px;
}

.category-zone p {
    max-width: 740px;
    margin: 14px auto 26px;
    color: #5d5360;
    line-height: 1.8;
}

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

.category-card,
.overview-card a {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 24px;
    text-align: left;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-cake);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.overview-card a:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-cake-hover);
}

.category-card img,
.overview-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 18px;
}

.category-card span,
.overview-card h2 {
    color: #332b35;
    font-size: 19px;
    font-weight: 900;
}

.category-card p,
.overview-card p {
    margin: 0;
    color: #6a606d;
    font-size: 14px;
    line-height: 1.6;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 22px;
    color: #6d6270;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--bow-hotpink);
    font-weight: 800;
}

.breadcrumb a::after {
    content: "/";
    margin-left: 10px;
    color: #9b8b98;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 48px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-cake);
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 18% 18%, rgba(255, 105, 180, 0.22), transparent 28%),
        radial-gradient(circle at 82% 28%, rgba(255, 218, 185, 0.72), transparent 32%);
    pointer-events: none;
}

.page-hero > * {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    background: linear-gradient(90deg, var(--bow-pink), var(--bow-hotpink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-hero p {
    max-width: 820px;
    margin: 14px 0 0;
    color: #615765;
    font-size: 18px;
    line-height: 1.8;
}

.filter-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    margin: 26px 0;
    padding: 18px 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-cake);
}

.filter-panel label {
    color: #514953;
    font-weight: 900;
}

.filter-panel input {
    padding: 13px 16px;
    border: 2px solid var(--line);
    border-radius: 999px;
    background: #fff;
}

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

.overview-grid {
    margin-top: 26px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-card h2 {
    margin: 0 0 8px;
}

.overview-card span {
    display: inline-flex;
    margin-top: 14px;
    color: var(--bow-hotpink);
    font-weight: 900;
}

.ranking-layout {
    margin-top: 30px;
}

.ranking-list .movie-card.horizontal {
    grid-template-columns: 220px minmax(0, 1fr);
}

.search-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0;
}

.search-tools button {
    min-height: 42px;
    padding: 8px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--bow-hotpink);
    background: rgba(255, 255, 255, 0.86);
    font-weight: 850;
}

.search-tools button:hover,
.search-tools button.active {
    color: #fff;
    background: linear-gradient(90deg, var(--bow-pink), var(--bow-hotpink));
    box-shadow: var(--shadow-cake);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    border-radius: 36px;
    box-shadow: var(--shadow-cake-hover);
    background: rgba(255, 255, 255, 0.76);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(22px) saturate(1.15);
    transform: scale(1.12);
    opacity: 0.34;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 245, 225, 0.94), rgba(255, 192, 203, 0.72));
}

.detail-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 34px;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 7px solid rgba(255, 255, 255, 0.68);
    border-radius: 30px;
    box-shadow: 0 24px 46px -20px rgba(255, 20, 147, 0.56);
}

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

.detail-copy h1 {
    margin-top: 16px;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.12;
}

.detail-copy p {
    max-width: 780px;
    margin: 16px 0 0;
    color: #5d5360;
    font-size: 18px;
    line-height: 1.8;
}

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

.tag-cloud a:hover {
    color: #fff;
    background: var(--bow-hotpink);
}

.player-section,
.detail-text,
.related-block {
    margin-top: 34px;
}

.player-section {
    padding: 26px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-cake);
}

.player-section h2 {
    margin-bottom: 18px;
    font-size: 28px;
}

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

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--bow-pink), var(--bow-hotpink));
    box-shadow: var(--shadow-bow);
    font-size: 38px;
}

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

.detail-text {
    display: grid;
    gap: 18px;
    padding: 28px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-cake);
}

.detail-text h2 {
    font-size: 26px;
}

.detail-text p {
    margin: 0;
    color: #5d5360;
    font-size: 17px;
    line-height: 1.95;
}

.site-footer {
    margin-top: 80px;
    background: linear-gradient(135deg, var(--cake-lavender), var(--cake-rose));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 34px;
    padding: 44px 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.site-footer h3 {
    margin: 0 0 14px;
    font-size: 18px;
}

.site-footer p,
.site-footer a,
.footer-bottom {
    color: #5f5561;
    font-size: 14px;
    line-height: 1.7;
}

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

.site-footer a:hover {
    color: var(--bow-hotpink);
}

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

.is-filter-hidden {
    display: none !important;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 38px;
    border-radius: 28px;
    text-align: center;
    color: #6a606d;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-cake);
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(-3deg);
    }
    50% {
        transform: rotate(3deg);
    }
}

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

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

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

    .hero-content,
    .two-column-section {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        min-height: 360px;
        width: min(360px, 100%);
        margin-inline: auto;
    }

    .rank-side,
    .sticky-side {
        position: static;
    }
}

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

    .header-inner {
        height: 70px;
    }

    .desktop-nav,
    .header-search {
        display: none;
    }

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .brand-mark {
        width: 44px;
        height: 44px;
    }

    .brand-text strong {
        font-size: 20px;
    }

    .hero-carousel {
        min-height: 760px;
    }

    .hero-content {
        gap: 28px;
        padding: 46px 0 110px;
    }

    .hero-copy p,
    .detail-copy p,
    .page-hero p {
        font-size: 16px;
    }

    .hero-actions,
    .hero-tags,
    .detail-meta {
        gap: 8px;
    }

    .hero-poster {
        min-height: 310px;
        transform: rotate(0deg);
    }

    .hero-controls {
        bottom: 24px;
    }

    .quick-search-panel {
        margin-top: -22px;
        padding: 16px;
    }

    .big-search {
        min-height: 52px;
    }

    .big-search button {
        min-width: 92px;
        padding: 0 16px;
    }

    .section-block,
    .page-main {
        margin-top: 44px;
    }

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

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

    .card-body {
        padding: 12px;
    }

    .card-body h3 {
        font-size: 15px;
    }

    .card-body p {
        display: none;
    }

    .movie-card.horizontal,
    .ranking-list .movie-card.horizontal {
        grid-template-columns: 126px minmax(0, 1fr);
        padding: 10px;
    }

    .horizontal-poster {
        aspect-ratio: 3 / 4;
    }

    .detail-content {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .detail-poster {
        width: min(280px, 100%);
        margin-inline: auto;
    }

    .page-hero,
    .category-zone,
    .player-section,
    .detail-text {
        padding: 22px;
        border-radius: 24px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

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

    .movie-card.horizontal,
    .ranking-list .movie-card.horizontal {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .hero-copy h1 {
        font-size: 34px;
    }

    .hero-copy h2,
    .detail-copy h1 {
        font-size: 28px;
    }
}
