:root {
    --pink: #ec4899;
    --pink-dark: #db2777;
    --purple: #a855f7;
    --purple-dark: #7e22ce;
    --blue: #3b82f6;
    --cyan: #06b6d4;
    --gold: #f59e0b;
    --red: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-soft: 0 18px 45px rgba(31, 41, 55, 0.12);
    --shadow-strong: 0 28px 70px rgba(31, 41, 55, 0.22);
    --radius-xl: 1rem;
    --radius-2xl: 1.35rem;
    --radius-3xl: 1.75rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #fff7fb 0%, #f8fafc 42%, #ffffff 100%);
    color: var(--gray-900);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

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

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

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.82rem;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.55);
}

.brand-mark.small {
    width: 26px;
    height: 26px;
    font-size: 0.65rem;
}

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

.nav-link,
.nav-dropdown-panel a,
.mobile-menu a {
    color: var(--gray-700);
    font-weight: 700;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-dropdown-panel a:hover,
.mobile-menu a:hover {
    color: var(--pink);
}

.nav-more {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-panel {
    position: absolute;
    right: 0;
    top: 34px;
    width: 180px;
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(236, 72, 153, 0.16);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-panel a {
    padding: 8px 12px;
    border-radius: 12px;
}

.nav-dropdown-panel a:hover {
    background: linear-gradient(90deg, #fdf2f8, #faf5ff);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    cursor: pointer;
}

.mobile-menu {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 8px 0 18px;
    border-top: 1px solid var(--gray-200);
}

.mobile-menu.is-open {
    display: grid;
    gap: 8px;
}

.mobile-menu a {
    padding: 10px 14px;
    border-radius: 12px;
    background: linear-gradient(90deg, #fff7fb, #ffffff);
}

.hero-section {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f43f5e 0%, #a855f7 46%, #2563eb 100%);
}

.hero-section::before,
.hero-section::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    filter: blur(16px);
    opacity: 0.35;
}

.hero-section::before {
    left: -160px;
    top: -180px;
    background: rgba(255, 255, 255, 0.45);
}

.hero-section::after {
    right: -160px;
    bottom: -180px;
    background: rgba(14, 165, 233, 0.5);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image: radial-gradient(circle at 24px 24px, rgba(255, 255, 255, 0.8) 0, rgba(255, 255, 255, 0.8) 3px, transparent 4px);
    background-size: 56px 56px;
}

.hero-slider {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-slide {
    display: none;
    align-items: center;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 52px;
    min-height: 520px;
}

.hero-slide.active {
    display: grid;
    animation: heroFade 0.55s ease both;
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-copy {
    color: #ffffff;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 7px 13px;
    border-radius: 999px;
    color: #be185d;
    background: linear-gradient(90deg, #fce7f3, #f3e8ff);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-kicker {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.section-kicker.hot {
    color: #b91c1c;
    background: linear-gradient(90deg, #fee2e2, #ffedd5);
}

.section-kicker.blue {
    color: #0369a1;
    background: linear-gradient(90deg, #dbeafe, #cffafe);
}

.section-kicker.purple {
    color: #7e22ce;
    background: linear-gradient(90deg, #f3e8ff, #fce7f3);
}

.section-kicker.gold {
    color: #92400e;
    background: linear-gradient(90deg, #fef3c7, #fee2e2);
}

.hero-copy h1 {
    margin: 0 0 20px;
    max-width: 760px;
    color: #ffffff;
    font-size: clamp(3.2rem, 8vw, 6.8rem);
    line-height: 0.95;
    letter-spacing: -0.08em;
    text-shadow: 0 18px 42px rgba(17, 24, 39, 0.28);
}

.hero-copy p {
    max-width: 720px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1.08rem, 2vw, 1.45rem);
    text-shadow: 0 10px 30px rgba(17, 24, 39, 0.22);
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    background: linear-gradient(90deg, #fce7f3, #f3e8ff);
    color: #7e22ce;
    font-size: 0.78rem;
    font-weight: 800;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
    color: var(--pink-dark);
    background: #ffffff;
    box-shadow: 0 20px 45px rgba(17, 24, 39, 0.18);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.24);
}

.hero-poster {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-strong);
    transform: rotate(1deg);
}

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

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.5s ease;
}

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

.hero-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--pink);
    background: rgba(255, 255, 255, 0.92);
    transform: translate(-50%, -50%);
    box-shadow: 0 16px 38px rgba(17, 24, 39, 0.24);
}

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

.hero-controls button {
    cursor: pointer;
}

.hero-controls > button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-size: 1.8rem;
    line-height: 1;
}

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

.hero-dots button {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
}

.hero-dots button.active {
    width: 32px;
    background: #ffffff;
}

.search-panel,
.content-section,
.inner-page {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 420px);
    gap: 24px;
    align-items: center;
    margin-top: -44px;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 4;
}

.search-panel h2,
.section-heading h2,
.page-hero h1,
.detail-card h1 {
    margin: 0;
    letter-spacing: -0.04em;
}

.search-panel h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.search-panel p {
    margin: 6px 0 0;
    color: var(--gray-600);
}

.search-box input,
.category-search-row input {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    outline: 0;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-box input:focus,
.category-search-row input:focus {
    border-color: rgba(236, 72, 153, 0.55);
    box-shadow: 0 0 0 5px rgba(236, 72, 153, 0.12);
}

.content-section {
    margin-top: 64px;
}

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

.section-heading h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    background: linear-gradient(90deg, var(--pink-dark), var(--purple-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

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

.featured-grid {
    grid-template-columns: 1.25fr 1fr 1fr;
}

.horizontal-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 360px);
    gap: 24px;
    overflow-x: auto;
    padding: 4px 4px 18px;
    scroll-snap-type: x proximity;
}

.horizontal-rail .movie-card {
    scroll-snap-align: start;
}

.movie-card {
    min-width: 0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.09);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.18);
}

.movie-card-link {
    display: block;
    height: 100%;
}

.card-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #fdf2f8, #f3e8ff);
}

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

.movie-card:hover .card-cover img {
    transform: scale(1.1);
}

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 24%, rgba(0, 0, 0, 0.58));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .card-cover::after {
    opacity: 1;
}

.card-play {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.card-play span {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--pink);
    background: rgba(255, 255, 255, 0.92);
    transform: scale(0.75);
    transition: transform 0.25s ease;
}

.movie-card:hover .card-play {
    opacity: 1;
}

.movie-card:hover .card-play span {
    transform: scale(1);
}

.rating-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 3;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    font-size: 0.78rem;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.26);
}

.card-body {
    padding: 18px;
}

.card-body h3 {
    margin: 0 0 8px;
    color: var(--gray-800);
    font-size: 1.08rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card:hover .card-body h3 {
    background: linear-gradient(90deg, var(--pink), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.card-body p {
    margin: 0 0 12px;
    min-height: 44px;
    color: var(--gray-600);
    font-size: 0.92rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    color: var(--gray-500);
    font-size: 0.84rem;
    font-weight: 700;
}

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

.category-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(17, 24, 39, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
}

.category-thumbs img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px;
    background: linear-gradient(135deg, #fdf2f8, #f3e8ff);
}

.category-info h2 {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

.category-info p {
    margin: 0 0 12px;
    color: var(--gray-600);
}

.category-info span {
    display: inline-flex;
    color: var(--pink-dark);
    font-weight: 900;
}

.ranking-list {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.ranking-row {
    display: grid;
    grid-template-columns: 46px 110px minmax(140px, 1fr) minmax(130px, 1fr) 86px;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.ranking-row:hover {
    transform: translateX(4px);
    background: linear-gradient(90deg, #fdf2f8, #faf5ff);
}

.rank-number {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--gray-600);
    background: var(--gray-100);
    font-weight: 900;
}

.ranking-row:nth-child(1) .rank-number {
    color: #ffffff;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.ranking-row:nth-child(2) .rank-number {
    color: #ffffff;
    background: linear-gradient(135deg, #d1d5db, #6b7280);
}

.ranking-row:nth-child(3) .rank-number {
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #ea580c);
}

.ranking-row img {
    width: 110px;
    height: 66px;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, #fdf2f8, #f3e8ff);
}

.ranking-title {
    min-width: 0;
    color: var(--gray-800);
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-desc {
    min-width: 0;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-score {
    color: #d97706;
    font-weight: 900;
    text-align: right;
}

.inner-page {
    padding-top: 42px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 56px;
    border-radius: 34px;
    background: linear-gradient(135deg, #ffffff 0%, #fdf2f8 48%, #eef2ff 100%);
    box-shadow: var(--shadow-soft);
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.18), transparent 70%);
}

.page-hero h1 {
    max-width: 820px;
    font-size: clamp(2.3rem, 5vw, 4.6rem);
    line-height: 1.05;
    background: linear-gradient(90deg, var(--pink-dark), var(--purple-dark), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-hero p {
    max-width: 780px;
    margin: 18px 0 0;
    color: var(--gray-600);
    font-size: 1.08rem;
}

.category-search-row {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 16px;
    max-width: 860px;
    margin-top: 28px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--gray-700);
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.08);
    cursor: pointer;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    transform: translateY(-2px);
}

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

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

.compact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
    font-weight: 900;
}

.compact-card img {
    width: 72px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, #fdf2f8, #f3e8ff);
}

.compact-card span {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: var(--gray-500);
    font-weight: 800;
}

.breadcrumb a {
    color: var(--pink-dark);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
}

.detail-main {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.player-card,
.detail-card,
.side-card {
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.player-card {
    padding: 14px;
    background: linear-gradient(135deg, #111827, #312e81, #831843);
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000000;
}

.movie-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 18px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.2), rgba(17, 24, 39, 0.72));
    cursor: pointer;
    text-align: center;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-button {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--pink);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.player-overlay strong {
    padding: 0 20px;
    font-size: clamp(1.35rem, 4vw, 2.5rem);
    line-height: 1.15;
    text-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
}

.detail-card {
    padding: 28px;
}

.detail-card h1 {
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.1;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0 18px;
    color: var(--gray-600);
    font-weight: 800;
}

.detail-meta span {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--gray-100);
}

.detail-tags {
    margin-bottom: 24px;
}

.detail-card section {
    border-top: 1px solid var(--gray-200);
    padding-top: 22px;
    margin-top: 22px;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 12px;
    font-size: 1.35rem;
}

.detail-card p {
    margin: 0 0 14px;
    color: var(--gray-700);
    font-size: 1.02rem;
}

.detail-side {
    min-width: 0;
}

.detail-side .side-card {
    padding: 18px;
    margin-bottom: 20px;
}

.movie-info-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 18px;
    object-fit: cover;
    background: linear-gradient(135deg, #fdf2f8, #f3e8ff);
}

.movie-info-card dl {
    margin: 18px 0 0;
    display: grid;
    gap: 10px;
}

.movie-info-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-100);
}

.movie-info-card dt {
    color: var(--gray-500);
}

.movie-info-card dd {
    margin: 0;
    color: var(--gray-900);
    font-weight: 900;
    text-align: right;
}

.movie-info-card dd a {
    color: var(--pink-dark);
}

.side-related {
    display: grid;
    grid-template-columns: 94px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}

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

.side-related img {
    width: 94px;
    height: 62px;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, #fdf2f8, #f3e8ff);
}

.side-related span {
    min-width: 0;
    color: var(--gray-800);
    font-weight: 900;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.site-footer {
    margin-top: 86px;
    color: #ffffff;
    background: linear-gradient(90deg, #111827, #581c87, #111827);
}

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

.footer-inner p {
    max-width: 420px;
    color: rgba(255, 255, 255, 0.72);
}

.footer-inner h2 {
    margin: 0 0 14px;
    color: #f9a8d4;
    font-size: 1.1rem;
}

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

.footer-inner a {
    color: rgba(255, 255, 255, 0.76);
    transition: color 0.25s ease;
}

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

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

.footer-tags a {
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
}

.movie-card.is-hidden,
.ranking-row.is-hidden {
    display: none;
}

@media (max-width: 1024px) {
    .movie-grid,
    .featured-grid,
    .full-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 80px 0 100px;
    }

    .hero-poster {
        min-height: 320px;
    }

    .hero-poster img {
        min-height: 320px;
    }

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

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

    .detail-side .side-card {
        margin-bottom: 0;
    }

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

@media (max-width: 760px) {
    .site-nav {
        height: 62px;
    }

    .nav-links {
        display: none;
    }

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

    .brand {
        font-size: 1.25rem;
    }

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

    .hero-slide {
        min-height: 0;
        padding: 54px 0 104px;
    }

    .hero-copy h1 {
        font-size: clamp(2.5rem, 16vw, 4rem);
    }

    .hero-poster {
        min-height: 260px;
        border-radius: 24px;
    }

    .hero-poster img {
        min-height: 260px;
    }

    .hero-controls {
        bottom: 24px;
    }

    .search-panel {
        grid-template-columns: 1fr;
        margin-top: -30px;
        padding: 22px;
    }

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

    .movie-grid,
    .featured-grid,
    .full-grid,
    .compact-grid,
    .footer-inner,
    .detail-side {
        grid-template-columns: 1fr;
    }

    .category-card {
        grid-template-columns: 1fr;
    }

    .ranking-row {
        grid-template-columns: 38px 84px 1fr 64px;
    }

    .ranking-row img {
        width: 84px;
        height: 56px;
    }

    .ranking-desc {
        display: none;
    }

    .page-hero {
        padding: 32px 22px;
        border-radius: 24px;
    }

    .detail-card {
        padding: 22px;
    }

    .player-card {
        padding: 8px;
        border-radius: 22px;
    }
}
