/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e50914;
    --secondary-color: #f40612;
    --accent-color: #ff6b35;
    --dark-bg: #0a0a0a;
    --darker-bg: #000000;
    --card-bg: #1a1a1a;
    --card-hover: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #737373;
    --border-color: #333333;
    --gradient-primary: linear-gradient(135deg, #e50914 0%, #ff6b35 100%);
    --gradient-dark: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 5px 20px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--dark-bg);
    overflow-x: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.nav-controls {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(229, 9, 20, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    margin-top: 80px;
    padding: 20px;
    min-height: calc(100vh - 80px);
}

.player-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    height: calc(100vh - 120px);
}

/* Video Section */
.video-section {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.video-player {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--darker-bg);
}

#videoPlayer {
    width: 100%;
    height: 100%;
    background: var(--darker-bg);
    border-radius: 15px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10;
}

.loading-spinner, .error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.loading-spinner i {
    font-size: 2rem;
    color: var(--primary-color);
}

.error-message i {
    font-size: 2rem;
    color: #ef4444;
}

.video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
    z-index: 5;
}

.video-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.video-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Channel Section */
.channel-section {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.channel-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--darker-bg);
}

.channel-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.channel-controls {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.search-input, .category-filter {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--darker-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.search-input:focus, .category-filter:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-input::placeholder {
    color: var(--text-muted);
}

/* Channel List */
.channel-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.loading-channels {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    color: var(--text-secondary);
}

.channel-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--darker-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.channel-item:hover {
    background: var(--card-hover);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.channel-item.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.channel-item.active .channel-name {
    color: white;
}

.channel-info {
    flex: 1;
}

.channel-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.channel-category {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.channel-actions {
    display: flex;
    gap: 0.5rem;
}

.channel-action {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: var(--card-bg);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.channel-action:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.channel-action.favorite {
    color: var(--primary-color);
}

.channel-action.favorite:hover {
    background: var(--primary-color);
    color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: var(--shadow-dark);
    border: 1px solid var(--border-color);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--darker-bg);
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.no-favorites {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .player-container {
        grid-template-columns: 1fr 350px;
    }
}

@media (max-width: 768px) {
    .player-container {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
        height: auto;
    }
    
    .channel-section {
        max-height: 400px;
    }
    
    .nav-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 10px;
    }
    
    .video-info {
        padding: 1rem;
    }
    
    .video-info h2 {
        font-size: 1.2rem;
    }
    
    .channel-header {
        padding: 1rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.channel-item {
    animation: fadeIn 0.3s ease forwards;
}

/* Fullscreen styles */
.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: var(--darker-bg);
}

.fullscreen .video-section {
    height: 100vh;
    border-radius: 0;
}

.fullscreen .channel-section {
    display: none;
} 