*{
    padding: 0;
    margin:0;
    font-family: 'Courier New', 'Courier', monospace;
}

body{
    background-color:#1a1410;
    background-image: url("../img/fondo.jpg");
    background-repeat: no-repeat;
    background-position: center top;
    background-attachment: fixed;
    background-size: cover;
}

body, html{
    height: 100%;
    text-align: center;
}

#header{
    text-align: center;
    padding: 30px 0 20px 0;
    position: relative;
}

#header h2{
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 4.5em;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #f4e4c1;
    text-shadow: 
        3px 3px 0px #d4943d,
        6px 6px 0px #8b4513,
        2px 2px 10px rgba(212, 148, 61, 0.8),
        0 0 30px rgba(255, 165, 0, 0.5);
}

#header h2 img {
    top: 15px;
    width: auto;
    max-height: 90px;
    margin-right: 15px;
    filter: sepia(0.3) drop-shadow(0 4px 8px rgba(0,0,0,0.6));
}

#auth-buttons {
    position: absolute;
    top: 15px;
    right: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.auth-btn {
    background: transparent;
    border: 1px solid #d4943d;
    padding: 6px 12px;
    border-radius: 4px;
    color: #d4943d;
    font-weight: normal;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
    display: inline-block;
    box-shadow: none;
}

.auth-btn:hover {
    background: rgba(212, 148, 61, 0.1);
    border-color: #f4e4c1;
    color: #f4e4c1;
}

.auth-btn:active {
    transform: none;
    box-shadow: none;
}

.login-btn {
    background: transparent;
    border: 1px solid #d4943d;
    color: #d4943d;
}

.admin-btn {
    background: transparent;
    border: 1px solid #66bb6a;
    color: #66bb6a;
}

.admin-btn:hover {
    background: rgba(102, 187, 106, 0.1);
    border-color: #66bb6a;
    color: #66bb6a;
}

.logout-btn {
    background: transparent;
    border: 1px solid #e53935;
    color: #e53935;
}

.logout-btn:hover {
    background: rgba(229, 57, 53, 0.1);
    border-color: #e53935;
    color: #e53935;
}

#cuerpo{
    display: block;
    margin: 0 auto;
    width: 95%;
    max-width: 1400px;
    min-height: 100%;
    padding-bottom: 50px;
}

#main-content{
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin: 30px auto;
    padding: 0 20px;
    align-items: start;
}

#programming-section{
    background: linear-gradient(135deg, rgba(26, 20, 16, 0.85), rgba(139, 69, 19, 0.3));
    border: 2px solid rgba(212, 148, 61, 0.5);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.7),
        inset 0 0 15px rgba(212, 148, 61, 0.1);
    position: relative;
}

.section-title{
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2em;
    color: #f4e4c1;
    margin-bottom: 25px;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    border-bottom: 2px solid rgba(212, 148, 61, 0.5);
    padding-bottom: 15px;
    text-align: left;
}

.programming-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.programming-list{
    text-align: left;
    flex: 1;
}

.program-item{
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid #d4943d;
    border-radius: 5px;
}

.program-item.hidden {
    display: none !important;
}

.program-item h3{
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.3em;
    color: #f4e4c1;
    margin-bottom: 10px;
    font-weight: bold;
    letter-spacing: 1px;
}

.program-item p{
    font-family: 'Courier New', 'Courier', monospace;
    color: #c9b896;
    line-height: 1.6;
    font-size: 0.95em;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #d4943d, #f4e4c1);
    border: 2px solid #8b4513;
    color: #1a1410;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.carousel-btn:hover {
    background: linear-gradient(135deg, #f4e4c1, #d4943d);
    box-shadow: 0 6px 16px rgba(212, 148, 61, 0.6);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-btn {
    left: -60px;
}

.next-btn {
    right: -60px;
}

.program-item h3{
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.3em;
    color: #f4e4c1;
    margin-bottom: 10px;
    font-weight: bold;
    letter-spacing: 1px;
}

.program-item p{
    font-family: 'Courier New', 'Courier', monospace;
    color: #c9b896;
    line-height: 1.6;
    font-size: 0.95em;
}

#player-section{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
    position: relative;
}

#player-container {
    order: 1;
}

#button-container {
    order: 2;
}

#chat-container {
    order: 4;
}

#history-container {
    order: 3;
}

.play-btn {
    background: linear-gradient(135deg, #d4943d, #f4e4c1);
    border: 2px solid #8b4513;
    color: #1a1410;
    padding: 15px 40px;
    font-size: 1.3em;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: bold;
    letter-spacing: 2px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(212, 148, 61, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.play-btn:hover {
    background: linear-gradient(135deg, #f4e4c1, #d4943d);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 28px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(212, 148, 61, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.play-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(212, 148, 61, 0.4);
}

.play-btn.playing {
    background: linear-gradient(135deg, #ff6b6b, #ff9999);
    border-color: #cc0000;
}

#player-container {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    padding: 30px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.5), rgba(101, 67, 33, 0.5));
    border: 3px solid #d4943d;
    border-radius: 15px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.9),
        inset 0 0 25px rgba(212, 148, 61, 0.15),
        0 0 50px rgba(255, 165, 0, 0.3);
    position: relative;
}

#player-container::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #8b4513, #d4943d, #8b4513);
    border-radius: 15px;
    z-index: -1;
    opacity: 0.4;
}

#button-container {
    width: 100%;
    max-width: 650px;
    text-align: center;
    margin-top: 20px;
}

.play-btn {
    background: linear-gradient(135deg, #d4943d, #f4e4c1);
    border: 2px solid #8b4513;
    color: #1a1410;
    padding: 15px 40px;
    font-size: 1.3em;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: bold;
    letter-spacing: 2px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(212, 148, 61, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.play-btn:hover {
    background: linear-gradient(135deg, #f4e4c1, #d4943d);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 28px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(212, 148, 61, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.play-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(212, 148, 61, 0.4);
}

.play-btn.playing {
    background: linear-gradient(135deg, #ff6b6b, #ff9999);
    border-color: #cc0000;
}

#player-container iframe {
    border-radius: 10px;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.7),
        inset 0 0 10px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 148, 61, 0.5);
}

/* Historial de Canciones */
#history-container {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    padding: 30px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.5), rgba(101, 67, 33, 0.5));
    border: 3px solid #d4943d;
    border-radius: 15px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.9),
        inset 0 0 25px rgba(212, 148, 61, 0.15),
        0 0 50px rgba(255, 165, 0, 0.3);
    position: relative;
}

#history-container::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #8b4513, #d4943d, #8b4513);
    border-radius: 15px;
    z-index: -1;
    opacity: 0.4;
}

#history-container iframe {
    border-radius: 10px;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.7),
        inset 0 0 10px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 148, 61, 0.5);
}

/* Chat */
#chat-container {
    width: 100%;
    max-width: 650px;
    margin: 20px auto 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.3), rgba(101, 67, 33, 0.3));
    border: 2px solid #d4943d;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

#chat-container .section-title {
    margin: 0 0 15px 0;
    font-size: 1.2em;
    color: #d4943d;
    text-align: center;
}

#chat-messages {
    height: 250px;
    overflow-y: auto;
    background: rgba(26, 20, 16, 0.8);
    border: 1px solid #8b4513;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
    box-sizing: border-box;
}

.chat-message {
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(212, 148, 61, 0.15);
    border-left: 3px solid #d4943d;
    border-radius: 3px;
    word-wrap: break-word;
    box-sizing: border-box;
}

.chat-message.admin-message {
    background: rgba(102, 187, 106, 0.25);
    border-left: 4px solid #66bb6a;
    box-shadow: 0 0 10px rgba(102, 187, 106, 0.2);
}

.chat-message.admin-message .chat-message-name {
    color: #66bb6a;
    text-shadow: 0 0 5px rgba(102, 187, 106, 0.5);
}

.chat-message-name {
    color: #d4943d;
    font-weight: bold;
    margin-right: 8px;
}

.chat-message-text {
    color: #f4e4c1;
}

#chat-input-area {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
    box-sizing: border-box;
}

#chat-name,
#chat-message {
    flex: 1;
    min-width: 0;
    padding: 10px;
    background: rgba(26, 20, 16, 0.9);
    border: 1px solid #8b4513;
    border-radius: 5px;
    color: #f4e4c1;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    box-sizing: border-box;
}

#chat-name {
    flex: 0 0 auto;
    min-width: 120px;
}

#chat-message {
    flex: 1 1 auto;
    min-width: 150px;
}

#chat-name::placeholder,
#chat-message::placeholder {
    color: #8b4513;
}

#chat-name:focus,
#chat-message:focus {
    outline: none;
    border-color: #d4943d;
    box-shadow: 0 0 8px rgba(212, 148, 61, 0.4);
}

.chat-send-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #d4943d, #f4e4c1);
    border: 1px solid #8b4513;
    border-radius: 5px;
    color: #1a1410;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex: 0 0 auto;
    box-sizing: border-box;
}

.chat-send-btn:hover {
    background: linear-gradient(135deg, #f4e4c1, #d4943d);
    box-shadow: 0 4px 12px rgba(212, 148, 61, 0.5);
}

.chat-send-btn:active {
    transform: scale(0.98);
}

/* Responsive Design */
@media only screen and (max-width: 1024px){
    #main-content{
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    #player-section{
        min-height: 300px;
    }
    
    #player-container,
    #history-container,
    #chat-container {
        max-width: 100%;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }
    
    .prev-btn {
        left: -45px;
    }
    
    .next-btn {
        right: -45px;
    }
}

@media only screen and (max-width: 768px){
    #header{
        text-align: center;
        padding: 20px 0;
    }
    
    #header h2{
        font-family: 'Georgia', 'Times New Roman', serif;
        font-size: 2.5em;
        letter-spacing: 2px;
        text-shadow: 
            2px 2px 0px #d4943d,
            4px 4px 0px #8b4513,
            1px 1px 8px rgba(212, 148, 61, 0.7);
    }
    
    #header h2 img {
        top: 10px;
        width: auto;
        max-height: 60px;
        margin-right: 8px;
    }

    #cuerpo{
        width: 95%;
        padding-bottom: 50px;
    }

    #main-content{
        display: flex;
        flex-direction: column;
        gap: 25px;
        padding: 0 10px;
    }
    
    #programming-section{
        order: 2;
        padding: 15px;
        margin: 0 auto;
        width: 90%;
        box-sizing: border-box;
    }
    
    .programming-carousel {
        position: relative;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .section-title{
        font-size: 1.5em;
    }

    .program-item h3{
        font-size: 1.1em;
    }
    
    .program-item p{
        font-size: 0.9em;
    }

    #player-section{
        min-height: 250px;
    }

    #player-container,
    #history-container {
        padding: 20px;
    }
    
    #player-iframe {
        height: 150px !important;
    }
    
    #chat-container {
        padding: 15px;
        margin: 0 auto;
        max-width: 100%;
    }
    
    #chat-messages {
        height: 200px;
    }
    
    #chat-input-area {
        flex-wrap: nowrap;
    }
    
    #chat-name,
    #chat-message {
        padding: 8px;
        font-size: 0.85em;
        min-width: 0;
    }
    
    #chat-name {
        flex: 0 0 auto;
        min-width: 80px;
    }
    
    #chat-message {
        flex: 1 1 auto;
        min-width: 0;
    }
    
    .chat-send-btn {
        padding: 8px 15px;
        font-size: 0.85em;
        flex: 0 0 auto;
    }
    
    .play-btn {
        padding: 12px 30px;
        font-size: 1.1em;
    }
    
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9em;
    }
    
    .prev-btn {
        left: -35px;
    }
    
    .next-btn {
        right: -35px;
    }
}

@media only screen and (max-width: 600px){
    #header h2{
        font-family: 'Georgia', 'Times New Roman', serif;
        font-size: 1.8em;
        letter-spacing: 1px;
        text-shadow: 
            2px 2px 0px #d4943d,
            3px 3px 0px #8b4513,
            1px 1px 6px rgba(212, 148, 61, 0.6);
    }

    #header h2 img {
        top: 5px;
        width: auto;
        max-height: 45px;
        margin-right: 5px;
    }

    #cuerpo{
        width: 98%;
        padding-bottom: 40px;
    }

    #main-content{
        margin: 20px auto;
        padding: 0 5px;
        gap: 20px;
    }

    #programming-section{
        padding: 15px;
    }

    .section-title{
        font-size: 1.3em;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .program-item{
        padding: 12px;
        margin-bottom: 15px;
    }

    .program-item h3{
        font-size: 1em;
        margin-bottom: 8px;
    }

    .program-item p{
        font-size: 0.85em;
        line-height: 1.4;
    }

    #player-section{
        min-height: 200px;
    }

    #player-container,
    #history-container {
        padding: 15px;
        border-width: 2px;
    }
    
    #chat-container {
        padding: 12px;
    }
    
    #chat-container .section-title {
        font-size: 1.1em;
        margin-bottom: 12px;
    }
    
    #chat-messages {
        height: 180px;
        padding: 10px;
        font-size: 0.85em;
    }
    
    .chat-message {
        margin-bottom: 8px;
        padding: 6px;
    }
    
    #chat-input-area {
        gap: 6px;
    }
    
    #chat-name,
    #chat-message {
        padding: 8px;
        font-size: 0.85em;
    }
    
    .chat-send-btn {
        padding: 10px;
        font-size: 0.9em;
    }
    
    .play-btn {
        padding: 10px 25px;
        font-size: 1em;
        letter-spacing: 1px;
    }
    
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9em;
    }
    
    .program-item.hidden {
        display: none !important;
    }
}

@media only screen and (max-width: 400px){
    #header h2{
        font-size: 1.5em;
    }

    #header h2 img {
        max-height: 35px;
    }
    
    .section-title{
        font-size: 1.2em;
    }
    
    .program-item h3{
        font-size: 0.95em;
    }

    .program-item p{
        font-size: 0.8em;
    }
    
    #player-container,
    #history-container,
    #chat-container {
        padding: 10px;
    }
    
    .play-btn {
        padding: 8px 20px;
        font-size: 0.9em;
    }
}
