/* CSS Variables for Premium Theme */
:root {
    --bg-dark: rgba(10, 10, 14, 0.85);
    --bg-glass: rgba(22, 22, 30, 0.6);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --accent-color: #00e5ff;
    --accent-gradient: linear-gradient(135deg, #00b4db, #0083b0);
    --focus-gradient: linear-gradient(135deg, #00e5ff, #0083b0);
    --playing-color: #00ff88;
    --font-sans: 'Outfit', sans-serif;
    --transition-speed: 0.25s;
}

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

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    color: var(--text-primary);
    font-family: var(--font-sans);
    user-select: none;
    -webkit-user-select: none;
}

/* Tela de Vídeo de Abertura */
#intro-video-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.6s ease;
}

#intro-video-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

#intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
    z-index: 1;
}

#overlay-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50px);
    transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
}

#overlay-menu.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.menu-container {
    display: flex;
    width: 650px;
    height: 100%;
    background: var(--bg-dark);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-right: 1px solid var(--border-glass);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
}

.column {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.folders-column {
    width: 250px;
    border-right: 1px solid var(--border-glass);
}

.channels-column {
    flex: 1;
}

.column-header {
    padding: 25px 20px 15px 20px;
}

.column-header h2 {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    opacity: 0.95;
    position: relative;
    padding-bottom: 8px;
}

.column-header h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.list-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    scroll-behavior: smooth;
}

.list-container::-webkit-scrollbar {
    width: 6px;
}
.list-container::-webkit-scrollbar-track {
    background: transparent;
}
.list-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.list-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.list-item {
    padding: 14px 18px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.list-item.folder-item.selected {
    background: rgba(0, 229, 255, 0.15);
    border-color: var(--accent-color);
    color: var(--accent-color);
    font-weight: 600;
}

.list-item.channel-item.playing {
    background: rgba(0, 255, 136, 0.15);
    border-color: var(--playing-color);
    color: var(--playing-color);
    font-weight: 600;
}

.list-item.channel-item.playing::before {
    content: '▶';
    margin-right: 8px;
    font-size: 1rem;
}

.list-item.focused {
    background: var(--focus-gradient);
    color: #000000 !important;
    font-weight: 600;
    border-color: #ffffff;
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
    outline: none;
}

#splash-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    background: #09090d;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#splash-screen.splash-visible {
    opacity: 1;
    pointer-events: auto;
}

.splash-content {
    text-align: center;
    max-width: 450px;
    padding: 40px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

.splash-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #00e5ff, #7000ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.splash-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.btn-primary {
    padding: 14px 32px;
    border: none;
    border-radius: 30px;
    background: var(--accent-gradient);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 180, 176, 0.3);
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover, .btn-primary:focus {
    outline: none;
    transform: scale(1.05);
    background: var(--focus-gradient);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
}

#status-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.75);
    padding: 12px 20px;
    border-radius: 10px;
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-glass);
    transition: opacity 0.3s ease;
}

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

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

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

#status-message {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-primary);
    white-space: nowrap;
}

#toast-info {
    position: absolute;
    bottom: 50px;
    right: 50px;
    z-index: 20;
    background: rgba(10, 10, 14, 0.92);
    backdrop-filter: blur(12px);
    border-right: 4px solid var(--accent-color);
    padding: 20px 30px;
    border-radius: 12px 0 0 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    min-width: 280px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-channel-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.toast-channel-group {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}