.sidebar-container .ads-section {
    margin-bottom: 1.5rem !important;
}
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

:root {
    --primary-color: #000000;
    --secondary-color: #f5f5f5;
    --accent-color: #333333;
    --text-color: #1a1a1a;
    --border-color: #e0e0e0;
    --hover-color: #333333;
    --dark-bg: #ffffff;
}

body {
    font-family: 'Poppins', 'Arial', sans-serif;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 245, 245, 0.95) 50%, rgba(255, 255, 255, 0.95) 100%),
                url('https://img.redbull.com/images/c_crop,w_1920,h_960,x_0,y_71/c_auto,w_1200,h_600/f_auto,q_auto/redbullcom/2020/7/2/ka2dnxksxw92dpibz6qm/red-bull-batalla-de-los-gallos-historia') center/cover no-repeat fixed;
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 1.5rem 2rem;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
    box-shadow: 0 8px 32px rgba(15, 52, 96, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: visible;
    z-index: 9999;
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, transparent 50%, rgba(255,255,255,0.03) 100%);
    pointer-events: none;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.brand-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #ffffff 0%, #e0f0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-title:hover {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    letter-spacing: 4px;
    transform: scaleX(1.05);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.social-link::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3), transparent);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.social-link:hover::before {
    transform: scale(1);
}

/* Facebook */
.social-link:nth-child(1) {
    background: linear-gradient(135deg, #1877f2 0%, #0a66c2 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.social-link:nth-child(1):hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.6);
    background: linear-gradient(135deg, #0a66c2 0%, #1877f2 100%);
}

/* Instagram */
.social-link:nth-child(2) {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(224, 148, 51, 0.4);
}

.social-link:nth-child(2):hover {
    transform: translateY(-5px) scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(224, 148, 51, 0.6);
}

/* YouTube */
.social-link:nth-child(3) {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.social-link:nth-child(3):hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.6);
}

/* Twitter */
.social-link:nth-child(4) {
    background: linear-gradient(135deg, #1da1f2 0%, #1a91da 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(29, 161, 242, 0.4);
}

.social-link:nth-child(4):hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(29, 161, 242, 0.6);
}

/* TikTok */
.social-link:nth-child(5) {
    background: linear-gradient(135deg, #25f4ee 0%, #ff0080 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(37, 244, 238, 0.4);
}

.social-link:nth-child(5):hover {
    transform: translateY(-5px) scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 25px rgba(37, 244, 238, 0.6);
}

/* WhatsApp Header Button */
.whatsapp-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25d366;
    color: #fff;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    text-decoration: none;
    margin-right: 0.5rem;
    transition: background 0.2s, transform 0.2s;
}

.whatsapp-header-btn:hover {
    background: #128c7e;
    color: #fff;
    transform: scale(1.05);
}

.search-bar {
    display: none;
    gap: 0.5rem;
    flex: 1;
    max-width: 500px;
}

.search-input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: 2px solid var(--border-color);
    background: #2a2a2a;
    color: var(--text-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #333333;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

.search-btn {
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.search-btn:hover {
    background: var(--hover-color);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    padding: 2rem;
    flex: 1;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    align-items: start;
}

.player-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
    max-width: 100%;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border: none;
    background: #f0f0f0;
    display: block;
    margin-bottom: 0;
}

.live-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff3333;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 10;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.stream-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 12px;
    gap: 1rem;
    color: #ffffff;
}

.stream-placeholder-icon {
    font-size: 3.5rem;
    color: #e38528;
    opacity: 0.85;
}

.stream-placeholder-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.stream-placeholder-subtitle {
    font-size: 0.9rem;
    color: #a0aec0;
    text-align: center;
    padding: 0 1.5rem;
}

.player-info {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.player-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #000000;
}

.player-info p {
    color: #666666;
    font-size: 0.95rem;
}

/* Votaciones */
.voting-section {
    background: #ffffff;
    padding: 0;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    overflow: hidden;
    margin-top: 1.5rem;
}

.voting-section h3 {
    color: #000000;
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}


.voting-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 2rem;
    overflow: hidden;
}

.voting-container.multi-option {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .voting-container.multi-option {
        grid-template-columns: repeat(2, 1fr);
    }
}

.voter-card {
    background: #f5f5f5;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s cubic-bezier(.4,1.3,.6,1);
    text-align: center;
    box-shadow: 0 4px 18px rgba(0,0,0,0.10);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    aspect-ratio: 1;
}

.voter-card:hover {
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.voter-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #000000;
    margin-bottom: 0.8rem;
}

.vote-percentage {
    font-size: 1.8rem;
    font-weight: bold;
    color: #000000;
    margin-bottom: 0.8rem;
}

.vote-bar {
    background: #e0e0e0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.vote-fill {
    height: 100%;
    transition: width 0.5s ease;
}

.vote-fill.left {
    background: linear-gradient(90deg, #000000, #333333);
    width: 0%;
}

.vote-fill.right {
    background: linear-gradient(90deg, #333333, #666666);
    width: 0%;
    margin-left: auto;
}

.vote-btn {
    background: #000000;
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.vote-btn:hover {
    background: #333333;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.vote-btn.right-vote {
    background: #000000;
}

.vote-btn.right-vote:hover {
    background: #333333;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.versus {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    height: 60px;
}

.vote-stats {
    text-align: center;
    color: #999999;
    font-size: 0.9rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.vote-stats strong {
    color: var(--accent-color);
    font-weight: bold;
}

/* Imagen de freestyler en votación (cuadrada y grande) */
.freestyler-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 16px;
    margin: 0 auto 0.7rem auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    border: 3px solid #fff;
}

/* --- RESPONSIVIDAD VOTACIÓN --- */
@media (max-width: 900px) {
    .voting-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 1.5rem;
    }
    .voter-card {
        padding: 1.5rem;
    }
    .freestyler-img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 640px) {
    .voting-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    .voter-card {
        padding: 1.5rem;
        max-width: 400px;
        margin: 0 auto;
    }
    .freestyler-img {
        width: 100px;
        height: 100px;
    }
    .vote-percentage {
        font-size: 1.5rem;
    }
}

.freestyler-img {
    background: #000;
    display: block;
    transition: transform 0.3s;
}

.voter-card:hover .freestyler-img {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

/* Sidebar Container */
.sidebar-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 0;
    box-sizing: border-box;
    height: fit-content;
    position: sticky;
    width: 100%;
    max-width: 400px;
    min-width: 0;
}

/* Chat Section */
.chat-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    border: 2.5px solid #eaeaea;
    outline: 1.5px solid #ff005c;
    padding: 0.7rem 0.5rem;
    margin-bottom: 1.2rem;
    width: 100%;
    max-width: 340px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(90deg, #f5f5f5, #ffffff);
    padding: 1rem;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    color: #000000;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.online-count {
    background: #000000;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

.chat-messages {
    max-height: 260px;
    min-height: 120px;
    overflow-y: auto;
    width: 100%;
    padding-right: 6px;
    margin-bottom: 0.25rem;
    box-sizing: border-box;
    background: #f7f7f7;
    border-radius: 10px;
}

.chat-message {
    display: flex;
    gap: 0.5rem;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease;
}

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

.message-user {
    font-weight: bold;
    color: var(--accent-color);
    min-width: 80px;
}

.message-user.admin {
    color: #b8860b;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-shadow: 0 1px 3px rgba(184, 134, 11, 0.3);
    position: relative;
    background: linear-gradient(135deg, #daa520 0%, #ffd700 50%, #daa520 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: brightness(1.1) contrast(1.2);
}

.message-user.registered {
    color: #2563eb;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(37, 99, 235, 0.15);
}

.message-user.registered::before {
    content: '✓ ';
    color: #2563eb;
    font-weight: 900;
}

.message-user.guest {
    color: #16a34a;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.message-text {
    color: #333333;
    word-break: break-word;
    font-weight: 500;
}

.system-message {
    text-align: center;
    color: #999999;
    font-style: italic;
    font-size: 0.85rem;
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
    margin-top: 0;
}

.chat-input {
    flex: 1;
    padding: 0.7rem;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    color: #1a1a1a;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(30, 144, 255, 0.3);
}

.chat-send-btn {
    padding: 0.7rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.chat-send-btn:hover {
    background: var(--hover-color);
    box-shadow: 0 0 10px rgba(30, 144, 255, 0.4);
}

.emoji-picker {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    padding: 0.8rem;
    background: #1a1a1a;
    border-top: 1px solid var(--border-color);
}

.emoji-btn {
    font-size: 1.2rem;
    background: #1a2847;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.2s ease;
}

.emoji-btn:hover {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* News Section */
.news-section {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    margin-top: -15px;
}

.news-header {
    background: linear-gradient(90deg, #000000, #1a1a1a);
    padding: 1rem;
    border-bottom: none;
}

.news-header h3 {
    color: #ffffff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    font-weight: 800;
}

.news-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    max-height: 900px;
    overflow-y: auto;
}

.news-grid-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.news-grid-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.news-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e0e0e0;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-grid-item:hover .news-image {
    transform: scale(1.1);
}

.news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-grid-item:hover .news-overlay {
    opacity: 1;
}

.read-more {
    background: #000000;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.news-grid-item:hover .read-more {
    background: #333333;
    transform: scale(1.1);
}

.news-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-title-grid {
    font-weight: bold;
    color: #000000;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    flex: 1;
}

.news-excerpt {
    color: #999999;
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    font-weight: normal;
}

.news-date {
    color: #999999;
    font-size: 0.75rem;
}

/* Scroll personalizado para noticias */
.news-container::-webkit-scrollbar {
    display: none;
}

.news-container {
    scrollbar-width: none;
}

.loading-skeleton {
    background: linear-gradient(90deg, #333333 25%, #444444 50%, #333333 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    height: 60px;
    border-radius: 4px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.playlist-section {
    display: none;
    background: #2a2a2a;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.playlist-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Ads Section */
.ads-section {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

.ad-container {
    padding: 0;
    margin-top: 20px;
}

.ad-space {
    width: 100%;
    min-height: 450px;
    display: block;
    position: relative;
    overflow: hidden;
}


@keyframes shimmer {
    0% {
        transform: translate(-100%, -100%);
    }
    100% {
        transform: translate(100%, 100%);
    }
}

.ad-placeholder {
    text-align: center;
    position: relative;
    z-index: 1;
    color: var(--primary-color);
}

.ad-placeholder span {
    display: block;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000000;
}

.ad-placeholder p {
    color: #999999;
    font-size: 0.9rem;
}

.playlist {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.playlist-item {
    background: #1a1a1a;
    padding: 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.playlist-item:hover {
    background: #333333;
    border-left-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.2);
}

.playlist-item-name {
    font-weight: bold;
    color: var(--text-color);
    flex: 1;
}

.playlist-item-remove {
    background: #ff3333;
    color: white;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.playlist-item:hover .playlist-item-remove {
    opacity: 1;
}

.btn-add-video {
    width: 100%;
    padding: 0.8rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn-add-video:hover {
    background: var(--hover-color);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: #2a2a2a;
    margin: 5% auto;
    padding: 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.close {
    color: var(--accent-color);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.btn-add {
    width: 100%;
    padding: 0.8rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-add:hover {
    background: var(--hover-color);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
}

/* Footer */
.footer {
    background: #ffffff;
    padding: 1.5rem;
    text-align: center;
    border-top: none;
    color: #999999;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

/* Events Section */
.events-section {
    width: 100%;
    margin: 0;
    padding: 20px 0 0 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.02);
}

.events-container {
    width: 100%;
    height: 150px;
    overflow: hidden;
    position: relative;
}

.events-slider {
    display: flex;
    gap: 20px;
    padding: 10px 0;
    width: max-content;
    animation: slideInfinite 30s linear infinite;
}

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

.events-container:hover .events-slider {
    animation-play-state: paused;
}

.event-card {
    width: 380px;
    height: 130px;
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.95), rgba(20, 20, 30, 0.95));
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    gap: 15px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.6);
}

.event-logo {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.event-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.event-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    min-width: 75px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.5);
    z-index: 10;
}

.event-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 80px;
}

.event-title {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 5px;
}

.event-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* WhatsApp Button */
/* WhatsApp Button - Hidden */
.whatsapp-btn {
    display: none !important;
}

.whatsapp-text {
    display: none !important;
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7);
    }
}

/* Botones de registro y login en el header */
.header-actions {
    margin-left: auto;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

#authContainer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Botones modernos de registro y login en el header */
.header-btn {
    padding: 0.6rem 1.5rem;
    font-size: 1.08rem;
    border-radius: 12px;
    border: none;
    background: rgba(34,34,34,0.85);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0,0,0,0.13), 0 1.5px 0 rgba(255,255,255,0.12) inset;
    backdrop-filter: blur(4px);
    transition: background 0.22s, transform 0.22s, box-shadow 0.22s;
    outline: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}
.header-btn:after {
    content: "";
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.18) 100%);
    pointer-events: none;
    border-radius: 12px;
}
.header-btn:hover {
    background: #ff005c;
    color: #fff;
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 8px 24px rgba(255,0,92,0.13), 0 2px 0 rgba(255,255,255,0.18) inset;
}
.register-btn {
    background: rgba(255,255,255,0.92);
    color: #222;
    border: none;
    box-shadow: 0 4px 16px rgba(34,34,34,0.09), 0 1.5px 0 rgba(255,255,255,0.10) inset;
}
.register-btn:after {
    background: linear-gradient(90deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.18) 100%);
}
.register-btn:hover {
    background: #ff005c;
    color: #fff;
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 8px 24px rgba(255,0,92,0.18), 0 2px 0 rgba(255,255,255,0.18) inset;
}

/* Cuadro de redes sociales encima del chat */
.social-slider-section {
    margin-bottom: 1.2rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    padding: 0.7rem 0.5rem;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
}
.social-slider-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.6rem;
    text-align: center;
    letter-spacing: 0.5px;
}
.social-slider-frame {
    display: flex;
    overflow: hidden;
    width: 100%;
    justify-content: center;
}
.slider-social-card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    background: #f5f5f5;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    color: #222;
    width: 100%;
    max-width: 320px;
    min-width: 220px;
    height: 80px;
    padding: 0.5rem 0.7rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: 500;
    flex-shrink: 0;
    overflow: hidden;
}
.slider-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 2rem;
    border-radius: 12px;
    background: #fff;
    margin-right: 0.7rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.followers-count {
    position: static;
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ff005c;
    background: #f3f3f3;
    border-radius: 8px;
    padding: 0.15rem 0.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    min-width: 60px;
    text-align: left;
    letter-spacing: 1px;
    width: 100%;
    margin-top: 0.2rem;
    margin-bottom: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.slider-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    overflow: hidden;
}
.slider-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}
.followers-count {
    position: absolute;
    left: 0.5rem;
    top: 0.2rem;
    font-size: 2.1rem;
    font-weight: 900;
    color: #ff005c;
    background: transparent;
    border-radius: 8px;
    padding: 0;
    box-shadow: none;
    min-width: 60px;
    text-align: center;
    letter-spacing: 1px;
    width: 48px;
    height: 48px;
    line-height: 48px;
    z-index: 2;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 1200px) {
    .header {
        padding: 1.2rem 1.5rem;
        gap: 0.8rem;
    }

    .brand-title {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .sidebar-container {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .video-wrapper {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 1024px) {
    .brand-title {
        font-size: 1.3rem;
        letter-spacing: 1.5px;
    }

    .header {
        padding: 1rem 1.2rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .main-content {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .sidebar-container {
        position: static;
        gap: 1.5rem;
        grid-template-columns: 1fr;
        max-width: none;
        padding: 0;
    }

    .ad-space {
        min-height: 300px;
    }

    .voting-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .versus {
        display: none;
    }

    .vote-btn {
        margin-bottom: 0.5rem;
        width: 100%;
    }

    .player-section {
        gap: 1.5rem;
    }

    .social-icons {
        gap: 0.5rem;
        justify-content: center;
    }

    .social-link {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    .whatsapp-header-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .video-section iframe {
        height: 350px;
    }

    .news-container {
        max-height: 450px;
    }
}

@media (max-width: 768px) {
    .brand-title {
        font-size: 1.2rem;
        letter-spacing: 1.5px;
    }

    .header {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        text-align: center;
    }

    .header-actions {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .search-bar {
        max-width: 100%;
        width: 100%;
    }

    .search-bar input {
        padding: 0.6rem 2.5rem 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .main-content {
        padding: 1rem;
        gap: 1.5rem;
    }

    .player-section {
        gap: 1rem;
        padding: 1rem;
    }

    .player-info h2 {
        font-size: 1.1rem;
    }

    .player-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .voting-section {
        padding: 1.5rem;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.5rem;
    }

    .voting-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .voter-card {
        padding: 1.2rem;
    }

    .chat-section {
        max-height: 350px;
    }

    .chat-messages {
        padding: 1rem;
    }

    .news-container {
        max-height: 400px;
        padding: 1rem;
    }

    .news-grid-item {
        grid-template-columns: 100px 1fr;
        gap: 0.8rem;
    }

    .news-image-container {
        height: 100px;
    }

    .sidebar-container {
        position: static;
        gap: 1.5rem;
        max-width: none;
        padding: 0;
    }

    .social-icons {
        gap: 0.4rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .social-link {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .whatsapp-header-btn {
        padding: 0.45rem 0.9rem;
        font-size: 0.8rem;
        width: 100%;
        justify-content: center;
    }

    .whatsapp-btn {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 1.6rem;
    }

    .video-section iframe {
        height: 300px;
    }

    .events-slider {
        padding: 1rem;
    }

    .event-card {
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    body {
        background-attachment: scroll;
    }

    .brand-title {
        font-size: 1rem !important;
        letter-spacing: 1px !important;
        -webkit-text-fill-color: #ffffff !important;
        color: #ffffff !important;
    }

    .header {
        padding: 0.8rem !important;
        gap: 0.8rem !important;
        flex-direction: column;
        align-items: center !important;
        width: 100% !important;
    }

    .header-actions {
        gap: 0.5rem !important;
        width: 100% !important;
        flex-direction: row !important;
        flex-wrap: wrap;
        align-items: center !important;
        justify-content: center !important;
        margin-left: 0 !important;
    }

    #authContainer {
        flex-direction: row;
        gap: 0.75rem;
    }

    .header-btn {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.78rem !important;
        width: auto !important;
        max-width: none !important;
        white-space: nowrap !important;
    }

    .whatsapp-header-btn {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.78rem !important;
        width: auto !important;
        max-width: none !important;
    }

    .search-bar input {
        padding: 0.5rem 2rem 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    .logo h1 {
        font-size: 1.1rem;
    }

    .main-content {
        padding: 0.8rem;
        gap: 1rem;
    }

    .ad-space {
        min-height: 220px;
    }

    .player-section {
        padding: 0.8rem;
        gap: 0.8rem;
    }

    .player-info h2 {
        font-size: 1rem;
    }

    .stat {
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    .voting-section {
        padding: 1rem;
    }

    .voting-section h2 {
        font-size: 1.1rem;
    }

    .modal-content {
        width: 98%;
        margin: 5% auto;
        padding: 1rem;
        border-radius: 12px;
    }

    .close {
        font-size: 1.8rem;
        top: 0.5rem;
        right: 0.8rem;
    }

    .voter-card {
        padding: 1rem;
    }

    .voter-card h3 {
        font-size: 0.95rem;
    }

    .vote-btn {
        padding: 0.7rem;
        font-size: 0.85rem;
        min-height: 44px;
        width: 100%;
    }

    .emoji-picker {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }

    .chat-section {
        max-height: 300px;
        padding: 1rem;
    }

    .chat-header h3 {
        font-size: 1rem;
    }

    .chat-messages {
        padding: 0.8rem;
        font-size: 0.85rem;
    }

    .chat-message {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }

    .chat-input input {
        padding: 0.6rem;
        font-size: 0.85rem;
    }

    .chat-input button {
        padding: 0.6rem 1rem;
        min-width: 44px;
    }

    .news-container {
        grid-template-columns: 1fr;
        max-height: 350px;
        padding: 0.8rem;
    }

    .news-header h3 {
        font-size: 1rem;
    }

    .news-grid-item {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        padding: 0.8rem;
    }

    .news-image-container {
        height: 150px;
        border-radius: 10px;
    }

    .news-title-grid {
        font-size: 0.85rem;
    }

    .news-content h4 {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }

    .news-content p {
        font-size: 0.75rem;
    }

    .social-icons {
        gap: 0.3rem;
        padding: 1rem 0.5rem;
        flex-wrap: wrap;
    }

    .social-link {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        min-width: 44px;
        min-height: 44px;
    }

    .whatsapp-header-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        width: 100%;
        max-width: 280px;
        min-height: 44px;
        justify-content: center;
    }

    .whatsapp-btn {
        width: 48px;
        height: 48px;
        bottom: 15px;
        right: 15px;
        font-size: 1.2rem;
    }

    .whatsapp-text {
        font-size: 0.7rem;
        max-width: 70px;
    }

    .video-section {
        padding: 1rem;
    }

    .video-section h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .video-section iframe {
        height: 220px;
        border-radius: 12px;
    }

    .events-slider {
        padding: 0.8rem;
    }

    .event-card {
        min-width: 160px;
        padding: 1rem;
    }

    .event-card h4 {
        font-size: 0.9rem;
    }

    .event-card p {
        font-size: 0.8rem;
    }

    .versus {
        display: none;
    }
}

/* Social Media Section Styles */
.social-section {
    margin-top: 24px;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

.ads-sidebar-fix {
    margin-top: 0px;
}

@media (max-width: 900px) {
    .ads-sidebar-fix {
        margin-top: 0px !important;
    }
}

@media (min-width: 900px) {
    .sidebar-container .social-section {
        margin-top: 0px !important;
    }
    .sidebar-container .ads-sidebar-fix {
        margin-top: 0px !important;
    }
}

.social-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(30,30,60,0.10);
    padding: 18px 18px 10px 18px;
    margin-bottom: 8px;
    border: 1.5px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.social-title {
    font-size: 1.18em;
    font-weight: 700;
    color: #222;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.social-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-card {
    opacity: 0;
    transform: translateY(32px) scale(0.98);
    transition: opacity 0.85s cubic-bezier(.4,2,.6,1), transform 0.85s cubic-bezier(.4,2,.6,1);
}

.social-card.social-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.social-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    text-decoration: none;
    transition: transform 0.13s, box-shadow 0.13s;
    position: relative;
    min-height: 44px;
}

.social-card:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}

.social-card .fa-facebook-f {
    color: #fff;
    background: #1877f3;
    border-radius: 50%;
    padding: 7px;
    font-size: 1.3em;
}

.social-card.facebook {
    background: #1877f3;
}

.social-card .fa-instagram {
    color: #fff;
    background: #e1306c;
    border-radius: 50%;
    padding: 7px;
    font-size: 1.3em;
}

.social-card.instagram {
    background: #e1306c;
}

.social-card .fa-tiktok {
    color: #fff;
    background: #000;
    border-radius: 50%;
    padding: 7px;
    font-size: 1.3em;
}

.social-card.tiktok {
    background: #000;
}

.social-card .fa-youtube {
    color: #fff;
    background: #ff0000;
    border-radius: 50%;
    padding: 7px;
    font-size: 1.3em;
}

.social-card.youtube {
    background: #ff0000;
}

.social-card .fa-whatsapp {
    color: #fff;
    background: #25d366;
    border-radius: 50%;
    padding: 7px;
    font-size: 1.3em;
}

.social-card.whatsapp {
    background: #25d366;
}

.social-label {
    flex: 1;
    font-size: 1em;
    color: #fff;
}

.social-count {
    background: rgba(0,0,0,0.18);
    color: #fff;
    font-size: 1.08em;
    font-weight: 700;
    border-radius: 8px;
    padding: 3px 14px;
    margin-left: 8px;
    min-width: 38px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
    letter-spacing: 1px;
    transition: background 0.3s, color 0.3s;
}

.social-card.facebook .social-count {
    background: #145dc2;
    color: #fff;
}

.social-card.instagram .social-count {
    background: #b92d5d;
    color: #fff;
}

.social-card.tiktok .social-count {
    background: #222;
    color: #fff;
}

.social-card.youtube .social-count {
    background: #b80000;
    color: #fff;
}

.social-card.whatsapp .social-count {
    background: #1fa855;
    color: #fff;
}

@media (max-width: 600px) {
    .social-box {
        padding: 10px 6px 6px 6px;
    }
    .social-title {
        font-size: 1em;
        margin-bottom: 10px;
    }
    .social-row {
        gap: 7px;
    }
    .social-card {
        font-size: 0.97em;
        padding: 8px 7px;
    }
    .social-label {
        font-size: 0.97em;
    }
}
