:root {
    --bg-primary: #0a0a0b;
    --bg-secondary: #141417;
    --accent-color: #ff3333;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Background */
.app-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, #1a1a1d 0%, #0a0a0b 100%);
    z-index: -1;
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 0;
    overflow: hidden;
}

/* Alt şerit: sol logo | ortada menü | sağda sürüm */
.app-bottom-shell {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 12px;
    padding: 6px 20px 14px;
    flex-shrink: 0;
}

.dock-logo-block {
    justify-self: start;
    cursor: pointer;
}

.dock-logo-text {
    --logo-outline: #ffffff;
    font-family: var(--font-main);
    font-size: calc(21px * 1.4 * 2);
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
    letter-spacing: -0.03em;
    cursor: pointer;
}

.logo-text.dock-logo-text {
    font-size: calc(21px * 1.4 * 2);
    font-weight: 800;
}

/* TobeTube: renk sırası (forest / mor / altın / amber / kırmızı T / şeftali / çelik mavi / limon) */
.dock-logo-text .logo-letter {
    display: inline-block;
    position: relative;
    -webkit-text-stroke: 2.2px var(--logo-outline);
    paint-order: stroke fill;
}

.logo-letter-t1 { color: #438e44; transform: rotate(-2deg); }
.logo-letter-o { color: #7b2995; transform: rotate(1.8deg); }
.logo-letter-b1 { color: #f4c418; transform: rotate(-1.2deg); }
.logo-letter-e1 { color: #ffa040; transform: rotate(1.5deg); }
.logo-letter-t2 { color: #a60d0d; transform: rotate(-1.5deg); }
.logo-letter-u { color: #fb9466; transform: rotate(1.5deg); }
.logo-letter-b2 { color: #456994; transform: rotate(-1.8deg); }
.logo-letter-e2 { color: #a3c639; transform: rotate(2deg); }

/* Her iki T: oynat üçgeni yatay çubukta (aynı ölçü ve ofset) */
.dock-logo-text .logo-letter-t1 .logo-letter-play,
.dock-logo-text .logo-letter-t2 .logo-letter-play {
    position: absolute;
    left: calc(50% + 0.028em);
    top: 0.31em;
    width: 0.216em;
    height: 0.238em;
    transform: translate(-50%, -50%);
    overflow: hidden;
    pointer-events: none;
    display: block;
}

.logo-text {
    cursor: pointer;
}

.search-bar {
    flex: 1 1 auto;
    max-width: 100%;
    width: 100%;
    margin: 0;
    position: relative;
}

.search-bar input {
    width: 100%;
    background: rgba(255,255,255,0.07);
    border: 1px solid var(--glass-border);
    padding: 14px 25px;
    padding-right: 110px;
    border-radius: 40px;
    color: white;
    font-size: 17px;
    transition: 0.3s;
}

.search-bar input:focus {
    outline: none;
    background: rgba(255,255,255,0.12);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.2);
}

.search-bar button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-color);
    border: none;
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 800;
    cursor: pointer;
}

main {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 14px 32px;
}

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

.video-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.4s;
}

.video-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.3);
    box-shadow: var(--shadow-premium);
}

.thumb-wrap {
    position: relative;
    padding-top: 56.25%;
}

.thumb-wrap img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
}

.video-duration {
    position: absolute;
    bottom: 12px; right: 12px;
    background: rgba(0,0,0,0.8);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

.video-info { padding: 18px; }
.video-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
}

.video-meta {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Bottom Menu */
.bottom-menu {
    position: relative;
    justify-self: center;
    grid-column: 2;
    background: rgba(15, 15, 18, 0.85);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    padding: 10px 24px;
    border-radius: 60px;
    display: flex;
    gap: 12px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.7);
    z-index: 1000;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
    color: var(--text-secondary);
}

.menu-item svg { width: 28px; height: 28px; margin-bottom: 5px; }
.menu-item span { font-size: 12px; font-weight: 700; }

.menu-item:hover, .menu-item.active {
    color: white;
    background: rgba(255,255,255,0.1);
}

.menu-item.active svg { fill: var(--accent-color); }

/* View Management */
.view-section {
    display: none;
    flex: 1;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
}
.view-section.active {
    display: flex;
    animation: viewIn 0.5s ease;
}

@keyframes viewIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Player Views */
.player-view {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #000;
}

.player-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.player-container video, 
.player-container canvas,
.player-container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.player-stage-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 5;
}

.player-overlay-spinner-wrap {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-align: center;
    padding: 16px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.45);
}

.player-overlay-spinner-wrap.player-overlay-spinner-visible {
    display: flex !important;
}

.player-overlay-spinner {
    width: 52px;
    height: 52px;
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: playerOverlaySpin 0.8s linear infinite;
}

@keyframes playerOverlaySpin {
    to { transform: rotate(360deg); }
}

.player-overlay-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    max-width: 220px;
    line-height: 1.35;
}

.player-overlay-pause svg {
    width: 72px;
    height: 72px;
    display: block;
    opacity: 0.95;
}

.player-overlay-pause .pause-disk {
    filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.75));
}

/* Welcome Screen */
.welcome-screen {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    text-align: center;
}

.welcome-title {
    font-size: clamp(28px, 5vw, 40px);
    margin-bottom: 12px;
    font-weight: 800;
}

.welcome-lead {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 8px;
}

.welcome-hint {
    color: var(--text-secondary);
    font-size: 14px;
    opacity: 0.75;
}

.welcome-logo {
    font-size: 80px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

/* Arama + gruplar aynı satır; sol küme dar, sağda ileride ek alan */
.browse-toolbar-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.browse-toolbar-row::after {
    content: "";
    flex: 1 1 auto;
    min-width: 0;
    order: 99;
}

.browse-body {
    flex: 1;
    min-height: 0;
    margin-top: 32px;
    padding-top: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

.browse-body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

/* Section Specific Search */
.section-search {
    flex: 0 1 auto;
    /* Önceki maks genişlik üzerinden %60 ek = 380*1.3*1.6 */
    width: min(100%, calc(380px * 1.3 * 1.6));
    max-width: calc(380px * 1.3 * 1.6);
    min-width: 180px;
    margin-bottom: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
}

.search-aux-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.search-aux-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
}

.search-aux-btn svg {
    width: 22px;
    height: 22px;
}

.search-input-field[readonly] {
    cursor: default;
    caret-color: transparent;
}

.search-input-field.search-input-unlocked {
    caret-color: var(--text-primary);
}

.search-aux-btn--listening {
    outline: 2px solid var(--accent-color);
    background: rgba(255, 51, 51, 0.18);
}

.speech-hint {
    position: fixed;
    left: 50%;
    top: max(14px, env(safe-area-inset-top));
    transform: translateX(-50%);
    z-index: 10000;
    max-width: min(92vw, 420px);
    padding: 12px 18px;
    border-radius: 12px;
    background: rgba(18, 18, 22, 0.96);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65);
}

.speech-hint-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Category Chips */
.category-chips {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    scrollbar-width: none; /* Firefox */
}

.category-chips::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.chip {
    background: rgba(255,255,255,0.07);
    border: 1px solid var(--glass-border);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.3s;
    color: var(--text-primary);
}

.chip:hover {
    background: rgba(255,255,255,0.15);
}

.chip.active {
    background: white;
    color: black;
    border-color: white;
}

/* Tech Badge */
.tech-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 14px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.4);
}

.back-to-grid {
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 20px;
    font-weight: 600;
}

.back-to-grid:hover {
    background: rgba(255,255,255,0.2);
}

/* Player View Layout (New) */
.player-view-layout {
    display: flex;
    gap: 24px;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 8px 0 0;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Uygulama içi tam ekran: alt dock (logo + menü) her zaman görünür; video kalan alanı doldurur */
.player-view-layout.player-view-layout--inlay-max {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 6px 0 0;
    gap: 0;
    align-items: stretch;
}

.player-view-layout.player-view-layout--inlay-max .player-sidebar {
    display: none;
}

.player-main.player-main--inlay-max {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: none;
}

.player-main.player-main--inlay-max .video-header-box {
    flex-shrink: 0;
}

.player-main.player-main--inlay-max .player-container {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: none;
    aspect-ratio: unset;
}

.player-main.player-main--inlay-max .external-controls {
    flex-shrink: 0;
}

.player-main {
    flex: 3;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.player-sidebar {
    flex: 1;
    min-width: 260px;
    max-width: 420px;
    min-height: 0;
    background: rgba(255,255,255,0.02);
    border-left: 1px solid var(--glass-border);
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.player-sidebar h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
}

.player-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer; /* Click to toggle play/pause */
}

/* External Controls (Below Video) — YouTube-benzeri bar */
.external-controls {
    background: rgba(15, 15, 17, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px 18px;
    margin-top: 14px;
}

.external-controls .premium-controls {
    position: relative !important;
    opacity: 1 !important;
    background: none !important;
    padding: 0 !important;
    display: block !important;
    pointer-events: auto !important;
}

.sidebar-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

.sidebar-grid::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.sidebar-card {
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.sidebar-card:hover {
    transform: translateX(5px);
}

.sidebar-thumb {
    width: 160px;
    aspect-ratio: 16/9;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Tech Badge */
.tech-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: white;
    padding: 3px 10px;
    border-radius: 5px;
    font-weight: 800;
    font-size: 12px;
    z-index: 10;
}

.video-header-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 5px;
}

.player-video-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.back-to-grid-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--accent-color);
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    padding: 11px 22px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 18px rgba(255, 51, 51, 0.4);
    touch-action: manipulation;
}

.back-to-grid-small .back-to-grid-x-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.back-to-grid-small:hover {
    background: #ff4444;
    border-color: rgba(255, 255, 255, 0.45);
}

.back-to-grid-small:active {
    transform: scale(0.98);
}

.video-details {
    display: none; /* Artık üstte header box var */
}

/* Player Controls */
.premium-controls {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.95));
    padding: 25px;
    opacity: 0;
    transition: 0.4s;
}

.player-container:hover .premium-controls { opacity: 1; }

.player-controls-inner { display: flex; flex-direction: column; gap: 10px; }
.player-controls-inner.yt-controls-bar { gap: 0; }

.yt-progress-wrap { width: 100%; }

.controls-row.yt-controls-one-line {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    min-width: 0;
}

.controls-row.yt-controls-one-line .left-ctrl.yt-ctrl-left {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 6px;
    min-width: 0;
}

.controls-row.yt-controls-one-line .yt-progress-wrap.yt-progress-inline {
    flex: 1 1 0;
    min-width: 48px;
    width: auto;
    max-width: none;
    display: flex;
    align-items: center;
}

.controls-row.yt-controls-one-line .yt-progress-wrap.yt-progress-inline .progress-bar-wrap {
    width: 100%;
}

.controls-row.yt-controls-one-line .right-ctrl.yt-ctrl-right {
    flex: 0 0 auto;
}

.controls-row.yt-controls-one-line .yt-chip-time {
    padding: 5px 10px;
}

.controls-row.yt-controls-one-line .yt-chip-time .time-display {
    font-size: 13px;
}

.controls-row.yt-controls-one-line .yt-vol-slider.vol-slider,
.controls-row.yt-controls-one-line .vol-slider.yt-vol-slider {
    width: 64px;
}

.progress-bar-wrap.yt-progress-bar {
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.18);
}

.progress-bar-wrap {
    height: 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    position: relative;
    cursor: pointer;
    touch-action: manipulation;
    transition: height 0.2s;
}
.progress-bar-wrap:hover { height: 14px; }

.progress-buffer {
    position: absolute;
    left: 0; top: 0; width: 0%; height: 100%;
    background: rgba(255, 255, 255, 0.35); /* Daha belirgin yapıldı */
    border-radius: 6px;
    transition: width 0.2s;
    z-index: 1; /* BG üzerinde, Fill altında */
}

.progress-fill {
    position: absolute;
    left: 0; top: 0; width: 0%; height: 100%;
    background: #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
    border-radius: 6px;
    z-index: 2;
}

.progress-thumb {
    width: 16px;
    height: 16px;
    background: #ff0000;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.92);
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s;
    left: 0%;
    z-index: 10;
}
.progress-bar-wrap:hover .progress-thumb { transform: translate(-50%, -50%) scale(1); }

/* Dokunmatik: daha kalın iz + sürükleme tutamacı her zaman görünsün */
@media (pointer: coarse) {
    .progress-bar-wrap {
        height: 16px;
    }
    .progress-bar-wrap:hover {
        height: 16px;
    }
    .progress-bar-wrap .progress-thumb {
        width: 20px;
        height: 20px;
        transform: translate(-50%, -50%) scale(1);
    }
}

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

.controls-row.yt-controls-toolbar { align-items: center; }

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

.left-ctrl.yt-ctrl-left {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
    flex-wrap: wrap;
}

.right-ctrl.yt-ctrl-right {
    flex-shrink: 0;
}

.yt-chip {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    padding: 4px 6px;
    gap: 2px;
}

.yt-chip-vol {
    gap: 4px;
    padding-left: 4px;
    padding-right: 10px;
}

.yt-chip-time {
    padding: 7px 14px;
}

.yt-chip-time .time-display {
    font-size: 14px;
    font-weight: 600;
    font-family: monospace;
    font-variant-numeric: tabular-nums;
    color: #f0f0f0;
}

.yt-chip-fs-only {
    padding: 4px 8px;
}

.ctrl-btn.yt-ic-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ctrl-btn:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.ctrl-btn {
    background: none; border: none; color: white;
    font-size: 24px; cursor: pointer;
}

.time-display { font-size: 15px; font-weight: 600; font-family: monospace; }

.yt-chip-vol .yt-vol-slider.vol-slider {
    width: 88px;
}

.vol-slider.yt-vol-slider {
    width: 88px;
    height: auto;
}

.vol-slider {
    width: 100px;
    height: auto;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    accent-color: #fff;
}

.vol-slider:focus-visible {
    outline: none;
}

.vol-slider::-webkit-slider-runnable-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.28);
    border-radius: 999px;
}

.vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    box-sizing: border-box;
    width: 13px;
    height: 13px;
    margin-top: -4.5px;
    background: #fff;
    border-radius: 50%;
    border: none;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.vol-slider::-moz-range-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.28);
    border-radius: 999px;
}

.vol-slider::-moz-range-thumb {
    width: 13px;
    height: 13px;
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

/* Eski yerel tam ekran kalıntısı: artık kullanılmıyor; yine de stil güvenli kalsın */
.player-main:fullscreen,
.player-main:-webkit-full-screen {
    overflow: auto;
    box-sizing: border-box;
    padding: 12px;
    background: var(--bg-primary);
}

/* Version Badge (Updated) */
.version-badge {
    position: relative;
    justify-self: end;
    grid-column: 3;
    bottom: auto;
    right: auto;
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    opacity: 0.8;
    z-index: 1001;
}

.version-badge .latest { color: #00ff88; font-weight: 800; font-size: 14px; }

.video-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-indicator.visible {
    opacity: 1;
}

.video-indicator span {
    font-size: 14px;
    font-weight: 600;
    color: white;
    letter-spacing: 1px;
}

.spinner-small {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
    .browse-toolbar-row {
        flex-wrap: wrap;
    }
    .browse-toolbar-row::after {
        display: none;
    }
    .section-search {
        width: 100%;
        max-width: none;
    }
    main {
        padding: 10px 16px;
    }
}
