﻿:root {
  --bg: #000;
  --bg-card: #1e1f2b;
  --line-strong: #3d4260;
  --text: #f4f6fb;
  --text-dim: #b6bdd3;
  --brand: #ef2b5f;
  --brand-strong: #d52150;
  --accent: #ffca54;
  --accent-soft: rgba(255, 202, 84, 0.2);
  --radius: 12px;
  --mobile-lang-trigger-ch: 8;
  --mobile-lang-menu-ch: 12;
  --mobile-sort-trigger-ch: 14;
  --mobile-sort-menu-ch: 18;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-x: none;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.catalog-app {
  width: min(1240px, calc(100% - 20px));
  margin: 10px auto 26px;
}

.catalog-app.is-legal-route .sidebar-column,
.catalog-app.is-legal-route .main-column > .controls,
.catalog-app.is-legal-route .main-column > .history-block,
.catalog-app.is-legal-route .main-column > .results-block,
.catalog-app.is-legal-route .main-column > .my-list-block,
.catalog-app.is-legal-route .main-column > .profile-block,
.catalog-app.is-legal-route .main-column > .profile-login-screen:not([hidden]),
.catalog-app.is-legal-route .main-column > .profile-settings-screen:not([hidden]),
.catalog-app.is-legal-route .main-column > #rateScreen.profile-info-screen:not([hidden]) {
  display: none;
}

.catalog-app.is-legal-route .main-column {
  max-width: none;
  margin: 0;
}

.catalog-app.is-legal-route .main-column > #termsScreen.profile-info-screen:not([hidden]),
.catalog-app.is-legal-route .main-column > #privacyScreen.profile-info-screen:not([hidden]) {
  display: block;
}

.catalog-app.is-legal-route .mobile-bottom-nav {
  display: none !important;
}

.layout-columns {
  display: block;
}

.topbar,
.controls,
.tags-block,
.history-block,
.results-block,
.my-list-block,
.profile-block {
  margin-top: 12px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid #25293a;
  padding: 12px;
}

.results-block {
  position: relative;
  --results-block-padding: 12px;
}

.results-block.is-search-context-active {
  border-color: #425184;
  box-shadow:
    inset 0 0 0 1px rgba(120, 146, 228, 0.14),
    0 12px 24px rgba(0, 0, 0, 0.2);
}

.my-list-block,
.profile-block,
.profile-login-screen,
.profile-settings-screen,
.profile-info-screen,
.mobile-bottom-nav {
  display: none;
}

.results-swipe-current,
.results-swipe-preview {
  background: var(--bg-card);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, opacity;
}

.results-swipe-current {
  width: 100%;
  position: relative;
  z-index: 1;
}

.results-swipe-preview {
  position: absolute;
  inset: var(--results-block-padding);
  pointer-events: none;
  z-index: 0;
}

.results-block:not(.is-swipe-active) .results-swipe-preview {
  display: none;
}

.results-block.is-swipe-active {
  overflow: hidden;
}

.topbar {
  margin-top: 0;
  padding: 10px 10px 8px;
  background: #000;
  border: none;
  border-radius: 0;
}

.header-shell {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
}

.brand-inline {
  display: inline-flex;
  justify-self: start;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 12px;
}

.brand-logo-desktop {
  display: none;
}

.brand-logo-mobile {
  display: block;
  object-fit: contain;
}

.brand-logo.is-hidden {
  display: none;
}

.brand-title {
  display: none;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.desktop-lang {
  display: none;
}

@media (max-width: 979.98px) {
  .header-shell .desktop-lang {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
  }
}

.search-wrap {
  position: relative;
}

.header-search-wrap {
  min-width: 0;
}

.search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
}

input[type="search"],
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #1a1d2a;
  color: var(--text);
  font-size: 15px;
  padding: 0 14px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

input[type="search"]::placeholder {
  color: #8e95ad;
}

#searchInput {
  min-height: 46px;
  border: 1px solid #1c2132;
  background-color: #161a28;
  padding-left: 40px;
  background-image: url("img/icons/search.svg");
  background-repeat: no-repeat;
  background-position: 14px 50%;
  background-size: 16px 16px;
  font-size: 16px;
}

#searchInput::placeholder {
  color: #7f8598;
}

input[type="search"]:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(239, 43, 95, 0.2);
}

select {
  color-scheme: dark;
}

select option,
select optgroup {
  background-color: #171c2d;
  color: #f4f6fb;
}

select option:checked {
  background-color: #273359;
  color: #ffffff;
}

.join-btn {
  min-height: 40px;
  min-width: 44px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  font-weight: 700;
}

.btn-icon {
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
}

.join-label {
  display: none;
}

.mobile-search-back {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #f4f6fb;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.mobile-search-back-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.mobile-search-submit {
  display: none;
  min-height: 34px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #f4f6fb;
  font-size: 15px;
  font-weight: 700;
  padding: 0 2px;
  cursor: pointer;
}

.lang-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid rgba(95, 108, 151, 0.6);
  border-radius: 999px;
  background: linear-gradient(180deg, #1a1f31 0%, #131827 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 6px 20px rgba(0, 0, 0, 0.28);
  padding: 0 28px 0 32px;
  color: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  z-index: 20;
}

.lang-shell:hover {
  border-color: rgba(130, 146, 196, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.lang-shell:focus-within {
  border-color: rgba(239, 43, 95, 0.8);
  box-shadow: 0 0 0 3px rgba(239, 43, 95, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.lang-shell.is-open {
  border-color: rgba(239, 43, 95, 0.8);
  box-shadow: 0 0 0 3px rgba(239, 43, 95, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  z-index: 120;
}

.lang-icon {
  position: absolute;
  left: 12px;
  width: 15px;
  height: 15px;
  opacity: 0.95;
  pointer-events: none;
  filter: drop-shadow(0 0 2px rgba(35, 149, 255, 0.32));
}

.caret-icon {
  position: absolute;
  right: 12px;
  width: 12px;
  height: 12px;
  opacity: 0.9;
  pointer-events: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.lang-shell.is-open .caret-icon,
.lang-shell:focus-within .caret-icon {
  transform: rotate(180deg);
  opacity: 1;
}

.sort-shell {
  width: 100%;
  min-height: 44px;
  padding: 0 30px 0 12px;
  z-index: 15;
}

.sort-shell .lang-trigger {
  min-height: 42px;
  min-width: 0;
  width: 100%;
  font-size: 15px;
}

.sort-shell .lang-menu {
  left: 0;
  right: 0;
  min-width: 0;
}

.lang-trigger {
  min-height: 38px;
  width: auto;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #f3f6ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-trigger:focus-visible {
  outline: none;
}

.lang-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: none;
  pointer-events: none;
}

.lang-menu {
  list-style: none;
  margin: 8px 0 0;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 152px;
  max-height: 300px;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid #3a4467;
  background: #141a2a;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  scrollbar-width: thin;
  scrollbar-color: rgba(239, 43, 95, 0.65) rgba(8, 12, 24, 0.96);
  display: none;
  z-index: 60;
}

.lang-menu::-webkit-scrollbar {
  width: 10px;
}

.lang-menu::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(8, 12, 24, 0.96);
}

.lang-menu::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid rgba(8, 12, 24, 0.96);
  background: linear-gradient(180deg, #ef2b5f 0%, #ca1f4b 100%);
}

.lang-menu::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff4c7b 0%, #de2d5d 100%);
}

.lang-menu.is-open {
  display: block;
}

.lang-menu li {
  margin: 0;
  padding: 0;
}

.lang-menu-item {
  width: 100%;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #eef2ff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  min-height: 42px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.lang-menu-item:hover,
.lang-menu-item:focus-visible {
  background: #29314d;
  color: #fff;
  outline: none;
}

.lang-menu-item.is-selected {
  background: linear-gradient(180deg, rgba(239, 43, 95, 0.32), rgba(202, 31, 75, 0.2));
  color: #fff;
}

.mobile-subnav {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-subnav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-categories-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cat-scroll-container {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  white-space: nowrap;
  flex: 1;
}

.cat-scroll-container::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  background: transparent;
  border: none;
  color: #7f8598;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0;
  cursor: pointer;
  transition: color 0.15s;
  flex-shrink: 0;
}

.cat-tab.active {
  color: #fff;
}

.cat-menu-btn {
  background: transparent;
  border: none;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  padding: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.cat-menu-icon {
  display: block;
  width: 16px;
  height: 16px;
  opacity: 0.96;
}

.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bottom-sheet-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  background: #1e1e20;
  border-radius: 24px 24px 0 0;
  padding: 24px 20px 30px;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.bottom-sheet-overlay.is-visible .bottom-sheet {
  transform: translateY(0);
}

.bottom-sheet-header {
  margin-bottom: 20px;
}

.bottom-sheet-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.bottom-sheet-body {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  overflow-y: auto;
  padding-bottom: 10px;
}

.bs-chip {
  background: #313134;
  border: none;
  border-radius: 8px;
  color: #d1d1d6;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.bs-chip.active {
  background: var(--brand);
  color: #fff;
}

.bottom-sheet-footer {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
}

.bs-btn {
  flex: 1;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  transition: filter 0.2s;
}

.bs-btn:active {
  filter: brightness(0.8);
}

.bs-reset {
  background: #3a3a3c;
  color: #fff;
}

.bs-confirm {
  background: var(--brand);
  color: #fff;
}

.mobile-lang {
  margin-left: 0;
  justify-self: end;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0 14px 0 22px;
}

.mobile-lang .lang-icon {
  left: 0;
  width: 20px;
  height: 20px;
}

.mobile-lang .caret-icon {
  right: 4px;
  width: 10px;
  height: 10px;
}

.mobile-lang .lang-trigger {
  min-height: 30px;
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  padding-right: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-lang .lang-menu {
  right: 0;
  min-width: 0;
  width: min(calc(var(--mobile-lang-menu-ch) * 1ch + 10px), calc(100vw - 14px));
  max-height: 184px;
  padding: 3px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mobile-lang .lang-menu .lang-menu-item {
  min-height: 30px;
  padding: 6px 8px;
  font-size: 12px;
}

.mobile-lang .lang-menu::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.suggestions {
  list-style: none;
  padding: 6px;
  margin: 6px 0 0;
  position: absolute;
  inset: auto 0 auto 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #171c2d;
  max-height: 240px;
  overflow: auto;
  z-index: 40;
  display: none;
}

.suggestions.visible {
  display: block;
}

.suggestions li {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.suggestions li:hover,
.suggestions li.active {
  background: rgba(239, 43, 95, 0.22);
}

.control-grid {
  display: grid;
  grid-template-columns: minmax(0, 320px) auto;
  align-items: end;
  gap: 12px;
}

.top10-day-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(239, 43, 95, 0.52);
  background: linear-gradient(180deg, rgba(239, 43, 95, 0.22), rgba(202, 31, 75, 0.16));
  color: #fff;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  justify-self: end;
}

.top10-day-btn:hover,
.top10-day-btn:focus-visible,
.top10-day-btn.is-active {
  border-color: rgba(255, 137, 169, 0.92);
  background: linear-gradient(180deg, rgba(239, 43, 95, 0.38), rgba(202, 31, 75, 0.3));
  outline: none;
}

.mobile-top10-btn {
  display: none;
  border: none;
  background: transparent;
  color: #fff;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  min-height: 24px;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
}

.mobile-top10-btn.is-active {
  color: #ffd6e2;
}

.top10-btn-icon {
  width: 14px;
  height: 14px;
  display: block;
  flex-shrink: 0;
}

.top10-btn-text {
  line-height: 1;
}

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

h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  line-height: 1.1;
}

.meta {
  color: var(--text-dim);
  font-size: 12px;
  text-align: right;
}

.text-btn {
  border: none;
  background: transparent;
  color: #f7a5bc;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.text-btn:hover {
  color: #ffd9e5;
}

.tag-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px 2px 8px;
  max-height: min(62vh, 560px);
  scrollbar-width: thin;
  scrollbar-color: rgba(239, 43, 95, 0.65) rgba(8, 12, 24, 0.96);
  user-select: none;
}

.tag-list::-webkit-scrollbar {
  width: 10px;
}

.tag-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(8, 12, 24, 0.96);
}

.tag-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid rgba(8, 12, 24, 0.96);
  background: linear-gradient(180deg, #ef2b5f 0%, #ca1f4b 100%);
}

.history-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #3a425f;
  background: #161a2a;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: normal;
  text-align: center;
}

.chip.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.tag-list .chip {
  width: 100%;
  max-width: 100%;
  flex-shrink: 0;
  min-height: 46px;
  border-radius: 12px;
  line-height: 1.25;
  padding: 10px 12px;
  justify-content: flex-start;
  text-align: left;
  word-break: normal;
  overflow-wrap: anywhere;
}

.history-list .chip {
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip.history {
  background: #101426;
}

.history-clear-btn {
  border: none;
  background: transparent;
  color: #f4f6fb;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.history-clear-btn:hover,
.history-clear-btn:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.history-clear-icon {
  width: 18px;
  height: 18px;
  display: block;
  opacity: 0.9;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  background: var(--bg-card);
}

.search-context-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 14px;
  padding: 10px;
  border: 1px solid #303952;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(20, 25, 39, 0.96), rgba(13, 18, 30, 0.98)),
    radial-gradient(110% 130% at 0% -20%, rgba(88, 126, 255, 0.16), transparent 62%),
    radial-gradient(120% 150% at 100% 120%, rgba(239, 43, 95, 0.16), transparent 64%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 10px 22px rgba(0, 0, 0, 0.28);
}

.search-context-pill {
  min-height: 36px;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid #3a4768;
  background: linear-gradient(180deg, #1f2940, #1a2338);
  color: #f0f4ff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 10px;
  flex: 1 1 260px;
  min-width: 0;
}

.search-context-lead {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #b4c3ea;
  white-space: nowrap;
}

.search-context-query {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.search-context-btn {
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid #3a4564;
  background: linear-gradient(180deg, #1f273c, #181f31);
  color: #dbe5ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.search-context-btn:hover,
.search-context-btn:focus-visible {
  border-color: rgba(239, 43, 95, 0.58);
  background: linear-gradient(180deg, #25314d, #1c263e);
  transform: translateY(-1px);
  outline: none;
}

.search-context-clear {
  border-color: rgba(239, 43, 95, 0.58);
  background: linear-gradient(180deg, rgba(239, 43, 95, 0.32), rgba(239, 43, 95, 0.2));
  color: #fff;
  white-space: nowrap;
  padding: 0 14px;
}

@media (max-width: 560px) {
  .search-context-bar {
    gap: 8px;
    padding: 9px;
  }

  .search-context-pill {
    width: 100%;
  }

  .search-context-back,
  .search-context-clear {
    flex: 1 1 auto;
  }
}

.my-list-categories-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.my-list-tabs {
  flex: 1;
}

.my-list-history-clear-btn {
  flex-shrink: 0;
}

.my-list-block .results-grid,
.profile-posters .results-grid {
  background: transparent;
}

.my-list-block .my-list-favorites-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.my-list-block .my-list-favorites-grid .compact-card {
  border-radius: 8px;
}

.my-list-block .my-list-favorites-grid .compact-card .poster {
  aspect-ratio: 2 / 3;
}

.my-list-block .my-list-favorites-grid .compact-card .poster-overlay {
  padding: 3px;
}

.my-list-block .my-list-favorites-grid .compact-card .tag-row {
  gap: 2px;
}

.my-list-block .my-list-favorites-grid .compact-card .poster-tag {
  padding: 1px 4px;
  font-size: 6px;
  line-height: 1.05;
}

.my-list-block .my-list-favorites-grid .compact-card .poster-tag.service {
  display: none;
}

.my-list-block .my-list-favorites-grid .compact-card .card-body {
  display: block;
  padding: 5px 4px 6px;
}

.my-list-block .my-list-favorites-grid .compact-card h3 {
  font-size: 10px;
  line-height: 1.18;
  -webkit-line-clamp: 2;
}

.my-list-history-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.my-list-history-card {
  position: relative;
  min-width: 0;
  border: 1px solid #2b3044;
  border-radius: 8px;
  background: #1e2030;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 6px 34px 6px 6px;
}

.my-list-history-card .poster {
  width: 62px;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
}

.my-list-history-body {
  min-width: 0;
}

.my-list-history-body h3 {
  font-size: 13px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.my-list-history-body p {
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
}

.history-item-remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  border: none;
  background: transparent;
  color: #f4f6fb;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.history-item-remove-btn:hover,
.history-item-remove-btn:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.history-item-remove-icon {
  width: 14px;
  height: 14px;
  display: block;
  opacity: 0.88;
}

@media (max-width: 420px) {
  .my-list-block .my-list-favorites-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .my-list-history-card {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 8px;
  }

  .my-list-history-card .poster {
    width: 56px;
  }
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.profile-avatar-wrap {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  overflow: hidden;
  background: #2a314a;
  flex-shrink: 0;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.profile-avatar.is-visible {
  display: block;
}

.profile-avatar-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
}

.profile-meta h2 {
  font-size: 20px;
}

.profile-meta p {
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 13px;
}

.profile-id-row {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.profile-id-row p {
  margin: 0;
}

.profile-login-link {
  border: none;
  background: transparent;
  color: #f7a5bc;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  cursor: pointer;
}

.profile-login-link[hidden],
.profile-logout-btn[hidden] {
  display: none !important;
}

.profile-login-link img {
  width: 14px;
  height: 14px;
  opacity: 0.9;
}

.profile-login-screen {
  position: fixed;
  inset: 0;
  z-index: 260;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  background:
    radial-gradient(90% 55% at 50% 0%, rgba(239, 43, 95, 0.26), transparent 72%),
    radial-gradient(65% 44% at 90% 8%, rgba(90, 115, 255, 0.19), transparent 72%),
    linear-gradient(180deg, #0c1120 0%, #070b17 100%);
  overflow: auto;
}

.profile-login-cover {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  border: none;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(22, 28, 45, 0.75), rgba(13, 18, 32, 0.94));
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  padding: max(10px, env(safe-area-inset-top, 0px)) 12px calc(18px + env(safe-area-inset-bottom, 0px));
}

.profile-login-head {
  min-height: 54px;
  display: flex;
  align-items: center;
}

.profile-login-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 4px 10px 22px;
}

.profile-login-logo {
  width: min(40vw, 148px);
  height: auto;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.35));
}

.profile-telegram-login-btn {
  appearance: none;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid #2f6ba9;
  background: linear-gradient(180deg, #3ca8f7 0%, #2384d4 100%);
  color: #fff;
  width: min(100%, 290px);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  padding: 0 14px;
  cursor: pointer;
  font-family: inherit;
}

.profile-telegram-login-btn img {
  width: 18px;
  height: 18px;
}

.profile-telegram-login-btn:disabled {
  cursor: wait;
  opacity: 0.82;
}

.profile-login-consent {
  margin-top: 4px;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #b8c2da;
  font-size: 12px;
  line-height: 1.35;
}

.profile-consent-link {
  border: none;
  background: transparent;
  color: #f4f6fb;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 0;
}

.profile-posters,
.profile-settings,
.profile-language {
  margin-top: 14px;
}

.profile-settings-list [data-profile-language] {
  justify-content: flex-start;
}

.profile-settings-list [data-profile-language].is-selected {
  border-color: #586aa6;
  background: #1e2743;
}

.profile-settings-list [data-profile-language].is-selected::after {
  content: "✓";
  margin-left: auto;
  font-size: 14px;
  font-weight: 800;
  color: #c8d3ff;
}

.profile-history-link {
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.profile-history-link img {
  width: 16px;
  height: 16px;
  opacity: 0.9;
  flex-shrink: 0;
}

.profile-posters .results-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.profile-posters .compact-card {
  border-radius: 7px;
}

.profile-posters .compact-card .poster {
  aspect-ratio: 2 / 3;
}

.profile-posters .compact-card .card-body {
  display: none;
}

.profile-posters .poster-overlay {
  padding: 2px;
}

.profile-posters .tag-row {
  gap: 2px;
}

.profile-posters .poster-tag {
  padding: 1px 3px;
  font-size: 6px;
  border-width: 1px;
  line-height: 1.05;
}

.profile-posters .poster-tag.service {
  display: none;
}

.profile-posters h3,
.profile-settings h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
}

.profile-row-btn {
  width: 100%;
  min-height: 46px;
  border: 1px solid #32384f;
  border-radius: 10px;
  background: #171c2d;
  color: #eef2ff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.profile-row-btn img {
  width: 16px;
  height: 16px;
  opacity: 0.9;
  flex-shrink: 0;
}

.profile-logout-btn {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 130, 160, 0.7);
  border-radius: 10px;
  background: linear-gradient(180deg, #ef2b5f, #ca1f4b);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.profile-screen-head {
  position: relative;
  min-height: 44px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  margin-bottom: 14px;
}

.profile-screen-back {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.profile-screen-back img {
  width: 22px;
  height: 22px;
}

.profile-screen-head h2 {
  grid-column: 2;
  text-align: center;
  font-size: 18px;
}

.profile-settings-list {
  display: grid;
  gap: 8px;
}

.profile-info-content {
  display: grid;
  gap: 12px;
  color: #c8cedf;
  font-size: 13px;
  line-height: 1.55;
}

.profile-info-content h3 {
  margin-top: 4px;
  color: #f4f6fb;
  font-size: 14px;
  line-height: 1.25;
}

.profile-info-content p {
  margin: 0;
}

.rate-content {
  text-align: center;
}

.rate-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
  margin: 4px 0;
}

.rate-star-btn {
  min-height: auto;
  border: none;
  background: transparent;
  color: #4f566d;
  font-size: 36px;
  line-height: 1;
  padding: 0 2px;
  box-shadow: none;
  transition: color 0.16s ease, transform 0.16s ease;
}

.rate-star-btn:hover {
  background: transparent;
  color: #ffca54;
  box-shadow: none;
  transform: scale(1.06);
}

.rate-star-btn.is-active {
  color: #ffca54;
}

.rate-value-label {
  margin: 0;
  color: #aeb6ce;
  font-size: 13px;
}

.rate-review-field {
  display: grid;
  gap: 7px;
  text-align: left;
}

.rate-review-field span {
  color: #d6dced;
  font-size: 12px;
  font-weight: 700;
}

.rate-review-field textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid #32384f;
  border-radius: 10px;
  background: #171c2d;
  color: #eef2ff;
  font: inherit;
  padding: 10px;
  resize: vertical;
}

.rate-review-field textarea:focus {
  outline: none;
  border-color: #ef2b5f;
  box-shadow: 0 0 0 2px rgba(239, 43, 95, 0.2);
}

.rate-review-field textarea:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.rate-review-status {
  min-height: 18px;
  margin: 0;
  color: #9ea6c2;
  font-size: 12px;
}

.rate-review-status.is-success {
  color: #79d2a8;
}

.rate-review-status.is-error {
  color: #ff9caf;
}

.rate-action-btn {
  margin-top: 4px;
}

.rate-public-reviews {
  margin-top: 12px;
  border-top: 1px solid #2a3042;
  padding-top: 12px;
  display: grid;
  gap: 10px;
  text-align: left;
}

.rate-public-title {
  margin: 0;
  font-size: 15px;
  color: #f3f6ff;
}

.rate-public-meta {
  margin: 0;
  color: #9ea6c2;
  font-size: 12px;
}

.rate-public-list {
  display: grid;
  gap: 8px;
}

.rate-public-card {
  border: 1px solid #2f354a;
  background: #151b2b;
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 6px;
}

.rate-public-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rate-public-author {
  color: #e8ecff;
  font-size: 13px;
  font-weight: 700;
}

.rate-public-rating {
  color: #ffca54;
  font-size: 13px;
  white-space: nowrap;
}

.rate-public-time {
  color: #8f98b4;
  font-size: 11px;
}

.rate-public-text {
  margin: 0;
  color: #cfd6ef;
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.profile-version {
  margin-top: 16px;
  text-align: center;
  color: #8c94ab;
  font-size: 12px;
  letter-spacing: 0.03em;
}

.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 240;
  border-top: 1px solid #22283a;
  background: rgba(8, 10, 18, 0.98);
  backdrop-filter: blur(12px);
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  padding: 8px calc(8px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left));
}

.mobile-bottom-btn {
  border: none;
  background: transparent;
  color: #9ea6c2;
  min-height: 52px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.mobile-bottom-btn img {
  width: 22px;
  height: 22px;
  opacity: 0.92;
  transition: opacity 0.16s ease, filter 0.16s ease;
}

.mobile-bottom-btn.is-active {
  color: #ffffff;
  background: rgba(239, 43, 95, 0.15);
}

.mobile-bottom-btn.is-active img {
  opacity: 1;
  filter: brightness(1.25);
}

@media (min-width: 980px) {
  .catalog-app.is-legal-route {
    margin-bottom: 26px;
  }

  .catalog-app.is-legal-route .layout-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-app {
    margin-bottom: 108px;
  }

  .mobile-bottom-nav {
    left: var(--desktop-bottom-nav-left, 50%);
    right: auto;
    bottom: 12px;
    width: var(--desktop-bottom-nav-width, clamp(460px, 54vw, 720px));
    max-width: calc(100% - 30px);
    transform: translateX(-50%);
    border: 1px solid rgba(58, 66, 92, 0.78);
    border-radius: 14px;
    background:
      linear-gradient(180deg, rgba(18, 23, 36, 0.94), rgba(12, 16, 28, 0.96)),
      radial-gradient(100% 120% at 50% -30%, rgba(88, 106, 184, 0.1), transparent 68%);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(10px);
    display: grid;
    gap: 4px;
    padding: 6px;
  }

  .mobile-bottom-btn {
    min-height: 50px;
    border-radius: 10px;
    border: 1px solid transparent;
    color: #9ea7c5;
    gap: 3px;
    font-size: 12px;
    line-height: 1.1;
    padding: 6px 8px 4px;
    transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
    position: relative;
  }

  .mobile-bottom-btn::after {
    content: "";
    width: 16px;
    height: 2px;
    border-radius: 999px;
    margin-top: 2px;
    background: transparent;
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
  }

  .mobile-bottom-btn:hover {
    color: #e2e8fb;
    background: rgba(255, 255, 255, 0.035);
  }

  .mobile-bottom-btn.is-active {
    color: #ffffff;
    border-color: rgba(239, 43, 95, 0.38);
    background: linear-gradient(180deg, rgba(239, 43, 95, 0.2), rgba(239, 43, 95, 0.08));
    box-shadow:
      inset 0 0 0 1px rgba(239, 43, 95, 0.2),
      0 4px 12px rgba(239, 43, 95, 0.2);
  }

  .mobile-bottom-btn.is-active::after {
    background: linear-gradient(90deg, #ff7aa4 0%, #ef2b5f 100%);
    box-shadow: 0 0 8px rgba(239, 43, 95, 0.48);
  }

  .mobile-bottom-btn img {
    width: 20px;
    height: 20px;
    opacity: 0.85;
  }

  .mobile-bottom-btn.is-active img {
    opacity: 1;
    filter: brightness(1.18);
  }

  .catalog-app.is-mobile-home .my-list-block,
  .catalog-app.is-mobile-home .profile-block,
  .catalog-app.is-mobile-home .profile-login-screen:not([hidden]),
  .catalog-app.is-mobile-home .profile-settings-screen:not([hidden]),
  .catalog-app.is-mobile-home .profile-info-screen:not([hidden]) {
    display: none;
  }

  .catalog-app.is-mobile-my-list .main-column > .controls,
  .catalog-app.is-mobile-my-list .main-column > .history-block,
  .catalog-app.is-mobile-my-list .main-column > .results-block,
  .catalog-app.is-mobile-my-list .profile-block,
  .catalog-app.is-mobile-my-list .profile-login-screen:not([hidden]),
  .catalog-app.is-mobile-my-list .profile-settings-screen:not([hidden]),
  .catalog-app.is-mobile-my-list .profile-info-screen:not([hidden]) {
    display: none;
  }

  .catalog-app.is-mobile-my-list .my-list-block {
    display: block;
  }

  .catalog-app.is-mobile-profile .main-column > .controls,
  .catalog-app.is-mobile-profile .main-column > .history-block,
  .catalog-app.is-mobile-profile .main-column > .results-block,
  .catalog-app.is-mobile-profile .my-list-block {
    display: none;
  }

  .catalog-app.is-mobile-profile .profile-block,
  .catalog-app.is-mobile-profile .profile-login-screen:not([hidden]),
  .catalog-app.is-mobile-profile .profile-settings-screen:not([hidden]),
  .catalog-app.is-mobile-profile .profile-info-screen:not([hidden]) {
    display: block;
  }

  .catalog-app.is-mobile-profile .profile-login-screen:not([hidden]) {
    position: static;
    inset: auto;
    z-index: auto;
    min-height: 0;
    margin-top: 12px;
    border-radius: var(--radius);
    border: 1px solid #25293a;
    background: var(--bg-card);
    padding: 12px;
    overflow: visible;
  }

  .catalog-app.is-mobile-profile .profile-login-screen:not([hidden]) .profile-login-cover {
    min-height: 0;
    border-radius: 10px;
    border: 1px solid #2a3044;
    background: linear-gradient(180deg, rgba(18, 24, 40, 0.96), rgba(12, 16, 28, 0.98));
    padding: 16px;
    backdrop-filter: none;
  }

  .catalog-app.is-mobile-profile .profile-login-screen:not([hidden]) .profile-login-content {
    padding: 0 8px 8px;
    gap: 14px;
  }

  .catalog-app.is-mobile-profile .profile-login-screen:not([hidden]) .profile-login-logo {
    width: 96px;
  }

  .catalog-app.is-mobile-profile .profile-settings-screen:not([hidden]),
  .catalog-app.is-mobile-profile .profile-info-screen:not([hidden]) {
    margin-top: 12px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid #25293a;
    padding: 12px;
  }
}

.card {
  border-radius: 12px;
  border: 1px solid #2b3044;
  background: #1e2030;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.compact-card {
  border-radius: 10px;
}

.catalog-card-link {
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.catalog-card-link:hover,
.catalog-card-link:focus-visible {
  border-color: rgba(239, 43, 95, 0.72);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  outline: none;
  transform: translateY(-1px);
}

.top-rank-card {
  border-color: rgba(255, 214, 120, 0.75);
}

.top-rank-1 {
  border-color: rgba(255, 218, 102, 0.95);
  box-shadow: 0 12px 28px rgba(255, 183, 54, 0.22);
}

.top-rank-2 {
  border-color: rgba(214, 229, 255, 0.88);
  box-shadow: 0 10px 24px rgba(162, 187, 219, 0.2);
}

.top-rank-3 {
  border-color: rgba(238, 184, 141, 0.9);
  box-shadow: 0 10px 24px rgba(184, 121, 83, 0.2);
}

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

.compact-card .poster-overlay {
  padding: 8px;
}

.compact-card .poster-tag {
  padding: 3px 6px;
  font-size: 9px;
}

.poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(160deg, #2f3555, #1f243a);
}

.poster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

.poster-overlay {
  position: absolute;
  inset: 0;
  padding: 10px;
  display: flex;
  align-items: flex-start;
  background: linear-gradient(180deg, rgba(4, 4, 8, 0.5) 0%, rgba(4, 4, 8, 0.08) 45%, rgba(4, 4, 8, 0.65) 100%);
}

.poster .tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.poster-tag {
  border-radius: 999px;
  background: rgba(15, 18, 30, 0.66);
  border: 1px solid rgba(170, 180, 210, 0.3);
  color: #f5f8ff;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 800;
}

.poster-tag.access.free {
  background: rgba(22, 110, 74, 0.74);
}

.poster-tag.access.paid {
  background: rgba(163, 103, 26, 0.8);
}

.top-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  border-radius: 999px;
  padding: 0 6px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
  color: #11131b;
  border: 1px solid transparent;
  text-transform: uppercase;
  white-space: nowrap;
}

.top-rank-badge-1 {
  background: linear-gradient(180deg, #ffeaa6, #ffc44d);
  border-color: rgba(255, 214, 120, 0.95);
}

.top-rank-badge-2 {
  background: linear-gradient(180deg, #f0f5ff, #cbd9f1);
  border-color: rgba(199, 214, 238, 0.96);
}

.top-rank-badge-3 {
  background: linear-gradient(180deg, #ffd7bf, #e2a97f);
  border-color: rgba(236, 181, 145, 0.95);
}

.card-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1 1 auto;
}

.compact-card .card-body {
  padding: 8px;
  gap: 6px;
}

.card h3 {
  font-size: 14px;
  line-height: 1.3;
  word-break: break-word;
}

.compact-card h3 {
  font-size: 13px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.watch-row {
  margin-top: auto;
}

.watch-row.single {
  display: block;
  margin-top: 2px;
}

.watch-btn {
  width: 100%;
  min-height: 32px;
  border-radius: 10px;
  border: 1px solid #4a5278;
  background: #20263e;
  color: #edf3ff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 8px;
}

.compact-card .watch-btn {
  min-height: 28px;
  border-radius: 8px;
  font-size: 11px;
  padding: 0 6px;
}

mark {
  background: var(--accent-soft);
  color: inherit;
  padding: 0;
}

.empty {
  grid-column: 1 / -1;
  min-height: 150px;
  border: 1px dashed #444c6f;
  border-radius: 12px;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  color: var(--text-dim);
}

.results-actions {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.load-more-btn {
  min-height: 44px;
  border: 1px solid #ff8bad;
  border-radius: 999px;
  background: linear-gradient(180deg, #ef2b5f, #ca1f4b);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 0 20px;
  cursor: pointer;
}

.results-sentinel {
  width: 100%;
  height: 1px;
}

.detail-view[hidden] {
  display: none;
}

.catalog-app.is-detail-open .layout-columns {
  display: none;
}

.detail-shell {
  display: grid;
  gap: 18px;
}

.detail-back {
  justify-self: start;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(21, 26, 42, 0.78);
  color: #f4f6fb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  padding: 0 15px 0 11px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.detail-back svg,
.detail-action-btn svg,
.detail-stat svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.detail-back svg {
  width: 20px;
  height: 20px;
}

.detail-back:hover {
  border-color: rgba(255, 139, 173, 0.72);
  background: rgba(239, 43, 95, 0.14);
  color: #fff;
}

.detail-back:focus-visible {
  outline: 2px solid rgba(255, 139, 173, 0.72);
  outline-offset: 3px;
}

.detail-back-label {
  white-space: nowrap;
}

.detail-hero {
  display: grid;
  grid-template-columns: clamp(190px, 17vw, 230px) minmax(0, 680px);
  gap: 24px;
  align-items: stretch;
  max-width: 960px;
}

.detail-poster {
  align-self: start;
  width: 100%;
  border: 1px solid #2b3044;
  border-radius: 12px;
  aspect-ratio: 2 / 3;
}

.detail-main {
  align-self: stretch;
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  height: 100%;
}

.detail-top {
  display: grid;
  gap: 16px;
  align-content: start;
}

.detail-main h1 {
  margin: 0;
  color: #f6f8ff;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
  word-break: break-word;
}

.detail-episodes {
  margin: 0;
  color: #aeb7d1;
  font-size: 15px;
  font-weight: 800;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
}

.detail-stat,
.detail-action-btn {
  min-height: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 800;
  line-height: 24px;
  padding: 0;
}

.detail-action-btn {
  cursor: pointer;
  font: inherit;
}

.detail-action-btn.favorite {
  color: rgba(255, 255, 255, 0.92);
}

.detail-action-btn.favorite.is-active {
  color: #e52e2e;
}

.detail-action-count {
  min-width: 30px;
  text-align: left;
}

.detail-action-label {
  white-space: nowrap;
}

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

.detail-tag {
  min-height: 30px;
  border: 1px solid #3a425f;
  border-radius: 999px;
  background: #151a2a;
  color: #f4f6fb;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 800;
}

.detail-description {
  max-width: 720px;
  margin: 0;
  color: #c5ccdd;
  font-size: 15px;
  line-height: 1.58;
}

.detail-description.is-collapsed {
  display: inline;
}

.detail-description-more-wrap {
  display: inline-flex;
  align-items: center;
  background: #000;
}

.detail-description-dots {
  padding: 0 4px;
  color: rgba(255, 255, 255, 0.5);
}

.detail-description-more {
  border: 0;
  background: transparent;
  color: #e52e2e;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  padding: 0;
}

.detail-extra {
  display: grid;
  gap: 14px;
}

.detail-extra-desktop {
  align-self: stretch;
  min-height: 100%;
  padding-top: 20px;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.detail-shell.is-description-expanded .detail-main {
  height: auto;
}

.detail-shell.is-description-expanded .detail-extra-desktop {
  min-height: 0;
  grid-template-rows: none;
}

.detail-shell.is-description-expanded .detail-watch-list {
  align-self: start;
}

.detail-extra-mobile {
  display: none;
}

.detail-watch-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 720px;
  align-self: end;
}

.detail-watch-list .watch-btn {
  flex: 0 1 240px;
  min-height: 40px;
  border-color: rgba(255, 130, 160, 0.7);
  background: linear-gradient(180deg, #ef2b5f, #ca1f4b);
  font-size: 13px;
  padding: 0 16px;
}

.detail-comments-block {
  max-width: 960px;
  border: 1px solid #2b3044;
  border-radius: 12px;
  background: #1a1e2f;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.detail-comments-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.detail-comments-status {
  color: var(--text-dim);
  font-size: 13px;
}

.detail-comments-status.error {
  color: #ff9a9a;
}

.detail-comments-login-hint {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.4;
}

.detail-comment-compose,
.detail-comment-reply-compose {
  display: grid;
  gap: 8px;
}

.detail-comment-textarea {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  border: 1px solid #3a425f;
  border-radius: 10px;
  background: #12182a;
  color: #f4f6fb;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  padding: 10px;
}

.detail-comment-submit,
.detail-comment-cancel,
.detail-comment-reply-btn {
  min-height: 34px;
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 0 12px;
  cursor: pointer;
}

.detail-comment-submit {
  justify-self: start;
  border: 1px solid rgba(255, 130, 160, 0.75);
  background: linear-gradient(180deg, #ef2b5f, #ca1f4b);
  color: #fff;
}

.detail-comment-cancel,
.detail-comment-reply-btn {
  border: 1px solid #3a425f;
  background: #151a2a;
  color: #f4f6fb;
}

.detail-comment-submit:disabled {
  opacity: 0.55;
  cursor: default;
}

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

.detail-comments-list .empty {
  min-height: 90px;
}

.detail-comment {
  border: 1px solid #2b3044;
  border-radius: 10px;
  background: #151a2a;
  padding: 10px;
  display: grid;
  gap: 6px;
}

.detail-comment.is-reply {
  border-color: #3a425f;
}

.detail-comment-head {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
}

.detail-comment-author-wrap {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.detail-comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: 0 0 28px;
  position: relative;
  overflow: hidden;
  border: 1px solid #3a425f;
  background: linear-gradient(135deg, #2c3552, #1f263d);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.detail-comment-avatar-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-comment-avatar-fallback {
  color: #e6ecff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.detail-comment-author {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.detail-comment-time {
  color: var(--text-dim);
  font-size: 11px;
  white-space: nowrap;
  margin-top: 2px;
}

.detail-comment-text {
  color: #d6ddee;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.detail-comment-reply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-comment-reactions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.detail-comment-reaction-btn {
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid #3a425f;
  background: #151a2a;
  color: #dbe3f6;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.detail-comment-reaction-btn svg {
  width: 15px;
  height: 15px;
}

.detail-comment-reaction-btn.is-active {
  border-color: rgba(255, 130, 160, 0.85);
  color: #ffd8e4;
  background: #23213a;
}

.detail-comment-reaction-btn:disabled {
  opacity: 0.62;
  cursor: default;
}

.detail-comment-reaction-count {
  min-width: 10px;
  text-align: left;
}

.detail-comment-reply-btn {
  justify-self: start;
}

.detail-comment-children {
  display: grid;
  gap: 8px;
  margin-top: 2px;
  margin-left: 18px;
}

.share-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.68);
  display: grid;
  place-items: center;
  padding: 18px;
}

.share-modal {
  width: min(360px, calc(100vw - 32px));
  border: 1px solid #30384f;
  border-radius: 12px;
  background: #1e1f2b;
  color: #f4f6fb;
  padding: 14px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.46);
}

.share-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.share-modal-head h2 {
  font-size: 18px;
  line-height: 1.2;
}

.share-close-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #3a425f;
  border-radius: 999px;
  background: #151a2a;
  color: #f4f6fb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.share-close-btn svg,
.share-option svg {
  width: 20px;
  height: 20px;
}

.share-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.share-option {
  min-height: 48px;
  border: 1px solid #4a5278;
  border-radius: 10px;
  background: #20263e;
  color: #f4f6fb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.share-option:hover,
.share-option:focus-visible,
.share-close-btn:hover,
.share-close-btn:focus-visible {
  border-color: rgba(239, 43, 95, 0.72);
  outline: none;
}

@media (max-width: 979.98px) {
  .catalog-app {
    --mobile-topbar-offset: calc(126px + env(safe-area-inset-top));
    --mobile-bottom-nav-offset: calc(74px + env(safe-area-inset-bottom));
    width: calc(100% - 8px);
    margin: 6px auto calc(14px + var(--mobile-bottom-nav-offset));
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
    padding-top: var(--mobile-topbar-offset);
  }

  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 220;
    padding-top: calc(10px + env(safe-area-inset-top));
    padding-left: calc(10px + env(safe-area-inset-left));
    padding-right: calc(10px + env(safe-area-inset-right));
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  }

  .catalog-app.is-mobile-my-list > .topbar,
  .catalog-app.is-mobile-profile > .topbar {
    display: none;
  }

  .results-block .section-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .results-block .meta {
    flex: 1 1 100%;
    min-width: 0;
    margin-top: 2px;
    text-align: left;
    font-size: 11px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .top-rank-badge {
    min-height: 16px;
    padding: 0 5px;
    font-size: 8px;
  }

  .lang-menu {
    margin-top: 6px;
    padding: 4px;
    min-width: 0;
    max-height: 220px;
    border-radius: 12px;
  }

  .lang-menu-item {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 13px;
    border-radius: 8px;
  }

  .share-modal-backdrop {
    padding: 14px;
  }

  .share-modal {
    width: min(300px, calc(100vw - 28px));
    padding: 11px;
    border-radius: 10px;
  }

  .share-modal-head h2 {
    font-size: 16px;
  }

  .share-close-btn {
    width: 30px;
    height: 30px;
  }

  .share-close-btn svg,
  .share-option svg {
    width: 17px;
    height: 17px;
  }

  .share-options {
    gap: 8px;
    margin-top: 10px;
  }

  .share-option {
    min-height: 38px;
    border-radius: 8px;
    gap: 6px;
    font-size: 12px;
  }

  .mobile-lang .lang-menu {
    min-width: 0;
    right: 0;
  }

  .sort-shell .lang-menu {
    max-height: 220px;
  }

  .mobile-lang {
    min-width: 104px;
    align-items: center;
  }

  #languageMenuMobile {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: auto;
    margin-top: 4px;
    width: min(146px, calc(100vw - 12px));
    max-width: 100%;
    max-height: 132px;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 80;
  }

  #languageMenuMobile .lang-menu-item {
    min-height: 26px;
    padding: 5px 7px;
    font-size: 11px;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .layout-columns {
    display: block;
    margin-top: 12px;
  }

  .sidebar-column {
    display: none;
  }

  .catalog-app.is-mobile-home .main-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
  }

  .control-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .top10-day-btn {
    display: none;
  }

  .mobile-top10-btn {
    display: inline-flex;
    align-items: center;
  }

  .catalog-app.is-mobile-home .main-column > .controls,
  .catalog-app.is-mobile-home .main-column > .results-block {
    margin-top: 0;
  }

  .catalog-app.is-mobile-home .main-column > .history-block {
    display: none;
  }

  .catalog-app.is-mobile-home.is-mobile-searching .main-column > .controls,
  .catalog-app.is-mobile-home.is-mobile-searching .main-column > .results-block {
    display: none;
  }

  .catalog-app.is-mobile-home.is-mobile-searching .main-column > .history-block {
    display: block;
    margin-top: 0;
    padding: 0;
    border: none;
    background: transparent;
  }

  .catalog-app.is-mobile-home.is-mobile-searching .history-block .section-head {
    margin-bottom: 8px;
  }

  .catalog-app.is-mobile-home.is-mobile-searching .history-list {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .catalog-app.is-mobile-home.is-mobile-searching .history-list .chip {
    width: 100%;
    justify-content: flex-start;
    border: none;
    background: transparent;
    color: #f4f6fb;
    padding: 0;
    min-height: 0;
    border-radius: 0;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .catalog-app.is-mobile-home.is-mobile-searching .join-btn {
    display: none;
  }

  .catalog-app.is-mobile-home.is-mobile-searching .brand-inline {
    display: none;
  }

  .catalog-app.is-mobile-home.is-mobile-searching .mobile-search-back {
    display: inline-flex;
  }

  .catalog-app.is-mobile-home.is-mobile-searching .mobile-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .catalog-app.is-mobile-home.is-mobile-searching .header-shell {
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }

  .catalog-app.is-mobile-home .my-list-block,
  .catalog-app.is-mobile-home .profile-block {
    display: none;
  }

  .catalog-app.is-mobile-my-list .main-column,
  .catalog-app.is-mobile-profile .main-column {
    display: block;
  }

  .catalog-app.is-mobile-my-list .main-column > .controls,
  .catalog-app.is-mobile-my-list .main-column > .history-block,
  .catalog-app.is-mobile-my-list .main-column > .results-block,
  .catalog-app.is-mobile-profile .main-column > .controls,
  .catalog-app.is-mobile-profile .main-column > .history-block,
  .catalog-app.is-mobile-profile .main-column > .results-block {
    display: none;
  }

  .catalog-app.is-mobile-my-list .my-list-block {
    display: block;
    margin-top: 0;
  }

  .catalog-app.is-mobile-my-list .profile-block {
    display: none;
  }

  .catalog-app.is-mobile-profile .my-list-block {
    display: none;
  }

  .catalog-app.is-mobile-profile .profile-block {
    display: block;
    margin-top: 0;
  }

  .catalog-app.is-mobile-profile .profile-login-screen:not([hidden]),
  .catalog-app.is-mobile-profile .profile-settings-screen:not([hidden]),
  .catalog-app.is-mobile-profile .profile-info-screen:not([hidden]) {
    display: block;
    margin-top: 0;
  }

  .catalog-app.is-mobile-profile .profile-settings-screen:not([hidden]),
  .catalog-app.is-mobile-profile .profile-info-screen:not([hidden]) {
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid #25293a;
    padding: 12px;
  }

  .catalog-app.is-mobile-profile #termsScreen.profile-info-screen:not([hidden]),
  .catalog-app.is-mobile-profile #privacyScreen.profile-info-screen:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 320;
    margin: 0;
    border-radius: 0;
    border: none;
    padding: max(10px, env(safe-area-inset-top, 0px)) 12px calc(12px + env(safe-area-inset-bottom, 0px));
    background:
      radial-gradient(90% 55% at 50% 0%, rgba(239, 43, 95, 0.2), transparent 72%),
      linear-gradient(180deg, #0c1120 0%, #070b17 100%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .catalog-app.is-mobile-profile #termsScreen.profile-info-screen:not([hidden]) .profile-screen-head,
  .catalog-app.is-mobile-profile #privacyScreen.profile-info-screen:not([hidden]) .profile-screen-head {
    margin-bottom: 10px;
  }

  .catalog-app.is-mobile-profile #termsScreen.profile-info-screen:not([hidden]) .profile-info-content,
  .catalog-app.is-mobile-profile #privacyScreen.profile-info-screen:not([hidden]) .profile-info-content {
    flex: 1;
    overflow: auto;
    padding-right: 2px;
    padding-bottom: 8px;
  }

  .catalog-app.is-mobile-profile .profile-block[hidden] {
    display: none;
  }

  .catalog-app.is-mobile-profile .mobile-subnav,
  .catalog-app.is-mobile-my-list .mobile-subnav {
    display: none;
  }

  .catalog-app.is-mobile-home .mobile-subnav {
    display: flex;
  }

  .mobile-bottom-nav {
    display: grid;
  }

  .my-list-tabs {
    margin-top: 2px;
  }

  .my-list-tabs .cat-tab {
    font-size: 14px;
  }

  .catalog-app.is-mobile-categories .layout-columns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  .catalog-app.is-mobile-categories .sidebar-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    min-width: 0;
    width: 100%;
    overflow: visible;
  }

  .catalog-app.is-mobile-categories .sidebar-column > .tags-block,
  .catalog-app.is-mobile-categories .sidebar-column > .controls {
    margin-top: 0;
    padding: 8px;
  }

  .catalog-app.is-mobile-categories .main-column {
    min-width: 0;
    width: 100%;
    overflow: visible;
  }

  .catalog-app.is-mobile-categories .history-block {
    display: none;
  }

  .catalog-app.is-mobile-categories .results-block {
    margin-top: 0;
    min-width: 0;
    width: 100%;
    overflow: visible;
    background: var(--bg);
    border-color: #121523;
  }

  .catalog-app.is-mobile-categories .results-swipe-current,
  .catalog-app.is-mobile-categories .results-swipe-preview {
    background: var(--bg);
  }

  .catalog-app.is-mobile-categories .results-block.is-swipe-active {
    overflow: hidden;
  }

  .catalog-app.is-mobile-categories .results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    background: transparent;
  }

  .detail-shell {
    gap: 12px;
  }

  .detail-view {
    border: 1px solid #25293a;
    border-radius: var(--radius);
    background: var(--bg-card);
    padding: 10px;
  }

  .detail-description-more-wrap {
    background: var(--bg-card);
  }

  .detail-extra-desktop {
    display: none;
  }

  .detail-extra-mobile {
    display: grid;
  }

  .detail-extra {
    padding-top: 0;
    grid-template-rows: none;
  }

  .detail-main {
    grid-template-rows: none;
    gap: 0;
    height: auto;
  }

  .detail-top {
    gap: 12px;
  }

  .detail-back {
    width: 36px;
    min-height: 36px;
    border-color: #3a425f;
    border-radius: 10px;
    background: #151a2a;
    gap: 0;
    font-size: 13px;
    padding: 0;
  }

  .detail-back svg {
    width: 22px;
    height: 22px;
  }

  .detail-back-label {
    display: none;
  }

  .detail-hero {
    grid-template-columns: minmax(96px, 30vw) minmax(0, 1fr);
    gap: 8px;
    max-width: none;
  }

  .detail-poster .poster-overlay {
    padding: 6px;
  }

  .detail-poster .tag-row {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    max-width: 76%;
  }

  .detail-poster .poster-tag {
    max-width: 100%;
    padding: 2px 5px;
    font-size: 8px;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .detail-main h1 {
    font-size: 18px;
    line-height: 1.18;
  }

  .detail-episodes {
    font-size: 13px;
  }

  .detail-actions {
    flex-wrap: nowrap;
    gap: 6px;
    min-width: 0;
  }

  .detail-stat,
  .detail-action-btn {
    min-height: 24px;
    gap: 2px;
    font-size: 12px;
    line-height: 20px;
    flex: 0 1 auto;
  }

  .detail-stat svg,
  .detail-action-btn svg {
    width: 18px;
    height: 18px;
  }

  .detail-action-count {
    min-width: 20px;
  }

  .detail-action-label {
    font-size: 11px;
  }

  .detail-tags {
    gap: 6px;
  }

  .detail-tag {
    min-height: 28px;
    padding: 0 9px;
    font-size: 11px;
  }

  .detail-description {
    font-size: 14px;
    line-height: 1.55;
  }

  .detail-description-more {
    font-size: 13px;
  }

  .detail-watch-list {
    display: grid;
    grid-template-columns: 1fr;
    max-width: none;
    align-self: stretch;
  }

  .detail-watch-list .watch-btn {
    flex-basis: auto;
    min-height: 44px;
    font-size: 14px;
    padding: 0 12px;
  }

  .detail-comments-block {
    max-width: none;
    padding: 10px;
    gap: 9px;
  }

  .detail-comments-title {
    font-size: 16px;
  }

  .detail-comment-textarea {
    min-height: 72px;
    font-size: 13px;
  }

  .detail-comment-submit,
  .detail-comment-cancel,
  .detail-comment-reply-btn {
    min-height: 32px;
    font-size: 12px;
    padding: 0 10px;
  }

  .detail-comment-author {
    font-size: 12px;
  }

  .detail-comment-avatar {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .detail-comment-avatar-fallback {
    font-size: 11px;
  }

  .detail-comment-time {
    font-size: 10px;
  }

  .detail-comment-text {
    font-size: 13px;
    line-height: 1.4;
  }

  .detail-comment-children {
    margin-left: 10px;
  }

  .detail-comment-reactions {
    gap: 6px;
  }

  .detail-comment-reaction-btn {
    min-height: 28px;
    font-size: 11px;
    padding: 0 8px;
    gap: 4px;
  }

  .detail-comment-reaction-btn svg {
    width: 14px;
    height: 14px;
  }

  .catalog-app.is-mobile-categories .compact-card .poster {
    aspect-ratio: 2 / 3;
  }

  .catalog-app.is-mobile-categories .compact-card .card-body {
    padding: 7px;
    gap: 5px;
  }

  .catalog-app.is-mobile-categories .compact-card h3 {
    font-size: 12px;
    line-height: 1.2;
  }

  .catalog-app.is-mobile-categories .compact-card .watch-btn {
    min-height: 26px;
    font-size: 10px;
  }

  .catalog-app.is-mobile-categories .sidebar-column .control-grid {
    max-width: none;
  }

  .catalog-app.is-mobile-categories .sidebar-column .section-head {
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
  }

  .catalog-app.is-mobile-categories .sidebar-column h2 {
    font-size: 14px;
    line-height: 1.15;
  }

  .catalog-app.is-mobile-categories .sidebar-column .text-btn {
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
    align-self: auto;
  }

  .catalog-app.is-mobile-categories .sidebar-column .sort-label {
    font-size: 10px;
    margin-bottom: 4px;
  }

  .catalog-app.is-mobile-categories .sidebar-column .lang-shell {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 0 18px 0 14px;
  }

  .catalog-app.is-mobile-categories .sidebar-column .sort-shell {
    width: 100%;
    min-height: 38px;
    padding: 0 18px 0 12px;
    z-index: 80;
  }

  .catalog-app.is-mobile-categories .sidebar-column .sort-shell .caret-icon {
    right: 6px;
  }

  .catalog-app.is-mobile-categories .sidebar-column .lang-trigger {
    min-width: 0;
    font-size: 11px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .catalog-app.is-mobile-categories .sidebar-column .lang-menu {
    min-width: 0;
    right: auto;
    left: 0;
  }

  .catalog-app.is-mobile-categories .sidebar-column #sortMenu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: auto;
    max-width: calc(100vw - 24px);
    max-height: 148px;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 90;
  }

  .catalog-app.is-mobile-categories .sidebar-column #sortMenu .lang-menu-item {
    min-height: 30px;
    padding: 6px 8px;
    font-size: 10px;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .catalog-app.is-mobile-categories .tag-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 6px;
    max-height: none;
    overflow: visible;
    padding: 2px 0 0;
  }

  .catalog-app.is-mobile-categories .sidebar-column .tag-list .chip {
    min-height: 34px;
    border-radius: 9px;
    padding: 6px 8px;
    font-size: 10px;
    line-height: 1.15;
    height: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .mobile-subnav {
    gap: 12px;
  }

  .mobile-categories-row {
    gap: 10px;
  }

  .cat-scroll-container {
    gap: 14px;
  }

  .cat-tab {
    font-size: 13px;
  }

  .top-rank-badge {
    min-height: 15px;
    padding: 0 4px;
    font-size: 7px;
  }

  .mobile-lang {
    padding: 0 10px 0 22px;
  }

  #languageMenuMobile {
    width: min(136px, calc(100vw - 10px));
    max-height: 124px;
  }

  #languageMenuMobile .lang-menu-item {
    min-height: 24px;
    padding: 4px 6px;
    font-size: 10px;
  }

  .mobile-lang .lang-trigger {
    max-width: min(44vw, 140px);
    font-size: 12px;
  }

  .catalog-app.is-mobile-categories .layout-columns {
    gap: 6px;
  }

  .catalog-app.is-mobile-categories .sidebar-column {
    gap: 6px;
  }

  .catalog-app.is-mobile-categories .sidebar-column > .tags-block,
  .catalog-app.is-mobile-categories .sidebar-column > .controls {
    padding: 6px;
  }

  .catalog-app.is-mobile-categories .sidebar-column h2 {
    font-size: 13px;
  }

  .catalog-app.is-mobile-categories .sidebar-column .text-btn {
    font-size: 9px;
  }

  .catalog-app.is-mobile-categories .sidebar-column .lang-trigger {
    font-size: 10px;
  }

  .catalog-app.is-mobile-categories .sidebar-column .tag-list .chip {
    min-height: 32px;
    font-size: 9px;
    padding: 6px 7px;
  }

  .catalog-app.is-mobile-categories .tag-list {
    gap: 5px;
  }

  .catalog-app.is-mobile-categories .results-grid {
    gap: 10px;
  }

  .catalog-app.is-mobile-categories .compact-card .card-body {
    padding: 6px;
  }

  .catalog-app.is-mobile-categories .compact-card h3 {
    font-size: 11px;
  }

  .catalog-app.is-mobile-categories .sidebar-column #sortMenu {
    width: auto;
    max-width: calc(100vw - 20px);
    max-height: 136px;
  }

  .catalog-app.is-mobile-categories .sidebar-column #sortMenu .lang-menu-item {
    min-height: 26px;
    padding: 5px 6px;
    font-size: 9px;
  }
}

@media (max-width: 360px) {
  .catalog-app {
    width: calc(100% - 4px);
  }

  .catalog-app.is-mobile-categories .layout-columns {
    gap: 5px;
  }

  .catalog-app.is-mobile-categories .results-grid {
    gap: 9px;
  }

  .catalog-app.is-mobile-categories .tag-list {
    gap: 4px;
  }

  .catalog-app.is-mobile-categories .sidebar-column .sort-shell {
    padding: 0 14px 0 10px;
  }

  .catalog-app.is-mobile-categories .sidebar-column #sortMenu {
    width: auto;
    max-width: calc(100vw - 16px);
    max-height: 124px;
  }

  .catalog-app.is-mobile-categories .sidebar-column .lang-shell {
    padding: 0 14px 0 12px;
  }
}

@media (min-width: 980px) {
  .catalog-app {
    width: min(1260px, calc(100% - 30px));
    margin-top: 14px;
  }

  html[lang="de"] .tags-block .section-head .text-btn {
    font-size: 11px;
    line-height: 1;
  }

  .detail-view {
    margin-top: 12px;
    border: 1px solid #25293a;
    border-radius: var(--radius);
    background: var(--bg-card);
    padding: 14px;
  }

  .detail-description-more-wrap {
    background: var(--bg-card);
  }

  .layout-columns {
    display: grid;
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
    gap: 12px;
    margin-top: 8px;
    align-items: start;
  }

  .sidebar-column,
  .main-column {
    min-width: 0;
  }

  .sidebar-column {
    position: sticky;
    top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .main-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .sidebar-column > .tags-block,
  .sidebar-column > .controls,
  .main-column > .controls,
  .main-column > .history-block,
  .main-column > .results-block {
    margin-top: 0;
  }

  .topbar,
  .controls,
  .tags-block,
  .history-block,
  .results-block {
    padding: 14px;
  }

  .results-block {
    --results-block-padding: 14px;
  }

  .topbar {
    background: #050608;
    border: 1px solid #1d202f;
    border-radius: var(--radius);
    margin-top: 0;
  }

  .header-shell {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .brand-inline {
    width: auto;
    height: auto;
    overflow: visible;
    border-radius: 0;
    gap: 6px;
  }

  .brand-logo-desktop {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 0;
  }

  .brand-logo-mobile {
    display: none;
  }

  .brand-title {
    display: inline;
    font-size: 28px;
    width: auto;
    max-width: min(34vw, 320px);
    flex: 0 0 auto;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-search-wrap {
    flex: 1 1 auto;
    min-width: 280px;
  }

  #searchInput {
    min-height: 44px;
    border: 1px solid var(--line-strong);
    background-color: #1a1d2a;
    font-size: 15px;
  }

  #searchInput::placeholder {
    color: #8e95ad;
  }

  .join-btn {
    min-height: 40px;
    min-width: auto;
    border-radius: 999px;
    border: 1px solid rgba(255, 130, 160, 0.7);
    background: linear-gradient(180deg, #ef2b5f, #ca1f4b);
    gap: 8px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 800;
  }

  .btn-icon {
    width: 15px;
    height: 15px;
  }

  .join-label {
    display: inline;
  }

  .desktop-lang {
    display: inline-flex;
  }

  .mobile-subnav {
    display: none;
  }

  .tag-list {
    overflow-x: hidden;
    overflow-y: auto;
    padding: 2px 0 0;
    max-height: calc(100vh - 130px);
  }

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

  .my-list-block .my-list-favorites-grid,
  .profile-posters .results-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .my-list-block .my-list-favorites-grid .compact-card,
  .profile-posters .compact-card {
    border-radius: 10px;
  }

  .my-list-block .my-list-favorites-grid .compact-card .poster,
  .profile-posters .compact-card .poster {
    aspect-ratio: 3 / 4;
  }

  .my-list-block .my-list-favorites-grid .compact-card .poster-overlay,
  .profile-posters .poster-overlay {
    padding: 8px;
  }

  .my-list-block .my-list-favorites-grid .compact-card .tag-row,
  .profile-posters .tag-row {
    gap: 6px;
  }

  .my-list-block .my-list-favorites-grid .compact-card .poster-tag,
  .profile-posters .poster-tag {
    padding: 3px 6px;
    font-size: 9px;
    line-height: 1.1;
  }

  .my-list-block .my-list-favorites-grid .compact-card .poster-tag.service,
  .profile-posters .poster-tag.service {
    display: inline-flex;
  }

  .my-list-block .my-list-favorites-grid .compact-card .card-body,
  .profile-posters .compact-card .card-body {
    display: flex;
    padding: 8px;
    gap: 6px;
  }

  .my-list-block .my-list-favorites-grid .compact-card h3,
  .profile-posters .compact-card h3 {
    font-size: 13px;
    line-height: 1.25;
    -webkit-line-clamp: 2;
  }

}

@media (min-width: 1220px) {
  .results-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .my-list-block .my-list-favorites-grid,
  .profile-posters .results-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
