/* Zeus Web - Ana Stil Dosyasi */
:root {
  --bg-0: #07091a;
  --bg-1: #0c1024;
  --bg-2: #141a35;
  --bg-3: #1c2447;
  --surface: #151b34;
  --surface-2: #1d2545;
  --border: #2a3358;
  --text: #e7ecf7;
  --text-dim: #9aa6c4;
  --text-muted: #6c7798;
  --primary: #3b82f6;
  --primary-2: #60a5fa;
  --accent: #fbbf24;
  --accent-2: #fcd34d;
  --danger: #ef4444;
  --success: #22c55e;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  --glow-blue: 0 0 24px rgba(59, 130, 246, 0.55);
  --glow-yellow: 0 0 28px rgba(251, 191, 36, 0.45);
}

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

html, body {
  height: 100%;
  background: var(--bg-0);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ========= BOOT EKRANI ========= */
.boot-screen {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  background: radial-gradient(ellipse at center, #15203c 0%, #07091a 70%);
  z-index: 999;
}
.boot-logo {
  width: 130px; height: 130px;
  animation: pulse 1.6s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.5));
}
.boot-spinner {
  margin-top: 32px;
  width: 36px; height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 18px rgba(59, 130, 246, 0.4)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 36px rgba(251, 191, 36, 0.6)); }
}

/* ========= GIRIS EKRANI ========= */
.login-screen {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(59, 130, 246, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(251, 191, 36, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, #0a0f24 0%, #06081a 100%);
  padding: 24px;
}
.login-card {
  width: 100%; max-width: 440px;
  background: rgba(20, 26, 53, 0.78);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 44px 38px 36px;
  box-shadow: var(--shadow), 0 0 60px rgba(59, 130, 246, 0.12);
}
.login-logo {
  width: 92px; height: 92px;
  display: block; margin: 0 auto 18px;
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
}
.login-title {
  text-align: center;
  font-size: 26px; font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #e7ecf7 0%, #93c5fd 50%, #fcd34d 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.login-subtitle {
  text-align: center; color: var(--text-muted);
  font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase;
  margin-bottom: 30px;
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: block; font-size: 12px; color: var(--text-dim);
  margin-bottom: 6px; letter-spacing: 0.5px;
}
.field input {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  background: rgba(7, 11, 28, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  transition: all 0.2s;
}
.field input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(7, 11, 28, 0.85);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.btn-primary {
  width: 100%;
  padding: 14px;
  font-size: 15px; font-weight: 600;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
  color: #fff;
  letter-spacing: 0.5px;
  margin-top: 8px;
  transition: all 0.2s;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(59, 130, 246, 0.5); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }
.login-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fecaca;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
  display: none;
}
.login-error.visible { display: block; }
.login-footer {
  text-align: center; margin-top: 22px;
  font-size: 12px; color: var(--text-muted);
}

/* ========= PROFIL SECME ========= */
.profile-screen {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  background:
    radial-gradient(ellipse at top, rgba(59, 130, 246, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, #0a0f24 0%, #06081a 100%);
  padding: 40px 20px;
  overflow-y: auto;
}
.profile-screen h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  margin-bottom: 8px;
  text-align: center;
}
.profile-screen .subtitle {
  color: var(--text-muted); margin-bottom: 50px; text-align: center;
}
.profile-grid {
  display: flex; flex-wrap: wrap;
  gap: 28px; justify-content: center;
  max-width: 1100px; width: 100%;
}
.profile-item {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  cursor: pointer;
  transition: transform 0.25s;
}
.profile-item:hover { transform: scale(1.05); }
.profile-avatar {
  width: 140px; height: 140px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 60px; font-weight: 700;
  color: #fff;
  border: 3px solid transparent;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.profile-item:hover .profile-avatar {
  border-color: var(--primary);
  box-shadow: var(--glow-blue);
}
.profile-avatar.kids::after {
  content: 'KIDS';
  position: absolute;
  top: 8px; right: 8px;
  background: var(--accent);
  color: #1a1a1a;
  font-size: 10px; font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
}
.profile-name {
  font-size: 16px; color: var(--text-dim);
  transition: color 0.2s;
}
.profile-item:hover .profile-name { color: #fff; }
.profile-add .profile-avatar {
  background: rgba(255, 255, 255, 0.04);
  border: 2px dashed var(--border);
  font-size: 60px;
  font-weight: 200;
  color: var(--text-muted);
}
.profile-item:hover .profile-add-icon { color: var(--primary); }
.profile-actions {
  margin-top: 50px;
  display: flex; gap: 12px;
}
.btn-ghost {
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}
.btn-ghost:hover { color: #fff; border-color: var(--primary); }
.profile-item.editing .profile-avatar::before {
  content: '\270E';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  border-radius: 11px;
}
.profile-item.deletable .profile-avatar::after {
  content: '\00D7';
  position: absolute;
  top: 4px; right: 4px;
  width: 28px; height: 28px;
  background: var(--danger);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  z-index: 2;
}

/* ========= MODAL ========= */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(4, 6, 16, 0.78);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  width: 100%; max-width: 480px;
  box-shadow: var(--shadow);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal h2 {
  font-size: 22px; margin-bottom: 18px;
  font-weight: 600;
}
.modal .row { display: flex; gap: 12px; margin-top: 18px; }
.modal .row > * { flex: 1; }
.color-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px;
  margin-bottom: 18px;
}
.color-chip {
  aspect-ratio: 1; border-radius: 8px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: transform 0.15s;
}
.color-chip:hover { transform: scale(1.1); }
.color-chip.selected { border-color: #fff; }
.checkbox-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-dim);
  margin-top: 10px;
  cursor: pointer;
}
.checkbox-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--primary); }

/* ========= ANA UYGULAMA LAYOUT ========= */
.app-shell {
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--bg-0);
}
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 14px 32px;
  background: linear-gradient(180deg, rgba(7, 9, 26, 0.95) 0%, rgba(7, 9, 26, 0.65) 100%);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s;
}
.topbar.scrolled { background: rgba(7, 9, 26, 0.96); }
.brand {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
}
.brand img { width: 38px; height: 38px; }
.brand-text {
  font-size: 18px; font-weight: 700;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, #93c5fd 0%, #fcd34d 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-tabs {
  display: flex; gap: 4px; margin-left: 18px;
}
.nav-tab {
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text-dim);
  border-radius: 8px;
  transition: all 0.15s;
  font-weight: 500;
}
.nav-tab:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.nav-tab.active {
  color: #fff;
  background: rgba(59, 130, 246, 0.15);
  box-shadow: inset 0 -2px 0 var(--primary);
}
.topbar-spacer { flex: 1; }
.search-box {
  position: relative;
  display: flex; align-items: center;
}
.search-box input {
  width: 240px;
  padding: 9px 14px 9px 38px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  transition: all 0.2s;
}
.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(7, 11, 28, 0.85);
  width: 320px;
}
.search-box .search-icon {
  position: absolute; left: 12px;
  color: var(--text-muted);
  pointer-events: none;
}
.profile-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 14px 4px 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.15s;
}
.profile-pill:hover { background: rgba(255, 255, 255, 0.1); }
.profile-pill .avatar-mini {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  color: #fff;
}
.profile-pill .name { font-size: 13px; }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 60;
}
.dropdown.open { display: block; }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-dim);
  transition: background 0.15s;
}
.dropdown-item:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.dropdown-divider { height: 1px; background: var(--border); margin: 6px 4px; }

/* ========= ANASAYFA / ICERIK ========= */
.main {
  flex: 1;
  padding: 24px 32px 60px;
}
.page-title {
  font-size: 28px; font-weight: 700;
  margin-bottom: 4px;
}
.page-subtitle {
  color: var(--text-muted); font-size: 14px;
  margin-bottom: 24px;
}

/* HERO */
.hero {
  position: relative;
  height: 460px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 32px;
  background: linear-gradient(135deg, #1a2347 0%, #0a0f24 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(2px) brightness(0.4);
  transform: scale(1.05);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 26, 0.92) 0%, rgba(7, 9, 26, 0.4) 60%, transparent 100%),
    linear-gradient(0deg, rgba(7, 9, 26, 0.95) 0%, transparent 50%);
}
.hero-content {
  position: absolute;
  bottom: 0; left: 0;
  padding: 40px;
  max-width: 60%;
  z-index: 2;
}
.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: #1a1a1a;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.hero-title { font-size: 44px; font-weight: 800; margin-bottom: 12px; line-height: 1.1; }
.hero-desc { color: var(--text-dim); font-size: 15px; line-height: 1.5; margin-bottom: 22px; max-width: 520px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-actions { display: flex; gap: 12px; }
.btn-play {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 26px;
  background: #fff; color: #0a0f24;
  border-radius: 8px; font-weight: 700; font-size: 14px;
  transition: all 0.15s;
}
.btn-play:hover { transform: scale(1.03); box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border-radius: 8px; font-weight: 600; font-size: 14px;
  transition: all 0.15s;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.2); }

/* ROW (yatay kaydirma) */
.row-section { margin-bottom: 36px; }
.row-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.row-title {
  font-size: 19px; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.row-title::before {
  content: '';
  width: 4px; height: 18px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 2px;
}
.row-actions {
  font-size: 13px; color: var(--text-muted);
  cursor: pointer;
}
.row-actions:hover { color: var(--primary); }
.row-scroller {
  position: relative;
}
.row-track {
  display: flex; gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.row-track::-webkit-scrollbar { height: 6px; }
.row-arrow {
  position: absolute;
  top: 0; bottom: 8px;
  width: 50px;
  background: linear-gradient(90deg, rgba(7, 9, 26, 0.95), transparent);
  display: none;
  align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 5;
  font-size: 28px;
  color: var(--text);
  transition: opacity 0.2s;
}
.row-arrow.right { right: 0; background: linear-gradient(-90deg, rgba(7, 9, 26, 0.95), transparent); }
.row-arrow.left { left: 0; }
.row-scroller:hover .row-arrow { display: flex; }
.row-arrow:hover { color: var(--primary); }

/* CARD */
.card {
  flex-shrink: 0;
  width: 220px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  background: var(--surface);
  position: relative;
}
.card:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(59, 130, 246, 0.4);
  z-index: 10;
}
.card .poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, #1a2347, #0c1430);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
  position: relative;
}
.card .poster img { width: 100%; height: 100%; object-fit: cover; }
.card .poster .fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 12px;
  background: linear-gradient(135deg, #1a2347, #0c1430);
  color: var(--text-dim);
  font-size: 13px; font-weight: 600;
  word-break: break-word;
}
.card .info {
  padding: 10px 12px 12px;
}
.card .info .title {
  font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card .info .meta {
  font-size: 11px; color: var(--text-muted);
  margin-top: 3px;
}
.card .badge-live {
  position: absolute; top: 8px; left: 8px;
  background: var(--danger);
  color: #fff;
  padding: 3px 7px; border-radius: 4px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.5px;
  display: flex; align-items: center; gap: 4px;
}
.card .badge-live::before {
  content: ''; width: 6px; height: 6px;
  background: #fff; border-radius: 50%;
  animation: blink 1.5s infinite;
}
@keyframes blink { 50% { opacity: 0.3; } }

/* CANLI TV - kanal kartlari farkli */
.card.live {
  width: 200px;
}
.card.live .poster { aspect-ratio: 16 / 9; }
.card.live .info .title { white-space: normal; -webkit-line-clamp: 2; -webkit-box-orient: vertical; display: -webkit-box; overflow: hidden; }

/* GRID gorunumu (kategori altinda tum icerik) */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.content-grid .card { width: auto; }

/* Kategori chip'leri (eski - sadece detay modal icinde sezon vs.) */
.category-chips {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 10px 0;
}
.chip {
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.chip:hover { color: #fff; border-color: var(--primary); }
.chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ========= YENI KATEGORI SIDEBAR LAYOUT ========= */
.content-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  align-items: flex-start;
}
.cat-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 110px);
  display: flex; flex-direction: column;
}
.cat-search {
  position: relative;
  margin-bottom: 10px;
}
.cat-search input {
  width: 100%;
  padding: 9px 12px 9px 32px;
  background: rgba(7, 11, 28, 0.55);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
}
.cat-search input:focus { outline: none; border-color: var(--primary); }
.cat-search .si {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 13px; pointer-events: none;
}
.cat-list {
  overflow-y: auto;
  flex: 1;
  padding-right: 4px;
  scrollbar-width: thin;
}
.cat-list::-webkit-scrollbar { width: 6px; }
.cat-list::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 3px; }

.cat-item {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 9px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: all 0.12s;
  margin-bottom: 2px;
}
.cat-item:hover {
  background: rgba(59, 130, 246, 0.08);
  color: #fff;
}
.cat-item.active {
  background: rgba(59, 130, 246, 0.18);
  color: #fff;
  border-color: rgba(59, 130, 246, 0.4);
  font-weight: 600;
}
.cat-item .cnt {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 6px;
}
.cat-item.active .cnt { background: rgba(59, 130, 246, 0.3); color: #bfdbfe; }

.cat-group {
  margin-top: 6px;
}
.cat-group-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  margin-bottom: 4px;
}
.cat-group-header:hover { color: var(--text); }
.cat-group-header .arrow {
  font-size: 9px;
  transition: transform 0.2s;
}
.cat-group.collapsed .cat-group-header .arrow {
  transform: rotate(-90deg);
}
.cat-group.collapsed .cat-group-items { display: none; }
.cat-group-items {
  padding-left: 4px;
}

.content-area { min-width: 0; }
.content-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 4px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-muted);
}
.content-header .total { font-weight: 600; color: var(--text-dim); }
.content-header .active-cat {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.content-header .active-cat::before {
  content: ''; width: 4px; height: 16px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 2px;
}

/* Mobil sidebar */
.cat-toggle {
  display: none;
  width: 100%;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  text-align: left;
  margin-bottom: 14px;
  cursor: pointer;
}
.cat-toggle::after { content: '\25BC'; float: right; font-size: 10px; opacity: 0.5; }

/* ============== PLAYER ============== */
.player-screen {
  position: fixed; inset: 0;
  background: #000;
  z-index: 500;
  display: flex; flex-direction: column;
}
.player-topbar {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 22px;
  z-index: 10;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent);
  transition: opacity 0.3s;
}
.player-back {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  font-size: 22px;
  transition: background 0.15s;
}
.player-back:hover { background: rgba(255, 255, 255, 0.15); }
.player-title { font-size: 18px; font-weight: 600; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-fav {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  font-size: 18px;
  cursor: pointer;
}
.player-fav.active { color: var(--accent); }

.player-video-wrap {
  flex: 1; position: relative;
  display: flex; align-items: center; justify-content: center;
  cursor: none;
}
.player-video-wrap.controls-visible { cursor: default; }
#video-element {
  width: 100%; height: 100%;
  background: #000;
}
.player-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 5;
}
.player-loading.hidden { display: none; }
.player-loading .spin {
  width: 50px; height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.player-controls {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 18px 22px 18px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), transparent);
  z-index: 10;
  transition: opacity 0.3s, transform 0.3s;
}
.player-controls.hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }
.player-progress {
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  margin-bottom: 16px;
  cursor: pointer;
  position: relative;
  transition: height 0.15s;
}
.player-progress:hover { height: 8px; }
.player-progress-buffer {
  position: absolute; top: 0; left: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  width: 0;
}
.player-progress-fill {
  position: absolute; top: 0; left: 0; bottom: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  width: 0;
}
.player-progress-thumb {
  position: absolute; top: 50%;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  left: 0; opacity: 0;
  transition: opacity 0.15s;
}
.player-progress:hover .player-progress-thumb { opacity: 1; }
.player-buttons {
  display: flex; align-items: center; gap: 12px;
}
.pbtn {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  transition: background 0.15s;
}
.pbtn:hover { background: rgba(255, 255, 255, 0.15); }
.pbtn.big { font-size: 22px; }
.player-time {
  font-size: 13px; color: var(--text-dim); margin-left: 4px;
}
.player-spacer { flex: 1; }
.volume-wrap { display: flex; align-items: center; gap: 8px; }
.volume-slider {
  width: 0; opacity: 0;
  transition: width 0.2s, opacity 0.2s;
  -webkit-appearance: none; appearance: none;
  height: 4px; background: rgba(255, 255, 255, 0.3); border-radius: 2px;
}
.volume-wrap:hover .volume-slider { width: 80px; opacity: 1; }
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px;
  background: #fff; border-radius: 50%;
  cursor: pointer;
}
.player-live-badge {
  background: var(--danger);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.8px;
  display: flex; align-items: center; gap: 6px;
}
.player-live-badge::before {
  content: ''; width: 6px; height: 6px; background: #fff; border-radius: 50%;
  animation: blink 1.5s infinite;
}

/* ============== HESAP / PROFIL SAYFASI ============== */
.account-page {
  max-width: 980px; margin: 0 auto;
}
.account-hero {
  display: flex; align-items: center; gap: 22px;
  padding: 32px;
  background: linear-gradient(135deg, var(--surface), var(--bg-2));
  border-radius: 16px;
  border: 1px solid var(--border);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.account-hero::after {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18), transparent 70%);
  pointer-events: none;
}
.account-avatar {
  width: 110px; height: 110px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; font-weight: 700;
  flex-shrink: 0;
  z-index: 1;
}
.account-meta { z-index: 1; flex: 1; }
.account-meta .name { font-size: 26px; font-weight: 700; margin-bottom: 4px; }
.account-meta .role { color: var(--text-dim); font-size: 14px; }
.account-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  margin-top: 10px;
}
.account-status.active { background: rgba(34, 197, 94, 0.15); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.3); }
.account-status.expired { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.info-card .label {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.info-card .value {
  font-size: 22px; font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #93c5fd 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.info-card .sub {
  font-size: 12px; color: var(--text-dim);
  margin-top: 4px;
}
.info-card .icon {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: 38px; opacity: 0.15;
}

.connection-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 28px;
}
.connection-bar .top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.connection-bar .label {
  font-size: 14px; color: var(--text-dim);
}
.connection-bar .count {
  font-weight: 700;
}
.bar-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 5px;
  transition: width 0.5s ease;
}

.section-title {
  font-size: 18px; font-weight: 700;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: '';
  width: 3px; height: 16px;
  background: var(--primary);
  border-radius: 2px;
}

.danger-zone {
  display: flex; gap: 12px;
  margin-top: 22px;
}
.btn-outline {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-dim);
  transition: all 0.15s;
}
.btn-outline:hover { color: #fff; border-color: var(--primary); }
.btn-danger {
  padding: 10px 20px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  border-radius: 8px;
  font-size: 13px;
  transition: all 0.15s;
}
.btn-danger:hover { background: var(--danger); color: #fff; }

/* ============== DETAY MODAL (film/dizi) ============== */
.detail-modal {
  width: 100%; max-width: 920px;
  max-height: 90vh; overflow-y: auto;
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--border);
  position: relative;
}
.detail-hero {
  position: relative;
  height: 360px;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  background: linear-gradient(135deg, #1a2347, #0a0f24);
}
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--surface), transparent 60%);
}
.detail-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  z-index: 5;
  cursor: pointer;
}
.detail-body {
  padding: 0 30px 30px;
  margin-top: -80px;
  position: relative;
  z-index: 2;
}
.detail-body h2 { font-size: 32px; margin-bottom: 10px; }
.detail-meta {
  display: flex; gap: 14px; margin-bottom: 16px;
  flex-wrap: wrap; font-size: 13px;
}
.detail-meta .pill {
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.detail-rating { color: var(--accent); font-weight: 600; }
.detail-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 22px;
}
.detail-actions { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }

.season-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.season-tabs .chip { font-size: 12px; }
.episodes-list { display: flex; flex-direction: column; gap: 8px; }
.episode-item {
  display: flex; gap: 14px; align-items: center;
  padding: 12px;
  background: var(--bg-2);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.episode-item:hover { background: var(--bg-3); }
.episode-num {
  font-size: 22px; font-weight: 700;
  color: var(--text-muted);
  min-width: 28px; text-align: center;
}
.episode-info { flex: 1; }
.episode-info .ep-title { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.episode-info .ep-desc { font-size: 12px; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.episode-play { font-size: 22px; color: var(--text-dim); }

/* ============== TOAST ============== */
.toast {
  position: fixed;
  bottom: 30px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 1000;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  max-width: 90%;
}
.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.error { border-color: rgba(239, 68, 68, 0.4); background: rgba(239, 68, 68, 0.18); color: #fecaca; }
.toast.success { border-color: rgba(34, 197, 94, 0.4); background: rgba(34, 197, 94, 0.15); color: #bbf7d0; }

/* ============== EMPTY / LOADING STATES ============== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.empty-state .em-icon { font-size: 60px; margin-bottom: 12px; opacity: 0.5; }
.empty-state .em-text { font-size: 16px; }

.skeleton {
  background: linear-gradient(90deg, var(--surface), var(--bg-3), var(--surface));
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 10px;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ============== MOBIL ============== */
@media (max-width: 768px) {
  .topbar { padding: 12px 16px; gap: 12px; }
  .nav-tabs { display: none; }
  .nav-tabs.mobile-open { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-1); padding: 8px; flex-direction: column; }
  .search-box input { width: 140px; }
  .search-box input:focus { width: 180px; }
  .main { padding: 16px; }
  .hero { height: 320px; }
  .hero-content { padding: 22px; max-width: 100%; }
  .hero-title { font-size: 28px; }
  .card { width: 150px; }
  .card.live { width: 160px; }
  .content-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .content-layout { grid-template-columns: 1fr; gap: 10px; }
  .cat-sidebar { position: relative; top: 0; max-height: 60vh; }
  .cat-sidebar.mobile-collapsed { display: none; }
  .cat-toggle { display: block; }
  .profile-avatar { width: 100px; height: 100px; font-size: 42px; }
  .account-hero { flex-direction: column; text-align: center; padding: 22px; }
  .modal { padding: 22px; }
  .login-card { padding: 30px 22px; }
}

/* ============== UTIL ============== */
.hidden { display: none !important; }
.text-center { text-align: center; }
