:root {
    --jelly-bg-primary: #f8f9fe;
    --jelly-bg-secondary: rgba(255, 255, 255, 0.86);
    --jelly-text-primary: #2d3748;
    --jelly-text-secondary: #718096;
    --jelly-accent-mint: #b8e6d5;
    --jelly-accent-lavender: #d4c5f9;
    --jelly-accent-pink: #ffc4dd;
    --jelly-accent-blue: #c4ddff;
    --jelly-accent-peach: #ffd4c4;
    --jelly-shadow: 0 8px 32px rgba(31, 38, 135, 0.16);
    --jelly-shadow-strong: 0 16px 48px rgba(31, 38, 135, 0.25);
    --radius-lg: 30px;
    --radius-md: 22px;
    --radius-sm: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--jelly-text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #4facfe, #00f2fe);
    background-size: 400% 400%;
    animation: gradientShift 30s ease infinite;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    content: "";
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.48), transparent 28%),
        radial-gradient(circle at 82% 8%, rgba(255, 196, 221, 0.45), transparent 30%),
        radial-gradient(circle at 68% 92%, rgba(184, 230, 213, 0.40), transparent 34%);
}

body::after {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    background-image: linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 80%);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(32px);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.10);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    width: min(1240px, calc(100% - 32px));
    height: 76px;
    margin: 0 auto;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-mark,
.footer-brand span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4c5f9, #ffc4dd);
    box-shadow: 0 0 35px rgba(232, 234, 246, 0.75);
}

.brand-text {
    font-size: 1.45rem;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    color: #4a5568;
    font-weight: 650;
    transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #764ba2;
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    display: grid;
    grid-template-columns: repeat(2, minmax(110px, 1fr));
    gap: 8px;
    width: 292px;
    padding: 14px;
    visibility: hidden;
    opacity: 0;
    transform: translate(-50%, 12px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(32px);
    box-shadow: var(--jelly-shadow-strong);
    transition: all 0.25s ease;
}

.nav-dropdown:hover .dropdown-panel {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0);
}

.dropdown-panel a,
.mobile-panel a {
    padding: 10px 12px;
    border-radius: 14px;
    color: #4a5568;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.dropdown-panel a:hover,
.mobile-panel a:hover {
    color: #764ba2;
    background: rgba(255, 255, 255, 0.72);
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
}

.header-search input,
.mobile-search input,
.filter-input,
.sort-select {
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #2d3748;
}

.header-search input {
    width: 220px;
    padding: 9px 10px 9px 14px;
}

.header-search button,
.mobile-search button,
.search-panel button {
    border: 0;
    border-radius: 999px;
    padding: 9px 16px;
    color: #fff;
    background: linear-gradient(135deg, #667eea, #f093fb);
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(118, 75, 162, 0.22);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    color: #4a5568;
}

.mobile-panel {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(28px);
}

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

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

.page-main {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 112px 0 56px;
}

.jelly-card,
.movie-card,
.category-card,
.search-panel,
.rank-row,
.player-shell,
.detail-panel {
    border: 1px solid rgba(255, 255, 255, 0.30);
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(28px);
    box-shadow: var(--jelly-shadow);
}

.jelly-card,
.movie-card,
.category-card,
.search-panel,
.detail-panel {
    border-radius: var(--radius-lg);
}

.jelly-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 13px 22px;
    font-weight: 750;
    transition: all 0.25s ease;
}

.jelly-button {
    color: #3f2d72;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.72));
    box-shadow: 0 8px 24px rgba(31, 38, 135, 0.18);
}

.secondary-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.jelly-button:hover,
.secondary-button:hover,
.movie-card:hover,
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--jelly-shadow-strong);
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border-radius: 42px;
    box-shadow: var(--jelly-shadow-strong);
    isolation: isolate;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 34px;
    align-items: end;
    padding: 58px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.65s ease, visibility 0.65s ease;
}

.hero-slide.is-active {
    visibility: visible;
    opacity: 1;
}

.hero-slide::before {
    position: absolute;
    inset: 0;
    z-index: -2;
    content: "";
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
}

.hero-slide::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background:
        linear-gradient(90deg, rgba(30, 20, 64, 0.88), rgba(39, 28, 79, 0.58), rgba(0, 0, 0, 0.30)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 45%);
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.92rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy {
    max-width: 760px;
    color: #fff;
}

.hero-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(2.4rem, 6vw, 5.9rem);
    line-height: 0.96;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.24);
}

.hero-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(1.35rem, 2.8vw, 2.3rem);
}

.hero-copy p {
    max-width: 720px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.08rem;
    line-height: 1.8;
}

.hero-meta,
.cover-meta,
.movie-meta,
.detail-meta,
.wide-actions,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-meta span,
.detail-meta span,
.cover-meta span,
.rank-meta span {
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(18px);
}

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

.hero-poster-card {
    align-self: center;
    justify-self: end;
    width: min(330px, 100%);
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(22px);
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.25);
}

.hero-poster-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 24px;
}

.hero-dots {
    position: absolute;
    right: 46px;
    bottom: 34px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.50);
    cursor: pointer;
    transition: all 0.25s ease;
}

.hero-dots button.is-active {
    width: 38px;
    background: #fff;
}

.quick-cats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0 56px;
}

.quick-cats a,
.chip-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 20px;
    color: #3f2d72;
    font-weight: 750;
    background: rgba(255, 255, 255, 0.66);
    backdrop-filter: blur(22px);
    transition: all 0.25s ease;
}

.quick-cats a:hover,
.chip-link:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.88);
}

.section-heading,
.page-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 22px;
}

.section-heading h2,
.page-title-row h1,
.detail-content h1 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 3rem);
    line-height: 1.15;
    background: linear-gradient(135deg, #ffffff, #f5e8ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 12px rgba(31, 38, 135, 0.08);
}

.section-heading a,
.page-title-row a {
    color: #fff;
    font-weight: 750;
}

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

.movie-card {
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.18);
}

.movie-cover img,
.wide-cover img,
.related-card img,
.detail-poster img,
.rank-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-cover img {
    transition: transform 0.7s ease;
}

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

.cover-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 55%);
}

.cover-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(16px);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: all 0.25s ease;
}

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

.cover-meta {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    justify-content: space-between;
}

.cover-meta span {
    font-size: 0.82rem;
    padding: 5px 9px;
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    font-weight: 850;
    background: linear-gradient(135deg, #f093fb, #667eea);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.movie-body {
    padding: 16px;
}

.movie-body h2,
.wide-content h2,
.rank-info h2,
.category-card h2,
.related-card h2 {
    margin: 0 0 9px;
    color: #2d3748;
    font-size: 1.05rem;
    line-height: 1.35;
}

.movie-body h2 a:hover,
.wide-content h2 a:hover,
.rank-info h2 a:hover,
.related-card h2 a:hover {
    color: #764ba2;
}

.movie-desc {
    display: -webkit-box;
    min-height: 3.2em;
    margin: 0 0 12px;
    overflow: hidden;
    color: #718096;
    font-size: 0.93rem;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    margin-bottom: 12px;
    color: #718096;
    font-size: 0.88rem;
}

.movie-meta a {
    color: #764ba2;
    font-weight: 750;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-row span,
.detail-tags a,
.filter-chips button {
    border: 1px solid rgba(118, 75, 162, 0.12);
    border-radius: 999px;
    padding: 6px 10px;
    color: #6b46a3;
    font-size: 0.80rem;
    background: rgba(212, 197, 249, 0.30);
}

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

.wide-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
    padding: 14px;
}

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

.wide-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wide-content .eyebrow {
    color: #764ba2;
}

.wide-content p {
    display: -webkit-box;
    margin: 0 0 16px;
    overflow: hidden;
    color: #718096;
    line-height: 1.7;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.wide-actions {
    color: #718096;
    font-size: 0.92rem;
}

.wide-actions .jelly-button {
    padding: 10px 16px;
}

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

.category-card {
    display: flex;
    min-height: 210px;
    flex-direction: column;
    justify-content: space-between;
    padding: 26px;
    transition: all 0.25s ease;
}

.category-card p,
.page-intro,
.detail-section p {
    color: rgba(45, 55, 72, 0.78);
    line-height: 1.8;
}

.category-count {
    color: #764ba2;
    font-weight: 800;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    margin: 22px 0 30px;
    padding: 14px;
}

.filter-input {
    width: 100%;
    padding: 15px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.70);
}

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

.filter-chips button {
    cursor: pointer;
}

.filter-chips button.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #667eea, #f093fb);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 70px 92px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 12px 18px;
    border-radius: 24px;
}

.rank-number {
    color: #764ba2;
    font-size: 1.6rem;
    font-weight: 900;
    text-align: center;
}

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

.rank-info p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #718096;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-score {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 850;
    background: linear-gradient(135deg, #f093fb, #667eea);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 650;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 28px;
}

.player-shell {
    overflow: hidden;
    border-radius: 34px;
}

.watch-player {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 320px;
    overflow: hidden;
    background: #080816;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, rgba(20, 14, 45, 0.82), rgba(118, 75, 162, 0.36));
    cursor: pointer;
    transition: opacity 0.25s ease;
}

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

.play-core {
    display: grid;
    place-items: center;
    gap: 14px;
    color: #fff;
    text-align: center;
}

.play-icon {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(20px);
    box-shadow: 0 12px 42px rgba(0, 0, 0, 0.20);
}

.play-title {
    font-size: 1.15rem;
    font-weight: 850;
}

.player-state {
    min-height: 44px;
    padding: 12px 18px;
    color: #4a5568;
    background: rgba(255, 255, 255, 0.86);
}

.detail-side {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 18px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    aspect-ratio: 3 / 4;
    box-shadow: var(--jelly-shadow);
}

.detail-panel {
    padding: 24px;
}

.detail-content h1 {
    color: #ffffff;
    -webkit-text-fill-color: transparent;
}

.detail-meta {
    margin: 16px 0 20px;
}

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

.detail-section h2 {
    margin: 0 0 12px;
    color: #2d3748;
    font-size: 1.35rem;
}

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

.related-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 54px;
}

.related-card {
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--jelly-shadow);
}

.related-card a:first-child {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.related-card h2 {
    padding: 12px;
    font-size: 0.96rem;
}

.prev-next {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 42px;
}

.prev-next a {
    flex: 1;
    border-radius: 22px;
    padding: 16px 18px;
    color: #3f2d72;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(24px);
}

.site-footer {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto 28px;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(28px);
    box-shadow: var(--jelly-shadow);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 30px;
}

.footer-brand {
    margin-bottom: 14px;
    font-size: 1.25rem;
}

.site-footer p {
    margin: 0;
    color: #718096;
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 12px;
    font-size: 1.05rem;
}

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

.footer-links a {
    border-radius: 999px;
    padding: 8px 12px;
    color: #6b46a3;
    background: rgba(212, 197, 249, 0.30);
}

.footer-bottom {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(118, 75, 162, 0.12);
    color: #718096;
    font-size: 0.92rem;
}

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

.empty-state {
    display: none;
    margin: 24px 0 54px;
    padding: 30px;
    border-radius: 24px;
    color: #4a5568;
    background: rgba(255, 255, 255, 0.78);
}

.empty-state.is-visible {
    display: block;
}

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

    .menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

    .hero-poster-card {
        display: none;
    }

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

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

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

@media (max-width: 760px) {
    .header-inner {
        height: 66px;
    }

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

    .brand-text {
        font-size: 1.18rem;
    }

    .page-main {
        width: min(100% - 24px, 640px);
        padding-top: 92px;
    }

    .hero {
        min-height: 620px;
        border-radius: 30px;
    }

    .hero-slide {
        padding: 30px 24px 80px;
    }

    .hero-copy p {
        font-size: 0.98rem;
    }

    .hero-dots {
        right: 24px;
        bottom: 24px;
    }

    .quick-cats,
    .movie-grid,
    .category-grid,
    .wide-grid,
    .related-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wide-card,
    .rank-row {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .rank-number,
    .rank-score {
        display: none;
    }

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

    .detail-hero {
        gap: 18px;
    }

    .watch-player {
        min-height: 230px;
    }

    .detail-side {
        grid-template-columns: 120px minmax(0, 1fr);
        grid-template-rows: auto;
    }

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

    .site-footer {
        width: min(100% - 24px, 640px);
        padding: 24px;
    }
}

@media (max-width: 520px) {
    .quick-cats,
    .movie-grid,
    .category-grid,
    .wide-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-actions,
    .page-title-row,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 18px;
}

.category-thumbs img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    object-fit: cover;
}

.hero-title-spacer {
    margin: 0 0 14px;
    font-size: clamp(2.4rem, 6vw, 5.9rem);
    font-weight: 900;
    line-height: 0.96;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.24);
}
