/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    background: #0f0f0f;
    color: #ffffff;
    line-height: 1.6;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

.container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0 1rem;
}

/* Header */
.header {
    background: #212121;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #303030;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.5rem;
    gap: 1.5rem;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-animated {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff0000;
    text-decoration: none;
    gap: 8px;
}

.logo-animated img {
    height: 40px;
    width: 40px;
    object-fit: contain;
}

.logo-animated span {
    font-size: 1.5rem;
    line-height: 1;
    white-space: nowrap;
    color: #ffffff;
}

/* Navigation */
.nav {
    display: flex;
    gap: 0.3rem;
}

.nav-link {
    text-decoration: none;
    color: #aaa;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.nav-link:hover {
    background: #2a2a2a;
    color: #fff;
}

.nav-link.active {
    background: #065fd4;
    color: white;
}

/* Search Container */
.search-container {
    display: flex;
    align-items: center;
    background: #121212;
    border: 1px solid #303030;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    position: relative;
}

.search-container input {
    border: none;
    outline: none;
    padding: 0.5rem;
    width: 200px;
    background: transparent;
    color: #ffffff;
}

.search-container input::placeholder {
    color: #aaaaaa;
}

.search-container i {
    color: #aaaaaa;
    cursor: pointer;
}

/* User Actions */
.user-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#authButtons {
    display: flex;
    gap: 1rem;
}

/* Menu do usuário melhorado */
#userMenu {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.nav-btn {
    padding: 8px 16px;
    background: #212121;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-btn:hover {
    background: #065fd4;
    transform: translateY(-1px);
}

.nav-btn i {
    font-size: 12px;
}

.user-profile {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0px;
    padding: 6px 12px;
    background: #333;
    border: none;
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-btn:hover {
    background: #404040;
}

.user-btn img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.user-btn span {
    font-size: 14px;
    font-weight: 500;
}

.user-btn i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.user-btn.active i {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #212121;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    min-width: 180px;
    z-index: 1000;
    display: none;
    animation: fadeIn 0.2s ease;
}

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

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease;
    font-size: 14px;
}

.user-dropdown a:hover {
    background: #333;
}

.user-dropdown a:first-child {
    border-radius: 8px 8px 0 0;
}

.user-dropdown a:last-child {
    border-radius: 0 0 8px 8px;
    color: #ff6b6b;
}

.user-dropdown a:last-child:hover {
    background: #ff6b6b;
    color: #fff;
}

.user-dropdown i {
    width: 16px;
    text-align: center;
}

.user-dropdown {
    position: relative;
}

.user-button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: background 0.3s ease;
}

.user-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-button img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #065fd4;
}

.user-button span {
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
}

.user-button i {
    color: #aaa;
    font-size: 0.8rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #282828;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 0.5rem 0;
    z-index: 1000;
    margin-top: 0.5rem;
    border: 1px solid #404040;
}

.user-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #ffffff;
    transition: background 0.3s ease;
}

.dropdown-menu a:hover {
    background: #404040;
}

.dropdown-menu i {
    margin-right: 0.5rem;
    width: 16px;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-danger {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #065fd4;
    color: white;
}

.btn-primary:hover {
    background: #0d7377;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(6, 95, 212, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #065fd4;
    border: 1px solid #065fd4;
}

.btn-secondary:hover {
    background: #065fd4;
    color: white;
}

.btn-danger {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.user-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.dropdown {
    position: relative;
}

.dropdown-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 0.5rem 0;
    z-index: 1000;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #333;
    transition: background 0.3s ease;
}

.dropdown-content a:hover {
    background: #f8f9fa;
}

.dropdown-content i {
    margin-right: 0.5rem;
    width: 16px;
}

/* Main Content */
/* Layout principal estilo YouTube */
.main-content {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 80px);
    padding: 0;
}

.content-main {
    flex: 1;
    padding: 1.5rem;
    width: 100%;
}

/* Sidebar apenas na página de assistir */
.video-sidebar {
    width: 350px;
    background: #212121;
    padding: 1.5rem;
    height: calc(100vh - 80px);
    overflow-y: auto;
    position: sticky;
    top: 80px;
    border-left: 1px solid #303030;
    display: none; /* Oculto por padrão */
}

/* Mostrar sidebar apenas na página watch */
.watch-page .video-sidebar {
    display: block;
}

.video-sidebar h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.sidebar-videos {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-video {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.sidebar-video:hover {
    background: #303030;
}

.sidebar-thumbnail {
    width: 120px;
    height: 68px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-info {
    flex: 1;
    min-width: 0;
}

.sidebar-title {
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.sidebar-meta {
    font-size: 0.8rem;
    color: #aaaaaa;
}

/* Video Controls */
.video-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.quality-selector {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 6px 10px;
    border-radius: 6px;
    backdrop-filter: blur(5px);
}

.quality-selector select {
    background: #212121;
    color: white;
    border: 1px solid #404040;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
}

.quality-selector select:focus {
    outline: none;
    border-color: #065fd4;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* Video Grid estilo YouTube - Responsivo */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.video-card {
    background: transparent;
    cursor: pointer;
    transition: transform 0.2s;
}

.video-card:hover {
    transform: scale(1.02);
}

.video-thumbnail {
    position: relative;
    width: 100% !important;
    height: 225px !important;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    border: 3px solid #065fd4;
    box-shadow: 0 0 15px rgba(6, 95, 212, 0.6);
}

.video-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff0000;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    animation: pulseLive 2s infinite;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

@keyframes pulseLive {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(255, 0, 0, 1);
    }
}

.video-info {
    display: flex;
    gap: 0.75rem;
}

.channel-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #065fd4;
    animation: neonPulseSubtle 2s infinite;
}

@keyframes neonPulseSubtle {
    0%, 100% {
        box-shadow: 0 0 3px rgba(6, 95, 212, 0.6);
        border-color: #065fd4;
    }
    50% {
        box-shadow: 0 0 6px rgba(0, 217, 255, 0.8);
        border-color: #00d9ff;
    }
}

.video-details {
    flex: 1;
    min-width: 0;
}

.video-title {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.channel-name {
    font-size: 0.9rem;
    color: #aaaaaa;
    margin-bottom: 0.25rem;
}

.video-stats {
    font-size: 0.9rem;
    color: #aaaaaa;
}

/* Channels Grid */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.channel-card {
    background: #212121;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.channel-card:hover {
    transform: translateY(-5px);
}

.channel-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
}

.channel-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.channel-stats {
    color: #aaaaaa;
    margin-bottom: 1rem;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #212121;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    color: #ffffff;
}

.video-modal-content {
    max-width: 1000px;
    padding: 1rem;
}

.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.close:hover {
    color: #ffffff;
}

/* Video Player */
.video-player-container {
    position: relative;
    margin-bottom: 1rem;
}

.video-player-container video {
    width: 100%;
    border-radius: 10px;
}

.live-indicator {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #404040;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #121212;
    color: #ffffff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaaaaa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #065fd4;
}

/* Streamer Panel */
.streamer-modal-content {
    max-width: 1400px;
    width: 95%;
}

.streamer-panel {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.stream-preview {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.stream-preview video {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    background: #000;
    display: block;
}

.stream-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.stream-settings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 600px;
    overflow-y: auto;
}

.stream-stats {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    background: #181818;
    border-radius: 8px;
    border: 1px solid #303030;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.stream-status {
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
}

.stream-status.success {
    background: #d4edda;
    color: #155724;
}

.stream-status.error {
    background: #f8d7da;
    color: #721c24;
}

.stream-status.live {
    background: #ff4757;
    color: white;
    animation: pulse 2s infinite;
}

.btn-success {
    background: linear-gradient(45deg, #00b894, #00cec9);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 184, 148, 0.4);
}

@media (max-width: 1200px) {
    .streamer-panel {
        grid-template-columns: 1fr;
    }
    
    .stream-preview video {
        max-height: 400px;
    }
}

/* Video Container */
.video-container {
    position: relative;
    margin-bottom: 1rem;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: auto;
    max-height: 720px;
    object-fit: contain;
    display: block;
    background: #000;
}

.live-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 0, 0, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.5);
    z-index: 10;
}

.live-indicator i {
    animation: pulse 2s infinite;
}

.live-indicator #viewerCount {
    margin-left: 8px;
    padding-left: 8px;
    border-left: 1px solid rgba(255,255,255,0.3);
}

.live-dot {
    color: #ff4757;
    animation: pulse 2s infinite;
}

.pinned-comment {
    background: rgba(6, 95, 212, 0.1);
    border: 1px solid rgba(6, 95, 212, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.pinned-badge {
    background: #065fd4;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.pin-comment-btn {
    background: none;
    border: none;
    color: #aaaaaa;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pin-comment-btn:hover {
    background: #404040;
    color: #065fd4;
}

/* Comments Section */
.comments-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #303030;
}

.comments-section h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-form {
    margin-bottom: 2rem;
}

.comment-input-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-input-container textarea {
    flex: 1;
    background: #212121;
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 0.75rem;
    color: #ffffff;
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}

.comment-input-container textarea:focus {
    outline: none;
    border-color: #065fd4;
}

.comment-input-container textarea::placeholder {
    color: #aaaaaa;
}

.comment-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.comment-actions button {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-item {
    display: flex;
    gap: 1rem;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: #ffffff;
}

.comment-date {
    font-size: 0.85rem;
    color: #aaaaaa;
}

.comment-text {
    color: #ffffff;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    word-wrap: break-word;
}

.comment-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.comment-like-btn,
.comment-reply-btn,
.show-replies-btn {
    background: none;
    border: none;
    color: #aaaaaa;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.comment-like-btn:hover,
.comment-reply-btn:hover,
.show-replies-btn:hover {
    background: #404040;
    color: #ffffff;
}

.comment-like-btn.liked {
    color: #065fd4;
}

.replies-container {
    margin-top: 1rem;
    padding-left: 2rem;
    border-left: 2px solid #404040;
}

.reply-item {
    margin-bottom: 1rem;
}

.reply-form {
    margin-top: 1rem;
    padding: 1rem;
    background: #181818;
    border-radius: 8px;
    border: 1px solid #303030;
}

.reply-form textarea {
    width: 100%;
    background: #212121;
    border: 1px solid #404040;
    border-radius: 6px;
    padding: 0.75rem;
    color: #ffffff;
    resize: vertical;
    margin-bottom: 1rem;
}

.reply-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.reply-actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.reply-actions button:first-child {
    background: transparent;
    color: #aaaaaa;
}

.reply-actions button:first-child:hover {
    background: #404040;
    color: #ffffff;
}

.reply-actions button:last-child {
    background: #065fd4;
    color: #ffffff;
}

.reply-actions button:last-child:hover {
    background: #0d7377;
}

.no-comments {
    text-align: center;
    color: #aaaaaa;
    font-style: italic;
    padding: 2rem;
    background: #181818;
    border-radius: 8px;
    border: 1px solid #303030;
}

/* Watch Page Layout */
.watch-page {
    display: flex;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 2rem;
    gap: 2rem;
}

.watch-content {
    flex: 1;
    max-width: 1200px;
}

.watch-sidebar {
    width: 400px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.watch-sidebar h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.video-player-section {
    margin-bottom: 1.5rem;
}

.video-container {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.video-info-section {
    margin-bottom: 1.5rem;
}

.video-info-section h1 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #303030;
}

.video-stats {
    color: #aaa;
    font-size: 0.9rem;
}

.video-interactions {
    display: flex;
    gap: 0.5rem;
}

.channel-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #212121;
    border-radius: 12px;
    margin: 1.5rem 0;
}

#channelAvatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.channel-details {
    flex: 1;
}

#channelName {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

#subscriberCount {
    color: #aaa;
    font-size: 0.85rem;
}

.video-description {
    background: #212121;
    padding: 1.5rem;
    border-radius: 12px;
}

.video-description p {
    color: #ccc;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Watch Page */
@media (max-width: 1400px) {
    .watch-page {
        max-width: 100%;
    }
    
    .watch-content {
        max-width: 900px;
    }
    
    .watch-sidebar {
        width: 350px;
    }
}

@media (max-width: 1200px) {
    .watch-page {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .watch-content {
        max-width: 100%;
    }
    
    .watch-sidebar {
        width: 100%;
        position: static;
    }
}

@media (max-width: 768px) {
    .watch-page {
        padding: 1rem;
    }
    
    .video-info-section h1 {
        font-size: 1.4rem;
    }
    
    .video-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

.interaction-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #212121;
    border: 1px solid #404040;
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 80px;
    justify-content: center;
}

.interaction-btn:hover {
    background: #404040;
    border-color: #606060;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.interaction-btn.active {
    background: #065fd4;
    border-color: #065fd4;
    color: #ffffff;
}

.interaction-btn.like-btn.active {
    background: #065fd4;
    color: #ffffff;
}

.interaction-btn.dislike-btn.active {
    background: #ff4444;
    border-color: #ff4444;
    color: #ffffff;
}

.interaction-btn i {
    font-size: 1rem;
}

.interaction-count {
    font-weight: 600;
    margin-left: 0.25rem;
}

.share-btn {
    background: #2d2d2d;
    border-color: #505050;
}

.share-btn:hover {
    background: #404040;
    border-color: #606060;
}

/* Viewer Count */
.viewer-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.viewer-count i {
    animation: pulse 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-interactions {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .interaction-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        min-width: 70px;
    }
}

.video-interactions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 0.75rem 0;
    border-top: 1px solid #303030;
    border-bottom: 1px solid #303030;
}

.channel-info {
    flex: 1;
}

#channelAvatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #00d9ff;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.8), 0 0 30px rgba(0, 217, 255, 0.4);
    animation: neonPulse 2s infinite;
}

@keyframes neonPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(0, 217, 255, 0.8), 0 0 30px rgba(0, 217, 255, 0.4);
        border-color: #00d9ff;
    }
    50% {
        box-shadow: 0 0 20px rgba(6, 95, 212, 1), 0 0 40px rgba(6, 95, 212, 0.6);
        border-color: #065fd4;
    }
}

.video-description {
    margin-top: 1rem;
    padding: 1rem;
    background: #181818;
    border-radius: 8px;
    border: 1px solid #303030;
}

/* No Content Message */
.no-content {
    text-align: center;
    color: #aaaaaa;
    font-size: 1.2rem;
    padding: 3rem;
    background: #212121;
    border-radius: 12px;
    border: 1px solid #303030;
}

/* Responsivo Geral */
@media (max-width: 1400px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .main-content {
        flex-direction: column;
    }
    
    .content-main {
        width: 100%;
        padding: 1rem;
    }
    
    .video-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-left: none;
        border-top: 1px solid #303030;
    }
}

/* Header Responsivo */
@media (max-width: 768px) {
    .header .container {
        padding: 0.75rem 15px;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .logo-animated {
        font-size: 1.5rem;
    }
    
    .logo-animated img {
        height: 40px !important;
    }
    
    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .search-container {
        flex: 1;
        min-width: 200px;
    }
    
    .search-container input {
        width: 100%;
    }
    
    .user-actions {
        flex-shrink: 0;
    }
    
    .nav-buttons {
        display: none;
    }
    
    #userMenu {
        gap: 0px;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .content-main {
        padding: 0.75rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .video-card {
        margin-bottom: 1rem;
    }
    
    .video-thumbnail {
        height: 180px !important;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
        margin: 2% auto;
        padding: 1rem;
    }
    
    .video-modal-content {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .header .container {
        padding: 0.5rem 10px;
        flex-wrap: wrap;
    }
    
    .logo-animated {
        font-size: 1rem;
        flex-shrink: 0;
    }
    
    .logo-animated img {
        height: 35px !important;
    }
    
    .logo-animated span {
        font-size: 0.9rem;
    }
    
    .nav {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .nav-link span {
        display: none;
    }
    
    .search-container {
        min-width: 150px;
    }
    
    #authButtons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .content-main {
        padding: 0.5rem;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .video-thumbnail {
        height: 160px !important;
    }
    
    .video-title {
        font-size: 0.9rem;
    }
    
    .channel-name, .video-stats {
        font-size: 0.8rem;
    }
    
    .modal-content {
        width: 98%;
        margin: 1% auto;
        padding: 0.75rem;
    }
}

/* Pulse animation for live elements */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* YouTube-style scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f0f0f;
}

::-webkit-scrollbar-thumb {
    background: #606060;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #808080;
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #303030;
    border-top: 4px solid #065fd4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* Página de Configuração do Canal */
.config-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #212121;
    border-radius: 12px;
    border: 1px solid #303030;
}

.config-container h2 {
    color: #ffffff;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 500;
}

.config-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #181818;
    border-radius: 8px;
    border: 1px solid #303030;
}

.config-section h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #065fd4;
    padding-bottom: 0.75rem;
    font-size: 1.3rem;
    font-weight: 500;
}

.channel-info {
    background: #065fd4;
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.channel-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.channel-info p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.image-upload {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.75rem;
}

.image-preview {
    width: 120px;
    height: 80px;
    background: #0f0f0f;
    border: 2px dashed #404040;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.8rem;
    text-align: center;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.image-preview:hover {
    border-color: #065fd4;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.readonly-field {
    background: #333 !important;
    color: #999 !important;
    cursor: not-allowed;
}

.form-group small {
    color: #aaaaaa;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: block;
}

/* Página Admin */
.admin-container {
    max-width: 95% !important;
    width: 95% !important;
    margin: 2rem auto !important;
    padding: 2rem !important;
}

.admin-header {
    background: #065fd4 !important;
    color: white !important;
    padding: 2rem !important;
    border-radius: 12px !important;
    margin-bottom: 2rem !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.admin-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 500;
}

.admin-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.admin-tab {
    padding: 0.75rem 1.5rem;
    background: #212121;
    color: #aaaaaa;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-tab:hover {
    background: #333;
    color: #ffffff;
}

.admin-tab.active {
    background: #065fd4;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 95, 212, 0.3);
}

.admin-content {
    background: #212121;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #303030;
}

/* Channels Table */
.channels-table-container {
    overflow-x: auto;
}

.channels-table {
    width: 100%;
    border-collapse: collapse;
    background: #181818;
    border-radius: 8px;
    overflow: hidden;
}

.channels-table thead {
    background: #0f0f0f;
    position: sticky;
    top: 0;
    z-index: 10;
}

.channels-table th {
    padding: 1rem;
    text-align: left;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #065fd4;
}

.channels-table td {
    padding: 1rem;
    color: #aaaaaa;
    font-size: 0.9rem;
    border-bottom: 1px solid #303030;
}

.channels-table tbody tr {
    transition: background 0.2s ease;
}

.channels-table tbody tr:hover {
    background: #212121;
}

.channels-table tbody tr.admin-row {
    background: rgba(255, 215, 0, 0.05);
}

.channels-table tbody tr.admin-row:hover {
    background: rgba(255, 215, 0, 0.1);
}

.channel-name-cell {
    color: #ffffff !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.channel-name-cell i {
    color: #065fd4;
}

.text-center {
    text-align: center !important;
}

.badge-admin {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-user {
    background: #333;
    color: #aaa;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.actions-cell {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-icon.btn-edit {
    background: #065fd4;
    color: white;
}

.btn-icon.btn-edit:hover {
    background: #0d7377;
    transform: scale(1.1);
}

.btn-icon.btn-videos {
    background: #00a152;
    color: white;
}

.btn-icon.btn-videos:hover {
    background: #008f47;
    transform: scale(1.1);
}

.btn-icon.btn-delete {
    background: #d32f2f;
    color: white;
}

.btn-icon.btn-delete:hover {
    background: #b71c1c;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .channels-table-container {
        overflow-x: auto;
    }
    
    .channels-table {
        min-width: 800px;
    }
    
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .channels-table {
        font-size: 0.8rem;
    }
    
    .channels-table th,
    .channels-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
}

.action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-edit {
    background: #065fd4;
    color: white;
}

.btn-edit:hover {
    background: #0d7377;
    transform: translateY(-1px);
}

.btn-videos {
    background: #00a152;
    color: white;
}

.btn-videos:hover {
    background: #008f47;
    transform: translateY(-1px);
}

.btn-delete {
    background: #d32f2f;
    color: white;
}

.btn-delete:hover {
    background: #b71c1c;
    transform: translateY(-1px);
}

.videos-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: #181818;
    border-radius: 8px;
    overflow: hidden;
}

.videos-table th,
.videos-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #303030;
}

.videos-table th {
    background: #0f0f0f;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9rem;
}

.videos-table td {
    color: #aaaaaa;
    font-size: 0.9rem;
}

.video-thumbnail {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #065fd4;
    box-shadow: 0 0 8px rgba(6, 95, 212, 0.5);
}

.modal h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.btn-cancel {
    background: #666;
    color: white;
}

.btn-cancel:hover {
    background: #777;
}

.btn-save {
    background: #065fd4;
    color: white;
}

.btn-save:hover {
    background: #0d7377;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Admin Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    background: linear-gradient(135deg, #212121, #181818);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #303030;
    transition: all 0.3s ease;
}

.admin-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(6, 95, 212, 0.2);
    border-color: #065fd4;
}

.admin-stat-card .stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #065fd4, #0d7377);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.admin-stat-card .stat-info {
    flex: 1;
}

.admin-stat-card .stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #065fd4;
    margin-bottom: 0.25rem;
}

.admin-stat-card .stat-label {
    color: #aaaaaa;
    font-size: 0.9rem;
}

/* Channel Card Improvements */
.channel-card .channel-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.channel-card .channel-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #065fd4, #0d7377);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.channel-card .channel-info {
    flex: 1;
}

.channel-card .channel-info h3 {
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.channel-card .channel-username {
    color: #aaaaaa;
    font-size: 0.9rem;
    margin: 0 0 0.25rem 0;
}

.channel-card .channel-email {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

.admin-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.channel-card .channel-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem;
    background: #0f0f0f;
    border-radius: 8px;
    border: 1px solid #303030;
    margin-bottom: 1rem;
}

.channel-card .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.channel-card .stat-item i {
    color: #065fd4;
    font-size: 1.2rem;
}

.channel-card .stat-item > div {
    flex: 1;
}

.channel-card .stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.1rem;
}

.channel-card .stat-label {
    font-size: 0.75rem;
    color: #aaaaaa;
    text-transform: uppercase;
}

.channel-card .channel-footer {
    padding: 0.75rem 0;
    border-top: 1px solid #303030;
    margin-bottom: 1rem;
}

.channel-card .channel-date {
    color: #666;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.channel-card .channel-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.channel-card .action-btn {
    flex: 1;
    min-width: 100px;
    justify-content: center;
}

@media (max-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .channels-grid {
        grid-template-columns: 1fr;
    }
    
    .channel-card .channel-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .channel-card .channel-stats {
        grid-template-columns: 1fr;
    }
}

/* Carrossel compacto ao lado de Ao Vivo */
.featured-carousel-large {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: 100px;
}

.carousel-title {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.carousel-title i {
    color: #ffd700;
    animation: starPulse 2s infinite;
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.carousel-large-item {
    width: 480px;
    height: 270px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 3px solid #065fd4;
    box-shadow: 0 0 20px rgba(6, 95, 212, 0.6);
    animation: pulseBorder 2s infinite;
    cursor: pointer;
}

@keyframes pulseBorder {
    0%, 100% {
        border-color: #065fd4;
        box-shadow: 0 0 20px rgba(6, 95, 212, 0.6);
        transform: scale(1);
    }
    50% {
        border-color: #00d9ff;
        box-shadow: 0 0 35px rgba(0, 217, 255, 0.9);
        transform: scale(1.02);
    }
}

.carousel-large-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: imagePulse 2s infinite;
}

@keyframes imagePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.carousel-large-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-large-item .carousel-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 30px 15px 10px;
    color: #fff;
}

.carousel-large-item .carousel-info h3 {
    font-size: 0.9rem;
    margin: 0 0 5px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.carousel-large-item .carousel-info p {
    font-size: 0.75rem;
    margin: 0;
    color: #aaa;
}

@keyframes carouselFade {
    0%, 100% { opacity: 0; }
    5%, 95% { opacity: 1; }
}

@media (max-width: 768px) {
    .featured-carousel-large {
        display: none;
    }
}

/* Faixa rolante de canais */
.channels-ticker-container {
    background: #1a1a1a;
    border: 1px solid #303030;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.ticker-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-title i {
    color: #065fd4;
}

.channels-ticker {
    display: flex;
    gap: 20px;
    animation: scroll 30s linear infinite;
}

.channels-ticker:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.channel-ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: #212121;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.channel-ticker-item:hover {
    background: #065fd4;
    transform: scale(1.05);
}

.channel-ticker-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #065fd4;
}

.channel-ticker-item span {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Carrossel */
.carousel-container {
    position: relative;
    margin-bottom: 2rem;
}

.carousel-wrapper {
    overflow: hidden;
    padding: 0 50px;
}

.video-grid.carousel {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.3s ease;
    scroll-behavior: smooth;
}

.video-grid.carousel .video-card {
    min-width: 320px;
    flex-shrink: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.carousel-btn:hover {
    background: #065fd4;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-btn i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .carousel-wrapper {
        padding: 0 40px;
    }
    
    .video-grid.carousel .video-card {
        min-width: 280px;
    }
}

/* Sistema de Ranks e Planos */
.ranks-plans-section {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.ranks-plans-section.collapsed {
    padding: 1.5rem 2rem;
}

.ranks-plans-section .section-header {
    text-align: center;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.ranks-plans-section.collapsed .section-header {
    margin-bottom: 0;
}

.ranks-plans-section .section-header:hover {
    transform: scale(1.02);
}

.ranks-plans-section .section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #ff0000, #ff6b00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.toggle-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    background: linear-gradient(90deg, #ff0000, #ff6b00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ranks-content {
    margin-top: 3rem;
    animation: slideDown 0.3s ease;
}

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

.ranks-plans-section .subtitle {
    font-size: 1.1rem;
    color: #aaa;
}

.ranks-plans-section .info-text {
    text-align: center;
    color: #888;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.ranks-container, .plans-container {
    margin-bottom: 4rem;
}

.ranks-container h3, .plans-container h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
}

/* Ranks Grid */
.ranks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.rank-card {
    background: #212121;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rank-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--rank-color-1), var(--rank-color-2));
}

.rank-card:hover {
    transform: translateY(-5px);
    border-color: var(--rank-color-1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.rank-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--rank-color-1), var(--rank-color-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rank-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.rank-requirements p {
    font-size: 0.85rem;
    color: #aaa;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.rank-requirements i {
    color: var(--rank-color-1);
}

/* Rank Colors */
.rank-iniciante { --rank-color-1: #78909c; --rank-color-2: #90a4ae; }
.rank-crescente { --rank-color-1: #4caf50; --rank-color-2: #66bb6a; }
.rank-estabelecido { --rank-color-1: #2196f3; --rank-color-2: #42a5f5; }
.rank-popular { --rank-color-1: #ff9800; --rank-color-2: #ffa726; }
.rank-estrela { --rank-color-1: #ffd700; --rank-color-2: #ffed4e; }
.rank-lenda { --rank-color-1: #9c27b0; --rank-color-2: #ba68c8; }

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.plan-card {
    background: #212121;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 2px solid #303030;
    transition: all 0.3s ease;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-10px);
    border-color: var(--plan-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.plan-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--plan-color);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.popular-badge {
    background: linear-gradient(90deg, #ff6b00, #ff0000);
    animation: pulse 2s infinite;
}

.premium-badge {
    background: linear-gradient(90deg, #9c27b0, #e91e63);
    animation: pulse 2s infinite;
}

.plan-card h4 {
    font-size: 1.8rem;
    margin: 1rem 0;
    color: #fff;
}

.plan-price {
    font-size: 1.3rem;
    color: var(--plan-color);
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.plan-features {
    text-align: left;
}

.plan-features p {
    margin: 1rem 0;
    color: #ccc;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.plan-features i {
    color: var(--plan-color);
    font-size: 1.1rem;
    width: 20px;
}

.plan-features strong {
    color: #fff;
}

/* Plan Colors */
.plan-padrao { --plan-color: #78909c; }
.plan-bronze { --plan-color: #cd7f32; }
.plan-prata { --plan-color: #c0c0c0; }
.plan-ouro { --plan-color: #ffd700; }
.plan-diamante { --plan-color: #b9f2ff; }

/* How It Works */
.how-it-works {
    margin-top: 4rem;
    padding: 2rem;
    background: #1a1a1a;
    border-radius: 12px;
}

.how-it-works h3 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #fff;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.step-card {
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff0000, #ff6b00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    color: #fff;
}

.step-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.step-card p {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .ranks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

/* Reels/Cortes Sidebar */
.reels-sidebar {
    position: fixed;
    right: 0;
    top: 80px;
    width: 280px;
    height: calc(100vh - 80px);
    background: #1a1a1a;
    border-left: 1px solid #303030;
    overflow: hidden;
    z-index: 100;
}

.reels-sidebar h3 {
    padding: 1.5rem 1.5rem 1rem;
    margin: 0;
    background: #1a1a1a;
    position: relative;
    z-index: 2;
}

.reels-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1.5rem 1.5rem;
    overflow-y: auto;
    max-height: calc(100vh - 150px);
}

.reels-container:hover {
    /* Scroll manual habilitado */
}

@keyframes scrollReels {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.reel-item {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    border: 2px solid #e91e63;
    box-shadow: 0 0 15px rgba(233, 30, 99, 0.5);
}

.reel-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(233, 30, 99, 0.8);
}

.reel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 1rem;
    color: #fff;
}

.reel-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reel-channel {
    font-size: 0.75rem;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.reel-views {
    font-size: 0.7rem;
    color: #888;
    margin-top: 0.25rem;
}

/* Modal de Visualização de Reel */
.reel-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.reel-modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 90vh;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
}

.reel-video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.reel-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reel-text-overlay {
    position: absolute;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    width: 90%;
    word-wrap: break-word;
    left: 50%;
    transform: translateX(-50%);
}

.reel-emoji-overlay {
    position: absolute;
    top: 10%;
    right: 10%;
    font-size: 3rem;
}

.reel-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 2rem 1.5rem 1.5rem;
    color: #fff;
}

.reel-info-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.reel-info-channel {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.reel-info-channel img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #e91e63;
}

.reel-info-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #aaa;
}

.reel-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.7);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
}

.reel-close-btn:hover {
    background: rgba(0,0,0,0.9);
}

.reel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.7);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
}

.reel-nav-btn:hover {
    background: rgba(0,0,0,0.9);
}

.reel-nav-btn.prev {
    left: 1rem;
}

.reel-nav-btn.next {
    right: 1rem;
}

@media (max-width: 1400px) {
    .reels-sidebar {
        position: fixed;
        right: 0;
        bottom: 0;
        top: auto;
        width: 100%;
        height: 140px;
        border-left: none;
        border-top: 1px solid #303030;
        padding: 0.5rem;
        overflow-x: auto;
        overflow-y: hidden;
        z-index: 100;
        background: #1a1a1a;
    }
    
    .reels-sidebar h3 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        padding: 0 0.5rem;
    }
    
    .reels-container {
        flex-direction: row;
        gap: 0.75rem;
        height: calc(100% - 30px);
        padding: 0 0.5rem;
    }
    
    .reel-item {
        width: 70px;
        height: 100%;
        aspect-ratio: 9/16;
        flex-shrink: 0;
    }
    
    .reel-overlay {
        padding: 0.5rem;
    }
    
    .reel-title {
        font-size: 0.7rem;
    }
    
    .reel-channel {
        font-size: 0.65rem;
    }
    
    .reel-views {
        font-size: 0.6rem;
    }
}

/* Estilos para inputs de erro */
.input-error {
    display: block;
    color: #ff4757;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    min-height: 1rem;
}

.form-group input.error {
    border-color: #ff4757 !important;
}

.form-group input:focus {
    outline: none;
    border-color: #065fd4;
}

/* Animação de shake para erros */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
}
