/* YouTube Light Theme */
:root {
  --bg: #ffffff;
  --bg2: #f2f2f2;
  --bg3: #e5e5e5;
  --hover: #f2f2f2;
  --text: #000;

  --tex2t: #484b5a;
  --muted: #606060;
  --border: #e5e5e5;
  --red: #ff0000;
  --blue: #065fd4;
  --nav-h: 56px;
  --side: 240px;
  --side-c: 72px;
  --font: "Roboto", "Arial", Helvetica, sans-serif;
  --radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg); color: var(--text);
  font-family: var(--font); min-height: 100%;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { border: 0; background: 0; cursor: pointer; font-family: inherit; color: inherit; }
img, video { max-width: 100%; display: block; }
input, textarea, select {
  font-family: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; outline: none; padding: 10px 12px;
}
input:focus, textarea:focus { border-color: #1c62b9; box-shadow: 0 0 0 1px #1c62b9; }

/* NAV */
.yt-nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  background: var(--bg); z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; gap: 12px;
  border-bottom: 1px solid transparent;
}
.yt-nav-left { display: flex; align-items: center; gap: 12px; min-width: 160px; }
.yt-menu-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.yt-menu-btn:hover { background: var(--hover); }
.yt-logo {
  display: flex; align-items: center; gap: 4px;
  font-size: 18px; font-weight: 700; letter-spacing: -0.5px;
}
.yt-logo i { color: var(--red); font-size: 40px; }
.yt-logo img { height: 30px; width: auto; }

.yt-nav-center { flex: 1; max-width: 640px; display: flex; gap: 8px; }
.yt-search {
  flex: 1; display: flex; height: 40px;
  border: 1px solid var(--border); border-radiu2s: 40px 0 0 40px; overflow: hidden;
  background: var(--bg);
  border-radius: 40px 40px 40px 40px;
}
.yt-search input {
  flex: 1; border: 0; border-radius: 0; padding: 0 16px; font-size: 16px;
  box-shadow: none;
  border-radius: 40px 40px 40px 40px;
}
.yt-search button {
  width: 64px; background: var(--bg2); border-left: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  border-radius: 0 40px 40px 0;
}
.yt-mic {
  width: 40px; height: 40px; border-radius: 50%; background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
}

.yt-mic:hover {background:#e5e5e5;}

.yt-nav-right { display: flex; align-items: center; gap: 4px; justify-content: flex-end; min-width: 140px; }
.yt-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.yt-icon:hover { background: #e5e5e5;; }
.yt-avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; margin-left: 8px; cursor: pointer; }
.yt-avatar img { width: 100%; height: 100%; object-fit: cover; }
.yt-login-link {
  border: 1px solid #ccc; color: var(--blue);
  padding: 10px 15px; border-radius: 18px; font-size: 18px; font-weight: 500;
  display: flex; align-items: center; gap: 6px;
}
.yt-login-link:hover { background: #def1ff; border-color: #def1ff; }

/* SIDEBAR */
.yt-side {
  position: fixed; top: var(--nav-h); left: 0; bottom: 0;
  width: var(--side); background: var(--bg); padding: 12px;
  overflow-y: auto; z-index: 900; transition: width .2s, transform .2s;
}
.yt-side a {
  display: flex; align-items: center; gap: 20px;
  padding: 0 12px; height: 40px; border-radius: 10px; font-size: 14px;
}
.yt-side a:hover, .yt-side a.active { background: var(--hover); }
.yt-side a.active { font-weight: 500; }
.yt-side a i { width: 24px; text-align: center; font-size: 18px; }
.yt-side h4 { font-size: 14px; padding: 12px 12px 4px; font-weight: 500; }
.yt-side hr { border: 0; border-top: 1px solid var(--border); margin: 12px 0; }
.yt-side.collapsed { width: var(--side-c); }
.yt-side.collapsed a span, .yt-side.collapsed h4, .yt-side.collapsed hr { display: none; }
.yt-side.collapsed a {
  justify-content: center; width: 48px; height: 48px; margin: 0 auto 4px;
  padding: 0; border-radius: 50%;
}

/* MAIN */
.yt-main {
  margin-left: var(--side); margin-top: var(--nav-h);
  padding: 20px 24px 48px; min-height: calc(100vh - var(--nav-h));
  transition: margin-left .2s;
}
.yt-main.wide { margin-left: var(--side-c); }

/* CHIPS */
.yt-chips { display: flex; gap: 10px; overflow-x: auto; margin-bottom: 18px; scrollbar-width: none; }
.yt-chips::-webkit-scrollbar { display: none; }
.yt-chip {
  flex-shrink: 0; padding: 6px 12px; background: var(--bg2);
  border-radius: 8px; font-size: 14px; font-weight: 500;
}
.yt-chip.active { background: var(--text); color: #fff; }
.yt-chip:hover:not(.active) { background: var(--bg3); }

/* VIDEO GRID */
.yt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px 16px;
}
.yt-card { cursor: pointer; }
.yt-thumb {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius);
  overflow: hidden; background: var(--bg2); margin-bottom: 12px;
}
.yt-thumb img, .yt-thumb video { width: 100%; height: 100%; object-fit: cover; }
.yt-dur {
  position: absolute; bottom: 6px; right: 6px;
  background: rgba(0,0,0,.8); color: #fff; font-size: 12px;
  padding: 2px 4px; border-radius: 4px; font-weight: 500;
}
.yt-card-info { display: flex; gap: 12px; }
.yt-card-info .av {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.yt-card-info h3 {
  font-size: 15px; font-weight: 500; line-height: 1.3; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.yt-card-info p { font-size: 13px; color: var(--muted); line-height: 1.35; }

/* CHANNEL */
.yt-banner {
  width: 100%; height: 200px; border-radius: var(--radius); overflow: hidden;
  background: var(--bg2); margin-bottom: 20px;
}
.yt-banner.empty { background: linear-gradient(180deg, #f8f8f8, #eee); }
.yt-banner img { width: 100%; height: 100%; object-fit: cover; }
.yt-channel-head {
  display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 16px;
}
.yt-channel-head .big-av {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.yt-channel-head .info { flex: 1; min-width: 200px; }
.yt-channel-head h1 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.yt-channel-head .meta { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.yt-channel-head .bio { font-size: 14px; color: var(--muted); max-width: 500px; line-height: 1.4; }
.yt-actions-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.yt-btn {
  background: var(--text); color: #fff; padding: 10px 16px;
  border-radius: 18px; font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
}
.yt-btn:hover { background: #272727; }
.yt-btn.gray { background: var(--bg2); color: var(--text); }
.yt-btn.gray:hover { background: var(--bg3); }
.yt-btn.red { background: var(--red); }
.yt-btn:disabled { opacity: .6; cursor: wait; }

.yt-tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--border);
  margin-bottom: 20px; overflow-x: auto; scrollbar-width: none;
}
.yt-tabs button, .yt-tabs a {
  padding: 12px 20px; font-size: 14px; font-weight: 500;
  color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap;
  background: transparent;
}
.yt-tabs button.active, .yt-tabs a.active {
  color: var(--text); border-bottom-color: var(--text);
}
.yt-panel { display: none; }
.yt-panel.active { display: block; }

/* WATCH */
.yt-watch {
  display: grid; grid-template-columns: 1fr 400px; gap: 24px; max-width: 1400px;
}
.yt-player {
  aspect-ratio: 16/9; background: #000; border-radius: var(--radius); overflow: hidden;
}
.yt-player video, .yt-player iframe { width: 100%; height: 100%; border: 0; }
.yt-watch-title { font-size: 20px; font-weight: 600; margin: 14px 0 8px; line-height: 1.3; }
.yt-related a { display: flex; gap: 10px; margin-bottom: 12px; }
.yt-related .rt {
  width: 168px; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden;
  background: var(--bg2); flex-shrink: 0;
}
.yt-related .rt img { width: 100%; height: 100%; object-fit: cover; }
.yt-related h4 {
  font-size: 14px; font-weight: 500; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.yt-related p { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* COMMENTS */
.yt-comments { margin-top: 24px; max-width: 100%; }
.yt-comments h3 { font-size: 16px; margin-bottom: 16px; }
.yt-comment-form {
  display: flex; gap: 12px; margin-bottom: 24px; align-items: flex-start;
}
.yt-comment-form .av {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.yt-comment-form .fields { flex: 1; }
.yt-comment-form textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--border);
  border-radius: 0; padding: 8px 0; resize: none; min-height: 40px;
  background: transparent; box-shadow: none;
}
.yt-comment-form textarea:focus { border-bottom-color: var(--text); box-shadow: none; }
.yt-comment-actions {
  display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px;
}
.yt-comment {
  display: flex; gap: 12px; margin-bottom: 20px;
}
.yt-comment .av {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.yt-comment .body { flex: 1; min-width: 0; }
.yt-comment .meta { font-size: 13px; margin-bottom: 4px; }
.yt-comment .meta strong { font-weight: 600; margin-right: 6px; }
.yt-comment .meta span { color: var(--muted); font-size: 12px; }
.yt-comment .text { font-size: 14px; line-height: 1.4; white-space: pre-wrap; }
.yt-comment .actions {
  display: flex; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--muted);
}
.yt-comment .actions button {
  font-size: 12px; font-weight: 500; color: var(--muted); padding: 4px 8px; border-radius: 16px;
}
.yt-comment .actions button:hover { background: var(--hover); color: var(--text); }
.yt-comment .actions button.danger:hover { color: var(--red); }
.yt-replies { margin-left: 52px; margin-top: 12px; }
.yt-reply-form {
  display: none; margin-top: 8px; margin-left: 52px;
}
.yt-reply-form.open { display: block; }
.yt-reply-form textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--border);
  border-radius: 0; padding: 8px 0; resize: none; min-height: 36px;
  background: transparent; box-shadow: none;
}

/* FORMS */
.yt-form {
  max-width: 420px; margin: 40px auto; padding: 28px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
}
.yt-form h1 { font-size: 22px; margin-bottom: 20px; text-align: center; }
.yt-form label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.yt-form input, .yt-form textarea { width: 100%; margin-bottom: 14px; }
.yt-form .yt-btn { width: 100%; justify-content: center; }
.yt-form .foot { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }
.yt-form .foot a { color: var(--blue); }
.yt-err { color: #c00; text-align: center; margin-bottom: 12px; font-size: 14px; }
.yt-ok { color: #0a0; text-align: center; margin-bottom: 12px; font-size: 14px; }

.yt-empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.yt-empty i { font-size: 48px; display: block; margin-bottom: 12px; opacity: .4; }

.yt-dropdown { position: relative; }
.yt-drop-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 240px; background: #fff; border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.15); padding: 8px 0; z-index: 2000;
  border: 1px solid var(--border);
}
.yt-drop-menu.open { display: block; }
.yt-drop-menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; font-size: 14px;
}
.yt-drop-menu a:hover { background: var(--hover); }
.yt-drop-menu .sep { height: 1px; background: var(--border); margin: 4px 0; }

.yt-load {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 3000; display: none;
}
.yt-load.on { display: block; }
.yt-load.on::after {
  content: ''; display: block; height: 100%; width: 30%;
  background: var(--red); animation: yload .8s ease infinite;
}
@keyframes yload {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

/* toast */
.yt-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: #323232; color: #fff; padding: 12px 20px; border-radius: 8px;
  font-size: 14px; z-index: 4000; transition: transform .25s; pointer-events: none;
}
.yt-toast.show { transform: translateX(-50%) translateY(0); }

@media (max-width: 1100px) {
  .yt-watch { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .yt-side { transform: translateX(-100%); width: var(--side); box-shadow: 4px 0 24px rgba(0,0,0,.1); }
  .yt-side.open { transform: translateX(0); }
  .yt-main { margin-left: 0; padding: 12px; }
  .yt-main.wide { margin-left: 0; }
  .yt-mic { display: none; }
  .yt-banner { height: 120px; border-radius: 0; }
  .yt-channel-head .big-av { width: 72px; height: 72px; }
  .yt-channel-head h1 { font-size: 18px; }
  .yt-grid { grid-template-columns: 1fr 1fr; gap: 12px 8px; }
  .yt-card-info .av { display: none; }
  .yt-replies, .yt-reply-form { margin-left: 0; }
}
@media (max-width: 480px) {
  .yt-grid { grid-template-columns: 1fr; }
  .yt-logo span { display: none; }
}


/* Sidebar'ın class veya id'sini yaz */
.yt-side,          /* kendi class'ını yaz */
#yt-side {
  -ms-overflow-style: none;  /* IE ve Edge */
  scrollbar-width: none;     /* Firefox */
}

/* Chrome, Safari, Opera */
.yt-side::-webkit-scrollbar,
#yt-side::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.yt-side::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

.yt-side::-webkit-scrollbar-track,
.yt-side::-webkit-scrollbar-thumb {
  display: none !important;
  background: transparent !important;
}

/* VÄ°DEO PLAYER BOYUT */

/* VİDEO PLAYER BOYUT - Standart %100 doldurma */
.video-container2 {
    position: relative;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow2: 0 20px 60px rgba(0, 0, 0, 0.6);
    margin-bottom2: 30px;
    max-width: 100%;
    width: 100%;
    /* İstersen sabit yükseklik ver, yoksa aspect-ratio kullan */
    aspect-ratio: 16 / 9;   /* YouTube tarzı 16:9 */
}

.video-container video,
.video-container2 iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    object-fit: contain; /* videonun taşmasını engeller, istersen contain yap */
}

/* Custom Player Controls */
.custom-player-controls2 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    padding: 20px 25px 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.video-container2:hover .custom-player-controls2,
.custom-player-controls:hover {
    opacity: 1;
}

.progress-area2 {
    margin-bottom: 15px;
}

.progress-container2 {
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 50px;
    position: relative;
    cursor: pointer;
}

.progress-buffered2 {
    position: absolute;
    height: 100%;
    background: rgba(255,255,255,0.4);
    border-radius: 50px;
}

.progress-bar2 {
    position: absolute;
    height: 100%;
    background: #fff;
    border-radius: 50px;
    transition: width 0.1s linear;
}

.controls-bottom2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.left-side2, .right-side2 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-btn2 {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.player-btn2:hover {
    background: #fff;
    color: #111;
    transform: scale(1.1);
}

.volume-area2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

#volumeSlider2 {
    width: 120px;
    accent-color: #fff;
}

.time-area2 {
    color: #ddd;
    font-size: 15px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .player-btn2 {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .volume-area2 input[type="range"] {
        width: 100px;
    }
}

/* END VÄ°DEO PLAYER BOYUT */


.btn {
    border:0;
    background:#f8f8f8;
    color:#000;
    padding:11px 17px;
    border-radius:22px;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
    white-space:nowrap;
}

.btn:hover {
    background:#f2f2f2;
    color:#000;
}

/* ===== Sidebar Login Box ===== */
.sidebar-login-box {
    background2: #1a1a1a;
    border-radius: 12px;
    padding: 16px 18px;
    margin: 16px 12px;
    color: #111;
    font-size: 14px;
    line-height: 1.45;
    display2: none; /* varsayılan gizli */
    flex-direction: column;
    gap: 14px;
}

/* Sidemenü açıkken göster */
.sidebar.open .sidebar-login-box,
.sidebar.active .sidebar-login-box,
body.sidebar-open .sidebar-login-box {
    display: flex;
}

.sidebar-login-box p {
    margin: 0;
    color: #111;
    font-weight: 400;
}

.login-btn {
    margin-top:10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: 1.5px solid #3ea6ff;
    color: #3ea6ff;
    padding: 9px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    width: fit-content;
}

.login-btn:hover {
    background: rgba(62, 166, 255, 0.15);
    border-color: #65b8ff;
    color: #65b8ff;
}

.login-btn svg {
    flex-shrink: 0;
}


/* Arama Çubuğu */
 
.search-section {
    position: relative;
    display: flex;
    align-items: center;
    width: 640px;
    max-width: 100%;
}

.search-input {
    flex: 1;
    height: 40px;
    border: 2px solid #f2f2f2;
    border-right: none;
    border-radius: 40px 0 0 40px;
    padding: 0 16px;
    font-size: 16px;
    background: #fff;
}

.search-btn {
    width: 64px;
    height: 40px;
    background: #f8f8f8;
    border: 2px solid #f2f2f2;
    border-radius: 0 40px 40px 0;
    cursor: pointer;
    user-select: none;
    color:#000;
}

.search-btn:hover {
background: #f2f2f2;
}


.hyimertho31 {
    border: 1px solid #1468D6; /* mavi çember */
    background:#;
    color:#1468D6;
    padding:10px 17px;
    border-radius:22px;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
    white-space:nowrap;
}

.hyimertho31:hover {
    background:#f2f2f2;
    color:#1468D6;
}

.kingadd {
    background-color: #f8f8f8;
    height: 40px;
    line-height: 40px;
    width: 40px;
    border-radius: 166px;
    text-align: center;
    color: #000;
    col2or: #484b5a;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: inline-block
}

.kingadd:hover {
background-color: #f2f2f2;

}


/* Player CSS (SPA güvenli) */
.video-container {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    user-select: none;
}

.video-container video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}

.custom-player-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.85));
    padding: 40px 12px 10px;
    opacity: 0;
    transition: opacity .25s ease;
    z-index: 20;
}

.video-container:hover .custom-player-controls,
.video-container.show-controls .custom-player-controls,
.video-container.paused .custom-player-controls {
    opacity: 1;
}

.progress-area {
    margin-bottom: 8px;
    padding: 0 4px;
}

.progress-container {
    height: 5px;
    background: rgba(255,255,255,.25);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.progress-container:hover {
    height: 7px;
}

.progress-buffered {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: rgba(255,255,255,.4);
    border-radius: 3px;
    width: 0%;
    pointer-events: none;
}

.progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #fff;
    background2: #ff0000;
    color:#fff;
    border-radius: 3px;
    width: 0%;
    pointer-events: none;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 13px;
    height: 13px;
    background: #ff0000;
    background2: #fff;
    color:#fff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity .15s;
}

.progress-container:hover .progress-bar::after {
    opacity: 1;
}

.controls-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.left-side, .right-side, .time-area {
    display: flex;
    align-items: center;
    gap: 4px;
}

.player-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.player-btn:hover {
    background: rgba(255,255,255,.15);
}

.volume-area {
    display: flex;
    align-items: center;
    gap: 4px;
}

#volumeSlider {
    width: 0;
    opacity: 0;
    transition: width .2s, opacity .2s;
    accent-color: #fff;
    cursor: pointer;
}

.volume-area:hover #volumeSlider,
.volume-area:focus-within #volumeSlider {
    width: 70px;
    opacity: 1;
}

.time-area {
    color: #fff;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    margin: 0 6px;
}

.time-separator {
    opacity: .7;
}

/* Settings menu */
.settings-menu {
    position: absolute;
    bottom: 55px;
    right: 12px;
    background: rgba(28,28,28,.95);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 180px;
    display: none;
    z-index: 30;
    backdrop-filter: blur(8px);
}

.settings-menu.open {
    display: block;
}

.settings-item {
    padding: 10px 16px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-item:hover {
    background: rgba(255,255,255,.1);
}

.settings-item span {
    opacity: .7;
}

/* Big center play button */
.center-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    background: rgba(0,0,0,.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s, transform .2s;
    z-index: 15;
    pointer-events: none;
}

.video-container.paused .center-play {
    opacity: 1;
    pointer-events: auto;
}

.center-play:hover {
    transform: translate(-50%, -50%) scale(1.08);
    background: rgba(0,0,0,.7);
}


.yt-description {
    background: var(--bg2);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    position: relative;
}

.yt-desc-text {
    white-space: pre-wrap;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;          /* başlangıçta 3 satır */
    max-height: 4.5em;              /* 3 satır ≈ 4.5em */
    transition: max-height 0.25s ease;
}

.yt-description.expanded .yt-desc-text {
    -webkit-line-clamp: unset;
    max-height: 2000px;             /* yeterince büyük değer */
}

.yt-desc-toggle {
    background: none;
    border: none;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 0 0;
    margin-top: 4px;
    display: inline-block;
}

.yt-desc-toggle:hover {
    text-decoration: underline;
}

/* Eğer metin zaten kısaysa butonu gizle */
.yt-description.no-toggle .yt-desc-toggle {
    display: none;
}

/* ========== WATCH META (YouTube birebir) ========== */
.yt-watch-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0 16px;
  flex-wrap: wrap;
}

.yt-channel-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 280px;
}

.yt-channel-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

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

.yt-channel-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  display: flex;
  align-items: center;
}

.yt-channel-subs {
  font-size: 13px;
  color: var(--muted);
}

.yt-channel-btns {
  display: flex;
  gap: 8px;
  margin-left: 12px;
}

.yt-btn-join {
  background: var(--bg2) !important;
  color: var(--text) !important;
  font-weight: 500;
}
.yt-btn-join:hover {
  background: var(--bg3) !important;
}

/* Sağ aksiyon butonları */
.yt-watch-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.yt-action-group {
  display: flex;
  background: var(--bg2);
  border-radius: 18px;
  overflow: hidden;
}

.yt-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg2);
  border-radius: 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: background .15s;
  white-space: nowrap;
}

.yt-action-btn:hover {
  background: var(--bg3);
}

.yt-action-group .yt-action-btn {
  border-radius: 0;
  background: transparent;
}
.yt-action-group .yt-action-btn:first-child {
  border-right: 1px solid var(--border);
  padding-right: 12px;
}
.yt-action-group .yt-action-btn:last-child {
  padding-left: 12px;
}

.yt-action-btn i {
  font-size: 16px;
}

.yt-more-btn {
  width: 40px;
  height: 36px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

/* Açıklama kutusu – YouTube birebir */
.yt-description {
  background: #f2f2f2;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

.yt-desc-meta {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.yt-desc-text {
  white-space: pre-wrap;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  max-height: 4.5em;
  transition: max-height .25s ease;
  color: var(--text);
}

.yt-description.expanded .yt-desc-text {
  -webkit-line-clamp: unset;
  max-height: 3000px;
}

.yt-desc-toggle {
  background: none;
  border: none;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 0 0;
  margin-top: 2px;
  display: inline-block;
}
.yt-desc-toggle:hover {
  text-decoration: underline;
}

.yt-description.no-toggle .yt-desc-toggle {
  display: none;
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
  .yt-watch-meta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .yt-channel-info {
    min-width: 0;
  }
  .yt-channel-btns {
    margin-left: auto;
  }
  .yt-watch-actions {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .yt-action-btn span {
    display: none; /* mobilde sadece ikon */
  }
  .yt-action-btn {
    padding: 8px 12px;
  }
}