body {
    font-family: "Lato", sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #1d1d1d, #161616);
    display: flex;
    flex-direction: column;
    min-height: 100vh
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #333;
    color: #fff;
    text-align: center;
    transition: transform 0.5s ease;
    font-weight: 700;
    font-style: normal;
    backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.5);
    padding-top: 10px;
    padding-bottom: 10px;
}

.logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

.logo img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    width: 400px;
    height: auto;
}

h1 {
    font-size: 0px;
}

main {
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    flex: 1;
}

section {
    margin-bottom: 40px;
    transition: box-shadow 0.3s ease;
    background-color: #222222;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    padding: 10px;
}

h2, h3, h3 a, p {
    transition: text-shadow 0.3s ease;
}

h2.day {
    margin: 0px;
    color: #d7d7d7;
    font-weight: 900;
    font-size: 30px;
}

h3, h3 a, h3 a:visited {
    margin: 10px 0;
    color: #e23c52;
    font-weight: 800;
    font-size: 40px;
    text-decoration: none;
}

h3 a.ended, h3 a:visited.ended {
    margin: 10px 0;
    color: #6e6e6e;
    font-weight: 800;
    text-decoration: none;
}

p.time {
    margin: 0;
    color: #d7d7d7;
    font-size: 40px;
    font-weight: 900;
}

strong#TBA {
    margin: 0;
    color: #6a6a6a;
    font-size: 40px;
    margin-right: auto;
    margin-top: 10px;
}

p span #timezone_tip {
    color: #ff0000;
}

img.silksong {
    height: auto;
    width: 49px;
    padding-left: 5px;
}

h3:hover, h3 a:hover, h3 a:visited:hover {
    text-shadow: 0 0 10px #e23c5270;
    color: #fb5369;
}

h3 a:hover.ended, h3 a:visited:hover.ended {
    text-shadow: 0 0 10px #5b5b5b70;
    color: #7b7b7b;
}

/* Footer Mejorado */
footer {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    color: #fff;
    text-align: center;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.footer-main {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-link {
    color: #e23c52;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
    background-color: rgba(226, 60, 82, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    color: #fff;
    background-color: #e23c52;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(226, 60, 82, 0.3);
}

.copyright {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.copyright:visited {
    color: #F2EEEB;
}

.copyright:hover {
    color: #e23c52;
}

section:hover {
    background-color: rgba(255, 255, 255, 0.055);
    transition: background-color 0.3s ease;
    box-shadow: 0 0 0 5px rgba(102, 102, 102, 0.1);
}

.day-separator {
    margin-top: 10px;
    border-top: 1px solid rgb(0, 0, 0);
}

#timezone-selector {
    position: fixed;
    right: 16px;
    top: 45px;
    z-index: 1001;
}

#timezone {
    font-size: 22px;
    padding: 10px;
    padding-right: 40px;
    border-radius: 5px;
    border: 2px solid #e23c52;
    background-color: #1D1D1D;
    color: #e23c52;
    font-weight: 600;
    box-shadow: 0 2px 5px #f03e3e85;
    appearance: none;
}

#timezone option {
    background-color: transparent;
    border: none;
    color: #e23c52;
    font-size: 22px;
    padding: 10px;
}

#timezone option:checked {
    color: #e23c52;
}

.conference-info {
    display: flex;
}

.conference-info h3 {
    margin-right: 10px;
}

.conference-info .time {
    margin-right: auto;
    margin-top: 10px;
}

p#GMT {
    color: #28a745;
}

.full-calendar-btn {
    display: block;
    text-align: center;
    margin-top: 20px;
    text-decoration: none;
    color: #F2EEEB;
    background-color: #e23c52;
    padding: 15px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(226, 60, 82, 0.3);
}

.full-calendar-btn:hover {
    background-color: #cf3449;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(226, 60, 82, 0.4);
}

.calendar-btn {
    display: inline-block;
    margin-right: 10px;
    margin-top: 15px;
    width: 40px;
    height: 40px;
    background-color: #F2EEEB;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.calendar-btn:hover {
    background-color: #e23c52;
}

.calendar-btn img {
    height: auto;
}

#language-selector, #year-selector {
    right: 16px;
    z-index: 1001;
}

#language-selector select, #year-selector select {
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 5px;
    border: 2px solid #e23c52;
    background-color: #1D1D1D;
    color: #e23c52;
    font-weight: 600;
    box-shadow: 0 2px 5px #f03e3e85;
    appearance: none;
    text-align: center;
    transition: all 0.3s ease;
}

#language-selector label, #year-selector label {
    color: #e23c52;
    font-size: 16px;
    font-weight: 600;
    margin-right: 10px;
    text-align: center;
}

.day {
    text-transform: capitalize;
}

/* Easter Egg para Streamers */
.easter-egg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.easter-egg.shown {
    opacity: 1;
    visibility: visible;
}

.easter-egg-content {
    background: linear-gradient(135deg, #e23c52, #cf3449);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.5s ease;
    max-width: 400px;
    margin: 20px;
}

.easter-egg.shown .easter-egg-content {
    transform: scale(1);
}

.easter-egg-content h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: white !important;
}

.easter-egg-content p {
    margin: 0 0 20px 0;
    font-size: 16px;
    opacity: 0.9;
}

.easter-egg-content button {
    background-color: white;
    color: #e23c52;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.easter-egg-content button:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

@media only screen and (max-width: 596px) {
    .day {
        font-size: 18px !important;
    }
}

@media only screen and (max-width: 1184px) {
    .logo img {
        width: 250px;
    }

    #timezone-selector {
        position: relative;
        margin-left: auto;
        margin-right: auto;
        padding-top: 0px;
        margin-bottom: 25px;
        left: 3px;
        margin-top: -8px;
        top: 8px;
    }

    #timezone {
        font-size: 20px;
        padding: 6px;
        text-align: center;
    }

    #timezone option {
        font-size: 16px;
        padding: 6px;
    }

    #language-selector, #year-selector {
        margin-left: auto;
        margin-right: auto;
        padding-top: 0px;
        margin-bottom: 10px;
        left: 3px;
        margin-top: 0px;
    }

    #language-selector select, #year-selector select {
        font-size: 20px;
        padding: 6px;
    }

    .footer-content {
        gap: 10px;
    }
    
    .footer-main {
        gap: 12px;
    }
}

@media only screen and (max-width: 782px) {
    .logo img {
        width: 200px;
    }

    #timezone {
        font-size: 18px;
        padding: 5px;
    }

    #timezone option {
        font-size: 14px;
        padding: 5px;
    }

     #timezone-selector {
        position: relative;
        margin-left: auto;
        margin-right: auto;
        padding-top: 0px;
        margin-bottom: 25px;
        left: 3px;
        margin-top: -8px;
        top: 8px;
    }

    #language-selector, #year-selector {
        top: 50px; 
    }

    #language-selector select, #year-selector select {
        font-size: 18px;
        padding: 5px;
    }
}

@media only screen and (max-width: 596px) {
    .logo img {
        width: 150px;
    }

    #timezone {
        font-size: 16px;
        padding: 4px;
    }

    #timezone option {
        font-size: 12px;
        padding: 4px;
    }

    #language-selector, #year-selector {
        top: 8px;
    }

    #language-selector select, #year-selector select {
        font-size: 16px;
        padding: 4px;
    }

    h3, h3 a, h3 a:visited, p.time, strong#TBA {
        font-size: 30px;
    }
    
    .footer-links {
        gap: 15px;
    }
    
    .footer-main {
        flex-direction: row;
        gap: 8px;
    }
}

#live-now-section {
    margin-bottom: 20px; 
    padding: 15px;
    border: 2px solid #ffaaaa;
    border-radius: 8px;
}

.live-now-header {
    color: #f01d1d; 
    font-weight: bold;
}

.conference-info.live-event {
    border-left: 5px solid #cc0000; 
    padding-left: 10px; 
    margin-top: 5px; 
    margin-bottom: 5px; 
    border-radius: 4px; 
}

.conference-info.live-event h3 a.live-link {
    color: #f01d1d; 
    font-weight: bold;
}

.conference-info.ended-event {
    opacity: 0.7;
    border-left: 5px solid #6e6e6e; 
    padding-left: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
    border-radius: 4px;
}

.conference-info.ended-event h3 a.ended {
    color: #6e6e6e;
}

.conference-info {
    transition: background-color 0.3s ease, border-color 0.3s ease; 
    padding-top: 5px;
    padding-bottom: 5px;
}

#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background-color: #e23c52;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(226, 60, 82, 0.3);
  display: none;
  transition: all 0.3s ease;
}

#scrollTopBtn:hover {
  background-color: #cf3449;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(226, 60, 82, 0.4);
}

.conference-info {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--stagger-delay, 0ms);
}

.conference-info.loaded {
  opacity: 1;
  transform: translateY(0);
}

@media only screen and (max-width: 480px) {
  h3, h3 a, h3 a:visited, p.time, strong#TBA {
    font-size: 24px;
  }
  
  #scrollTopBtn {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

@media only screen and (max-width: 480px) {
    .calendar-btn {
        width: 26px;
        height: 26px;
        margin-top: 11px;
        margin-right: 6px;
    }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.footer-main p {
    margin: 0;
    padding: 0 10px;
    font-size: 14px;
    color: #aaa;
    white-space: nowrap;
    pointer-events: none;
}

@keyframes livePulse {
    0%   { box-shadow: 0 0 0 0 rgba(240, 29, 29, 0.8); transform: scale(1); }
    50%  { box-shadow: 0 0 0 8px rgba(240, 29, 29, 0);  transform: scale(1.15); }
    100% { box-shadow: 0 0 0 0 rgba(240, 29, 29, 0);    transform: scale(1); }
}

.live-pulse {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #f01d1d;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
    animation: livePulse 1.4s ease-in-out infinite;
}

@keyframes liveGlow {
    0%, 100% { box-shadow: 0 0 12px 0px rgba(240, 29, 29, 0.25); }
    50%       { box-shadow: 0 0 24px 4px rgba(240, 29, 29, 0.45); }
}

#live-now-section {
    animation: liveGlow 2.5s ease-in-out infinite;
}

#up-next-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 10px 20px 5px;
    border-top: 1px solid rgba(226, 60, 82, 0.3);
    font-family: "Lato", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    animation: bannerSlideIn 0.4s ease both;
    margin-top: 16px;
}

@keyframes bannerSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.up-next-label {
    color: #e23c52;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 13px;
}

.up-next-name {
    color: #f5f5f5;
    font-size: 15px;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.up-next-divider {
    color: #555;
    font-weight: 300;
}

.up-next-countdown {
    display: flex;
    gap: 6px;
    align-items: baseline;
}

.cd-unit {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    font-size: 20px;
    font-weight: 900;
    color: #e23c52;
    font-variant-numeric: tabular-nums;
    min-width: 1.6ch;
}

.cd-unit small {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.04em;
}

/* Mobile adjustments */
@media only screen and (max-width: 596px) {
    #up-next-banner {
        font-size: 13px;
        padding: 8px 12px;
        gap: 4px 8px;
    }

    .cd-unit {
        font-size: 16px;
    }

    .up-next-name {
        max-width: 160px;
        font-size: 13px;
    }
}
