:root {
    color-scheme: light;
    --pink: #ec4899;
    --rose: #f43f5e;
    --orange: #f97316;
    --amber: #f59e0b;
    --yellow: #eab308;
    --sky: #0ea5e9;
    --violet: #8b5cf6;
    --slate: #111827;
    --muted: #6b7280;
    --line: rgba(236, 72, 153, 0.18);
    --card: rgba(255, 255, 255, 0.82);
    --shadow: 0 24px 60px rgba(236, 72, 153, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--slate);
    background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 48%, #fefce8 100%);
    min-height: 100vh;
}

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

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

button, input, select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-shell {
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(236, 72, 153, 0.14);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.08);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 14px;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 12px 24px rgba(236, 72, 153, 0.32);
    animation: pulseGlow 2.4s infinite;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    position: relative;
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pink), var(--orange));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

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

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

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #fff7ed;
    color: #111827;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: #111827;
    border-radius: 4px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

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

.mobile-link {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    color: #374151;
    font-weight: 700;
}

.mobile-link:hover,
.mobile-link.active {
    color: var(--pink);
    background: #fff1f2;
}

main {
    min-height: 60vh;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
}

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

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

.hero-copy {
    color: #ffffff;
    animation: fadeInUp 0.7s ease both;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 7px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
    font-size: 13px;
    font-weight: 800;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 1.03;
    letter-spacing: -0.07em;
    text-shadow: 0 18px 42px rgba(127, 29, 29, 0.24);
}

.hero-copy p {
    max-width: 680px;
    margin: 20px 0 0;
    font-size: clamp(18px, 2.2vw, 24px);
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.7;
}

.hero-search {
    width: min(620px, 100%);
    margin-top: 28px;
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 55px rgba(124, 45, 18, 0.20);
}

.hero-search input {
    flex: 1;
    border: 0;
    outline: none;
    min-width: 0;
    padding: 0 16px;
    color: #111827;
    background: transparent;
}

.hero-search button,
.primary-btn,
.ghost-btn {
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-search button,
.primary-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 22px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 16px 34px rgba(236, 72, 153, 0.32);
}

.ghost-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 22px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(14px);
}

.primary-btn:hover,
.ghost-btn:hover,
.hero-search button:hover {
    transform: translateY(-2px) scale(1.02);
}

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

.hero-showcase {
    position: relative;
}

.hero-frame {
    position: relative;
    height: 430px;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: 0 35px 90px rgba(127, 29, 29, 0.28);
    background: rgba(255, 255, 255, 0.20);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(16px);
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.80) 0%, rgba(0, 0, 0, 0.22) 60%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-slide-content {
    position: absolute;
    z-index: 2;
    left: 28px;
    right: 28px;
    bottom: 28px;
    color: #ffffff;
}

.hero-slide-content span {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.70);
    font-size: 12px;
    font-weight: 900;
}

.hero-slide-content h2 {
    margin: 0;
    font-size: 32px;
    line-height: 1.15;
}

.hero-slide-content p {
    margin: 10px 0 18px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.65;
}

.hero-slide-content a {
    display: inline-flex;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--pink);
    font-weight: 900;
}

.hero-control {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 42px;
    height: 42px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    color: var(--pink);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.16);
    font-size: 34px;
    line-height: 1;
}

.hero-control.prev {
    left: 14px;
}

.hero-control.next {
    right: 14px;
}

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

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

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

.content-section,
.breadcrumb,
.detail-hero,
.detail-grid,
.prev-next {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.content-section {
    padding-top: 56px;
}

.section-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 26px;
}

.section-heading > span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 16px 34px rgba(236, 72, 153, 0.22);
    font-weight: 900;
}

.section-heading h2 {
    margin: 0;
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 6px 0 0;
    color: var(--muted);
}

.section-heading a {
    display: inline-flex;
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--pink);
    background: #fff1f2;
    font-weight: 900;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: var(--card);
    border: 1px solid rgba(236, 72, 153, 0.12);
    box-shadow: 0 14px 42px rgba(17, 24, 39, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #fdf2f8, #ffedd5);
}

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

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.04) 58%);
}

.card-badge,
.rank-pill {
    position: absolute;
    z-index: 2;
    top: 12px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(236, 72, 153, 0.82);
    backdrop-filter: blur(10px);
}

.card-badge {
    right: 12px;
}

.rank-pill {
    left: 12px;
    background: rgba(249, 115, 22, 0.88);
}

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

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

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

.movie-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 28px;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.45;
    transition: color 0.2s ease;
}

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

.movie-card-body p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 46px;
    margin: 8px 0 12px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

.meta-row,
.tag-row,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.meta-row span,
.tag-row span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #fff1f2;
    color: #be185d;
    font-size: 12px;
    font-weight: 800;
}

.tag-row {
    margin-top: 12px;
}

.tag-row span {
    background: #ffedd5;
    color: #c2410c;
}

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

.category-tile {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--a), var(--b));
    box-shadow: 0 20px 55px rgba(236, 72, 153, 0.18);
}

.category-tile::after {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    right: -44px;
    top: -44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.category-main {
    position: relative;
    z-index: 2;
    display: block;
    padding: 26px;
}

.category-main span {
    display: block;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.category-main strong {
    display: block;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.65;
}

.category-samples {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 26px 24px;
}

.category-samples a {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    font-size: 12px;
    font-weight: 800;
}

.theme-1 { --a: #ec4899; --b: #f97316; }
.theme-2 { --a: #f97316; --b: #eab308; }
.theme-3 { --a: #8b5cf6; --b: #ec4899; }
.theme-4 { --a: #6d28d9; --b: #111827; }
.theme-5 { --a: #ef4444; --b: #f97316; }
.theme-6 { --a: #f43f5e; --b: #ec4899; }
.theme-7 { --a: #f59e0b; --b: #fb7185; }
.theme-8 { --a: #b45309; --b: #dc2626; }
.theme-9 { --a: #0ea5e9; --b: #8b5cf6; }
.theme-10 { --a: #14b8a6; --b: #3b82f6; }
.theme-11 { --a: #334155; --b: #7c3aed; }
.theme-12 { --a: #db2777; --b: #f59e0b; }

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.65fr);
    gap: 40px;
    align-items: start;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 52px 74px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(236, 72, 153, 0.12);
    box-shadow: 0 10px 32px rgba(17, 24, 39, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

.rank-info {
    min-width: 0;
}

.rank-info strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}

.rank-info em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.rank-score {
    padding: 5px 10px;
    border-radius: 999px;
    color: #be185d;
    background: #fff1f2;
    font-weight: 950;
}

.page-hero {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    padding: 72px min(6vw, 72px);
    display: flex;
    align-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #ec4899 0%, #fb923c 54%, #facc15 100%);
}

.page-hero > div:not(.stars) {
    position: relative;
    z-index: 2;
    width: min(1180px, 100%);
    margin: 0 auto;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.page-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.75;
}

.category-hero {
    background: linear-gradient(135deg, var(--a), var(--b));
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 180px 180px;
    gap: 14px;
    margin-bottom: 26px;
    padding: 16px;
    border: 1px solid rgba(236, 72, 153, 0.14);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 16px 36px rgba(17, 24, 39, 0.06);
}

.filter-panel label {
    display: grid;
    gap: 7px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 900;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid rgba(236, 72, 153, 0.16);
    outline: none;
    border-radius: 16px;
    padding: 12px 14px;
    color: #111827;
    background: #ffffff;
}

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

.empty-result {
    margin: 20px 0;
    padding: 22px;
    border-radius: 18px;
    color: #be185d;
    background: #fff1f2;
    font-weight: 900;
    text-align: center;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 24px 0;
    color: #6b7280;
    font-size: 14px;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
    padding: 32px;
    border-radius: 32px;
    color: #ffffff;
    background: linear-gradient(135deg, #ec4899 0%, #fb923c 54%, #facc15 100%);
    box-shadow: 0 28px 70px rgba(236, 72, 153, 0.18);
    overflow: hidden;
    position: relative;
}

.detail-hero::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -80px;
    top: -80px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.detail-poster {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.22);
}

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

.detail-copy {
    position: relative;
    z-index: 2;
}

.detail-copy h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 66px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.detail-copy p {
    max-width: 760px;
    margin: 18px 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
    line-height: 1.75;
}

.detail-meta span,
.wide-tags span {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.player-section {
    padding-top: 36px;
}

.video-stage {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 16 / 9;
    background: #030712;
    box-shadow: 0 30px 80px rgba(17, 24, 39, 0.24);
}

.video-stage video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.play-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.22));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.big-play {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--pink);
    background: rgba(255, 255, 255, 0.94);
    font-size: 30px;
    box-shadow: 0 20px 45px rgba(236, 72, 153, 0.25);
}

.player-message {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 20px;
    z-index: 4;
    padding: 12px 16px;
    border-radius: 16px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.78);
    text-align: center;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding-top: 34px;
}

.detail-panel {
    padding: 28px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(236, 72, 153, 0.12);
    box-shadow: 0 16px 44px rgba(17, 24, 39, 0.07);
}

.detail-panel h2 {
    margin: 0 0 14px;
    font-size: 26px;
    letter-spacing: -0.04em;
}

.detail-panel p {
    margin: 0;
    color: #374151;
    line-height: 1.85;
}

.prev-next {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 36px;
}

.prev-next a {
    display: inline-flex;
    max-width: 48%;
    padding: 12px 16px;
    border-radius: 999px;
    color: #be185d;
    background: #fff1f2;
    font-weight: 900;
}

.site-footer {
    margin-top: 70px;
    background: linear-gradient(90deg, #fce7f3, #ffedd5, #fef9c3);
    border-top: 1px solid rgba(236, 72, 153, 0.16);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 0.7fr;
    gap: 32px;
}

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

.site-footer p {
    max-width: 520px;
    margin: 0;
    color: #6b7280;
    line-height: 1.75;
}

.site-footer a {
    display: block;
    margin: 8px 0;
    color: #6b7280;
    transition: color 0.2s ease;
}

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

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 28px;
    border-top: 1px solid rgba(236, 72, 153, 0.14);
    color: #6b7280;
    text-align: center;
    font-size: 14px;
}

[hidden] {
    display: none !important;
}

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

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 12px 24px rgba(236, 72, 153, 0.32); }
    50% { box-shadow: 0 18px 38px rgba(249, 115, 22, 0.46); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .hero-inner,
    .detail-hero,
    .two-column {
        grid-template-columns: 1fr;
    }

    .hero-showcase {
        max-width: 640px;
    }

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

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

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

    .menu-toggle {
        display: flex;
    }

    .site-header.menu-open .mobile-menu {
        display: block;
    }

    .hero-section,
    .hero-inner {
        min-height: auto;
    }

    .hero-inner {
        padding: 40px 0;
        gap: 34px;
    }

    .hero-search,
    .filter-panel {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }

    .hero-search {
        flex-direction: column;
        border-radius: 26px;
    }

    .hero-search input {
        min-height: 44px;
    }

    .hero-frame {
        height: 370px;
        border-radius: 24px;
    }

    .hero-slide-content {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .hero-slide-content h2 {
        font-size: 26px;
    }

    .content-section,
    .breadcrumb,
    .detail-hero,
    .detail-grid,
    .prev-next {
        width: min(100% - 24px, 1180px);
    }

    .section-heading {
        grid-template-columns: 1fr;
    }

    .section-heading > span {
        width: auto;
        min-height: 38px;
        padding: 0 14px;
        display: inline-flex;
        justify-self: start;
    }

    .movie-grid,
    .compact-grid,
    .search-movies,
    .category-movies,
    .category-grid,
    .mini-grid {
        grid-template-columns: 1fr;
    }

    .detail-hero {
        padding: 22px;
        border-radius: 26px;
    }

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

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

    .rank-score {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .prev-next {
        flex-direction: column;
    }

    .prev-next a {
        max-width: none;
    }
}
