/* Kino.io Modern Glassmorphism Styling */

:root {
    --bg-dark: #090a0f;
    --bg-card: rgba(18, 22, 33, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(139, 92, 246, 0.2);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --primary-grad: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --primary-solid: #8b5cf6;
    --primary-hover: #7c3aed;
    --accent-pink: #ec4899;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-yellow: #f59e0b;
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Orbs for dynamic gradient background */
.bg-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    top: -200px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #ec4899 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* App Container */
.app-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* SCREENS */
.screen {
    display: none;
    flex: 1;
    width: 100%;
    height: 100%;
}
.screen.active {
    display: flex;
}

/* 1. LOGIN SCREEN */
#login-screen {
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
                0 0 50px rgba(139, 92, 246, 0.1);
    animation: fadeIn 0.5s ease-out;
}

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

.brand {
    text-align: center;
    margin-bottom: 35px;
}

.logo-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-grad);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.brand h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand h1 span {
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 5px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 16px;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 46px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 15px;
    transition: var(--transition);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-solid);
    box-shadow: 0 0 0 3px var(--border-glow);
    background: rgba(0, 0, 0, 0.4);
}

.error-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
    padding: 10px 14px;
    color: #fca5a5;
    font-size: 13px;
    margin-bottom: 20px;
}

.error-msg.hidden {
    display: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 15px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 14px 24px;
    text-decoration: none;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    background: var(--primary-grad);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.35);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-gradient {
    background: var(--primary-grad);
    color: white;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.2);
}
.btn-gradient:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: var(--accent-red);
    color: white;
}
.btn-danger:hover:not(:disabled) {
    background: #dc2626;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-disabled, .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 8px;
}

.btn-icon-only {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}
.btn-icon-only:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* 2. PORTAL SCREEN */
#portal-screen {
    flex-direction: column;
}

.app-header {
    height: 70px;
    background: rgba(9, 10, 15, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
}

.header-brand h2 span {
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient {
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-status-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-size: 14px;
}

.user-badge i {
    color: var(--primary-solid);
}

.badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(139, 92, 246, 0.2);
    color: #c084fc;
}

/* App Grid Layout */
.app-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 280px 1fr 340px;
    padding: 20px;
    gap: 20px;
    height: calc(100vh - 70px);
    overflow: hidden;
}

/* Sidebar and general cards */
.app-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.sidebar-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-card h3 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.text-purple { color: #c084fc; }
.text-blue { color: #60a5fa; }
.text-yellow { color: #fbbf24; }

/* User admin compact form */
.form-group-compact {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 6px;
}

.form-group-compact input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 12px;
}

.form-group-compact input:focus {
    outline: none;
    border-color: var(--primary-solid);
}

.error-msg-compact {
    font-size: 11px;
    color: #fca5a5;
    margin-top: 5px;
}

.users-list-wrapper {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.15);
}

#users-list {
    list-style: none;
}

#users-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 13px;
}

#users-list li:last-child {
    border-bottom: none;
}

.user-item-info {
    display: flex;
    flex-direction: column;
}

.user-item-role {
    font-size: 9px;
    color: var(--text-muted);
}

.user-item-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.btn-change-user-pwd {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 6px;
    transition: var(--transition);
}

.btn-change-user-pwd:hover {
    color: var(--primary-solid);
}

.btn-delete-user {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 6px;
    transition: var(--transition);
}

.btn-delete-user:hover {
    color: var(--accent-red);
}

/* Info Stats */
.info-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

.info-label {
    color: var(--text-secondary);
}

.badge-count {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 12px;
}

.status-indicator-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-indicator-badge.offline {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.status-indicator-badge.offline .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-red);
}

.status-indicator-badge.online {
    background: rgba(16, 185, 129, 0.1);
    color: #a7f3d0;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.status-indicator-badge.online .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-green);
    animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.online-users-wrapper {
    max-height: 120px;
    overflow-y: auto;
}

.online-users-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.online-users-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.online-users-list li::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
}

/* MAIN CONTENT / PLAYER */
.app-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.player-wrapper {
    flex: 1;
    position: relative;
    background: #000;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

#live-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
}

.player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 10, 15, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
}

.player-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    display: none !important;
}

.overlay-content {
    text-align: center;
    max-width: 400px;
    padding: 20px;
}

.overlay-icon {
    font-size: 54px;
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.animate-pulse .overlay-icon {
    animation: pulseScale 2s infinite;
}

@keyframes pulseScale {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

.overlay-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.overlay-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.mt-4 { margin-top: 16px; }

/* File player preview for admin */
.file-preview-container {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 240px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    z-index: 20;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.file-preview-container.hidden {
    display: none;
}

.preview-header {
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.3);
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-close-compact {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.btn-close-compact:hover {
    color: var(--text-primary);
}

#admin-file-player {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: #000;
    display: block;
}

/* Loader */
.player-loader {
    position: absolute;
    z-index: 15;
    background: rgba(9, 10, 15, 0.85);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.player-loader.hidden {
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.08);
    border-top: 4px solid var(--primary-solid);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Control panel for Admin */
.control-panel-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.badge-gradient {
    background: var(--primary-grad);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    color: white;
}

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

.source-buttons {
    display: flex;
    gap: 10px;
}

.hidden-input {
    display: none;
}

.stream-action-buttons {
    display: flex;
    gap: 10px;
}

.selected-file-info {
    font-size: 13px;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.03);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.selected-file-info.hidden {
    display: none;
}

/* CHAT */
.app-chat {
    height: 100%;
}

.chat-card {
    height: 100%;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.chat-online-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-online-badge i {
    font-size: 6px;
    animation: blink 1.2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.chat-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-msg {
    animation: slideUp 0.3s ease-out;
}

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

.chat-msg-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.chat-msg-username {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.chat-badge-admin {
    background: rgba(236, 72, 153, 0.2);
    color: var(--accent-pink);
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    text-transform: uppercase;
}

.chat-badge-viewer {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-secondary);
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    text-transform: uppercase;
}

.chat-msg-time {
    font-size: 10px;
    color: var(--text-muted);
}

.chat-msg-text {
    font-size: 14px;
    color: #e2e8f0;
    line-height: 1.4;
    word-break: break-word;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-radius: 0 12px 12px 12px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    display: inline-block;
}

/* Chat Input */
.chat-input-area {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
}

.chat-input-area input {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 14px;
    transition: var(--transition);
}

.chat-input-area input:focus {
    outline: none;
    border-color: var(--primary-solid);
    box-shadow: 0 0 0 2px var(--border-glow);
}

/* Visibility togglers */
.admin-only.hidden, .hidden {
    display: none !important;
}

/* Responsive constraints */
@media (max-width: 1024px) {
    .app-grid {
        grid-template-columns: 240px 1fr;
        grid-template-rows: 1fr auto;
        height: auto;
        overflow: visible;
    }
    .app-chat {
        grid-column: span 2;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .app-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .app-chat {
        grid-column: span 1;
    }
    .app-sidebar {
        grid-row: 2;
    }
    .player-wrapper {
        aspect-ratio: 16/9;
        height: auto;
        flex: none;
    }
}

/* Success Message Alert */
.success-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    padding: 10px 14px;
    color: #a7f3d0;
    font-size: 13px;
    margin-bottom: 20px;
}

.success-msg.hidden {
    display: none;
}

/* Modal Windows */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
    transition: var(--transition);
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 
                0 0 50px rgba(139, 92, 246, 0.15);
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Player Controls Floating Bar */
.player-controls-bar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 30;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.player-wrapper:hover .player-controls-bar {
    opacity: 1;
    pointer-events: auto;
}

.ctrl-btn-icon {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
}

.ctrl-btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-pink);
    transform: scale(1.05);
}

.volume-slider-wrapper {
    display: flex;
    align-items: center;
    width: 80px;
    transition: width 0.3s ease;
}

.ctrl-volume-slider {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.ctrl-volume-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
}

.ctrl-volume-slider::-webkit-slider-thumb {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: var(--primary-solid);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -4px;
    box-shadow: 0 0 10px var(--primary-solid);
}

.ctrl-volume-slider::-moz-range-thumb {
    height: 12px;
    width: 12px;
    border: none;
    border-radius: 50%;
    background: var(--primary-solid);
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-solid);
}

.ctrl-volume-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    min-width: 32px;
    text-align: center;
}


