/* =========================================================
   LokiPorn — Clean Dark Tube UI & VIP Referral Gate
   ========================================================= */

:root {
  --bg: #0f0f0f;
  --surface: #181818;
  --surface-2: #222222;
  --surface-hover: #2c2c2c;
  --border: #272727;
  --border-light: #3a3a3a;
  --text: #f1f1f1;
  --text-secondary: #aaaaaa;
  --text-muted: #717171;
  --accent: #ff6b00;
  --accent-hover: #ff8524;
  --max: 1600px;
}

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

[hidden] {
  display: none !important;
}

html {
  color-scheme: dark;
  background: var(--bg);
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}

body::before,
body::after {
  content: "";
  position: fixed;
  top: 12%;
  width: 420px;
  height: 520px;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.16;
  pointer-events: none;
  z-index: -1;
}

body::before {
  left: -180px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.78), transparent 70%);
}

body::after {
  right: -180px;
  top: 38%;
  background: radial-gradient(circle, rgba(255, 138, 43, 0.52), transparent 70%);
}

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

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

button, input, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #303030;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #454545;
}

.wrap {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px 48px;
}

/* ---------------- TAM EKRAN CANLI VİTRİN & REFERANS GİRİŞİ ---------------- */

.gate {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #08080a;
  overflow: hidden;
}

.gate__wall {
  position: fixed;
  inset: -12px;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 1fr;
  gap: 8px;
  padding: 8px;
  opacity: 0.72;
}

.gate__tile {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #121215;
  transition: transform 0.35s ease, filter 0.35s ease;
  filter: saturate(0.85) brightness(0.72);
}

.gate__tile:hover {
  z-index: 4;
  transform: scale(1.04);
  filter: saturate(1.05) brightness(1);
}

.gate__tile img,
.gate__tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gate__tile video {
  position: absolute;
  inset: 0;
}

.gate__tile-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 10px 8px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.88));
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.gate__tile:hover .gate__tile-info {
  opacity: 1;
}

.gate__tile-info span {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gate__tile-info small {
  display: block;
  font-size: 10px;
  color: #b4b4be;
}

.gate__vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 680px 440px at 50% 50%, rgba(8, 8, 10, 0.94) 0%, rgba(8, 8, 10, 0.78) 55%, rgba(8, 8, 10, 0.56) 100%);
}

.gate__center {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 480px;
  text-align: center;
  padding: 12px 0;
}

.gate__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
}

.gate__age {
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #d4d4d8;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.gate__title {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.gate__lead {
  margin: 0 auto 28px;
  max-width: 410px;
  color: #b4b4be;
  font-size: 14px;
  line-height: 1.55;
}

.gate__form {
  width: 100%;
  margin-bottom: 18px;
}

.gate__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 10px;
  background: rgba(14, 14, 18, 0.82);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.75);
  transition: border-color 0.15s ease;
}

.gate__bar:focus-within {
  border-color: rgba(255, 255, 255, 0.36);
}

.gate__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 14.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  outline: none;
}

.gate__input::placeholder {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  color: #7c7c88;
}

.gate__submit {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 22px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.14s ease;
}

.gate__submit:hover {
  background: var(--accent-hover);
}

.gate__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.gate__submit--solo {
  width: 100%;
  height: 46px;
}

.gate__error {
  margin-top: 10px;
  padding: 9px 14px;
  border-radius: 6px;
  background: rgba(229, 9, 20, 0.15);
  border: 1px solid rgba(229, 9, 20, 0.4);
  color: #fca5a5;
  font-size: 13px;
}

.gate__leave {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #71717a;
}

.gate__leave a:hover {
  color: #e4e4e7;
}

.gate__sep {
  opacity: 0.45;
}

/* ---------------- BUTONLAR ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 13.5px;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--ghost {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover {
  background: var(--surface-hover);
  border-color: var(--border-light);
}

.btn--sm {
  height: 32px;
  padding: 0 12px;
  font-size: 12.5px;
}

.btn--wide {
  min-width: 240px;
  height: 42px;
}

.btn--full {
  width: 100%;
  height: 44px;
  font-size: 14px;
}

/* ---------------- HEADER ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(15, 15, 15, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 56px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.brand__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 22px;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  padding-left: 1px;
}

.brand__name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.brand__name b {
  font-weight: 800;
  color: var(--accent);
}

.brand--sm .brand__icon {
  width: 24px;
  height: 19px;
  font-size: 10px;
}
.brand--sm .brand__name {
  font-size: 16px;
}

/* Arama Çubuğu */
.search {
  position: relative;
  flex: 1 1 auto;
  max-width: 560px;
  margin: 0 auto;
}

.search__icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.search input {
  width: 100%;
  height: 38px;
  padding: 0 68px 0 38px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #121212;
  font-size: 13.5px;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.search input::placeholder {
  color: var(--text-muted);
}

.search input:focus {
  outline: none;
  border-color: #4a4a4a;
  background: #161616;
}

.search__kbd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 11px;
  pointer-events: none;
}

.search input:focus ~ .search__kbd {
  display: none;
}

.search__scope {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  height: 24px;
  padding: 0 9px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.search__scope:hover {
  color: #fff;
  border-color: var(--border-light);
}

.search__scope[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.recent-wrap {
  margin-bottom: 22px;
}

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

.recent-head__title {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
}

.recent-clear {
  font-size: 12px;
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 4px;
}

.recent-clear:hover {
  color: #fff;
  background: var(--surface);
}

.recent-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.recent-strip::-webkit-scrollbar {
  display: none;
}

.recent-strip .card {
  flex: 0 0 210px;
}

.card__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 4;
}

.card__progress span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.theater__seek-badge {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
}

.theater__seek-badge--left { left: 14%; }
.theater__seek-badge--right { right: 14%; }

/* Sağ Menü */
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 13px;
  border-radius: 18px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.12s ease;
}

.nav__btn:hover {
  background: var(--surface-hover);
}

.nav__btn b {
  font-size: 11.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.nav__btn--fav svg {
  color: var(--text-secondary);
}

.nav__btn--fav[aria-pressed="true"] {
  background: rgba(229, 9, 20, 0.18);
  color: #fff;
}

.nav__btn--fav[aria-pressed="true"] svg {
  color: var(--accent);
}

.nav__btn--fav[aria-pressed="true"] b {
  background: var(--accent);
  color: #fff;
}

/* ---------------- KAYNAK SEKMELERİ (SOURCE TABS) ---------------- */

.source-bar {
  background: #141414;
  border-top: 1px solid #1f1f1f;
}

.source-bar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.source-nav {
  flex: 0 0 auto;
  width: 26px;
  height: 28px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.source-nav:hover {
  background: rgba(255, 107, 0, 0.16);
  border-color: var(--accent);
  color: #fff;
}

.source-tabs {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 7px 20px 7px 2px;
  scroll-behavior: smooth;
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 22px), transparent 100%);
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 22px), transparent 100%);
}

.source-tabs::-webkit-scrollbar {
  display: none;
}

.source-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.source-tab:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.source-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.35);
}

.source-tab__pill {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 107, 0, 0.18);
  color: #ff9c4d;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.source-tab.is-active .source-tab__pill {
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
}

.source-tab__badge {
  font-size: 10.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-weight: 500;
}

.source-tab.is-active .source-tab__badge {
  background: rgba(0, 0, 0, 0.12);
  color: #222;
}

/* ---------------- SİNEMA OYNATICI (THEATER PLAYER) ---------------- */

.theater {
  margin-bottom: 24px;
  background: #141414;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.theater__container {
  max-width: 1120px;
  margin: 0 auto;
}

.theater.is-wide .theater__container {
  max-width: 100%;
}

.theater__stage {
  background: #000;
  width: 100%;
}

.theater__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 74vh;
  background: #000;
  overflow: hidden;
}

.theater__loading,
.theater__status {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13.5px;
  background: rgba(0, 0, 0, 0.58);
}

.theater__status--passthru {
  pointer-events: none;
  background: rgba(0, 0, 0, 0.35);
}

.theater__status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.theater__video video,
.theater__video iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  background: #000;
}

.theater__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
}

.theater__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}

.theater__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.theater__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.quality-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  padding: 2px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.quality-group:empty {
  display: none;
}

.q-btn {
  height: 26px;
  padding: 0 9px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.q-btn:hover {
  color: #fff;
}

.q-btn.is-active {
  background: var(--accent);
  color: #fff;
}

.theater__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 20px;
}

.theater__tags:empty {
  display: none;
}

.tag {
  padding: 4px 10px;
  border-radius: 14px;
  background: var(--surface-2);
  font-size: 12px;
  color: var(--text-secondary);
  transition: background 0.12s ease, color 0.12s ease;
}

.tag:hover {
  background: var(--surface-hover);
  color: #fff;
}

.theater__related {
  padding: 12px 20px 20px;
  border-top: 1px solid var(--border);
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.related {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.related__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.related__item img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
  background: #1f1f1f;
}

.related__item span {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related__item:hover span {
  color: #fff;
}

/* ---------------- KATEGORİ & SIRALAMA BAR ---------------- */

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.chips-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 6px;
}

.chips-nav {
  flex: 0 0 auto;
  width: 28px;
  height: 32px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.chips-nav:hover {
  background: var(--surface-hover);
  border-color: var(--border-light);
  color: #fff;
}

.chips {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 2px 0;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.chip:hover {
  background: var(--surface-2);
  border-color: var(--border-light);
  color: #fff;
}

.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.toolbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.toolbar__count {
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.sort-group {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
}

.sort-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.12s ease, color 0.12s ease;
}

.sort-btn:hover {
  color: #fff;
}

.sort-btn.is-active {
  background: var(--surface-hover);
  color: #fff;
  font-weight: 600;
}

/* ---------------- VİDEO GRİD & KARTLAR ---------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px 16px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
}

.card__thumb img,
.card__thumb video.card__preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__thumb img {
  transition: transform 0.25s ease;
}

.card:hover .card__thumb img {
  transform: scale(1.02);
}

.card__thumb video.card__preview {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
}

.badge {
  position: absolute;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.badge--dur {
  right: 6px;
  bottom: 6px;
  color: #fff;
  background: rgba(0, 0, 0, 0.82);
}

.badge--hd {
  left: 6px;
  bottom: 6px;
  color: #fff;
  background: rgba(0, 0, 0, 0.78);
}

.badge--hd.is-4k {
  background: var(--accent);
  color: #fff;
}

.card__fav {
  position: absolute;
  z-index: 3;
  top: 6px;
  right: 6px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.72);
  color: #ccc;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.card:hover .card__fav,
.card__fav.is-on {
  opacity: 1;
}

.card__fav:hover {
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
}

.card__fav.is-on {
  background: var(--accent);
  color: #fff;
}

.card__body {
  padding: 9px 2px 0;
}

.card__title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card:hover .card__title {
  color: #fff;
}

.card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.card__channel {
  color: var(--text-secondary);
  font-weight: 500;
}

.card__rate {
  color: #4ade80;
  font-weight: 500;
}

.dot {
  color: var(--text-muted);
}

/* ---------------- BOŞ DURUM ---------------- */

.empty {
  text-align: center;
  padding: 60px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.empty h2 {
  margin: 0 0 6px;
  font-size: 17px;
}

.empty p {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 13.5px;
}

.more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* Yükleme İskeleti */
.sk {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sk::before {
  content: "";
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: linear-gradient(90deg, #181818 25%, #242424 50%, #181818 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}

.sk::after {
  content: "";
  display: block;
  height: 16px;
  width: 75%;
  border-radius: 4px;
  background: #1c1c1c;
}

@keyframes shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

/* ---------------- FOOTER ---------------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: #0a0a0a;
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 24px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
}

.site-footer__brand {
  flex: 1 1 320px;
}

.site-footer__brand p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 480px;
}

.site-footer__links {
  flex: 1 1 360px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
}

.site-footer__links a {
  font-size: 13px;
  color: var(--text-secondary);
}

.site-footer__links a:hover {
  color: #fff;
}

.site-footer__bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px 20px;
  border-top: 1px solid #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-legal a:hover {
  color: #fff;
}

.credit-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.credit-link b {
  color: var(--accent);
  font-weight: 700;
}

.credit-link:hover {
  border-color: var(--accent);
  background: rgba(229, 9, 20, 0.1);
  color: #fff;
}

.site-footer__bottom kbd {
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* ---------------- TOAST ---------------- */

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 250;
  transform: translateY(10px);
  padding: 10px 16px;
  border-radius: 6px;
  background: #242424;
  border: 1px solid #383838;
  font-size: 13px;
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.toast.is-on {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- DİL SEÇİCİ & ÇEREZ ONAYI ---------------- */

.gate__lang {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 20;
}

.lang-switch {
  position: relative;
}

.lang-btn {
  gap: 6px;
  padding: 0 11px;
}

.lang-btn svg,
.lang-opt svg {
  flex: 0 0 auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.lang-btn__code {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.lang-btn__caret {
  font-size: 10px;
  color: var(--text-muted);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 220;
  width: 280px;
  max-height: 360px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 8px;
  border-radius: 10px;
  background: #17171b;
  border: 1px solid var(--border-light);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.78);
}

.lang-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--text-secondary);
  text-align: left;
  transition: background 0.12s ease, color 0.12s ease;
}

.lang-opt:hover {
  background: var(--surface-2);
  color: #fff;
}

.lang-opt.is-active {
  background: rgba(229, 9, 20, 0.18);
  color: #fff;
  font-weight: 600;
}

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 240;
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(20, 20, 24, 0.96);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-banner__body strong {
  display: block;
  font-size: 13.5px;
  color: #fff;
  margin-bottom: 3px;
}

.cookie-banner__body p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.cookie-banner__body a {
  color: #fff;
  text-decoration: underline;
  margin-left: 4px;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ---------------- MOBİL UYUM ---------------- */

.source-tabs,
.chips {
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.source-tab,
.chip {
  scroll-snap-align: start;
}

@media (max-width: 1120px) {
  .gate__wall {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 960px) {
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .toolbar__right {
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .gate {
    min-height: 100dvh;
    padding: 20px 14px calc(24px + env(safe-area-inset-bottom));
  }
  .gate__wall {
    grid-template-columns: repeat(2, 1fr);
  }
  .gate__bar {
    flex-direction: column;
    align-items: stretch;
  }
  .gate__input {
    text-align: center;
    font-size: 16px;
  }
  .site-header {
    position: relative;
  }
  .wrap {
    padding: 12px 12px calc(48px + env(safe-area-inset-bottom));
  }
  .site-header__inner {
    height: auto;
    flex-wrap: wrap;
    padding: 10px 12px;
    gap: 8px 10px;
  }
  .search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
    height: 40px;
  }
  .search input {
    font-size: 16px;
  }
  .search__kbd {
    display: none;
  }
  .nav {
    margin-left: auto;
    gap: 6px;
  }
  .nav__btn {
    min-height: 36px;
    padding: 0 10px;
  }
  .nav__btn span {
    display: none;
  }
  .source-bar__inner {
    padding: 0 12px;
  }
  .source-tab {
    height: 34px;
    padding: 0 11px;
  }
  .chips-nav {
    display: none;
  }
  .chip {
    height: 36px;
    padding: 0 13px;
    font-size: 13px;
  }
  .theater {
    margin: -12px -12px 16px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .theater__video {
    max-height: 56vh;
  }
  .theater__bar {
    flex-direction: column;
    padding: 12px 12px;
    gap: 10px;
  }
  .theater__title {
    font-size: 16px;
  }
  .theater__actions {
    width: 100%;
    justify-content: flex-start;
  }
  #theaterWideBtn {
    display: none;
  }
  .theater__tags,
  .theater__related {
    padding-left: 12px;
    padding-right: 12px;
  }
  .related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }
  .card__title {
    font-size: 13px;
  }
  .card__meta {
    font-size: 11.5px;
  }
  .site-footer__inner,
  .site-footer__bottom {
    padding-left: 14px;
    padding-right: 14px;
  }
  .site-footer__links {
    justify-content: flex-start;
  }
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .toast {
    left: 12px;
    right: 12px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    text-align: center;
  }
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
    gap: 10px;
  }
  .cookie-banner__actions {
    justify-content: flex-end;
  }
  .lang-menu {
    width: 248px;
  }
}

@media (max-width: 540px) {
  .toolbar__right {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .sort-group {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }
  .sort-btn {
    height: 34px;
    padding: 0 4px;
    font-size: 11.5px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 380px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (hover: none) {
  .card__fav {
    opacity: 1;
    width: 34px;
    height: 34px;
  }
}

/* ---------------- DUYURU ÇUBUĞU, HESAP MODALI, BEĞENİ & YORUMLAR ---------------- */

.site-notice {
  background: linear-gradient(90deg, rgba(229, 9, 20, .14), rgba(229, 9, 20, .05));
  border-bottom: 1px solid rgba(229, 9, 20, .28);
  font-size: 12.5px;
  color: #f3f3f6;
}
.site-notice__inner {
  max-width: 1520px;
  margin: 0 auto;
  padding: 7px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-notice__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.nav__btn--account.is-signed {
  border-color: rgba(70, 211, 105, .45);
  color: #fff;
}

.like-pill.is-liked {
  background: rgba(229, 9, 20, .18);
  border-color: var(--accent);
  color: #fff;
}

.theater__comments {
  padding: 14px 20px 6px;
  border-top: 1px solid var(--border);
}
.comments__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.comment-form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.comment-form__input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: #fff;
  font-size: 13px;
  outline: none;
}
.comment-form__input:focus {
  border-color: var(--accent);
}
.comment-guest-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-secondary);
}
.comments__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}
.comment-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
}
.comment-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.comment-item__head b {
  color: #fff;
}
.comment-item__del {
  background: none;
  border: 0;
  color: #ff6b6b;
  font-size: 11.5px;
  cursor: pointer;
  padding: 0 4px;
}
.comment-item__body {
  font-size: 13px;
  color: #e5e5ea;
  line-height: 1.42;
  word-break: break-word;
}
.comment-empty {
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 6px 0;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 16px;
}
.auth-modal[hidden] {
  display: none !important;
}
.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .74);
  backdrop-filter: blur(4px);
}
.auth-modal__card {
  position: relative;
  width: 100%;
  max-width: 410px;
  background: #141418;
  border: 1px solid #2b2b34;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .6);
}
.auth-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #2d2d36;
  background: #1c1c22;
  color: #ccc;
  cursor: pointer;
}
.auth-modal__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}
.auth-modal__sub {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: #9a9aa6;
  line-height: 1.45;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #1c1c22;
  padding: 4px;
  border-radius: 9px;
  margin-bottom: 14px;
}
.auth-tab {
  height: 34px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  color: #a1a1aa;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.auth-tab.is-active {
  background: var(--accent);
  color: #fff;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.auth-form[hidden] {
  display: none !important;
}
.auth-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.auth-input {
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #2e2e38;
  background: #1d1d22;
  color: #fff;
  font-size: 13.5px;
  outline: none;
}
.auth-input:focus {
  border-color: var(--accent);
}
.auth-err {
  min-height: 16px;
  font-size: 12.5px;
  color: #ff6b6b;
}
.auth-profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  background: #1b1b22;
  border: 1px solid #2a2a33;
  border-radius: 10px;
  margin-bottom: 12px;
}
.auth-profile-head strong {
  color: #fff;
  font-size: 15px;
}
.auth-profile-sub {
  font-size: 12px;
  color: #9a9aa6;
  margin-top: 2px;
}
.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

@media (max-width: 760px) {
  .theater__comments {
    padding-left: 12px;
    padding-right: 12px;
  }
  .comment-guest-note {
    flex-direction: column;
    align-items: flex-start;
  }
}

.acc-mini-av {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.acc-mini-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.auth-profile-user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.prof-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: #292935;
  border: 2px solid var(--accent);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.prof-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.auth-profile-bio {
  font-size: 12px;
  color: #c6c6d0;
  margin-top: 4px;
  line-height: 1.35;
}
.prof-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.prof-stat {
  background: #1b1b22;
  border: 1px solid #2a2a33;
  border-radius: 9px;
  padding: 8px 6px;
  text-align: center;
}
.prof-stat strong {
  display: block;
  font-size: 16px;
  color: #fff;
}
.prof-stat span {
  font-size: 11px;
  color: #9a9aa6;
}
.prof-subtabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: #1c1c22;
  padding: 4px;
  border-radius: 9px;
  margin-bottom: 12px;
}
.prof-av-row {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}
.auth-textarea {
  height: auto;
  min-height: 58px;
  padding: 8px 12px;
  resize: vertical;
}
.prof-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 230px;
  overflow-y: auto;
}
.prof-list__item {
  background: #1a1a21;
  border: 1px solid #2a2a33;
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 12.5px;
  cursor: pointer;
}
.prof-list__item:hover {
  border-color: #444454;
}
.prof-list__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #8f8f9b;
  margin-bottom: 3px;
}
.comment-item__author {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.comment-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  background: #2b2b36;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------- TAVŞAN MARKA, BUZLU CAM & ALT BEĞENİ BAR + LGBT+ ---------------- */

.brand__icon--bunny {
  display: inline-grid;
  place-items: center;
  background: transparent !important;
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.35);
  border-radius: 9px;
}

.site-header {
  background: rgba(15, 15, 19, 0.76) !important;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.source-bar {
  background: rgba(20, 20, 26, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.theater {
  background: rgba(20, 20, 26, 0.78);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  border-color: rgba(255, 255, 255, 0.09);
}

.auth-modal__card {
  background: rgba(20, 20, 26, 0.86);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border-color: rgba(255, 255, 255, 0.11);
}

.chip {
  background: rgba(24, 24, 30, 0.72);
  backdrop-filter: blur(10px);
}

.theater__engagement {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.like-pill {
  gap: 6px;
}

.like-pill__heart {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform 0.15s ease, fill 0.15s ease, stroke 0.15s ease;
}

.like-pill.is-liked .like-pill__heart {
  fill: var(--accent);
  stroke: var(--accent);
  transform: scale(1.12);
}

.like-pill b {
  font-weight: 700;
  color: #fff;
}

.lgbt-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: rgba(24, 24, 32, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lgbt-bar__subs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lgbt-bar__src {
  height: 32px;
  padding: 0 10px;
  border-radius: 7px;
  background: #1b1b23;
  border: 1px solid var(--border-light);
  color: #fff;
  font-size: 12.5px;
  outline: none;
}

@media (max-width: 760px) {
  .theater__engagement {
    padding: 10px 12px;
  }
}

/* ---------------- HAVUÇ TURUNCU TAVŞAN MARKASI, KATEGORİ POPOVER & RULET ---------------- */

.brand__bunny-img {
  border-radius: 0;
  object-fit: contain;
  border: none;
  box-shadow: none;
  background: transparent;
  flex-shrink: 0;
}

.nav__btn--bunny {
  border-color: rgba(255, 107, 0, 0.45);
}
.nav__btn--bunny:hover {
  border-color: var(--accent);
  background: rgba(255, 107, 0, 0.14);
}
.nav__bunny-mini {
  border-radius: 0;
  object-fit: contain;
  border: none;
  background: transparent;
  flex-shrink: 0;
}

.cat-menu-wrap {
  position: relative;
}

.cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 13px;
  border-radius: 9px;
  background: rgba(24, 24, 30, 0.78);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 107, 0, 0.38);
  color: #fff;
  font-size: 13px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cat-btn:hover {
  border-color: var(--accent);
  background: rgba(255, 107, 0, 0.12);
}
.cat-btn__label {
  color: var(--text-secondary);
}
.cat-btn b {
  color: var(--accent);
  font-weight: 700;
}
.cat-btn__caret {
  color: var(--text-muted);
  font-size: 11px;
}

.cat-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 95;
  width: min(560px, 92vw);
  max-height: 62vh;
  overflow-y: auto;
  padding: 12px;
  border-radius: 12px;
  background: rgba(20, 20, 26, 0.9);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.78);
}

.cat-popover .chips {
  display: flex;
  flex-wrap: wrap;
  overflow: visible;
  gap: 7px;
  padding: 0;
}

.roulette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 7px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 2px;
}

.roulette-grid .chip {
  justify-content: center;
  width: 100%;
  text-align: center;
}

.site-notice {
  background: linear-gradient(90deg, rgba(255, 107, 0, 0.16), rgba(255, 107, 0, 0.05));
  border-bottom: 1px solid rgba(255, 107, 0, 0.32);
}

/* ---------------- YAN REKLAM RAYLARI & KOŞAN TAVŞAN LOADER ---------------- */

.page-shell {
  flex: 1 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 0 12px;
}

.page-shell .wrap {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

/* Display creatives use reserved image dimensions to prevent layout shifts. */
.promo-rail {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px; width: 100%; max-width: 1180px; margin: 0 auto; padding-top: 10px;
}
.display-ad__header { grid-column: 1 / -1; }
.display-ad picture { display: block; }
@media (max-width: 1279px) {
  .display-ad img { width: 100% !important; height: auto !important; aspect-ratio: 16 / 5; }
}
@media (max-width: 599px) {
  .promo-rail { grid-template-columns: 1fr; gap: 8px; }
}
.promo-rail[hidden] { display: none !important; }
.display-ad__header {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 28px; color: #a4a7b0; font-size: 10px;
  letter-spacing: .025em; padding-left: 2px;
}
.display-ad__close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0; border: 1px solid #343845;
  border-radius: 5px; background: #191d27; color: #cdd1db;
  font: 18px/1 Arial, sans-serif; cursor: pointer;
}
.display-ad__close:hover { background: #303647; color: #fff; }
.display-ad { display: block; overflow: hidden; border-radius: 8px;
  border: 1px solid #343845; background: #10141e;
  box-shadow: 0 8px 24px #0003; transition: border-color .15s ease;
}
.display-ad:hover { border-color: #80899c; }
.display-ad:focus-visible, .display-ad__close:focus-visible {
  outline: 3px solid #65bdff; outline-offset: 3px;
}
.display-ad img { display: block; width: 160px; height: 300px; max-width: 100%; object-fit: cover; }
@media (min-width: 1280px) {
  .page-shell { flex-direction: row; justify-content: center; align-items: flex-start; gap: 16px; }
  .page-shell .wrap { margin: 0; }
  .promo-rail { display: flex; flex: 0 0 162px; width: 162px; max-width: 162px; min-width: 0; margin: 0; flex-direction: column; gap: 10px; padding-top: 12px; }
}
/* Keep the close control reachable even on short desktop windows. */
@media (min-width: 1280px) and (min-height: 850px) {
  .promo-rail { position: sticky; top: 118px; }
}

/* Koşan Tavşan Yükleme Animasyonu */
.bunny-loader {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px;
}

.bunny-loader__stage {
  position: relative;
  width: 220px;
  height: 100px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border-bottom: 2px solid rgba(255, 107, 0, 0.55);
}

.bunny-loader__svg {
  width: 128px;
  height: 82px;
  animation: bunnyHop 0.45s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
  transform-origin: center bottom;
  filter: drop-shadow(0 6px 14px rgba(255, 107, 0, 0.35));
}

.bunny-loader__ear {
  animation: bunnyEar 0.45s ease-in-out infinite alternate;
  transform-origin: 64px 20px;
}

.bunny-loader__legs {
  animation: bunnyLegs 0.22s ease-in-out infinite alternate;
  transform-origin: 48px 40px;
}

.bunny-loader__dust {
  position: absolute;
  bottom: 5px;
  left: 34px;
  width: 18px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 107, 0, 0.72);
  box-shadow: -14px -4px 0 -1px rgba(255, 140, 56, 0.5), -26px -1px 0 -2px rgba(255, 179, 128, 0.35);
  animation: bunnyDust 0.45s linear infinite;
}

.bunny-loader__text {
  font-size: 14px;
  font-weight: 600;
  color: #f3f4f6;
  letter-spacing: 0.2px;
}

@keyframes bunnyHop {
  from { transform: translate(-8px, 4px) rotate(-5deg); }
  to   { transform: translate(12px, -14px) rotate(6deg); }
}

@keyframes bunnyEar {
  from { transform: rotate(-10deg); }
  to   { transform: rotate(12deg); }
}

@keyframes bunnyLegs {
  from { transform: rotate(-16deg); }
  to   { transform: rotate(16deg); }
}

@keyframes bunnyDust {
  0%   { transform: translateX(26px) scale(1); opacity: 0.9; }
  100% { transform: translateX(-34px) scale(0.3); opacity: 0; }
}


.cat-popover__bar {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 10px;
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
