:root {
    --bg: #0f172a;
    --bg-soft: #111827;
    --bg-card: rgba(30, 41, 59, 0.62);
    --bg-card-strong: rgba(30, 41, 59, 0.86);
    --border: rgba(148, 163, 184, 0.18);
    --border-strong: rgba(203, 213, 225, 0.28);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --subtle: #94a3b8;
    --deep: #020617;
    --accent: #e2e8f0;
    --accent-dark: #0f172a;
    --shadow: 0 24px 80px rgba(2, 6, 23, 0.48);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 46%, #0f172a 100%);
}

body.modal-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.94);
    border-bottom: 1px solid rgba(30, 41, 59, 0.92);
    backdrop-filter: blur(18px);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    color: #f8fafc;
    font-weight: 800;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #0f172a;
    background: linear-gradient(135deg, #f8fafc, #94a3b8);
    box-shadow: 0 14px 34px rgba(148, 163, 184, 0.24);
}

.brand-text {
    font-size: 20px;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #f8fafc, #cbd5e1 70%, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 4px;
}

.nav-link,
.mobile-link {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 650;
    border-radius: 12px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link {
    padding: 10px 13px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: #f8fafc;
    background: rgba(30, 41, 59, 0.84);
}

.nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.icon-button,
.menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.58);
    transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.icon-button:hover,
.menu-button:hover {
    color: #ffffff;
    border-color: rgba(203, 213, 225, 0.32);
    background: rgba(51, 65, 85, 0.9);
}

.menu-button {
    display: none;
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(30, 41, 59, 0.96);
    background: rgba(15, 23, 42, 0.98);
}

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

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

.mobile-link {
    padding: 12px 14px;
}

.search-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    padding: 76px 16px 16px;
}

.search-modal.is-open {
    display: block;
}

.search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(8px);
}

.search-panel {
    position: relative;
    width: min(760px, 100%);
    max-height: calc(100vh - 120px);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow);
}

.search-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.search-panel h2 {
    margin: 0;
    font-size: 20px;
}

.global-search-input,
.page-filter-input,
.page-sort-select {
    width: 100%;
    color: #f8fafc;
    outline: none;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.78);
}

.global-search-input {
    width: calc(100% - 40px);
    margin: 20px;
    padding: 15px 16px;
}

.search-results {
    display: grid;
    gap: 10px;
    max-height: 52vh;
    overflow: auto;
    padding: 0 20px 22px;
}

.search-result-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.46);
    transition: border 0.2s ease, background 0.2s ease;
}

.search-result-card:hover {
    border-color: rgba(203, 213, 225, 0.28);
    background: rgba(51, 65, 85, 0.7);
}

.search-result-card img {
    width: 92px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
}

.search-result-card strong,
.search-result-card span,
.search-result-card em {
    display: block;
}

.search-result-card strong {
    margin-bottom: 5px;
}

.search-result-card span {
    color: var(--muted);
    font-size: 13px;
}

.search-result-card em {
    margin-top: 6px;
    color: var(--subtle);
    font-size: 12px;
    font-style: normal;
}

.hero-carousel {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    background: #020617;
}

.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-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img,
.detail-hero-bg img,
.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg span {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #0f172a 0%, rgba(15, 23, 42, 0.86) 42%, rgba(15, 23, 42, 0.12) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
}

.hero-panel {
    width: min(680px, 100%);
    padding-top: 36px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    margin-bottom: 16px;
    padding: 7px 12px;
    border: 1px solid rgba(203, 213, 225, 0.18);
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.62);
    font-size: 13px;
    font-weight: 700;
}

.hero-panel h1,
.hero-panel h2,
.page-hero h1,
.detail-main h1 {
    margin: 0;
    color: #ffffff;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.hero-panel h1,
.hero-panel h2 {
    max-width: 760px;
    font-size: clamp(42px, 6vw, 78px);
}

.hero-movie-title {
    margin-top: 14px !important;
    font-size: clamp(30px, 4vw, 48px) !important;
    color: #cbd5e1 !important;
}

.hero-panel p,
.page-hero p {
    max-width: 660px;
    margin: 20px 0 0;
    color: #cbd5e1;
    font-size: clamp(16px, 1.6vw, 20px);
    line-height: 1.8;
}

.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    color: #cbd5e1;
}

.hero-meta span,
.detail-meta span,
.genre-list span,
.tag-list a,
.hero-tags a,
.page-hero-links a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.72);
    color: #cbd5e1;
    font-size: 13px;
}

.hero-tags,
.tag-list,
.genre-list,
.page-hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-tags a,
.tag-list a,
.page-hero-links a {
    border: 1px solid rgba(148, 163, 184, 0.15);
    transition: color 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.hero-tags a:hover,
.tag-list a:hover,
.page-hero-links a:hover {
    color: #ffffff;
    border-color: rgba(226, 232, 240, 0.35);
    background: rgba(51, 65, 85, 0.86);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease, color 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: #0f172a;
    background: #f8fafc;
}

.button-primary:hover {
    background: #ffffff;
}

.button-ghost {
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.46);
}

.button-ghost:hover {
    border-color: rgba(226, 232, 240, 0.36);
    background: rgba(30, 41, 59, 0.88);
}

.hero-controls {
    position: absolute;
    right: clamp(18px, 5vw, 70px);
    bottom: 32px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 13px;
}

.hero-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(226, 232, 240, 0.14);
    border-radius: 999px;
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.68);
    font-size: 28px;
    transition: background 0.2s ease, border 0.2s ease;
}

.hero-arrow:hover {
    border-color: rgba(226, 232, 240, 0.35);
    background: rgba(51, 65, 85, 0.9);
}

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

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

.hero-dot.is-active {
    width: 32px;
    background: #f8fafc;
}

.section {
    padding: 70px 0;
}

.section-panel {
    margin: 24px 0;
    background: rgba(15, 23, 42, 0.28);
}

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

.section-head h2,
.detail-block h2,
.aside-card h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -0.03em;
}

.section-head p,
.detail-block p,
.footer-brand p,
.site-footer p,
.category-card em {
    color: #94a3b8;
    line-height: 1.8;
}

.section-head p {
    margin: 0;
}

.section-link {
    color: #cbd5e1;
    font-weight: 800;
    white-space: nowrap;
}

.section-link:hover {
    color: #ffffff;
}

.search-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.52);
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.25);
}

.search-strip h2 {
    margin: 0 0 8px;
}

.search-strip p {
    margin: 0;
    color: #94a3b8;
}

.movie-grid,
.category-grid {
    display: grid;
    gap: 22px;
}

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

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

.catalog-grid {
    align-items: stretch;
}

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

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

.movie-card,
.category-card,
.aside-card {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: 0 18px 60px rgba(2, 6, 23, 0.16);
}

.movie-card {
    overflow: hidden;
    transition: transform 0.25s ease, border 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    border-color: rgba(226, 232, 240, 0.3);
    background: var(--bg-card-strong);
}

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

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #020617;
}

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

.movie-card:hover .movie-poster img,
.category-card:hover .category-cover img {
    transform: scale(1.06);
}

.poster-shade,
.category-cover span {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 28%, rgba(2, 6, 23, 0.88) 100%);
}

.play-mark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: auto;
    border-radius: 999px;
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.74);
    opacity: 0;
    transform: scale(0.86);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.type-badge,
.rank-badge {
    position: absolute;
    top: 10px;
    z-index: 2;
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 800;
}

.type-badge {
    right: 10px;
    padding: 0 9px;
}

.rank-badge {
    left: 10px;
    width: 30px;
    justify-content: center;
}

.movie-card-body {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.movie-card-body strong {
    color: #f8fafc;
    font-size: 17px;
    line-height: 1.35;
}

.movie-desc {
    display: -webkit-box;
    min-height: 44px;
    overflow: hidden;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #94a3b8;
    font-size: 12px;
}

.movie-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: #475569;
}

.category-card {
    overflow: hidden;
    transition: transform 0.25s ease, border 0.25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(226, 232, 240, 0.28);
}

.category-card a {
    display: grid;
    grid-template-columns: 42% 1fr;
    min-height: 260px;
}

.category-cover {
    position: relative;
    overflow: hidden;
    background: #020617;
}

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

.category-card-body {
    display: grid;
    align-content: start;
    gap: 13px;
    padding: 24px;
}

.category-card-body strong {
    color: #ffffff;
    font-size: 24px;
}

.category-card-body em {
    font-style: normal;
}

.category-card-body ul {
    display: grid;
    gap: 8px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.category-card-body li a {
    display: inline;
    color: #cbd5e1;
    font-size: 14px;
}

.category-card-body li a:hover {
    color: #ffffff;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 110px 0 76px;
    background: radial-gradient(circle at 20% 10%, rgba(148, 163, 184, 0.18), transparent 35%), #0f172a;
}

.page-hero-compact {
    padding: 82px 0 56px;
}

.page-hero-bg,
.detail-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-hero-bg span,
.detail-hero-bg span {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), #0f172a 90%);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    max-width: 900px;
    font-size: clamp(36px, 6vw, 72px);
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 14px;
    margin-bottom: 24px;
}

.page-filter-input,
.page-sort-select {
    min-height: 48px;
    padding: 0 15px;
}

.page-sort-select {
    appearance: none;
}

.empty-state {
    margin-top: 28px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.42);
    color: #cbd5e1;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 34px 0 70px;
}

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

.detail-main,
.detail-aside {
    min-width: 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
    color: #94a3b8;
    font-size: 14px;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background: #020617;
    box-shadow: var(--shadow);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.36);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-overlay span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    color: #0f172a;
    background: rgba(248, 250, 252, 0.96);
    font-size: 30px;
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.38);
}

.player-controls {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.player-shell:hover .player-controls,
.player-shell.is-playing .player-controls {
    opacity: 1;
    transform: translateY(0);
}

.player-controls button {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
}

.player-controls button:hover {
    background: rgba(51, 65, 85, 0.88);
}

.player-message {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5;
    transform: translate(-50%, -50%);
    padding: 12px 16px;
    border-radius: 12px;
    color: #fecaca;
    background: rgba(127, 29, 29, 0.74);
}

.detail-main h1 {
    margin-top: 28px;
    font-size: clamp(30px, 5vw, 56px);
}

.detail-one-line {
    margin: 18px 0 0;
    color: #cbd5e1;
    font-size: 20px;
    line-height: 1.8;
}

.detail-block {
    margin-top: 32px;
    padding: 26px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.5);
}

.detail-block h2 {
    font-size: 25px;
}

.detail-block p {
    margin: 0;
    color: #cbd5e1;
    font-size: 16px;
}

.detail-aside {
    display: grid;
    align-content: start;
    gap: 18px;
}

.aside-card {
    padding: 18px;
    background: rgba(15, 23, 42, 0.62);
}

.cover-card {
    display: grid;
    gap: 14px;
}

.cover-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 16px;
}

.rank-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-list a {
    display: grid;
    grid-template-columns: 34px 1fr;
    column-gap: 10px;
    row-gap: 2px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.38);
}

.rank-list a:hover {
    background: rgba(51, 65, 85, 0.72);
}

.rank-list span {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    color: #0f172a;
    background: #e2e8f0;
    font-weight: 900;
}

.rank-list strong {
    overflow: hidden;
    color: #f8fafc;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-list em {
    color: #94a3b8;
    font-size: 12px;
    font-style: normal;
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(2, 6, 23, 0.42);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 26px;
    padding-top: 48px;
    padding-bottom: 34px;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #f8fafc;
    font-size: 16px;
}

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

.site-footer a,
.site-footer p {
    color: #94a3b8;
    font-size: 14px;
}

.site-footer a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding: 18px 0 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.footer-bottom p {
    margin: 0;
}

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

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

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

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

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

    .detail-aside {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

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

    .hero-carousel {
        min-height: 640px;
    }

    .hero-bg span {
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.44), #0f172a 78%);
    }

    .hero-content {
        align-items: flex-end;
        padding-bottom: 96px;
    }

    .hero-panel h1,
    .hero-panel h2 {
        font-size: 38px;
    }

    .hero-controls {
        right: 16px;
        left: 16px;
        justify-content: center;
    }

    .section {
        padding: 48px 0;
    }

    .section-head,
    .search-strip {
        display: grid;
    }

    .movie-grid,
    .movie-grid-rank,
    .category-grid,
    .category-grid-wide,
    .detail-aside,
    .footer-grid,
    .filter-bar {
        grid-template-columns: 1fr;
    }

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

    .category-cover {
        aspect-ratio: 16 / 9;
    }

    .player-controls {
        opacity: 1;
        transform: none;
    }

    .player-controls button {
        min-height: 34px;
        padding: 0 10px;
        font-size: 13px;
    }

    .detail-block {
        padding: 20px;
    }
}

@media (max-width: 460px) {
    .brand-mark {
        width: 30px;
        height: 30px;
    }

    .brand-text {
        font-size: 16px;
    }

    .icon-button,
    .menu-button {
        width: 38px;
        height: 38px;
    }

    .hero-actions {
        display: grid;
    }

    .hero-arrow {
        width: 42px;
        height: 42px;
    }

    .search-result-card {
        grid-template-columns: 74px 1fr;
    }

    .search-result-card img {
        width: 74px;
        height: 54px;
    }
}
