:root {
    --bg: #f8fafc;
    --text: #111827;
    --muted: #6b7280;
    --soft: #f3f4f6;
    --line: #e5e7eb;
    --white: #ffffff;
    --red: #dc2626;
    --red-dark: #b91c1c;
    --pink: #db2777;
    --blue-soft: #eff6ff;
    --purple-soft: #faf5ff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
    --radius: 22px;
    --max: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.header-inner {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--red), var(--pink));
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.24);
    transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.08);
}

.brand-icon span {
    width: 0;
    height: 0;
    margin-left: 3px;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid #ffffff;
}

.brand-text {
    display: grid;
    gap: 1px;
}

.brand-text strong {
    font-size: 20px;
    color: #111827;
    line-height: 1.1;
}

.brand-text em {
    font-style: normal;
    font-size: 12px;
    color: var(--muted);
}

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

.nav-link {
    position: relative;
    color: #374151;
    font-weight: 650;
    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(--red), var(--pink));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

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

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

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

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: #374151;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
}

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

.mobile-nav-inner {
    display: grid;
    gap: 8px;
    padding: 12px 0 16px;
}

.mobile-nav-link {
    padding: 12px 14px;
    border-radius: 14px;
    color: #374151;
    font-weight: 650;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
    color: var(--red);
    background: #fef2f2;
}

.hero {
    position: relative;
    height: 72vh;
    min-height: 560px;
    overflow: hidden;
    background: #111827;
}

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

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

.hero-image,
.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.46) 48%, rgba(0, 0, 0, 0.18) 100%), linear-gradient(0deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.1) 55%);
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 72px;
}

.hero-copy {
    width: min(720px, 100%);
    color: #ffffff;
}

.hero-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
}

.hero-labels strong,
.hero-labels span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 14px;
    color: #ffffff;
}

.hero-labels strong {
    background: linear-gradient(135deg, var(--red), var(--pink));
    font-weight: 800;
}

.hero-labels span {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero h2 {
    margin: 0 0 16px;
    font-size: clamp(24px, 3vw, 44px);
    line-height: 1.15;
}

.hero p {
    max-width: 680px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(16px, 1.5vw, 20px);
}

.hero-actions,
.detail-title-block .primary-button {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.primary-button,
.ghost-button,
.home-search button,
.back-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border: 0;
    border-radius: 14px;
    font-weight: 750;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.home-search button,
.back-top {
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--pink));
    box-shadow: 0 14px 26px rgba(220, 38, 38, 0.28);
}

.primary-button:hover,
.home-search button:hover,
.back-top:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 32px rgba(220, 38, 38, 0.34);
}

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

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    font-size: 42px;
    line-height: 1;
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-50%) scale(1.06);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 6;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

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

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

.search-hero {
    margin-top: -34px;
    position: relative;
    z-index: 8;
}

.search-panel {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
    align-items: center;
    padding: 28px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.search-panel h2 {
    margin: 0 0 8px;
    font-size: clamp(22px, 2.5vw, 34px);
}

.search-panel p {
    margin: 0;
    color: var(--muted);
}

.home-search,
.filter-control {
    display: flex;
    gap: 12px;
}

.home-search input,
.filter-control input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text);
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-search input:focus,
.filter-control input:focus {
    border-color: rgba(220, 38, 38, 0.55);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.page-stack {
    display: grid;
    gap: 38px;
    padding: 44px 0 64px;
}

.content-section,
.filter-box,
.detail-card,
.player-panel,
.side-card {
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.content-section,
.filter-box {
    padding: clamp(20px, 3vw, 32px);
}

.section-heading,
.filter-heading,
.rank-panel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.section-heading h2,
.filter-heading h2,
.rank-panel h2,
.side-card h2,
.player-panel h2,
.detail-card h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(22px, 2.6vw, 34px);
    line-height: 1.2;
}

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

.section-more,
.rank-panel-head a {
    color: var(--red);
    font-weight: 750;
    white-space: nowrap;
}

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

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

.movie-card {
    min-width: 0;
    border-radius: 18px;
    transition: transform 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 18px;
    background: #111827;
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.16);
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.68) 100%);
    opacity: 0.85;
}

.type-badge,
.rank-badge,
.play-corner {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.type-badge {
    left: 10px;
    top: 10px;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--pink));
    font-size: 12px;
    font-weight: 750;
}

.rank-badge {
    right: 10px;
    top: 10px;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.74);
    font-size: 13px;
    font-weight: 850;
    backdrop-filter: blur(10px);
}

.play-corner {
    right: 10px;
    bottom: 10px;
    width: 34px;
    height: 34px;
    padding-left: 2px;
    border-radius: 999px;
    color: var(--red);
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-corner {
    opacity: 1;
    transform: translateY(0);
}

.card-body {
    padding: 12px 3px 0;
}

.card-body h3 {
    margin: 0;
    display: -webkit-box;
    min-height: 44px;
    overflow: hidden;
    color: #111827;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 750;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
}

.card-body p {
    display: -webkit-box;
    margin: 8px 0 0;
    overflow: hidden;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: 999px;
    color: #4b5563;
    background: #f3f4f6;
    font-size: 12px;
}

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

.category-tile {
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff, #f9fafb);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 130px;
    overflow: hidden;
    background: #111827;
}

.category-covers img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-info {
    padding: 18px;
}

.category-info h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.category-info p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.split-main .content-section {
    height: 100%;
}

.rank-panel {
    padding: 24px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    box-shadow: var(--shadow-soft);
}

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

.rank-line {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-line:hover {
    background: #ffffff;
    transform: translateX(3px);
}

.rank-number {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--pink));
    font-weight: 850;
    font-size: 13px;
}

.rank-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}

.rank-year {
    color: var(--muted);
    font-size: 13px;
}

.soft-page {
    min-height: 70vh;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 68px 0;
    color: #ffffff;
    background: radial-gradient(circle at 20% 20%, rgba(219, 39, 119, 0.42), transparent 35%), linear-gradient(135deg, #111827, #3f0f1f 48%, #7f1d1d);
}

.compact-hero {
    padding: 64px 0;
}

.category-hero {
    background: radial-gradient(circle at 80% 20%, rgba(220, 38, 38, 0.42), transparent 35%), linear-gradient(135deg, #111827, #831843);
}

.ranking-hero {
    background: radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.36), transparent 30%), linear-gradient(135deg, #111827, #7f1d1d);
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 750;
    backdrop-filter: blur(10px);
}

.page-hero h1 {
    max-width: 850px;
    margin: 0 0 12px;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.12;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: #6b7280;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--red);
}

.breadcrumb.light {
    color: rgba(255, 255, 255, 0.72);
}

.breadcrumb.light a:hover {
    color: #ffffff;
}

.filter-box {
    display: grid;
    gap: 20px;
}

.filter-control {
    max-width: 620px;
}

.empty-state {
    padding: 30px;
    border-radius: 16px;
    color: var(--muted);
    text-align: center;
    background: #f9fafb;
}

.movie-detail-page {
    background: #f3f4f6;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    color: #ffffff;
    background: #111827;
}

.detail-bg-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.46)), linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.08));
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    padding: 42px 0 56px;
}

.detail-head {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.38);
}

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

.detail-labels {
    margin-bottom: 16px;
}

.detail-title-block h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.08;
}

.detail-title-block p {
    max-width: 820px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

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

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

.player-panel,
.detail-card,
.side-card {
    padding: clamp(20px, 3vw, 28px);
}

.video-frame {
    position: relative;
    overflow: hidden;
    margin-top: 18px;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    background: #000000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

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

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.52));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--pink));
    box-shadow: 0 18px 40px rgba(220, 38, 38, 0.38);
    font-size: 30px;
    transition: transform 0.2s ease;
}

.play-layer:hover .play-circle {
    transform: scale(1.08);
}

.detail-card p {
    margin: 14px 0 0;
    color: #374151;
    font-size: 16px;
    line-height: 1.9;
}

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

.info-list div {
    display: grid;
    gap: 4px;
    padding: 14px;
    border-radius: 14px;
    background: #f9fafb;
}

.info-list dt {
    color: var(--muted);
    font-size: 13px;
}

.info-list dd {
    margin: 0;
    color: #111827;
    font-weight: 700;
}

.info-list a {
    color: var(--red);
}

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

.side-card {
    position: sticky;
    top: 92px;
}

.side-list {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.side-list .movie-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.side-list .poster-link {
    border-radius: 14px;
}

.side-list .card-body {
    padding-top: 0;
}

.side-list .tag-row,
.side-list .card-body p {
    display: none;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand strong {
    color: #ffffff;
    font-size: 18px;
}

.footer-brand p {
    margin: 2px 0 0;
    color: #9ca3af;
    font-size: 13px;
}

.footer-icon {
    width: 38px;
    height: 38px;
}

.back-top {
    min-height: 40px;
    padding: 0 18px;
}

@media (max-width: 1180px) {
    .movie-grid,
    .library-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

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

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

    .menu-toggle {
        display: inline-flex;
    }

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

    .hero {
        height: 68vh;
        min-height: 520px;
    }

    .hero-arrow {
        display: none;
    }

    .search-panel,
    .split-section,
    .detail-layout,
    .detail-head {
        grid-template-columns: 1fr;
    }

    .rank-panel,
    .side-card {
        position: static;
    }

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

    .detail-poster {
        width: 220px;
    }
}

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

    .header-inner {
        height: 62px;
    }

    .brand-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .brand-text em {
        display: none;
    }

    .hero {
        min-height: 560px;
    }

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

    .hero-overlay {
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.32) 100%);
    }

    .hero-actions,
    .home-search,
    .filter-control,
    .section-heading,
    .filter-heading,
    .footer-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .home-search button,
    .primary-button,
    .ghost-button {
        width: 100%;
    }

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

    .page-stack {
        gap: 24px;
        padding: 28px 0 44px;
    }

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

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

    .category-covers {
        height: 115px;
    }

    .content-section,
    .filter-box,
    .player-panel,
    .detail-card,
    .side-card {
        padding: 18px;
        border-radius: 18px;
    }

    .page-hero {
        padding: 46px 0;
    }

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

    .detail-hero-inner {
        padding: 28px 0 42px;
    }

    .detail-poster {
        width: 180px;
    }

    .info-list {
        grid-template-columns: 1fr;
    }

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

    .footer-inner {
        align-items: flex-start;
    }
}

@media (max-width: 420px) {
    .brand-text strong {
        font-size: 16px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero h2 {
        font-size: 24px;
    }

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