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

body {
    font-family: 'Noto Sans', sans-serif;
    background: #000;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.9), rgba(10, 10, 20, 0.9));
    border-radius: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navigation */
.main-nav {
    margin-top: 25px;
    display: inline-block;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 18px;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover {
    background: #e7433c;
    box-shadow: 0 0 15px rgba(231, 67, 60, 0.4);
    transform: translateY(-2px);
}

.logo h1 {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.logo p {
    font-size: 1.1rem;
    color: #aaa;
    letter-spacing: 2px;
}

/* Player Section */
.player-section, .tv-section {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.divider-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    width: 100%;
}

.divider-gif {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(231, 67, 60, 0.3));
}

.player-container {
    position: relative;
    padding: 30px;
    background: rgba(10, 10, 20, 0.8);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 0 30px rgba(0, 150, 255, 0.3),
        0 0 60px rgba(0, 150, 255, 0.1),
        inset 0 0 20px rgba(0, 150, 255, 0.05);
    animation: pulse-glow 3s ease-in-out infinite;
}

.player-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(0, 150, 255, 0.5), 
        rgba(100, 200, 255, 0.5), 
        rgba(0, 150, 255, 0.5));
    border-radius: 20px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(10px);
    animation: rotate-gradient 4s linear infinite;
}

.player-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent, rgba(0, 150, 255, 0.1), transparent),
        linear-gradient(0deg, transparent, rgba(0, 150, 255, 0.1), transparent);
    background-size: 50% 50%;
    animation: scan 4s linear infinite;
    pointer-events: none;
    border-radius: 20px;
}

.custom-player, .tv-container {
    width: 100%;
    max-width: 410px;
    background: rgba(14, 16, 21, 0.9);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.visualizer-container {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.visualizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 100%;
    width: 100%;
    justify-content: center;
}

.bar {
    width: 6px;
    background: linear-gradient(to top, #e7433c, #ff8a80);
    height: 3px;
    border-radius: 3px 3px 0 0;
    transition: height 0.1s ease;
}

.custom-player.playing .bar {
    animation: bounce 1.2s infinite ease-in-out;
}

/* Creating randomness for bars using nth-child */
.bar:nth-child(odd) { animation-duration: 0.8s; }
.bar:nth-child(2n) { animation-duration: 1.1s; }
.bar:nth-child(3n) { animation-duration: 1.3s; }
.bar:nth-child(4n) { animation-duration: 0.9s; }
.bar:nth-child(5n) { animation-duration: 1.5s; }

@keyframes bounce {
    0%, 100% { height: 3px; }
    50% { height: 40px; }
}

.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cover-art {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.1);
}

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

.live-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #e7433c;
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    animation: blink 2s infinite;
}

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

.track-details {
    flex: 1;
}

.station-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
}

.status-text {
    font-size: 0.9rem;
    color: #aaa;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
}

.play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: #e7433c;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(231, 67, 60, 0.4);
}

.play-btn:hover {
    transform: scale(1.1);
    background: #ff5252;
    box-shadow: 0 0 25px rgba(231, 67, 60, 0.6);
}

.play-btn svg {
    width: 24px;
    height: 24px;
}

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

.volume-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-icon {
    width: 20px;
    height: 20px;
    color: #aaa;
}

.volume-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #e7433c;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* About Section */
.about-section {
    background: rgba(20, 20, 30, 0.5);
    border-radius: 15px;
    padding: 40px 20px;
    margin: 30px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.about-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
}

.about-content p {
    color: #ccc;
    line-height: 1.8;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* TV Specific Styles */
.tv-container {
    max-width: 800px; /* TV can be wider */
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 15px;
    position: relative;
    z-index: 1;
}

.tv-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tv-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.live-dot-indicator {
    width: 12px;
    height: 12px;
    background-color: #e7433c;
    border-radius: 50%;
    box-shadow: 0 0 10px #e7433c;
    animation: blink 2s infinite;
}

.video-wrapper {
    width: 100%;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    background: #000;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 
            0 0 30px rgba(0, 150, 255, 0.3),
            0 0 60px rgba(0, 150, 255, 0.1),
            inset 0 0 20px rgba(0, 150, 255, 0.05);
    }
    50% {
        box-shadow: 
            0 0 40px rgba(0, 150, 255, 0.4),
            0 0 80px rgba(0, 150, 255, 0.2),
            inset 0 0 30px rgba(0, 150, 255, 0.08);
    }
}

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

@keyframes scan {
    0% {
        background-position: 0% 0%, 0% 0%;
    }
    100% {
        background-position: 100% 100%, 100% 100%;
    }
}

/* Social Section */
.social-section {
    text-align: center;
    padding: 40px 20px;
    background: rgba(20, 20, 30, 0.5);
    border-radius: 15px;
    margin: 30px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-section h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: #fff;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.social-icon:hover::before {
    width: 100px;
    height: 100px;
}

.social-icon:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.social-icon svg {
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1;
}

/* Request Form */
.requests-section {
    background: rgba(20, 20, 30, 0.5);
    border-radius: 15px;
    padding: 40px;
    margin: 30px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.requests-section h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    text-align: center;
}

.request-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.request-form input,
.request-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-family: 'Noto Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.request-form input:focus,
.request-form textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.request-form textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-submit {
    background: #fff;
    color: #000;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-submit svg {
    width: 20px;
    height: 20px;
}

.btn-submit:hover {
    background: #ddd;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

/* Donations Section */
.donations-section {
    background: rgba(20, 20, 30, 0.5);
    border-radius: 15px;
    padding: 40px;
    margin: 30px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.donations-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.donation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
}

.donation-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.donation-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.card-icon svg {
    width: 40px;
    height: 40px;
}

.yape-icon {
    background: rgba(121, 15, 176, 0.1);
    border-color: rgba(121, 15, 176, 0.3);
}

.yape-icon svg {
    color: #790fb0;
}

.paypal-icon {
    background: rgba(0, 112, 186, 0.1);
    border-color: rgba(0, 112, 186, 0.3);
}

.paypal-icon svg {
    color: #0070ba;
}

.donation-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.donation-card p {
    color: #aaa;
    margin-bottom: 20px;
}

.btn-donate {
    background: #fff;
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-donate:hover {
    background: #ddd;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    margin-top: 40px;
    color: #666;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

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

    .header {
        padding: 30px 15px;
    }

    .nav-list {
        gap: 10px;
    }

    .nav-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .player-container {
        padding: 20px;
        width: 100%;
    }

    #mexiserver {
        width: 100% !important;
        max-width: 410px;
        height: auto !important;
        aspect-ratio: 410/445;
    }

    .social-icons {
        gap: 15px;
    }

    .social-icon {
        width: 50px;
        height: 50px;
    }

    .social-icon svg {
        width: 25px;
        height: 25px;
    }

    .requests-section,
    .donations-section {
        padding: 25px 20px;
    }

    .donation-cards {
        grid-template-columns: 1fr;
    }
}

/* Extra Small Devices (Phones) */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 2rem;
    }
    
    .player-container, .custom-player {
        padding: 15px;
    }
    
    .cover-art {
        width: 60px;
        height: 60px;
    }
    
    .station-name {
        font-size: 1.3rem;
    }
    
    .player-controls {
        gap: 10px;
        padding: 10px;
    }
    
    .play-btn {
        width: 42px;
        height: 42px;
    }

    .play-btn svg {
        width: 20px;
        height: 20px;
    }

    /* Improve touch targets for volume */
    .volume-slider::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }
    
    .donation-card {
        padding: 20px;
    }
}