:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --panel-soft: #f1f5f9;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --cyan: #0891b2;
    --blue: #2563eb;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0d9488, #06b6d4, #2563eb);
    color: #ffffff;
    box-shadow: 0 12px 34px rgba(13, 148, 136, 0.32);
}

.logo-text {
    font-size: 1.1rem;
}

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

.nav-link,
.mobile-nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #475569;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary-dark);
    background: rgba(13, 148, 136, 0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-search {
    display: flex;
    align-items: center;
    width: 280px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
}

.header-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 10px 12px 10px 16px;
    color: var(--text);
}

.header-search button {
    border: 0;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    color: #ffffff;
    padding: 10px 16px;
    font-weight: 800;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #f1f5f9;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #0f172a;
}

.mobile-nav {
    display: none;
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 10px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.mobile-nav.is-open {
    display: grid;
    gap: 6px;
}

.hero-carousel {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f766e, #0891b2 45%, #1d4ed8);
    color: #ffffff;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.06) contrast(1.05);
    transform: scale(1.03);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(20, 184, 166, 0.68), transparent 34%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 118, 110, 0.72) 44%, rgba(2, 6, 23, 0.34)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1220px, calc(100% - 32px));
    min-height: 720px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 54px;
    align-items: center;
    padding: 84px 0 120px;
}

.eyebrow,
.section-heading span,
.page-hero span,
.shelf-heading span {
    display: inline-flex;
    align-items: center;
    color: #0d9488;
    background: rgba(13, 148, 136, 0.12);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy .eyebrow {
    color: #ccfbf1;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
}

.hero-copy h1 {
    margin: 22px 0 18px;
    font-size: clamp(2.7rem, 6vw, 5.9rem);
    line-height: 0.95;
    letter-spacing: -0.07em;
    max-width: 760px;
}

.hero-summary {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.08rem;
}

.hero-tags,
.genre-pills,
.filter-chips,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.genre-pills span,
.tag-cloud a {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
}

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

.hero-actions,
.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}

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

.primary-button {
    background: #ffffff;
    color: #0f766e;
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.28);
}

.secondary-button,
.page-hero-actions a {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.primary-button:hover,
.secondary-button:hover,
.page-hero-actions a:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
    isolation: isolate;
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.hero-poster span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: grid;
    place-items: center;
    min-height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f766e;
    font-weight: 900;
}

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

.hero-arrow,
.hero-dot {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.hero-preview-list {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 96px;
    transform: translateX(-50%);
    width: min(1220px, calc(100% - 32px));
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.hero-preview-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-weight: 900;
}

.hero-preview-list img {
    width: 54px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
}

.section,
.category-shelf {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.section-light,
.section-soft {
    width: 100%;
    padding-left: max(16px, calc((100% - 1220px) / 2));
    padding-right: max(16px, calc((100% - 1220px) / 2));
}

.section-light {
    background: #ffffff;
}

.section-soft {
    background: linear-gradient(180deg, #f8fafc, #eef7f7);
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading h2,
.page-hero h1,
.shelf-heading h2 {
    margin: 12px 0 10px;
    color: var(--text);
    letter-spacing: -0.04em;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
}

.section-heading p,
.page-hero p,
.shelf-heading h2,
.category-card p,
.movie-card-body p,
.content-card p,
.detail-meta-card p,
.site-footer p {
    color: var(--muted);
}

.row-heading,
.shelf-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
}

.text-link,
.shelf-heading a {
    color: var(--primary-dark);
    font-weight: 900;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 24px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 16px 46px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card strong,
.category-card em,
.category-card p,
.category-card small {
    position: relative;
    z-index: 2;
    display: block;
}

.category-card strong {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.category-card em {
    width: fit-content;
    font-style: normal;
    color: var(--primary-dark);
    background: rgba(13, 148, 136, 0.1);
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 900;
    margin-bottom: 18px;
}

.category-card small {
    color: #334155;
    margin-top: 18px;
    font-weight: 800;
}

.category-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    right: -42px;
    top: -42px;
    opacity: 0.2;
    background: currentColor;
}

.accent-teal { color: #0d9488; }
.accent-cyan { color: #0891b2; }
.accent-blue { color: #2563eb; }
.accent-violet { color: #7c3aed; }
.accent-emerald { color: #059669; }
.accent-slate { color: #475569; }
.accent-rose { color: #e11d48; }
.accent-orange { color: #ea580c; }
.accent-indigo { color: #4f46e5; }
.accent-amber { color: #d97706; }
.accent-red { color: #dc2626; }
.accent-lime { color: #65a30d; }

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

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

.movie-card {
    min-width: 0;
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.86);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card-link:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.18);
}

.movie-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 11;
    background: linear-gradient(135deg, #0f766e, #1d4ed8);
}

.movie-card-compact .movie-poster {
    aspect-ratio: 3 / 4;
}

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

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

.movie-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.72));
}

.movie-year,
.movie-type,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.movie-year {
    left: 12px;
    top: 12px;
    padding: 5px 9px;
    background: rgba(15, 23, 42, 0.58);
}

.movie-type {
    right: 12px;
    top: 12px;
    padding: 5px 9px;
    background: rgba(13, 148, 136, 0.82);
}

.rank-badge {
    left: 12px;
    bottom: 12px;
    padding: 5px 10px;
    background: rgba(234, 88, 12, 0.9);
}

.movie-play-icon {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%) scale(0.82);
    opacity: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-dark);
    font-weight: 900;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

.movie-card-body h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    line-height: 1.35;
    color: var(--text);
}

.movie-card-body p {
    margin: 0 0 14px;
    min-height: 48px;
    font-size: 0.92rem;
}

.movie-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 800;
}

.movie-card-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1f5f9;
}

.search-panel,
.filter-bar {
    margin-bottom: 24px;
    border-radius: 24px;
    background: #ffffff;
    padding: 18px;
    box-shadow: 0 14px 42px rgba(15, 23, 42, 0.08);
}

.search-panel input,
.filter-bar input {
    width: 100%;
    height: 52px;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: 0;
    padding: 0 18px;
    color: var(--text);
    background: #f8fafc;
}

.filter-bar {
    display: grid;
    gap: 16px;
}

.filter-chip {
    border: 0;
    padding: 9px 14px;
    border-radius: 999px;
    color: #475569;
    background: #f1f5f9;
    font-weight: 900;
}

.filter-chip.is-active,
.filter-chip:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
}

.ranking-list,
.ranking-rows {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.ranking-list li a,
.ranking-row {
    display: grid;
    grid-template-columns: 56px 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.ranking-list img,
.ranking-row img {
    width: 64px;
    height: 78px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-number,
.ranking-row span {
    color: var(--primary-dark);
    font-size: 1.2rem;
    font-weight: 900;
}

.ranking-list strong,
.ranking-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-list em,
.ranking-row em {
    color: var(--muted);
    font-style: normal;
    font-size: 0.9rem;
}

.page-hero {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    display: grid;
    align-content: center;
    width: min(1220px, calc(100% - 32px));
    margin: 28px auto 0;
    padding: 68px;
    border-radius: 36px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f766e, #0891b2 52%, #2563eb);
    box-shadow: var(--shadow);
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: -30% -10% auto auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.page-hero span,
.page-hero h1,
.page-hero p,
.page-hero-actions {
    position: relative;
    z-index: 2;
}

.page-hero span {
    width: fit-content;
    color: #ccfbf1;
    background: rgba(255, 255, 255, 0.14);
}

.page-hero h1 {
    color: #ffffff;
    font-size: clamp(2.4rem, 5vw, 5rem);
    line-height: 0.95;
}

.page-hero p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.05rem;
}

.category-hero.accent-teal { background: linear-gradient(135deg, #0f766e, #0891b2); }
.category-hero.accent-cyan { background: linear-gradient(135deg, #0e7490, #2563eb); }
.category-hero.accent-blue { background: linear-gradient(135deg, #1d4ed8, #0f766e); }
.category-hero.accent-violet { background: linear-gradient(135deg, #6d28d9, #0891b2); }
.category-hero.accent-emerald { background: linear-gradient(135deg, #047857, #0d9488); }
.category-hero.accent-slate { background: linear-gradient(135deg, #334155, #0f766e); }
.category-hero.accent-rose { background: linear-gradient(135deg, #be123c, #0e7490); }
.category-hero.accent-orange { background: linear-gradient(135deg, #c2410c, #0f766e); }
.category-hero.accent-indigo { background: linear-gradient(135deg, #4338ca, #0891b2); }
.category-hero.accent-amber { background: linear-gradient(135deg, #b45309, #0f766e); }
.category-hero.accent-red { background: linear-gradient(135deg, #b91c1c, #1d4ed8); }
.category-hero.accent-lime { background: linear-gradient(135deg, #4d7c0f, #0f766e); }

.detail-hero {
    width: min(1220px, calc(100% - 32px));
    margin: 28px auto 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-weight: 800;
    margin-bottom: 18px;
}

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

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

.player-panel,
.detail-side,
.content-card,
.detail-meta-card {
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 16px 46px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.player-panel {
    padding: 14px;
}

.movie-player {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #020617;
    aspect-ratio: 16 / 9;
}

.movie-player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 50% 50%, rgba(13, 148, 136, 0.36), transparent 30%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.24), rgba(2, 6, 23, 0.72));
}

.big-play {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-dark);
    font-size: 2.2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
}

.player-overlay span:last-child {
    font-size: 1.1rem;
    font-weight: 900;
}

.detail-side {
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    border: 0;
    display: grid;
    gap: 16px;
}

.detail-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.detail-meta-card {
    padding: 24px;
}

.detail-meta-card h1 {
    margin: 0 0 12px;
    font-size: 2rem;
    line-height: 1.12;
    letter-spacing: -0.04em;
}

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

.detail-meta-card dl {
    display: grid;
    gap: 10px;
    margin: 0 0 20px;
}

.detail-meta-card dl div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.detail-meta-card dt {
    color: #64748b;
    font-weight: 800;
}

.detail-meta-card dd {
    margin: 0;
    color: #0f172a;
    font-weight: 900;
    text-align: right;
}

.genre-pills span,
.tag-cloud a {
    background: #ecfeff;
    color: #0e7490;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.content-card {
    padding: 28px;
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 1.6rem;
    letter-spacing: -0.03em;
}

.content-card p {
    margin: 0;
    font-size: 1.02rem;
}

.site-footer {
    margin-top: 40px;
    background: #0f172a;
    color: #cbd5e1;
}

.footer-inner {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 28px;
}

.footer-logo {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.footer-links a {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 12px;
    border-radius: 999px;
}

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

    .mobile-menu-button {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-poster {
        width: min(320px, 100%);
    }

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

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

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 820px) {
    .hero-carousel,
    .hero-content {
        min-height: 760px;
    }

    .hero-content {
        padding-top: 60px;
        padding-bottom: 180px;
    }

    .hero-preview-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        bottom: 92px;
    }

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

    .page-hero {
        padding: 42px 24px;
        border-radius: 28px;
    }

    .row-heading,
    .shelf-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .ranking-list li a,
    .ranking-row {
        grid-template-columns: 42px 54px minmax(0, 1fr);
    }

    .ranking-list em,
    .ranking-row em {
        display: none;
    }
}

@media (max-width: 560px) {
    .header-inner {
        width: min(100% - 24px, 1220px);
    }

    .logo-text {
        font-size: 1rem;
    }

    .hero-copy h1 {
        font-size: 2.6rem;
    }

    .hero-summary {
        font-size: 0.98rem;
    }

    .hero-preview-list {
        display: none;
    }

    .hero-controls {
        bottom: 28px;
    }

    .hero-carousel,
    .hero-content {
        min-height: 650px;
    }

    .hero-content {
        padding-bottom: 88px;
    }

    .hero-poster {
        display: none;
    }

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

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

    .section,
    .category-shelf {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .detail-meta-card h1 {
        font-size: 1.7rem;
    }

    .content-card {
        padding: 22px;
    }
}
