:root {
  --bg: #07080f;
  --bg-card: #10131f;
  --bg-elevated: #161b2b;
  --text: #eef1ff;
  --muted: #9aa3c7;
  --neon-pink: #ff2bd6;
  --neon-cyan: #2de2e6;
  --neon-purple: #7b5cff;
  --border: rgba(45, 226, 230, 0.18);
  --ring: rgba(255, 43, 214, 0.45);
  --radius: 14px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(123, 92, 255, 0.18), transparent),
              radial-gradient(900px 500px at 90% 0%, rgba(255, 43, 214, 0.12), transparent),
              var(--bg);
  color: var(--text);
  min-height: 100dvh;
}

.container { width: min(1400px, 100% - 2rem); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(7, 8, 15, 0.82);
  border-bottom: 1px solid var(--border);
}
.header-inner-wrap {
  padding-top: .9rem;
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  padding: 0 0 .9rem; flex-wrap: wrap;
}
.logo {
  font-weight: 800; letter-spacing: .02em; text-decoration: none; color: var(--text);
  font-size: 1.15rem;
}
.logo span { color: var(--neon-cyan); text-shadow: 0 0 18px rgba(45,226,230,.5); }

.header-tools {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-left: auto;
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
}

.country-menu {
  position: relative;
  flex-shrink: 0;
}
.country-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  border-radius: 999px;
  padding: .62rem .95rem;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.country-menu-btn:hover,
.country-menu-btn[aria-expanded="true"] {
  color: var(--neon-cyan);
  border-color: rgba(45, 226, 230, .55);
  box-shadow: 0 0 18px rgba(45, 226, 230, .2);
}
.country-menu-btn:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
}
.country-menu-btn-caret {
  width: .45rem;
  height: .45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform .15s;
}
.country-menu-btn[aria-expanded="true"] .country-menu-btn-caret {
  transform: rotate(-135deg) translateY(1px);
}
.country-menu-panel {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--country-menu-top, 4.5rem);
  z-index: 25;
  background: rgba(7, 8, 15, .97);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  backdrop-filter: blur(14px);
  max-height: min(70vh, 520px);
  overflow: auto;
}
.country-menu-panel-inner {
  padding: 1rem 0 1.25rem;
}
.country-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .175rem .75rem;
}
.country-menu-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .275rem .65rem;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  transition: color .15s, background .15s, box-shadow .15s;
}
.country-menu-link:hover,
.country-menu-link:focus-visible,
.country-menu-link.is-active {
  color: var(--neon-cyan);
  background: rgba(45, 226, 230, .08);
  box-shadow: inset 0 0 0 1px rgba(45, 226, 230, .22);
  outline: none;
}
.country-menu-flag {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  box-shadow: inset 0 0 0 1px rgba(45, 226, 230, .18);
}
.country-menu-flag picture {
  width: 100%;
  height: 100%;
  display: block;
}
.country-menu-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.country-menu-name {
  flex: 1;
  min-width: 0;
  font-size: .672rem;
  font-weight: 600;
}
.country-menu-count {
  color: var(--muted);
  font-size: .624rem;
  font-weight: 500;
}
.country-menu-link:hover .country-menu-count,
.country-menu-link.is-active .country-menu-count {
  color: rgba(45, 226, 230, .75);
}

.search {
  display: flex; gap: .5rem;
  width: auto;
  flex: 0 0 auto;
  margin-left: auto;
}
.search input {
  flex: 0 0 auto;
  width: 13.5rem;
  min-width: 0;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  border-radius: 999px;
  padding: .65rem 1rem;
  outline: none;
}
.search input:focus { box-shadow: 0 0 0 3px var(--ring); border-color: var(--neon-pink); }
.search button {
  border: 0; border-radius: 999px; padding: .65rem 1rem;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  color: white; font-weight: 600; cursor: pointer;
}
.search button:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: 2px; }

.header-intro {
  padding: 0 1rem 1.1rem;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}
.header-intro h1 {
  margin: 0 0 .7rem;
  font-size: clamp(1.2rem, 2.6vw, 1.65rem);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-shadow: 0 0 24px rgba(45,226,230,.25);
}
.header-intro-text {
  margin: 0 auto;
  font-size: .86rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: none;
  width: 100%;
  text-align: center;
}

.page-layout {
  display: grid;
  gap: 1.5rem 2rem;
  align-items: start;
  padding-bottom: 1rem;
}
@media (min-width: 1100px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}
.page-content { min-width: 0; }

.hero { padding: 1.5rem 0 .5rem; }
.breadcrumbs {
  padding: 1rem 0 .25rem;
}
.breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .55rem;
  color: var(--muted);
  font-size: .82rem;
}
.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.breadcrumb-item:not(:last-child)::after {
  content: '›';
  color: rgba(154, 163, 199, .75);
  font-size: .9rem;
  line-height: 1;
}
.breadcrumb-link {
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.breadcrumb-link:hover,
.breadcrumb-link:focus-visible {
  color: var(--neon-cyan);
  outline: none;
}
.breadcrumb-current {
  color: var(--text);
  font-weight: 600;
}
.room-main .breadcrumbs {
  padding-top: 1.25rem;
}
.hero h1 {
  margin: 0 0 .35rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  text-shadow: 0 0 24px rgba(45,226,230,.25);
}
.hero p,
.hero-desc { margin: 0; color: var(--muted); max-width: 62ch; }

.category-sidebar {
  position: sticky;
  top: 7.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1rem 0 2rem;
}
@media (max-width: 1099px) {
  .category-sidebar {
    position: static;
    order: 2;
    padding-top: .5rem;
  }
  .page-content {
    order: 1;
  }
}
.sidebar-block {
  background: linear-gradient(180deg, rgba(22,27,43,.6), rgba(16,19,31,.4));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem .9rem 1rem;
}
.sidebar-title {
  margin: 0 0 .75rem;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}
.sidebar-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.sidebar-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.25rem;
  min-height: 3.25rem;
  padding: .45rem .65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: color .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.sidebar-chip:hover {
  color: var(--neon-cyan);
  border-color: rgba(45, 226, 230, .55);
  box-shadow: 0 0 18px rgba(45, 226, 230, .25), 0 0 28px rgba(255, 43, 214, .12);
  transform: translateY(-1px);
}
.sidebar-chip:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
}
.sidebar-chip.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  box-shadow: 0 0 20px rgba(255, 43, 214, .35);
}

.sidebar-chip-partner {
  padding: .45rem .75rem;
  color: var(--muted);
}
.sidebar-chip.sidebar-chip-partner:hover,
.sidebar-chip.sidebar-chip-partner:focus-visible {
  color: var(--neon-cyan);
  border-color: rgba(45, 226, 230, .55);
  box-shadow: 0 0 18px rgba(45, 226, 230, .25), 0 0 28px rgba(255, 43, 214, .12);
  transform: translateY(-1px);
}
.sidebar-chip.sidebar-chip-partner.is-active {
  color: var(--muted);
  border-color: var(--border);
  background: var(--bg-card);
  box-shadow: none;
  transform: none;
}
.sidebar-chip.sidebar-chip-partner.is-active:hover,
.sidebar-chip.sidebar-chip-partner.is-active:focus-visible {
  color: var(--neon-cyan);
  border-color: rgba(45, 226, 230, .55);
  box-shadow: 0 0 18px rgba(45, 226, 230, .25), 0 0 28px rgba(255, 43, 214, .12);
  transform: translateY(-1px);
}
.sidebar-chip-partner .sidebar-partner-logo {
  width: 4.2rem;
  height: 1.17rem;
  display: block;
  pointer-events: none;
}

.status { min-height: 1.25rem; color: var(--muted); margin: .5rem 0 1rem; }
.status.error { color: #ff7b9c; }

.section-title {
  margin: 0 0 1rem;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 700;
  text-shadow: 0 0 20px rgba(255, 43, 214, 0.2);
}
.grid-section { margin-bottom: 2rem; }
.grid-empty { color: var(--muted); margin: 0; padding: 1rem 0; }

.grid {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) {
  .grid-featured,
  .grid-top-rated { grid-template-columns: repeat(5, 1fr); }
}

.card {
  background: linear-gradient(180deg, rgba(22,27,43,.95), rgba(16,19,31,.95));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-2px); border-color: rgba(255,43,214,.35); }
.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.card-link:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
}
.card-thumb-empty {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #141824, #1a2030);
}
.card-thumb {
  aspect-ratio: 4 / 3;
  background: #0d1018;
  position: relative;
  overflow: hidden;
}
.card-thumb > img,
.card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-thumb-badges {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}
.card-partner-logo {
  position: absolute;
  left: .35rem;
  bottom: .35rem;
  display: block;
  height: 28px;
  width: auto;
  max-width: 112px;
  max-height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.75));
}
.card-flag {
  position: absolute;
  right: .35rem;
  bottom: .35rem;
  display: block;
  width: 32px;
  height: 24px;
  max-width: 32px;
  max-height: 24px;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,.55);
  overflow: hidden;
}
.card-flag img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-flag-globe {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  object-fit: contain;
  opacity: .9;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.75));
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding: .55rem .65rem .65rem;
  background: var(--bg-card);
}
.card-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.card-link:hover .card-name { color: var(--neon-cyan); }
.card-viewers {
  flex-shrink: 0;
  font-size: .82rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.skeleton {
  background: linear-gradient(90deg, #141824 25%, #1d2333 37%, #141824 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s ease infinite;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.card-body { padding: .75rem .85rem 1rem; }
.card-title {
  margin: 0 0 .35rem; font-size: 1rem;
  color: var(--text);
}
.card-link:hover .card-title { color: var(--neon-cyan); }
.card-meta { color: var(--muted); font-size: .85rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .15rem .45rem; border-radius: 999px;
  background: rgba(45,226,230,.12); color: var(--neon-cyan); font-size: .75rem;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .4rem .55rem;
  padding: 1.5rem 0 2.5rem;
}
.pager-link,
.pager-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: .5rem .75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  transition: border-color .15s, color .15s;
}
.pager-link:hover,
.pager-next:hover {
  border-color: rgba(45, 226, 230, .45);
  color: var(--neon-cyan);
}
.pager-link:focus-visible,
.pager-next:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
}
.pager-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: .5rem .75rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
}
.pager-ellipsis {
  color: var(--muted);
  padding: 0 .25rem;
  user-select: none;
}
.pager-next { padding-inline: 1rem; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0 2rem;
  color: var(--muted);
  font-size: .85rem;
}
.footer-disclaimer { margin: 0 0 1.5rem; }
/* Mobile-only home intro (desktop keeps .header-intro-text). */
.footer-intro {
  display: none;
  margin: 0 0 1.5rem;
  font-size: .86rem;
  line-height: 1.65;
  color: var(--muted);
}
.site-footer-home .footer-faq {
  margin-bottom: 1.75rem;
  padding-top: .25rem;
}
.footer-faq-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.footer-faq-list {
  margin: 0;
  display: grid;
  gap: 1rem;
}
.footer-faq-item dt {
  margin: 0 0 .35rem;
  font-weight: 600;
  color: var(--text);
  font-size: .9rem;
}
.footer-faq-item dd {
  margin: 0;
  line-height: 1.6;
  font-size: .84rem;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}
.footer-links a {
  color: var(--neon-cyan);
  text-decoration: none;
  font-weight: 500;
}
.footer-links a:hover { text-decoration: underline; }
.footer-links a:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
}
.footer-copy {
  margin: 0;
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
}
.footer-copy-icon {
  font-size: .95rem;
  line-height: 1;
}

.room-page .room-heading {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  text-shadow: 0 0 20px rgba(45,226,230,.2);
}
.room-main {
  padding-top: .5rem;
  padding-bottom: 2rem;
}
.room-page .player-wrap {
  margin-top: 0;
}
.similar-section {
  margin-top: 2rem;
}
.grid-similar {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
  .grid-similar { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .grid-similar { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1100px) {
  .grid-similar { grid-template-columns: repeat(5, 1fr); }
}
.room-page .room-title {
  margin: 0; font-size: 1rem; color: var(--muted); font-weight: 500;
}
.player-wrap {
  position: relative;
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: #000;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: var(--shadow);
}
.player-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #11131c;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.player {
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
  position: absolute;
  inset: 0;
  z-index: 1;
  object-fit: contain;
}
.player-wrap.is-unavailable .player,
.player.is-poster {
  display: none !important;
}
.player-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 3;
  pointer-events: none;
  background: transparent;
}
.player-fallback[hidden] {
  display: none !important;
}
.player-wrap.is-unavailable .player-stage {
  background-color: transparent;
}
.player-cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: .85rem 0 0;
}
.player-cta {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 28rem);
  max-width: 100%;
  padding: .9rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff2bd6 0%, #ff6b2b 45%, #ffe600 100%);
  color: #120816;
  font-size: clamp(.8rem, 2.1vw, 1.05rem);
  font-weight: 800;
  letter-spacing: .03em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1.15;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .35), 0 10px 28px rgba(255, 43, 214, .45), 0 0 36px rgba(255, 230, 0, .3);
  cursor: pointer;
  transition: transform .15s, filter .15s, box-shadow .15s;
}
.player-cta:hover,
.player-cta:focus-visible {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.08);
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .5), 0 14px 34px rgba(255, 43, 214, .55), 0 0 42px rgba(255, 230, 0, .4);
}
.player-wrap > .status {
  position: absolute;
  left: .75rem;
  top: .75rem;
  z-index: 5;
  margin: 0;
  padding: .35rem .55rem;
  border-radius: 8px;
  background: rgba(7, 8, 15, .72);
  max-width: calc(100% - 1.5rem);
}
@media (max-width: 520px) {
  .player-cta-row {
    margin-top: .7rem;
  }
  .player-cta {
    padding: .8rem 1rem;
    font-size: .78rem;
  }
}
.model-meta {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--muted);
}


.lang-menu {
  position: relative;
  flex: 0 0 auto;
}
.lang-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  max-width: 11rem;
  padding: .45rem .65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(12, 16, 28, .85);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: .85rem;
}
.lang-menu-btn:hover,
.lang-menu-btn[aria-expanded="true"] {
  border-color: var(--accent);
}
.lang-menu-flag,
.lang-menu-flag img {
  width: 1.15rem;
  height: .85rem;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}
.lang-menu-btn-label {
  max-width: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lang-menu-btn-caret {
  width: 0;
  height: 0;
  border-left: .28rem solid transparent;
  border-right: .28rem solid transparent;
  border-top: .34rem solid currentColor;
  opacity: .75;
}
.lang-menu-panel {
  position: absolute;
  top: calc(100% + .35rem);
  right: 0;
  z-index: 40;
  min-width: 14rem;
  max-height: min(70vh, 22rem);
  overflow: auto;
  padding: .35rem;
  border: 1px solid var(--border);
  border-radius: .75rem;
  background: #0d121f;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.lang-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lang-menu-link {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .55rem;
  border-radius: .5rem;
  color: var(--text);
  text-decoration: none;
  font-size: .88rem;
}
.lang-menu-link:hover,
.lang-menu-link.is-active {
  background: rgba(108, 158, 255, .12);
}
.lang-menu-name { flex: 1; min-width: 0; }

@media (max-width: 900px) {
  /*
   * Mobile sticky header:
   * 1) logo | search
   * 2) country | language
   * 3) H1 (header-intro)
   * Intro text moves to footer (.footer-intro).
   */
  .header-inner-wrap {
    padding-top: .65rem;
  }
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: .55rem;
    row-gap: .5rem;
    padding: 0 0 .55rem;
  }
  .logo {
    grid-column: 1;
    grid-row: 1;
    font-size: 1rem;
    min-width: 0;
  }
  .header-tools {
    display: contents;
  }
  .country-menu {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    max-width: 100%;
  }
  .search {
    grid-column: 2;
    grid-row: 1;
    justify-self: stretch;
    margin-left: 0;
    width: auto;
    min-width: 0;
    flex: unset;
  }
  .search input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }
  .search button {
    flex: 0 0 auto;
    padding: .55rem .75rem;
    font-size: .82rem;
  }
  .lang-menu {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    max-width: 100%;
  }
  .lang-menu-btn-label { max-width: 5.5rem; }
  .lang-menu-panel {
    right: 0;
    left: auto;
    min-width: min(16rem, calc(100vw - 2rem));
  }
  .country-menu-btn {
    max-width: min(100%, 11.5rem);
    padding: .45rem .7rem;
    font-size: .75rem;
  }
  .header-intro {
    padding: 0 1rem .7rem;
  }
  .header-intro h1 {
    margin: 0;
    font-size: clamp(1.05rem, 4.2vw, 1.35rem);
  }
  .header-intro-text {
    display: none !important;
  }
  .footer-intro {
    display: block;
  }
}
@media (max-width: 520px) {
  .lang-menu-btn { max-width: 9.5rem; padding: .4rem .55rem; }
  .country-menu-btn {
    max-width: min(100%, 9.75rem);
    padding: .4rem .55rem;
  }
  .search button {
    padding: .5rem .65rem;
  }
}
