/* Kart rozetleri (YENİ/POPÜLER/DUBLAJLI) — poster sol üst */
.kart-rozet{position:absolute;top:6px;left:6px;z-index:4;display:flex;flex-direction:column;gap:5px;align-items:flex-start;pointer-events:none}
.kr{font-size:10px;font-weight:800;padding:3px 9px;border-radius:6px;color:#fff;line-height:1;letter-spacing:.3px;box-shadow:0 2px 6px rgba(0,0,0,.4)}
.kr-pop{background:#e50914}
.kr-yeni{background:#16a34a}
.kr-dub{background:#2563eb}
@media(min-width:768px){.kr{font-size:11px;padding:4px 10px}}

/* ══════════════════════════════════════════════════════════════
   DESKTOP THEME — dramaflix.cc tarzı masaüstü görünüm
   Sadece >=768px ekranları etkiler; mobil görünüm değişmez.
   premium.css'ten SONRA yüklenir, onu ezer.
══════════════════════════════════════════════════════════════ */

/* Yatay kaydırma çubuğunu kök seviyede engelle (sidebar padding taşması).
   NOT: sadece html'e uygulanır — body'ye overflow verirsek dikey scroll bozulur. */
html { overflow-x: hidden; }

/* Üstteki nav barı tamamen kaldırıldı — navigasyon sol sidebar'da (masaüstü)
   ve #mobileMenu yüzen butonuyla (mobil) sağlanıyor. Bıraktığı üst boşluğu da kes. */
.nav { display: none !important; }
.page { padding-top: 0 !important; }

/* Mobilde hero poster kartı ve sidebar gizli */
@media (max-width: 767px) {
  .hero-poster-card { display: none; }
}
.sidebar { display: none; }

:root { --accent: #e50914; }

@media (min-width: 768px) {

  /* ── NAV ─────────────────────────────────────────── */
  :root { --nav-h: 68px; }

  .nav {
    height: var(--nav-h);
    padding: 0 48px !important;
    gap: 28px;
    background: linear-gradient(to bottom, rgba(5,5,5,.92), rgba(5,5,5,.75));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .nav-logo { font-size: 1.7rem; }
  .nav-links { display: flex !important; gap: 6px; margin-right: 0; }
  .nav-link { font-size: 14.5px; padding: 8px 16px; }
  .nav-search {
    max-width: 340px;
    margin-left: auto;
  }
  .nav-search input { font-size: 14px; padding: 9px 16px; }
  .nav-icon-btn { padding: 8px 12px; }

  /* ── HERO — blur arka plan + sağda net poster kartı ── */
  .hero {
    height: 480px;
    max-height: 480px;
    min-height: 420px;
    border-radius: 0 !important;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 56px;
    padding: 0 48px;
  }
  .hero-bg {
    background-position: center 25%;
    filter: blur(28px) brightness(.35) saturate(1.2);
    transform: scale(1.15);
  }
  .hero-shade {
    background:
      linear-gradient(to right, rgba(5,5,5,.85) 0%, rgba(5,5,5,.45) 45%, rgba(5,5,5,.55) 100%),
      linear-gradient(to top, #050505 0%, transparent 35%);
  }
  .hero-body {
    position: relative; z-index: 2;
    max-width: 720px;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0 !important;
    justify-content: center;
    align-items: flex-start;
  }
  .hero-poster-card {
    position: relative; z-index: 2;
    display: block;
    flex-shrink: 0;
    width: 240px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08);
  }
  .hero-poster-card img { width: 100%; display: block; aspect-ratio: 2/3; object-fit: cover; }
  .hero-badge {
    font-size: 12px;
    padding: 5px 14px;
    border-radius: 6px;
    margin-bottom: 14px;
  }
  .hero-title {
    font-size: clamp(34px, 4vw, 56px) !important;
    max-width: 100%;
    line-height: 1.08;
    margin-bottom: 26px;
    letter-spacing: -1.5px;
  }
  .hero-btns { gap: 14px; }
  .hero-btns .btn {
    font-size: 15px;
    padding: 14px 34px;
    border-radius: 8px;
    font-weight: 800;
  }

  /* ── SECTION ─────────────────────────────────────── */
  .page > .section,
  .section {
    max-width: 1400px !important;
    margin: 0 auto;
    padding: 0 48px 44px !important;
  }
  .section-head { padding: 30px 0 18px; }
  .section-title { font-size: 22px !important; font-weight: 800; }
  .section-title::before { height: 24px; width: 5px; }
  .section-more { font-size: 13px; }
  .section-count { font-size: 13px; }

  /* ── YATAY SIRALAR — büyük kartlar ───────────────── */
  .hrow {
    gap: 18px;
    padding: 6px 4px 22px;
    padding-right: 24px;
    scroll-padding-right: 24px;
    scroll-snap-type: none;
  }
  .card       { width: 178px !important; border-radius: 12px; }
  .card-wide  { width: 208px !important; }

  .card-poster { border-radius: 12px; }
  /* Hover'da büyüme YOK — sadece hafif kırmızı çerçeve */
  .card:hover .card-poster,
  .card:hover .card-poster img {
    transform: none !important;
  }
  .card:hover .card-poster {
    box-shadow: 0 0 0 2px rgba(229,9,20,.55);
  }
  .card-info { padding: 10px 4px 4px; }
  .card-name, .card-title {
    font-size: 14px !important;
    font-weight: 600;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
  }
  .card-sub { font-size: 12px; }
  .ep-count, .card-ep {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 5px;
  }
  .card-new { font-size: 10px; padding: 3px 8px; }

  .card-play-overlay, .card-overlay {
    opacity: 0;
    transition: opacity .25s ease;
  }
  .card:hover .card-play-overlay,
  .card:hover .card-overlay { opacity: 1; }
  .card-play-icon { width: 44px; height: 44px; font-size: 16px; }

  /* ── Yatay sıra kaydırma okları ── */
  .hrow-wrap { position: relative; }
  .hrow-nav {
    position: absolute; top: 0; bottom: 60px; width: 52px;
    display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer; z-index: 6;
    color: #fff; font-size: 26px;
    opacity: 0; transition: opacity .2s;
  }
  .hrow-nav.prev { left: -8px; background: linear-gradient(to right, rgba(5,5,5,.92), transparent); border-radius: 12px 0 0 12px; }
  .hrow-nav.next { right: -8px; background: linear-gradient(to left, rgba(5,5,5,.92), transparent); border-radius: 0 12px 12px 0; }
  .hrow-wrap:hover .hrow-nav { opacity: 1; }
  .hrow-nav.off { opacity: 0 !important; pointer-events: none; }
  .hrow-nav:hover { color: var(--accent); }

  /* ── GRID ────────────────────────────────────────── */
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    gap: 24px 16px !important;
  }
  .card-grid { width: 100% !important; }
  .card-grid .card-info { padding: 12px 4px 6px; }

  /* ── ALT NAV / TAB BAR ───────────────────────────── */
  .bnav { display: none !important; }
  .tab-bar-bottom {
    position: static;
    background: none;
    border: none;
    backdrop-filter: none;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: center;
    gap: 14px;
    padding: 10px 48px 40px;
  }
  .tbb-item {
    flex-direction: row;
    gap: 8px;
    font-size: 15px;
    background: #161616;
    border: 1px solid #262626;
    border-radius: 24px;
    padding: 9px 22px;
    min-width: 0;
    transition: border-color .2s, color .2s;
  }
  .tbb-item span { font-size: 13px; font-weight: 600; }
  .tbb-item:hover { border-color: #444; }
  .tbb-item.on { border-color: var(--accent); background: rgba(229,9,20,.1); }
  body:has(.tab-bar-bottom) .page { padding-bottom: 0; }

  /* ── SAYFALAMA ───────────────────────────────────── */
  .pages { padding: 30px 12px; gap: 8px; }
  .pages a, .pages span { font-size: 14px; min-width: 42px; padding: 9px 14px; }
  .pages a:hover { border-color: var(--accent); color: #fff; }

  /* ── DETAY SAYFASI ───────────────────────────────── */
  .detail-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 48px;
    min-height: 340px;
    gap: 32px;
  }
  .detail-poster { width: 200px !important; border-radius: 12px; }
  .detail-title { font-size: 34px !important; margin-bottom: 14px; }
  .tag { font-size: 12px; padding: 5px 13px; }
  .detail-desc {
    max-width: 1400px;
    margin: 0 auto;
    font-size: 15px;
    padding: 24px 48px;
    color: #999;
  }
  .ep-wrap { max-width: 1400px; margin: 0 auto; padding: 24px 48px 40px; }

  /* ── Bölüm butonları ── */
  .ep-grid { gap: 12px; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)) !important; }
  .ep-btn {
    font-size: 15px;
    border-radius: 12px;
    background: #161616;
    border: 1px solid #262626;
    transition: all .18s ease;
  }
  .ep-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 18px rgba(229,9,20,.35);
    transform: translateY(-2px);
  }

  /* Ana sayfa dil/filtre butonları */
  .tabs .btn-dark {
    background: #161616;
    border: 1px solid #2a2a2a;
    border-radius: 22px;
    transition: all .18s;
  }
  .tabs .btn-dark:hover {
    border-color: var(--accent);
    background: rgba(229,9,20,.12);
    transform: none;
  }

  /* ── FOOTER ──────────────────────────────────────── */
  footer {
    padding: 40px 48px 48px;
    font-size: 13px;
    color: #555;
    margin-bottom: 0 !important;
  }
}

/* ── Daha geniş ekranlar ── */
@media (min-width: 1440px) {
  .section, .page > .section { max-width: 1560px !important; padding: 0 60px 52px !important; }
  .nav { padding: 0 60px !important; }
  .hero { padding: 0 60px; }
  .hero-poster-card { width: 260px; }
  .card { width: 196px !important; }
  .card-wide { width: 228px !important; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important; gap: 28px 20px !important; }
  .detail-inner, .detail-desc, .ep-wrap { max-width: 1560px; }
}

@media (min-width: 1920px) {
  .section, .page > .section { max-width: 1800px !important; }
  .hero { height: 520px; max-height: 520px; }
  .hero-poster-card { width: 280px; }
  .card { width: 216px !important; }
  .card-wide { width: 248px !important; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important; gap: 32px 24px !important; }
}

/* ══════════════════════════════════════════
   SOL SIDEBAR (sadece masaüstü)
══════════════════════════════════════════ */
@media (min-width: 1024px) {
  /* PC'de sidebar hep açık → kapatma (✕) butonu gereksiz, gizle */
  .sb-close { display: none !important; }

  #mobileMenu { display: none !important; }
  .sidebar {
    display: flex !important; flex-direction: column !important;
    position: fixed !important; top: 0; left: 0 !important; bottom: 0; z-index: 400;
    width: 260px !important;
    background: #0b0b0b;
    border-right: 1px solid #1a1a1a;
    padding: 24px 18px 20px;
    overflow-y: auto;
  }
  /* İçeriği sidebar kadar kaydır */
  body { padding-left: 260px !important; }
  .nav { left: 260px !important; width: calc(100% - 260px) !important; justify-content: center !important; }
  .nav-links { display: none !important; }
  .nav-logo { display: none !important; }
  .nav-search { 
    margin: 0 auto !important; 
    max-width: 280px !important; 
    transition: max-width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  }
  .nav-search:hover, .nav-search:focus-within {
    max-width: 500px !important;
  }
}

.sb-logo {
  font-size: 2rem; font-weight: 900;
  background: linear-gradient(90deg, #ff2530, #e50914);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -.5px;
  text-transform: uppercase;
  padding: 10px 10px 40px;
  display: block;
  flex-shrink: 0;
  text-align: center;
}
.sb-nav { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 0 10px; }
.sb-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px; border-radius: 12px;
  font-size: 16px; font-weight: 500;
  color: rgba(255,255,255,.65);
  transition: all .2s ease;
  text-decoration: none;
  border-left: 3px solid transparent;
}
.sb-item svg { width: 22px; height: 22px; stroke: currentColor; fill: none; flex-shrink: 0; transition: transform .2s ease; }
.sb-item:hover { color: #fff; background: rgba(255,255,255,.05); transform: translateX(2px); }
.sb-item.on { 
  color: #fff; 
  background: linear-gradient(90deg, rgba(229,9,20,.15) 0%, transparent 100%); 
  border-left: 3px solid var(--accent); 
  border-radius: 0 12px 12px 0;
  font-weight: 700;
}
.sb-item.on svg { color: var(--accent); }
.sb-vip { color: rgba(255, 215, 0, .8); }
.sb-vip:hover { color: #ffd700; background: rgba(255,200,0,.08); }
.sb-vip.on { background: linear-gradient(90deg, rgba(255,200,0,.15) 0%, transparent 100%); border-left-color: #ffd700; color: #ffd700; }
.sb-vip.on svg { color: #ffd700; }
.sb-ayrac {
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: rgba(255,255,255,.2);
  padding: 20px 16px 8px;
}
.sb-alt { flex-shrink: 0; padding: 20px 10px; border-top: 1px solid rgba(255,255,255,.05); display: flex; flex-direction: column; gap: 10px; }
.sb-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; border-radius: 12px;
  font-size: 14px; font-weight: 600;
  transition: all .2s;
}
.sb-giris { background: rgba(255,255,255,.05); color: #ccc; border: 1px solid rgba(255,255,255,.1); }
.sb-giris:hover { background: rgba(255,255,255,.1); color: #fff; transform: translateY(-2px); }
.sb-kayit { background: linear-gradient(135deg, #e50914, #ff2530); color: #fff; box-shadow: 0 4px 15px rgba(229,9,20,.3); }
.sb-kayit:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(229,9,20,.4); }
.sb-cikis { background: transparent; color: #ff5b5b; font-size: 13px; padding: 10px; border: 1px solid rgba(255, 91, 91, 0.2); }
.sb-cikis:hover { background: rgba(255, 91, 91, 0.1); border-color: rgba(255, 91, 91, 0.4); }
.sb-hesap {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 14px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05);
  transition: all .2s;
}
.sb-hesap:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.1); }
.sb-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #e50914, #ff5b5b);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: #fff; flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(229,9,20,.3);
}
.sb-hesap-bilgi { min-width: 0; display: flex; flex-direction: column; }
.sb-hesap-bilgi b { font-size: 14px; font-weight: 600; color: #eee; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-hesap-bilgi small { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 2px; }


/* ══════════════════════════════════════════
   YENİ DİZİ DETAY SAYFASI
══════════════════════════════════════════ */
@media (min-width: 768px) {
  .dizi-page {
    background: #000;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
  }
  .dizi-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    padding: 0;
    box-sizing: border-box;
  }
  .dizi-left {
    flex-shrink: 0;
    width: 420px;
    border-radius: 20px;
    overflow: hidden;
    height: calc(100vh - 40px);
    max-height: none !important;
    aspect-ratio: unset !important;
    background: #000;
    position: relative;
    border: 1px solid #1c1c1c;
  }
  .episodes-panel {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    width: 100% !important;
    height: 75vh !important;
    max-height: none !important;
    background: #111;
    border-radius: 20px 20px 0 0 !important;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(100%) !important;
    border: none !important;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.9);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    display: flex;
    flex-direction: column;
    z-index: 200 !important;
  }
  .episodes-panel.open {
    transform: translateY(0) !important;
  }
  /* Sadece ESKİ yan paneli gizle; episodes-panel ile aynı element ise gizleme
     (yoksa Bölümler paneli PC'de hiç açılmaz). */
  .dizi-right:not(.episodes-panel) {
    display: none !important;
  }
}
.dizi-right-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 0 24px;
  background: #111;
  position: sticky;
  top: 0;
  z-index: 10;
}
.dizi-right-header h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
}
.dbox {
  background: #111;
  border-radius: 16px;
  padding: 24px;
}
.dbox-header {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.dbox-thumb {
  width: 60px;
  height: 80px;
  border-radius: 6px;
  object-fit: cover;
}
.dbox-info h1 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.2;
}
.dbox-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}
.dbox-tags span {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
}
.tag-red { background: #e50914; color: #fff; }
.tag-green { background: #0c0; color: #fff; }
.dbox-epcount {
  font-size: 11px;
  color: #777;
}
.dbox-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.dbtn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.dbtn-dark {
  background: #f5f5f5;
  color: #111;
}
.dbtn-dark:hover { background: #fff; }
.dbtn-red {
  background: #e50914;
  color: #fff;
}
.dbox-tabs {
  display: flex;
  border-bottom: 1px solid #222;
  margin-bottom: 16px;
}
.dtab {
  flex: 1;
  text-align: center;
  padding: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #666;
  cursor: pointer;
  position: relative;
}
.dtab.on {
  color: #e50914;
}
.dtab.on::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #e50914;
}
.dbox-subtabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.dstab {
  background: #1a1a1a;
  color: #888;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
}
.dstab.on {
  background: #e50914;
  color: #fff;
}
.dbox-epgrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.dep-btn {
  background: #1a1a1a;
  color: #999;
  font-size: 13px;
  font-weight: 600;
  padding: 14px 0;
  text-align: center;
  border-radius: 6px;
}
.dep-btn:hover {
  background: #2a2a2a;
  color: #fff;
}
.sb-platform {
  border: 1px solid #333;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0 16px 16px 16px;
  display: flex;
  flex-direction: column;
}
.sb-platform small {
  color: #777;
  font-size: 10px;
  margin-bottom: 4px;
}
.sb-platform select {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
  outline: none;
  width: 100%;
}
@media (max-width: 767px) {
  .dizi-container { flex-direction: column; }
  .dizi-left { width: 100%; max-width: none; margin: 0; position: fixed; inset: 0; height: 100dvh !important; z-index: 50; border-radius: 0; aspect-ratio: auto !important; max-height: none !important; border: none !important; }
  .dizi-right, .episodes-panel {
    position: fixed !important; bottom: 0 !important; left: 0 !important; right: 0 !important; top: auto !important;
    transform: translateY(100%) !important;
    width: 100% !important; max-height: 80vh !important; height: auto !important;
    border-radius: 20px 20px 0 0 !important;
    z-index: 200 !important;
    opacity: 1 !important; visibility: visible !important;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  }
  .dizi-right.open, .episodes-panel.open { transform: translateY(0) !important; }
}
