/* ================= MODERN DARK — NETFLIX x DISCORD ================= */
:root {
  --bg: #0a0a0c;
  --surface: #141418;
  --surface-2: #1c1c22;
  --hover: #26262e;
  --active: #2f2f39;

  --red: #e50914;
  --red-hover: #f6121d;
  --red-active: #b00710;

  --text: #ececef;
  --text-strong: #ffffff;
  --muted: #a2a2ad;
  --muted-2: #6d6d78;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --pill: 999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scrollbar-color: #2a2a32 transparent; }

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
svg { display: block; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a2a32; border-radius: 5px; border: 3px solid var(--bg); }

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

/* ================= HEADER ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr minmax(0, 520px) 1fr;
  align-items: center;
  gap: 16px;
  height: 64px;
  padding: 0 24px 0 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--surface-2);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.header-center {
  display: flex;
  justify-content: center;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Arama toggle butonu — sadece mobilde görünür */
.search-toggle {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text);
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.search-toggle:hover { background: var(--surface); }

/* Hamburger: visible on mobile only */
.menu-btn {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text);
  flex-shrink: 0;
  transition: background 0.15s ease;
}

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

@media (max-width: 1000px) {
  .menu-btn { display: grid; }
}

/* --- Mobile drawer menu (slides in from the left) --- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 95;
  width: 280px;
  max-width: 85vw;
  background: var(--surface);
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
}

body.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
body.drawer-open .drawer { transform: translateX(0); }
body.drawer-open { overflow: hidden; }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 16px 0 20px;
  border-bottom: 1px solid var(--surface-2);
}

.drawer-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.drawer-close:hover { background: var(--surface-2); color: var(--text-strong); }

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 12px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.drawer-link:hover { background: var(--surface-2); color: var(--text-strong); }

.drawer-link.active {
  background: var(--surface-2);
  color: var(--text-strong);
}

.drawer-link.active svg { color: var(--red); }

.drawer-heading { padding-left: 14px; }

.drawer-link .cat-avatar { width: 32px; height: 32px; }

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-strong);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Shine: 5 saniyede bir tüm logonun (kutu + yazı) üstünden soldan sağa geçen parlama */
.logo::after {
  content: '';
  position: absolute;
  top: 0;
  left: -30%;
  width: 42px;
  height: 100%;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.6) 50%, transparent 80%);
  transform: skewX(-18deg);
  pointer-events: none;
  z-index: 3;
  animation: logoShine 5s ease-in-out infinite;
}
@keyframes logoShine {
  0%   { left: -30%; }
  12%  { left: 118%; }   /* ~0.6sn'de hızlı süpürme */
  100% { left: 118%; }   /* kalan süre bekle → 5sn'de bir */
}
@media (prefers-reduced-motion: reduce) { .logo::after { animation: none; } }

.logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.15s ease, border-radius 0.2s ease;
}

/* SVG'yi kutuya oranla büyüt (kırmızı kutu boyutu değişmez) */
.logo-mark svg { width: 74%; height: 74%; }
.logo:hover .logo-mark {
  transform: scale(1.06);
  border-radius: 50%;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.logo b { color: var(--red); font-weight: 900; }

.header-nav {
  display: flex;
  gap: 4px;
  background: var(--surface);
  padding: 4px;
  border-radius: var(--pill);
}

.nav-link {
  padding: 7px 18px;
  border-radius: var(--pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover { color: var(--text-strong); }

.nav-link.active {
  background: var(--red);
  color: #fff;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  height: 46px;
  padding: 0 18px;
  background: var(--surface);
  border: 1px solid var(--hover);
  border-radius: var(--pill);
  color: var(--muted-2);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.search-box:focus-within {
  background: var(--surface-2);
  border-color: var(--red);
  color: var(--muted);
}

.search-box input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
}

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

/* ================= WATCH PAGE — 3-COLUMN LAYOUT ================= */
.app-shell {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr) 316px;
  gap: 24px;
  padding: 16px 20px 64px 6px;
  align-items: start;
}

.watch-main,
.ad-col { min-width: 0; }

/* --- Left: Reddit-style list rail --- */
.sidebar {
  position: sticky;
  top: 76px;
  border-right: 1px solid var(--surface-2);
  padding-right: 12px;
}

.sidebar-heading { display: none; }

.category-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#categoryList {
  margin-top: 12px;
  padding-top: 4px;
  border-top: 1px solid var(--surface-2);
}

.rail-heading {
  padding: 12px 12px 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.category-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.category-item svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.category-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.category-item.active {
  background: var(--surface-2);
  color: var(--text-strong);
  font-weight: 600;
}

.category-item.active svg { color: var(--red); }

/* Circular category artwork (Reddit-style) */
.cat-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.cat-avatar svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cat-avatar-icon {
  display: grid;
  place-items: center;
  background: var(--surface-2);
}

.cat-avatar-icon svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.category-item.active .cat-avatar {
  outline: 2px solid var(--red);
  outline-offset: 1px;
}

/* --- Player --- */
.player {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #000;
}

.player-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  overflow: hidden;
}

.player-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-art { position: absolute; inset: 0; }
.player-art svg { width: 100%; height: 100%; }

/* The poster hides once real playback has started */
.player.started .player-art { display: none; }

.big-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.72);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, transform 0.15s ease;
}

.big-play:hover {
  background: var(--red);
  transform: translate(-50%, -50%) scale(1.07);
}

.big-play.hidden { display: none; }

/* iPhone: ilk görünümde kapak + big-play kalır; oynatma native tam ekranda olduğu için
   inline kontrol barını ve preroll katmanını gizle */
.player.native-player .player-controls,
.player.native-player .preroll-layer { display: none !important; }

/* Controls overlaid on the video */
.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px 12px;
  background: rgba(8, 8, 10, 0.82);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.player-screen:hover .player-controls,
.player.paused-ui .player-controls {
  opacity: 1;
  transform: translateY(0);
}

.progress-wrap {
  position: relative;
  height: 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.progress-wrap::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 2px;
}

.progress-bar {
  position: relative;
  width: 0%;
  height: 4px;
  background: var(--red);
  border-radius: 2px;
  transition: width 0.2s linear;
}

.progress-knob {
  position: absolute;
  right: -7px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  transition: transform 0.15s ease;
}

.progress-wrap:hover .progress-knob { transform: translateY(-50%) scale(1); }

.controls-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.controls-spacer { flex: 1; }

.ctrl-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  transition: background 0.15s ease;
}

.ctrl-btn:hover { background: rgba(255, 255, 255, 0.14); }

.time-label {
  margin-left: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* --- Title & meta --- */
.watch-title {
  margin: 18px 0 14px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  line-height: 1.25;
}

.watch-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.channel-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.channel-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.channel-name { font-weight: 700; font-size: 0.95rem; color: var(--text-strong); }
.channel-subs { font-size: 0.78rem; color: var(--muted); }

.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* --- Pill butonlar --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--pill);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.btn:active { transform: scale(0.96); }
.btn svg { flex-shrink: 0; }

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

.btn-red.subscribed { background: var(--surface-2); color: var(--muted); }
.btn-red.subscribed:hover { background: var(--hover); color: var(--text); }

.btn-pill { background: var(--surface-2); color: var(--text); }
.btn-pill:hover { background: var(--hover); color: var(--text-strong); }
.btn-pill.active { background: var(--red); color: #fff; }

.pill-group {
  display: inline-flex;
  align-items: center;
  background: var(--surface-2);
  border-radius: var(--pill);
}

.pill-group .btn-pill { background: transparent; }
.pill-group .btn-pill:hover { background: var(--hover); }
.pill-group .btn-pill:first-child { border-radius: var(--pill) 0 0 var(--pill); padding-right: 14px; }
.pill-group .btn-pill:last-child { border-radius: 0 var(--pill) var(--pill) 0; padding-left: 14px; }
.pill-group .btn-pill.active { background: var(--red); color: #fff; }

.pill-divider {
  width: 1px;
  height: 22px;
  background: var(--hover);
  flex-shrink: 0;
}

/* --- Description --- */
.desc-box {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--surface);
  border-radius: var(--r-md);
}

.desc-stats {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 6px;
}

.desc-text {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* --- Etiketler (tags) --- */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-chip {
  padding: 6px 14px;
  border-radius: var(--pill);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

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

/* --- Ana sayfa --- */
.app-shell-home { grid-template-columns: 216px minmax(0, 1fr); }

.home-main { min-width: 0; }

.video-grid-home {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px 20px;
}

/* --- Category shelves (Netflix-style horizontal rows) --- */
.cat-shelf { margin-bottom: 40px; }

.cat-shelf-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--text-strong);
}

.cat-shelf-head svg { color: var(--red); }

.cat-shelf-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.cat-shelf-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface);
  padding: 3px 10px;
  border-radius: var(--pill);
}

.shelf-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 360px;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

.shelf-row::-webkit-scrollbar { height: 8px; }

.shelf-row .video-card { scroll-snap-align: start; }

/* Reels shelf on the home page */
.reels-shelf-row { grid-auto-columns: 182px; }

.reels-shelf-row .discover-card { scroll-snap-align: start; }

.shelf-more {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red);
  transition: color 0.15s ease;
}

.shelf-more:hover { color: var(--red-hover); }

/* --- Bottom: video grid --- */
.more-videos { margin-top: 32px; }

.section-heading {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  margin-bottom: 16px;
}

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

.video-card {
  border-radius: var(--r-md);
  cursor: pointer;
  transition: transform 0.18s ease;
}

.video-card:hover { transform: scale(1.03); }

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
}

.video-thumb svg { width: 100%; height: 100%; }

.video-duration {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 3px 7px;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.now-playing-badge {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 3px 8px;
  background: var(--red);
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.video-card-body {
  padding: 12px 6px 0;
  min-width: 0;
}

.video-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card-views {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--muted);
}

.grid-empty {
  grid-column: 1 / -1;
  padding: 32px;
  text-align: center;
  color: var(--muted-2);
  font-size: 0.9rem;
  background: var(--surface);
  border-radius: var(--r-md);
}

/* --- Right: ad area --- */
.ad-col {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ad-slot {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-md);
  overflow: hidden;
}

.ad-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 9px;
  background: rgba(10, 10, 12, 0.75);
  border-radius: var(--pill);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
}

.ad-art { aspect-ratio: 16 / 9; }
.ad-art svg { width: 100%; height: 100%; display: block; }

.ad-body { padding: 14px 16px 16px; }

.ad-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-strong);
  margin-bottom: 6px;
}

.ad-text {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.ad-cta { width: 100%; height: 38px; }

.ad-placeholder {
  border: 2px dashed var(--hover);
  background: transparent;
}

.ad-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 250px;
  color: var(--muted-2);
  font-size: 0.85rem;
  font-weight: 600;
}

.ad-tall .ad-placeholder-inner { height: 600px; }

.ad-size { font-size: 0.72rem; font-weight: 500; color: var(--muted-2); }

/* --- Search results dropdown --- */
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--surface-2);
  border-radius: var(--r-md);
  overflow: hidden;
  padding: 6px;
  display: none;
}

.search-results.open { display: block; }

.search-result {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 6px;
  border-radius: var(--r-sm);
  text-align: left;
  transition: background 0.12s ease;
}

.search-result:hover { background: var(--hover); }

.search-result-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
}

.search-result-thumb svg { width: 100%; height: 100%; }

.search-result-info { min-width: 0; }

.search-result-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result-meta {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 2px;
}

.search-empty {
  padding: 16px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted-2);
}

/* --- Footer: minimal, dev tipografi --- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--surface-2);
  margin-top: 56px;
  overflow: hidden;
}

.footer-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 44px 24px 24px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.footer-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s ease;
}

.footer-nav a:hover { color: var(--text-strong); }

.footer-social {
  display: flex;
  gap: 6px;
}

.social-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.social-btn:hover { background: var(--surface); color: var(--red); }

/* Giant brand wordmark */
.footer-wordmark {
  margin: 40px 0 28px;
  text-align: center;
  font-size: clamp(3.5rem, 14vw, 12rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.85;
  color: var(--surface-2);
  user-select: none;
  white-space: nowrap;
}

.footer-wordmark span {
  color: #3a0a0d;
  transition: color 0.3s ease;
}

.footer-wordmark:hover span { color: var(--red); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--surface-2);
  font-size: 0.78rem;
  color: var(--muted-2);
}

.footer-bottom-links {
  display: flex;
  gap: 22px;
}

.footer-bottom-links a {
  color: var(--muted-2);
  font-weight: 500;
  transition: color 0.15s ease;
}

.footer-bottom-links a:hover { color: var(--text); }

/* ================= REELS SAYFASI ================= */
.reels-body {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.reels-stage {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 0 20px;
}

.reels-feed {
  height: 100%;
  aspect-ratio: 9 / 16;
  max-width: 92vw;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  border-radius: var(--r-xl);
}

.reels-feed::-webkit-scrollbar { display: none; }

.reel {
  position: relative;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 14px;
  background: #000;
}

.reel:last-child { margin-bottom: 0; }

.reel-art { position: absolute; inset: 0; }
.reel-art svg { width: 100%; height: 100%; }

.reel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.reel-play-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.reel-play-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.75);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.reel.paused .reel-play-icon { opacity: 1; transform: scale(1); }

/* Alt bilgi */
.reel-caption {
  position: absolute;
  left: 14px;
  right: 72px;
  bottom: 24px;
}

.reel-channel {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.reel-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
  border: 2px solid #fff;
}

.reel-channel-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.reel-follow {
  padding: 6px 14px;
  border-radius: var(--pill);
  background: #fff;
  color: #0a0a0c;
  font-size: 0.75rem;
  font-weight: 700;
  transition: background 0.15s ease, color 0.15s ease;
}

.reel-follow:hover { background: var(--red); color: #fff; }

.reel-follow.following {
  background: rgba(10, 10, 12, 0.6);
  color: #fff;
}

.reel-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.45;
  margin-bottom: 8px;
}

.reel-song {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--pill);
  background: rgba(10, 10, 12, 0.6);
  font-size: 0.74rem;
  font-weight: 500;
  color: #fff;
  max-width: 100%;
}

.reel-song span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Right-side actions */
.reel-actions {
  position: absolute;
  right: 12px;
  bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.reel-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #fff;
}

.reel-action-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.6);
  display: grid;
  place-items: center;
  transition: background 0.15s ease, transform 0.12s ease;
}

button.reel-action:hover .reel-action-icon { background: var(--hover); transform: scale(1.08); }
button.reel-action:active .reel-action-icon { transform: scale(0.9); }

.reel-action.liked .reel-action-icon {
  background: var(--red);
  animation: like-pop 0.3s ease;
}

@keyframes like-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.reel-action-label {
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Floating controls (sound + fullscreen) */
.reels-fabs {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, calc((100dvh - 88px) * 9 / 16));
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 10px;
  z-index: 5;
  pointer-events: none;
}

.fab-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.6);
  color: #fff;
  pointer-events: auto;
  transition: background 0.15s ease, transform 0.12s ease;
}

.fab-btn:hover { background: var(--hover); transform: scale(1.06); }
.fab-btn:active { transform: scale(0.94); }

/* Bottom seek bar: advances with playback, click/drag to seek */
.reel-progress {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  z-index: 6;
  touch-action: none;
}

.reel-progress::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.reel-progress-fill {
  position: relative;
  width: 0%;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  transition: height 0.12s ease;
}

.reel-progress-knob {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  transition: transform 0.12s ease;
}

.reel-progress:hover::before { height: 5px; }
.reel-progress:hover .reel-progress-fill { height: 5px; }
.reel-progress:hover .reel-progress-knob { transform: translateY(-50%) scale(1); }

/* Navigation arrows */
.reels-nav {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reels-nav-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.reels-nav-btn:hover { background: var(--red); color: #fff; transform: scale(1.08); }
.reels-nav-btn:active { transform: scale(0.95); }

/* --- Reels left rail --- */
.reels-sidebar {
  position: absolute;
  border-right: none;
  padding-right: 0;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 190px;
}

@media (max-width: 1250px) {
  .reels-sidebar { display: none; }
}

/* ================= REELS DISCOVER ================= */
.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.chip {
  padding: 8px 18px;
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.chip:hover { background: var(--surface-2); color: var(--text-strong); }

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

.discover-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.discover-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #000;
  transition: transform 0.18s ease;
}

.discover-card:hover { transform: scale(1.03); }

.discover-thumb { position: absolute; inset: 0; }
.discover-thumb svg { width: 100%; height: 100%; }

.discover-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  background: rgba(10, 10, 12, 0.78);
}

.discover-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.discover-meta {
  display: flex;
  gap: 14px;
}

.discover-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.discover-meta svg { width: 14px; height: 14px; }

.discover-sentinel { height: 4px; }

/* ================= DASHBOARD (PANEL) ================= */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 22px;
  background: var(--surface);
  border-radius: var(--r-md);
  border-left: 4px solid var(--red);
}

.stat-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}

.stat-label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.stat-sub { font-size: 0.72rem; color: var(--muted-2); }

.dash-panels {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 16px;
  margin-bottom: 24px;
}

.dash-card {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 20px 22px;
}

.dash-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-strong);
  margin-bottom: 18px;
}

/* Bar chart — flat colors, no gradients */
.dash-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 12px;
  height: 200px;
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  height: 100%;
}

.bar-value {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.bar-track {
  flex: 1;
  width: 100%;
  max-width: 48px;
  display: flex;
  align-items: flex-end;
  background: var(--surface-2);
  border-radius: 8px;
  overflow: hidden;
}

.bar-fill {
  width: 100%;
  background: var(--red);
  border-radius: 8px 8px 0 0;
  transition: height 0.4s ease;
}

.bar-label { font-size: 0.75rem; font-weight: 600; color: var(--text); }

/* Most viewed list */
.dash-top { display: flex; flex-direction: column; gap: 4px; }

.top-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  transition: background 0.15s ease;
}

.top-row:hover { background: var(--surface-2); }

.top-rank {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.top-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-views {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Content table */
.dash-table-wrap { overflow-x: auto; }

.dash-table {
  width: 100%;
  border-collapse: collapse;
}

.dash-table th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  padding: 10px 12px;
  border-bottom: 1px solid var(--surface-2);
}

.dash-table td {
  padding: 10px 12px;
  font-size: 0.82rem;
  color: var(--text);
  border-bottom: 1px solid var(--surface-2);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.dash-table tbody tr {
  cursor: pointer;
  transition: background 0.12s ease;
}

.dash-table tbody tr:hover { background: var(--surface-2); }

.cell-video {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.cell-thumb {
  width: 72px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.cell-thumb svg { display: block; width: 100%; }

.cell-title {
  font-weight: 600;
  color: var(--text-strong);
  white-space: normal;
  line-height: 1.3;
}

.cell-cat {
  padding: 3px 10px;
  border-radius: var(--pill);
  background: var(--surface-2);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

/* ================= FORMS (report + upload) ================= */
.report-main { max-width: 760px; }

.report-intro {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.report-intro strong { color: var(--red); }

.form-card {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }

.field label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--surface-2);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--red); }

.field select { cursor: pointer; }
.field select option { background: var(--surface); }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-row input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--red);
  flex-shrink: 0;
  cursor: pointer;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.form-note { font-size: 0.78rem; color: var(--muted-2); }

.form-success {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 40px 24px;
  text-align: center;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  margin: 0 auto 16px;
}

.form-success h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-strong);
  margin-bottom: 8px;
}

.form-success p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 420px;
  margin: 0 auto 20px;
}

/* ================= DASHBOARD EXTRAS ================= */
.dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.dash-head .section-heading { margin-bottom: 4px; }

.dash-sub { font-size: 0.85rem; color: var(--muted); }

.upload-panel { margin-bottom: 24px; }

.upload-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}

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

.upload-side-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.upload-preview {
  aspect-ratio: 16 / 9;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--bg);
}

.upload-preview svg { width: 100%; height: 100%; display: block; }

.upload-drop {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 120px;
  border: 2px dashed var(--hover);
  border-radius: var(--r-sm);
  color: var(--muted-2);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 16px;
  transition: border-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
}

.upload-drop:hover { border-color: var(--red); color: var(--muted); }
.upload-drop-note { font-size: 0.72rem; font-weight: 500; }

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

.queue-badge {
  padding: 4px 12px;
  border-radius: var(--pill);
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.status-chip {
  padding: 3px 10px;
  border-radius: var(--pill);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-pending { background: var(--red); color: #fff; }
.status-resolved { background: var(--surface-2); color: var(--muted); }
.status-removed { background: #3a0a0d; color: #ff8a8d; }
.status-live { background: #0f2e14; color: #4ade80; }

.row-actions { display: flex; gap: 8px; }

.btn-mini {
  height: 30px;
  padding: 0 12px;
  font-size: 0.75rem;
  border-radius: var(--pill);
  background: var(--surface-2);
  color: var(--text);
}

.btn-mini:hover { background: var(--hover); }

.btn-mini-red { background: var(--red); color: #fff; }
.btn-mini-red:hover { background: var(--red-hover); }

.btn-report:hover { background: var(--red); color: #fff; }

/* Toast */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 16px);
  z-index: 100;
  padding: 12px 24px;
  background: var(--red);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--pill);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Age badge */
.age-badge {
  display: inline-grid;
  place-items: center;
  padding: 1px 7px;
  border-radius: 5px;
  background: var(--red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  font-style: normal;
}

/* ================= REEL THREE-DOT MENU ================= */
.more-wrap { position: relative; }

.reel-menu {
  position: absolute;
  right: 54px;
  bottom: 0;
  min-width: 180px;
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 6px;
  display: none;
  z-index: 10;
}

.more-wrap.open .reel-menu { display: block; }

.reel-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: background 0.12s ease;
}

.reel-menu-item:hover { background: var(--surface-2); }
.reel-menu-item svg { flex-shrink: 0; color: var(--muted); }
.reel-menu-item:first-child:hover { color: var(--red); }
.reel-menu-item:first-child:hover svg { color: var(--red); }

/* ================= LOGIN PAGE ================= */
.login-body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 24px;
}

.login-logo .logo-text { font-size: 1.5rem; }
.login-logo .logo-mark { width: 40px; height: 40px; }

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: var(--r-lg);
  padding: 28px;
}

.login-card h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-strong);
  margin-bottom: 6px;
}

.login-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 22px;
}

.login-card .field { margin-bottom: 14px; }

.login-remember { margin-top: 4px; }

.login-btn {
  width: 100%;
  height: 44px;
  margin-top: 18px;
  font-size: 0.95rem;
}

.login-links {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 0.8rem;
}

.login-links a {
  color: var(--muted);
  font-weight: 600;
  transition: color 0.15s ease;
}

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

.login-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--surface-2);
  font-size: 0.75rem;
  color: var(--muted-2);
  text-align: center;
}

.login-body .tabbar { display: none !important; }

/* ================= ADMIN EXTRAS ================= */
.admin-badge {
  padding: 3px 10px;
  border-radius: var(--pill);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cell-thumb-reel {
  width: 34px;
  border-radius: 6px;
}

/* ================= MOBILE BOTTOM TAB BAR ================= */
.tabbar { display: none; }

/* ================= MOBILE ================= */
@media (max-width: 1380px) {
  .app-shell { grid-template-columns: 200px minmax(0, 1fr); }

  .ad-col {
    position: static;
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .ad-col .ad-slot { flex: 1 1 280px; }
  .ad-tall .ad-placeholder-inner { height: 250px; }

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

@media (max-width: 1000px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); gap: 20px; }

  /* Rail becomes ONE slim scrollable chip row (YouTube mobile style).
     Nav links are hidden here — they live in the bottom tab bar. */
  .sidebar {
    position: static;
    border-right: none;
    padding: 0 0 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: none;
  }

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

  /* Merge both lists into the single row */
  .category-list { display: contents; }

  /* Nav anchors move to the tab bar */
  .sidebar a.category-item { display: none; }

  /* Pages whose rail only contains nav links get no top row at all */
  .sidebar:not(:has(button.category-item)) { display: none; }

  /* Admin rail keeps its links as chips on mobile */
  .sidebar-admin { display: flex; }
  .sidebar-admin a.category-item { display: flex; }

  .category-item {
    flex-direction: row;
    width: auto;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 16px;
    background: var(--surface);
    border-radius: var(--r-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
  }

  /* Text-only chips */
  .category-item svg { display: none; }
  .sidebar .cat-avatar,
  .sidebar .rail-heading { display: none; }

  .category-item.active {
    background: var(--text-strong);
    color: var(--bg);
    font-weight: 700;
  }

  /* App-like bottom tab bar */
  .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: flex;
    background: var(--surface);
    border-top: 1px solid var(--surface-2);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }

  .tabbar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 5px 0 3px;
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 600;
  }

  .tabbar-item svg { width: 23px; height: 23px; }

  .tabbar-item.active { color: var(--red); }

  /* Leave room for the tab bar */
  body { padding-bottom: 62px; }
  body.reels-body { padding-bottom: 58px; }

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

@media (max-width: 720px) {
  .site-header {
    display: flex;
    flex-wrap: wrap;
    height: auto;
    padding: 10px 14px;
    gap: 10px;
  }

  .header-left { flex: 1; flex-wrap: wrap; gap: 10px; }
  .header-nav .nav-link { padding: 6px 12px; font-size: 0.8rem; }

  /* Mobilde arama: sağ header'daki butona basınca açılan dropdown */
  .search-toggle { display: grid; }
  .header-center {
    order: 0;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-basis: auto;
    justify-content: stretch;
    padding: 10px 14px;
    background: var(--bg);
    border-bottom: 1px solid var(--surface-2);
    display: none;
    z-index: 49;
  }
  body.search-open .header-center { display: flex; }
  .header-center .search-box { width: 100%; }

  .app-shell { padding: 12px 12px 48px; }
  .watch-title { font-size: 1.15rem; }
  .watch-meta-row { flex-direction: column; align-items: flex-start; }
  .player { border-radius: var(--r-md); }
  .player-controls { opacity: 1; transform: none; }

  .video-grid { grid-template-columns: 1fr 1fr; gap: 16px 10px; }
  .video-grid-home { grid-template-columns: 1fr; gap: 24px; }
  .shelf-row { grid-auto-columns: 280px; gap: 12px; }
  .reels-shelf-row { grid-auto-columns: 138px; }
  .cat-shelf { margin-bottom: 28px; }
  .time-label { display: none; }

  .discover-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dash-panels { grid-template-columns: 1fr; }
  .dash-bars { height: 160px; }
  .form-grid { grid-template-columns: 1fr; }
  .upload-grid { grid-template-columns: 1fr; }

  .footer-main { padding: 32px 20px 20px; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-nav { gap: 18px; }
  .footer-wordmark { margin: 28px 0 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .reels-sidebar { display: none; }

  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-links { gap: 28px; }

  .reels-stage { padding: 0; }
  .reels-feed { aspect-ratio: auto; width: 100%; max-width: none; border-radius: 0; }
  .reel { border-radius: 0; margin-bottom: 0; }
  .reels-nav { display: none; }
}

@media (max-width: 460px) {
  .video-grid { grid-template-columns: 1fr; }
}
