/* KARA SES - YouTube tarzı tema (ana sayfa ve izleme sayfası) */
:root {
  --yt-bg:#0f0f0f; --yt-card:#1a1a1a; --yt-chip:#272727; --yt-chip-hover:#3a3a3a;
  --yt-text:#f1f1f1; --yt-muted:#aaaaaa; --yt-line:rgba(255,255,255,.1); --yt-accent:#c8834a;
  --yt-bar-h:56px;
}
body.yt { background:var(--yt-bg); color:var(--yt-text); margin:0; }
body.yt a { color:inherit; }

/* Üst bar */
.ytBar { position:sticky; top:0; z-index:50; display:flex; align-items:center; gap:16px; min-height:var(--yt-bar-h); padding:8px 16px; box-sizing:border-box; background:rgba(15,15,15,.96); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); border-bottom:1px solid var(--yt-line); }
.ytLeft { display:flex; align-items:center; gap:12px; flex-shrink:0; }
.ytMenuBtn { width:40px; height:40px; border:0; border-radius:50%; background:transparent; color:var(--yt-text); font-size:20px; cursor:pointer; }
.ytMenuBtn:hover { background:var(--yt-chip); }
.ytLogo { text-decoration:none; color:inherit; }
.ytSearch { flex:1; max-width:640px; margin:0 auto; display:flex; min-width:0; }
.ytSearch input { flex:1; min-width:0; box-sizing:border-box; padding:9px 18px; font-size:.95rem; color:var(--yt-text); background:#121212; border:1px solid #303030; border-right:0; border-radius:999px 0 0 999px; outline:0; }
.ytSearch input:focus { border-color:var(--yt-accent); }
.ytSearch button { padding:0 20px; color:var(--yt-text); background:#222; border:1px solid #303030; border-radius:0 999px 999px 0; cursor:pointer; }
.ytSearch button:hover { background:var(--yt-chip-hover); }
.ytRight { display:flex; align-items:center; gap:8px; margin-left:auto; flex-shrink:0; flex-wrap:wrap; justify-content:flex-end; }
.ytUser { font-size:.9rem; }

/* Bildirim zili */
.ytBell { position:relative; margin-right:2px; }
.ytBell summary { list-style:none; cursor:pointer; }
.ytBell summary::-webkit-details-marker { display:none; }
.ytBellBtn { width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:19px; position:relative; }
.ytBellBtn:hover { background:var(--yt-chip); }
.ytBellBadge { position:absolute; top:2px; right:2px; min-width:16px; height:16px; padding:0 4px; border-radius:999px; background:#e5484d; color:#fff; font-size:.62rem; font-weight:700; display:flex; align-items:center; justify-content:center; line-height:1; }
.ytBellPanel { position:absolute; right:0; top:calc(100% + 8px); width:320px; max-width:88vw; max-height:70vh; overflow-y:auto; background:var(--yt-card); border:1px solid var(--yt-line); border-radius:12px; box-shadow:0 10px 30px rgba(0,0,0,.4); z-index:70; }
.ytBellHead { padding:12px 14px; font-weight:700; border-bottom:1px solid var(--yt-line); }
.ytBellItem { display:flex; gap:10px; padding:11px 14px; text-decoration:none; color:var(--yt-text); border-bottom:1px solid var(--yt-line); align-items:flex-start; }
.ytBellItem:last-child { border-bottom:0; }
.ytBellItem:hover { background:var(--yt-chip); }
.ytBellDot { width:8px; height:8px; border-radius:50%; margin-top:6px; flex-shrink:0; background:transparent; }
.ytBellItem.new .ytBellDot { background:var(--yt-accent); }
.ytBellText { font-size:.86rem; line-height:1.4; }
.ytBellText b { font-weight:600; }
.ytBellText small { display:block; color:var(--yt-muted); margin-top:2px; font-size:.76rem; }
.ytBellEmpty { padding:24px 14px; text-align:center; color:var(--yt-muted); font-size:.88rem; }
@media (max-width:480px) { .ytBellPanel { position:fixed; right:8px; left:8px; width:auto; top:var(--yt-bar-h); } }


/* Yerleşim: sol menü + içerik */
.ytLayout { display:flex; align-items:flex-start; }
.ytSide { width:230px; flex:0 0 230px; position:sticky; top:var(--yt-bar-h); max-height:calc(100vh - var(--yt-bar-h)); overflow-y:auto; padding:12px 10px; box-sizing:border-box; }
.ytSideLink { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:9px 12px; border-radius:10px; color:var(--yt-text); text-decoration:none; font-size:.92rem; }
.ytSideLink:hover { background:var(--yt-chip); }
.ytSideLink.active { background:var(--yt-chip); font-weight:600; }
.ytSideLink small { color:var(--yt-muted); }
.ytSideHead { margin:14px 12px 6px; font-size:.78rem; text-transform:uppercase; letter-spacing:.06em; color:var(--yt-muted); }
.ytSideExt span { display:flex; align-items:center; gap:6px; }

.ytSideDrop { margin:2px 0; }
.ytSideDrop summary { list-style:none; cursor:pointer; }
.ytSideDrop summary::-webkit-details-marker { display:none; }
.ytSideSummary { justify-content:space-between; }
.ytSideCaret { transition:transform .18s; color:var(--yt-muted); }
.ytSideDrop[open] .ytSideCaret { transform:rotate(90deg); }
.ytSideDropList { padding-left:10px; margin-top:2px; border-left:1px solid var(--yt-line); margin-left:14px; }
.ytSideDropList .ytSideLink { font-size:.88rem; padding:7px 12px; }
.ytSideSep { height:1px; background:var(--yt-line); margin:10px 6px; }
.ytMain { flex:1; min-width:0; padding:16px 24px 70px; box-sizing:border-box; }
body.sideHidden .ytSide { display:none; }

/* Etiket çipleri */
.ytChips { display:flex; gap:8px; overflow-x:auto; padding:2px 0 16px; scrollbar-width:none; }
.ytChips::-webkit-scrollbar { display:none; }
.ytChip { white-space:nowrap; padding:7px 14px; border-radius:8px; background:var(--yt-chip); color:var(--yt-text); text-decoration:none; font-size:.88rem; }
.ytChip:hover { background:var(--yt-chip-hover); }
.ytChip.on { background:var(--yt-text); color:#0f0f0f; font-weight:600; }

.ytResult { margin:0 0 14px; color:var(--yt-muted); font-size:.92rem; }
.ytResult a { margin-left:8px; text-decoration:underline; }

/* Video ızgarası */
.ytGrid { display:grid; grid-template-columns:repeat(auto-fill,minmax(290px,1fr)); gap:26px 16px; }
.ytCard { min-width:0; }
.ytThumb { position:relative; display:block; aspect-ratio:16/9; border-radius:12px; overflow:hidden; background:var(--yt-chip); }
.ytThumb img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .25s; }
.ytCard:hover .ytThumb img { transform:scale(1.04); }
.ytPh { width:100%; height:100%; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#2a2a2a,#111); color:rgba(255,255,255,.55); font-weight:700; letter-spacing:.04em; }
.ytPlay { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%) scale(.85); width:54px; height:54px; border-radius:50%; background:rgba(0,0,0,.7); color:#fff; display:flex; align-items:center; justify-content:center; font-size:20px; padding-left:4px; box-sizing:border-box; opacity:0; transition:opacity .2s, transform .2s; }
.ytCard:hover .ytPlay { opacity:1; transform:translate(-50%,-50%) scale(1); }
.ytBadge { position:absolute; right:8px; bottom:8px; font-size:.7rem; padding:2px 7px; border-radius:6px; background:rgba(0,0,0,.75); color:#fff; }
.ytBadgeCat { left:8px; right:auto; bottom:auto; top:8px; background:var(--yt-accent); color:#fff; font-weight:600; }
.ytChipsCat .ytChip { font-weight:600; }
.ytInfo { padding:10px 2px 0; }
.ytTitle { margin:0 0 4px; font-size:1rem; font-weight:600; line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.ytTitle a { text-decoration:none; }
.ytMeta { font-size:.82rem; color:var(--yt-muted); line-height:1.55; }
.ytMeta a { color:var(--yt-muted); text-decoration:none; margin-right:6px; }
.ytMeta a:hover { color:var(--yt-text); }
.ytActs { display:flex; gap:6px; margin-top:8px; flex-wrap:wrap; }
.ytMini { background:var(--yt-chip); color:var(--yt-text); border:0; padding:6px 12px; border-radius:999px; font-size:.8rem; cursor:pointer; text-decoration:none; }
.ytMini:hover { background:var(--yt-chip-hover); }

/* Sayfalama */
.pager { display:flex; flex-wrap:wrap; gap:6px; justify-content:center; margin:30px 0 6px; }
.pgBtn { padding:8px 14px; border-radius:8px; background:var(--yt-chip); color:var(--yt-text); text-decoration:none; font-size:.9rem; }
.pgBtn:hover { background:var(--yt-chip-hover); }
.pgBtn.cur { background:var(--yt-text); color:#0f0f0f; font-weight:700; }
.pgDots { padding:8px 4px; opacity:.6; }
.pgInfo { text-align:center; font-size:.82rem; color:var(--yt-muted); margin-top:6px; }

/* Liderlik tablosu */
.ytBoard { margin-top:40px; }
.ytBoard h2 { font-size:1.25rem; margin:0 0 4px; }
.ytBoard .sub { color:var(--yt-muted); margin:0 0 14px; font-size:.9rem; }
.ytBoardList { background:var(--yt-card); border:1px solid var(--yt-line); border-radius:12px; overflow:hidden; }
.ytBoardRow { display:flex; justify-content:space-between; gap:12px; padding:12px 16px; border-bottom:1px solid var(--yt-line); }
.ytBoardRow:last-child { border-bottom:0; }
.ytRank { display:inline-block; min-width:34px; color:var(--yt-accent); font-weight:700; }

.ytEmpty { padding:40px 0; text-align:center; color:var(--yt-muted); }

.ytSide.ytSideOverlay {
  position:fixed; left:0; top:var(--yt-bar-h); bottom:0; width:250px; max-height:none;
  background:var(--yt-bg); border-right:1px solid var(--yt-line); z-index:60;
  transform:translateX(-100%); transition:transform .2s; overflow-y:auto; padding:12px 10px; box-sizing:border-box;
}
body.sideOpen .ytSide.ytSideOverlay { transform:none; }

/* Mobil */
@media (max-width:1000px) {
  .ytSide { position:fixed; left:0; top:var(--yt-bar-h); bottom:0; max-height:none; width:250px; background:var(--yt-bg); border-right:1px solid var(--yt-line); z-index:60; transform:translateX(-100%); transition:transform .2s; }
  body.sideOpen .ytSide { transform:none; }
  body.sideHidden .ytSide { display:block; }
  .ytMain { padding:12px 12px 60px; }
}
@media (max-width:700px) {
  .ytBar { flex-wrap:wrap; gap:8px 10px; }
  .ytSearch { order:3; flex:1 0 100%; max-width:none; }
  .ytRight { margin-left:auto; }
  .ytUser { display:none; }
  .ytGrid { grid-template-columns:1fr; gap:22px; }
  .ytThumb { border-radius:0; margin:0 -12px; }
  .ytInfo { padding:10px 0 0; }
}