/* ===== HemdoMania Desktop Style ===== */
@import url('https://fonts.cdnfonts.com/css/gotham');

:root {
    --orange: #fc6e51;
    --orange-light: #ff8a70;
    --cyan: #00f2ff;
    --bg: #0a0a0a;
    --bg-card: #141414;
    --bg-elevated: #1a1a1a;
    --text: #ffffff;
    --text-dim: rgba(255,255,255,0.6);
    --border: rgba(255,255,255,0.08);
    --sidebar-w: 220px;
    --sidebar-w-expanded: 60px;
    --right-col-w: 200px;
    --bottom-nav-h: 0px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    height: 100vh;
    overflow: hidden;
}

/* ===== LOADER ===== */
#app-loader {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #000 0%, #1a0a00 100%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    z-index: 9999; transition: opacity 0.5s;
}
.loader-logo { width: 180px; margin-bottom: 50px; animation: fadeInScale 0.6s ease-out forwards; filter: drop-shadow(0 10px 30px rgba(252,110,81,0.3)); }
@keyframes fadeInScale { 0%{opacity:0;transform:scale(0.8);} 100%{opacity:1;transform:scale(1);} }
.loader-spinner { width: 50px; height: 50px; border: 3px solid rgba(255,255,255,0.1); border-top-color: var(--orange); border-right-color: var(--cyan); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 25px; }
@keyframes spin { 0%{transform:rotate(0deg);} 100%{transform:rotate(360deg);} }
.loader-text { color: rgba(255,255,255,0.7); font-size: 15px; font-weight: 500; text-align: center; }
.loader-progress { width: 220px; height: 5px; background: rgba(255,255,255,0.1); border-radius: 10px; margin-top: 25px; overflow: hidden; }
.loader-progress-bar { height: 100%; background: linear-gradient(90deg, var(--orange), var(--cyan)); width: 0%; transition: width 0.3s; border-radius: 10px; }

/* ===== MAIN DESKTOP LAYOUT (3 Spalten) ===== */
.desktop-layout {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr var(--right-col-w);
    grid-template-rows: 1fr;
    height: 100vh;
    transition: grid-template-columns 0.35s ease;
}
.desktop-layout.sidebar-expanded {
    grid-template-columns: var(--sidebar-w-expanded) 1fr var(--right-col-w);
}

/* ===== LINKE SIDEBAR ===== */
.desktop-sidebar {
    grid-row: 1 / 2;
    background: rgba(14,14,14,0.98);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

/* Logo */
.sidebar-logo {
    padding: 18px 16px 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 72px;
    flex-shrink: 0;
}
.sidebar-logo-full {
    height: 36px;
    width: auto;
    transition: opacity 0.25s;
    object-fit: contain;
}
.sidebar-logo-icon {
    height: 44px;
    width: auto;
    display: none;
    opacity: 0;
    transition: opacity 0.25s;
    object-fit: contain;
}
.sidebar-expanded .sidebar-logo-full { display: none; }
.sidebar-expanded .sidebar-logo-icon { display: block; opacity: 1; }

/* Search */
.sidebar-search {
    padding: 0 12px 12px;
    flex-shrink: 0;
}
.sidebar-search-wrap {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.25s;
    cursor: pointer;
}
.sidebar-search-wrap:hover { border-color: var(--orange); }
.sidebar-search-icon-btn {
    width: 40px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    border: none; background: transparent; cursor: pointer;
}
.sidebar-search-icon-btn img { width: 18px; height: 18px; opacity: 0.6; }
.sidebar-search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 13px;
    padding: 8px 8px 8px 0;
    outline: none;
    min-width: 0;
    transition: max-width 0.25s;
}
.sidebar-search-input::placeholder { color: rgba(255,255,255,0.3); }
.sidebar-expanded .sidebar-search-input { display: none; }
.sidebar-expanded .sidebar-search-wrap { border-radius: 50%; width: 36px; height: 36px; margin: 0 auto; border: 1px solid rgba(255,255,255,0.15); }
.sidebar-expanded .sidebar-search-icon-btn { width: 36px; height: 36px; }

/* Nav Items */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 0;
}
.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 10px;
    margin: 1px 8px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    background: transparent;
    width: calc(100% - 16px);
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
}
.sidebar-nav-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.sidebar-nav-item.active { background: rgba(252,110,81,0.15); color: var(--orange); }
.sidebar-nav-item img { width: 20px; height: 20px; flex-shrink: 0; object-fit: contain; opacity: 0.7; }
.sidebar-nav-item:hover img, .sidebar-nav-item.active img { opacity: 1; }
.sidebar-nav-text { transition: opacity 0.2s; white-space: nowrap; }
.sidebar-expanded .sidebar-nav-text { opacity: 0; width: 0; overflow: hidden; }
.sidebar-expanded .sidebar-nav-item { justify-content: center; padding: 10px; width: 40px; margin: 2px auto; border-radius: 10px; }

.sidebar-divider { height: 1px; background: var(--border); margin: 6px 12px; flex-shrink: 0; }

/* Mehr Button */
.sidebar-mehr-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 500;
    border-radius: 10px;
    margin: 1px 8px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    background: transparent;
    width: calc(100% - 16px);
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
}
.sidebar-mehr-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.sidebar-mehr-btn img { width: 20px; height: 20px; flex-shrink: 0; opacity: 0.7; }
.sidebar-mehr-btn:hover img { opacity: 1; }
.sidebar-expanded .sidebar-mehr-btn { justify-content: center; padding: 10px; width: 40px; margin: 2px auto; }

/* Mehr Button - active state */
.sidebar-mehr-btn.active { background: rgba(252,110,81,0.15); color: var(--orange); }
.sidebar-mehr-btn.active img { opacity: 1; filter: sepia(1) saturate(5) hue-rotate(-10deg); }

/* Mehr Panel (second flyout panel) */
.mehr-panel {
    position: fixed;
    top: 0;
    left: var(--sidebar-w-expanded); /* starts at collapsed sidebar width */
    width: 0;
    height: 100vh;
    background: rgba(18,18,18,0.98);
    border-right: 1px solid var(--border);
    overflow: hidden;
    z-index: 9;
    transition: width 0.35s ease, left 0.35s ease;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px);
}
.mehr-panel.open {
    width: 210px;
}
.mehr-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px 12px;
    border-bottom: 1px solid var(--border);
    min-height: 72px;
    flex-shrink: 0;
}
.mehr-panel-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--orange);
    white-space: nowrap;
}
.mehr-panel-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    font-size: 18px;
    padding: 4px 6px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    line-height: 1;
}
.mehr-panel-close:hover { color: #fff; background: rgba(255,255,255,0.08); }
.mehr-panel-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}
.mehr-panel-nav::-webkit-scrollbar { width: 4px; }
.mehr-panel-nav::-webkit-scrollbar-track { background: transparent; }
.mehr-panel-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.mehr-panel-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}
.mehr-panel-item:hover { background: rgba(255,255,255,0.07); color: #fff; }
.mehr-panel-item span.emoji { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.mehr-panel-footer {
    padding: 10px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}
.mehr-panel-footer a {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    transition: color 0.2s;
}
.mehr-panel-footer a:hover { color: rgba(255,255,255,0.6); }

/* Old sidebar-extra-items (hidden now) */
.sidebar-extra-items { display: none; }

/* Login Button */
.sidebar-login {
    padding: 10px 12px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.sidebar-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
}
.sidebar-login-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(252,110,81,0.4); }
.sidebar-login-btn span { transition: opacity 0.2s; }
.sidebar-login-icon { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; transition: width 0.2s, height 0.2s; }
/* Login-Button mit User-Icon: kein Orange-Hintergrund */
.sidebar-login-user {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
}
.sidebar-login-user:hover {
    background: rgba(255,255,255,0.12) !important;
    box-shadow: none !important;
}
.sidebar-expanded .sidebar-login-btn span { opacity: 0; width: 0; overflow: hidden; }
.sidebar-expanded .sidebar-login-btn { padding: 10px; border-radius: 50%; width: 40px; height: 40px; margin: 0 auto; }
.sidebar-expanded .sidebar-login-icon { width: 20px; height: 20px; }

/* Footer */
.sidebar-footer {
    padding: 8px 12px 12px;
    flex-shrink: 0;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
    transition: opacity 0.2s;
}
.sidebar-footer a, .sidebar-footer span {
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    white-space: nowrap;
}
.sidebar-footer a:hover { color: rgba(255,255,255,0.6); }
.sidebar-expanded .sidebar-footer { opacity: 0; pointer-events: none; }

/* ===== MITTE: VIDEO PLAYER ===== */
.desktop-main {
    grid-row: 1 / 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100vh - var(--bottom-nav-h));
    overflow: hidden;
    position: relative;
    background: var(--bg);
    gap: 0;
}

.desktop-player-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-width: 0;
}

.desktop-player-stage {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.08);
    transition: border-color 0.3s;
}
.desktop-player-stage.vow-active {
    border-color: #ffd700;
    box-shadow: 0 0 24px rgba(255,215,0,0.3);
}

/* 9:16 Player (portrait videos) mit max Höhe */
.desktop-player-stage {
    width: auto;
    height: calc(100vh - var(--bottom-nav-h) - 20px);
    max-height: calc(100vh - var(--bottom-nav-h) - 20px);
    aspect-ratio: 9 / 16;
    max-width: 45vw;
}

/* Falls Landscape-Video: automatisch anpassen per JS */
.desktop-player-stage.landscape {
    aspect-ratio: 16 / 9;
    width: 100%;
    max-width: 60vw;
    height: auto;
    max-height: calc(80vh);
}

.desktop-player-stage .player-media {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: #000;
}
.desktop-player-stage .player-media video,
.desktop-player-stage .player-media img {
    width: 100%; height: 100%;
    object-fit: cover;
}

/* Info Overlay */
.player-info-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 60px 16px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    pointer-events: none;
}
.player-labels { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; pointer-events: auto; }
.player-author { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.player-title { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.9); margin-bottom: 4px; }
.player-desc { font-size: 12px; color: rgba(255,255,255,0.7); line-height: 1.4; max-height: 48px; overflow: hidden; }
.player-song-name { font-size: 11px; color: var(--cyan); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.player-link-btn { display: inline-block; margin-top: 6px; padding: 4px 12px; background: var(--orange); border-radius: 6px; color: #fff; text-decoration: none; font-size: 11px; font-weight: 600; pointer-events: auto; }
.translate-link { display: none; font-size: 11px; color: var(--cyan); cursor: pointer; pointer-events: auto; }
.player-desc-translated { font-size: 12px; color: var(--cyan); margin-top: 4px; }

/* Labels */
.label-video, .label-photo, .label-text, .label-gema, .label-ai, .label-ai-image {
    font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 6px;
}
.label-video { background: rgba(255,0,80,0.85); color: #fff; }
.label-photo { background: rgba(0,242,255,0.85); color: #000; }
.label-text { background: rgba(255,215,0,0.85); color: #000; }
.label-gema { background: rgba(80,80,80,0.85); color: #fff; }
.label-ai { background: rgba(120,0,255,0.85); color: #fff; }
.label-ai-image { background: rgba(0,180,120,0.85); color: #fff; }

/* Progress bar */
.player-progress {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 3px; background: rgba(255,255,255,0.2);
}
.player-progress-fill {
    height: 100%; background: var(--orange);
    transition: width 0.3s linear; width: 0%;
}

/* VOW Badge */
.vow-badge { position: absolute; top: 10px; left: 10px; background: #ffd700; color: #000; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 6px; z-index: 5; }

/* Fullscreen hint */
.fullscreen-exit-hint {
    display: none; position: absolute; top: 12px; right: 12px;
    background: rgba(0,0,0,0.5); border: none; border-radius: 8px; padding: 6px; cursor: pointer; z-index: 10;
}
body.fullscreen-mode .fullscreen-exit-hint { display: flex; }

/* ===== RECHTE VIDEO-AKTIONEN (neben dem Video in der Mitte) ===== */
.desktop-video-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    padding: 12px 8px;
    height: calc(100vh - var(--bottom-nav-h) - 20px);
    width: 72px;
    flex-shrink: 0;
}

.dv-btn {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.08);
    color: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.dv-btn:hover { background: rgba(255,255,255,0.15); transform: scale(1.08); }
.dv-btn:disabled { opacity: 0.3; cursor: default; transform: none; }
.dv-btn img { width: 22px; height: 22px; object-fit: contain; }
.dv-btn svg { width: 22px; height: 22px; }
.dv-btn span { font-size: 10px; display: block; text-align: center; color: rgba(255,255,255,0.7); margin-top: 2px; }

.dv-btn-label {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    cursor: pointer;
}
.dv-btn-label .dv-btn { margin: 0; }
.dv-btn-label .dv-lbl { font-size: 9px; color: rgba(255,255,255,0.6); text-align: center; }

/* Nav Arrows */
.dv-nav-arrow {
    background: rgba(255,255,255,0.1);
    font-size: 20px;
}
.dv-nav-arrow:hover { background: rgba(252,110,81,0.3); }

/* Story Button (rund) */
.dv-story-btn {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    box-shadow: 0 4px 12px rgba(252,110,81,0.4);
    font-size: 9px;
    font-weight: 700;
    flex-direction: column;
    gap: 1px;
    width: 52px; height: 52px;
}
.dv-story-btn .story-dot {
    width: 18px; height: 18px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* Gap between nav arrows/story and actions */
.dv-gap { flex: 1; }

/* Profile */
.dv-profile {
    width: 44px; height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: border-color 0.2s;
    flex-shrink: 0;
}
.dv-profile:hover { border-color: var(--orange); }

/* Song Cover */
.dv-song-cover {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: none;
    align-items: center; justify-content: center;
}
.dv-song-cover img {
    width: 48px; height: 48px;
    border-radius: 50%;
    object-fit: cover;
    animation: disc-spin 5s linear infinite;
    border: 2px solid var(--orange);
}
@keyframes disc-spin { 0%{transform:rotate(0deg);} 100%{transform:rotate(360deg);} }

/* Player counter */
.desktop-player-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    pointer-events: none;
    z-index: 5;
}

/* ===== RECHTE SPALTE ===== */
.desktop-right-col {
    grid-row: 1 / 2;
    background: rgba(14,14,14,0.98);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--bottom-nav-h));
    overflow: hidden;
}

/* Top: App Download + Anmelden */
.right-col-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 12px 8px;
    flex-shrink: 0;
}
.right-app-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; text-decoration: none; transition: all 0.2s;
}
.right-app-btn:hover { background: rgba(255,255,255,0.15); }
.right-app-btn img { width: 18px; height: 18px; opacity: 0.8; }
.right-login-btn {
    padding: 7px 14px;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: white; text-decoration: none;
    border-radius: 20px; font-size: 12px; font-weight: 600;
    white-space: nowrap; transition: all 0.2s;
    border: none; cursor: pointer;
}
.right-login-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(252,110,81,0.4); }

/* Controls: Sound + Info */
.right-col-controls {
    display: flex;
    gap: 8px;
    padding: 4px 12px 8px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border);
}
.right-ctrl-btn {
    flex: 1;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 11px; transition: all 0.2s;
}
.right-ctrl-btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); }
.right-ctrl-btn img { width: 18px; height: 18px; }

/* Panel Login Status */
.right-panel-status {
    padding: 8px 12px;
    font-size: 11px;
    color: var(--cyan);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Favoriten Sektion */
.right-favorites {
    flex: 1;
    overflow-y: auto;
    padding: 8px 8px 4px;
}
.right-favorites::-webkit-scrollbar { width: 3px; }
.right-favorites::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
.right-favorites-title {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    padding: 4px 4px 8px;
    display: flex; align-items: center; gap: 6px;
}
.fav-item {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 6px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 2px;
}
.fav-item:hover { background: rgba(255,255,255,0.07); }
.fav-item-thumb {
    width: 40px; height: 40px;
    border-radius: 6px;
    object-fit: cover;
    background: rgba(255,255,255,0.05);
    flex-shrink: 0;
}
.fav-item-info { flex: 1; min-width: 0; }
.fav-item-title { font-size: 11px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-item-meta { font-size: 10px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.fav-empty { text-align: center; padding: 20px 10px; color: rgba(255,255,255,0.3); font-size: 11px; }

/* Upload Float Button (wenn eingeloggt) */
.panel-upload-float {
    margin: 8px;
    padding: 10px;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    border-radius: 10px;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s;
    flex-shrink: 0;
}
.panel-upload-float.visible { display: flex; }
.panel-upload-float:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(252,110,81,0.4); }

/* ===== BOTTOM NAV (Desktop: ausgeblendet - Sidebar übernimmt Navigation) ===== */
.bottom-nav { display: none; }
/* Mehr Menu (Legacy - nicht mehr verwendet auf Desktop) */
.mehr-menu { display: none !important; }
.mehr-backdrop { display: none !important; }
.mehr-backdrop.open { display: block; }

/* ===== MODALS (gleich wie mobile) ===== */
.modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(10px);
    z-index: 1000; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-box {
    background: rgba(20,20,20,0.98);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px; padding: 24px;
    max-width: 480px; width: 100%;
    max-height: 85vh; overflow-y: auto;
    position: relative; animation: modalIn 0.25s ease;
}
@keyframes modalIn { from{opacity:0;transform:scale(0.95);} to{opacity:1;transform:scale(1);} }
.modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(255,255,255,0.1); color: #fff; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: rgba(255,0,80,0.3); }
.modal-box h2 { margin-bottom: 16px; font-size: 20px; }
.modal-section { margin-bottom: 16px; }
.modal-section h3 { font-size: 14px; color: var(--orange); margin-bottom: 6px; }
.modal-section p { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.5; }
.modal-link { display: block; color: var(--cyan); font-size: 13px; text-decoration: none; margin-top: 4px; }
.modal-link:hover { text-decoration: underline; }
.modal-input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); color: #fff; font-size: 14px; font-family: inherit; outline: none; transition: border-color 0.2s; box-sizing: border-box; }
.modal-input:focus { border-color: var(--orange); }
.btn-primary { display: inline-block; padding: 12px 24px; background: linear-gradient(135deg, var(--orange), var(--orange-light)); color: #fff; border: none; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; text-align: center; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(252,110,81,0.4); }
.btn-secondary { display: inline-block; padding: 10px 20px; background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.15); border-radius: 10px; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.btn-secondary:hover { background: rgba(255,255,255,0.14); }

/* About */
.about-box { text-align: center; }
.about-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--orange); margin-bottom: 16px; }

/* Comment */
.comment-box { max-width: 500px; }
.comment-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.comment-head h3 { font-size: 16px; }
.comment-list { max-height: 280px; overflow-y: auto; margin-bottom: 12px; }
.comment-list::-webkit-scrollbar { width: 3px; }
.comment-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
.comment-item { padding: 10px; border-radius: 10px; background: rgba(255,255,255,0.04); margin-bottom: 8px; }
.comment-author { font-size: 12px; font-weight: 700; color: var(--orange); margin-bottom: 4px; }
.comment-text { font-size: 13px; color: rgba(255,255,255,0.8); line-height: 1.4; }
.comment-date { font-size: 10px; color: rgba(255,255,255,0.3); margin-top: 4px; }
.comment-input-area { margin-top: 8px; }
.comment-step { }
.comment-step.hidden { display: none; }
.comment-start { padding: 12px; background: rgba(255,255,255,0.05); border-radius: 10px; text-align: center; cursor: pointer; color: rgba(255,255,255,0.6); font-size: 13px; }
.comment-start:hover { background: rgba(255,255,255,0.1); color: #fff; }
.comment-row { display: flex; gap: 8px; }
.comment-row input, .comment-row textarea { flex: 1; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; color: #fff; padding: 10px 14px; font-size: 13px; outline: none; font-family: inherit; }
.comment-row input:focus, .comment-row textarea:focus { border-color: var(--orange); }
.comment-arrow, .comment-send { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--orange); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }

/* Ad Overlay */
.ad-overlay { display: none; position: fixed; inset: 0; background: #000; z-index: 5000; }
.ad-overlay.active { display: flex; align-items: center; justify-content: center; }
.ad-overlay-inner { position: relative; width: 100%; max-width: 900px; aspect-ratio: 16/9; }
.ad-video { width: 100%; height: 100%; object-fit: contain; }
.ad-overlay-ui { position: absolute; inset: 0; pointer-events: none; }
.ad-badge { position: absolute; top: 20px; left: 20px; background: rgba(255,140,0,0.9); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; padding: 5px 14px; border-radius: 6px; pointer-events: none; z-index: 5; }
.ad-badge.below-link { top: 20px; }
.ad-countdown { position: absolute; bottom: 30px; right: 20px; background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); color: #fff; padding: 10px 20px; border-radius: 8px; font-size: 14px; border: 1px solid rgba(255,255,255,0.2); z-index: 5; }
.ad-skip-btn { position: absolute; bottom: 30px; right: 20px; padding: 10px 20px; background: rgba(252,110,81,0.9); color: #fff; border: 1px solid #fc6e51; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; pointer-events: auto; transition: transform .2s; z-index: 5; }
.ad-skip-btn:hover { transform: scale(1.05); }
.ad-disclaimer { position: absolute; bottom: 8px; left: 20px; font-size: 10px; color: rgba(255,255,255,0.4); }
.ad-progress-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: rgba(255,255,255,0.15); }
.ad-progress-fill { height: 100%; background: #fc6e51; transition: width 0.1s linear; width: 0%; }
.ad-link-btn {
    position: absolute;
    bottom: 30px;
    left: 20px;
    padding: 10px 20px;
    background: rgba(255,140,0,0.92);
    backdrop-filter: blur(8px);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    pointer-events: auto;
    border: 1px solid rgba(255,255,255,0.3);
    transition: background .2s;
    white-space: nowrap;
    z-index: 5;
}
.ad-link-btn:hover { background: rgba(255,140,0,1); }
.ad-link-label { display: none; }

/* Story Viewer */
.story-viewer-overlay { display: none; position: fixed; inset: 0; background: #000; z-index: 4000; }
.story-viewer-overlay.active { display: flex; align-items: center; justify-content: center; }
.story-viewer-container { position: relative; width: 100%; max-width: 400px; height: 100vh; max-height: 100vh; }
.story-progress-bar { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,0.3); z-index: 10; }
.story-progress-fill { height: 100%; background: #fff; transition: width 0.1s linear; width: 0%; }
.story-close { position: absolute; top: 20px; right: 16px; z-index: 10; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(0,0,0,0.5); color: #fff; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.story-media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.story-media img, .story-media video { max-width: 100%; max-height: 100%; object-fit: contain; }
.story-caption { position: absolute; bottom: 60px; left: 0; right: 0; text-align: center; font-size: 14px; color: #fff; padding: 8px 20px; text-shadow: 0 2px 8px rgba(0,0,0,0.8); }
.story-time { position: absolute; bottom: 36px; left: 0; right: 0; text-align: center; font-size: 11px; color: rgba(255,255,255,0.5); }
.story-nav { position: absolute; top: 0; bottom: 0; width: 40%; z-index: 5; cursor: pointer; }
.story-nav-prev { left: 0; }
.story-nav-next { right: 0; }

/* Search Overlay */
.search-overlay { z-index: 9999; }
.search-overlay.active { display: flex; align-items: flex-start; justify-content: center; padding-top: 80px; }
.search-overlay-content { width: 480px; max-width: 90vw; background: rgba(20,20,25,0.97); border: 1px solid rgba(252,110,81,0.25); border-radius: 16px; padding: 24px 20px; text-align: center; position: relative; }
.search-overlay-icon { width: 44px; height: 44px; margin: 0 auto 10px; background: rgba(252,110,81,0.12); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.search-overlay-icon img { width: 22px; height: 22px; opacity: 0.7; }
.search-overlay-title { font-size: 17px; font-weight: 700; background: linear-gradient(45deg,#fc6e51,#ff8a70); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 14px; }
.search-overlay-input-wrap { position: relative; margin-bottom: 8px; }
.search-overlay-input { width: 100%; padding: 12px 40px 12px 14px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; color: #fff; font-size: 15px; outline: none; }
.search-overlay-input:focus { border-color: rgba(252,110,81,0.4); }
.search-overlay-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; background: rgba(255,255,255,0.1); border: none; border-radius: 50%; color: rgba(255,255,255,0.5); font-size: 16px; cursor: pointer; }
.search-overlay-results { max-height: 45vh; overflow-y: auto; text-align: left; }
.search-result-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; transition: background 0.15s; }
.search-result-item:hover { background: rgba(252,110,81,0.1); }
.search-result-thumb { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; }
.search-result-title { font-size: 13px; font-weight: 600; color: #fff; }
.search-overlay-hint { font-size: 12px; color: rgba(255,255,255,0.25); margin: 6px 0 0; }
.search-no-results { text-align: center; padding: 16px; color: rgba(255,255,255,0.35); font-size: 13px; }

/* Greeting Fullscreen */
.greeting-fullscreen { background: #000; z-index: 3000; overflow: hidden; }
.greeting-fullscreen.active { display: flex; flex-direction: column; }
.greeting-close { position: absolute; top: 20px; left: 16px; z-index: 10; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(255,255,255,0.15); color: #fff; font-size: 18px; cursor: pointer; }
.greeting-sound-btn { position: absolute; top: 20px; left: 60px; z-index: 10; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(255,255,255,0.15); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.greeting-sound-btn img { width: 20px; height: 20px; }
.greeting-send-float { position: absolute; top: 16px; right: 16px; z-index: 10; padding: 8px 16px; background: var(--orange); color: #fff; border: none; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; }
.greeting-scroll { flex: 1; overflow-y: auto; scroll-snap-type: y mandatory; }
.greeting-slide { height: 100vh; scroll-snap-align: start; position: relative; display: flex; align-items: center; justify-content: center; }
.greeting-media-container { width: 100%; max-width: 400px; height: 100%; display: flex; align-items: center; justify-content: center; }
.greeting-media { max-width: 100%; max-height: 100%; object-fit: contain; }
.greeting-info-overlay { position: absolute; bottom: 80px; left: 16px; right: 16px; }
.greeting-author-row { display: flex; align-items: center; gap: 8px; }
.greeting-avatar { font-size: 24px; }
.greeting-message { font-size: 13px; color: rgba(255,255,255,0.8); margin-top: 6px; background: rgba(0,0,0,0.5); padding: 8px; border-radius: 8px; }
.greeting-counter { position: absolute; bottom: 20px; right: 20px; font-size: 12px; color: rgba(255,255,255,0.5); }
.greeting-progress-container { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,0.2); }
.greeting-progress-bar { height: 100%; background: #fff; }
.greeting-text-only { display: flex; align-items: center; justify-content: center; padding: 40px 24px; text-align: center; min-height: 200px; }
.greeting-text-only-content { font-size: 18px; line-height: 1.6; color: #fff; }
.greeting-form-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 100; align-items: center; justify-content: center; padding: 20px; }
.greeting-form-overlay.active { display: flex; }
.greeting-form-box { background: rgba(20,20,20,0.98); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 24px; width: 100%; max-width: 460px; max-height: 85vh; overflow-y: auto; position: relative; }
.greeting-form-box h2 { margin-bottom: 16px; font-size: 18px; }
.greeting-mode-toggle { display: flex; gap: 8px; margin-bottom: 16px; }
.greeting-mode-btn { flex: 1; padding: 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.15); background: transparent; color: rgba(255,255,255,0.6); font-size: 13px; cursor: pointer; transition: all 0.2s; }
.greeting-mode-btn.active { background: rgba(252,110,81,0.2); border-color: var(--orange); color: #fff; }
.greeting-checkbox-wrap { margin-top: 10px; }
.greeting-checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.7); cursor: pointer; }
.greeting-checkbox-label input { accent-color: var(--orange); }
.greeting-ref { background: rgba(255,255,255,0.05); border-radius: 8px; padding: 8px; margin-bottom: 8px; font-size: 11px; color: rgba(255,255,255,0.5); }
.ref-label { margin-bottom: 4px; font-weight: 600; }
.ref-row { display: flex; align-items: center; gap: 8px; }
.ref-thumb { width: 32px; height: 32px; border-radius: 4px; object-fit: cover; }
.ref-text { display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.1); }
.greeting-label-ai { background: rgba(120,0,255,0.3); border-radius: 6px; padding: 2px 8px; font-size: 11px; color: #c084fc; margin-top: 4px; display: inline-block; }
.greeting-empty { display: flex; align-items: center; justify-content: center; }
.greeting-empty-content { text-align: center; padding: 40px 20px; }

/* Text Posts */
.text-post-display { display: flex; align-items: center; justify-content: center; padding: 40px 24px; font-size: 18px; color: #fff; text-align: center; line-height: 1.6; background: linear-gradient(135deg, #1a1a2e, #16213e); width: 100%; height: 100%; }

/* Recently Watched (rechte Spalte, minimiert) */
.recently-watched-section { display: none; }

/* Autoplay Overlay */
.autoplay-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.85); display: none; align-items: center; justify-content: center; flex-direction: column; gap: 12px; z-index: 20; border-radius: 20px; }
.autoplay-overlay.active { display: flex; }
.autoplay-countdown { font-size: 36px; font-weight: 800; color: var(--orange); }
.autoplay-title { font-size: 14px; color: rgba(255,255,255,0.8); text-align: center; padding: 0 20px; }
.autoplay-cancel { padding: 8px 20px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; color: #fff; font-size: 13px; cursor: pointer; }

/* Cookie Banner */
.cookie-banner { position: fixed; bottom: calc(var(--bottom-nav-h) + 8px); left: 16px; right: 16px; background: rgba(20,20,20,0.97); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 14px 16px; z-index: 150; display: none; }
.cookie-banner.show { display: flex; align-items: center; gap: 12px; }
.cookie-banner p { flex: 1; font-size: 12px; color: rgba(255,255,255,0.7); }
.cookie-btn { padding: 8px 16px; border-radius: 8px; border: none; cursor: pointer; font-size: 12px; font-weight: 600; }
.cookie-accept { background: var(--orange); color: #fff; }
.cookie-decline { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); }

/* Scrollbar global */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }

/* Fullscreen Mode */
body.fullscreen-mode .desktop-layout { grid-template-rows: 1fr 0; }
body.fullscreen-mode .bottom-nav { display: none; }
body.fullscreen-mode .desktop-sidebar { display: none; }
body.fullscreen-mode .desktop-right-col { display: none; }
body.fullscreen-mode .desktop-video-actions { display: none; }
body.fullscreen-mode .desktop-main { grid-column: 1 / -1; }

/* ===== VIDEO OVERLAY BANNER ===== */
#videoOverlayBanner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%) translateY(10px);
    width: 260px;
    z-index: 80;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
}
#videoOverlayBanner.vob-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(-50%);
    pointer-events: auto;
}
.vob-inner {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 28px rgba(0,0,0,0.65);
    background: #000;
    cursor: pointer;
}
.vob-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
}
.vob-timer-bar {
    position: absolute;
    top: 0; left: 0;
    height: 3px;
    background: rgba(255,140,0,0.9);
    width: 100%;
    transform-origin: left center;
}
.vob-close {
    position: absolute;
    top: 7px; right: 7px;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: rgba(0,0,0,0.65);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    z-index: 2;
    display: flex; align-items: center; justify-content: center;
}
.vob-close:hover { background: rgba(220,50,0,0.85); }
.vob-badge {
    position: absolute;
    bottom: 6px; left: 8px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    pointer-events: none;
}
