:root {
    --base-width: 75rem;
    --scale-factor: clamp(0.85, 100vw / var(--base-width), 3.2);
    --countdown-height: 6.25rem;
    --header-height: calc(4.7rem * var(--scale-factor));
    --footer-height: calc(3.125rem * var(--scale-factor));
    --ad-height: 4.5rem;
    --ad-width: 20rem;
    --nav-padding: 0.375rem;
    --nav-height: calc(var(--ad-height) + var(--nav-padding) * 2);
    --sticky-unscaled-height: 4.7rem;
}
html {
    overflow-x: hidden;
    min-height: 22.5rem;
}
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    transform: none;
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -5;
    transition: background 0.3s ease;
}
body.gif-failed::before {
    background: rgba(0, 0, 0, 0.7);
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: bolder;
    margin-bottom: 1rem;
}
a {
    color: var(--accent-color);
    text-decoration: none;
}
a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}
.main-nav {
    background: var(--secondary-bg);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: var(--shadow-md);
    height: var(--nav-height);         
    padding: 0;                        
    display: flex;                     
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
}
#logoImage {
    cursor: pointer;
}
.logo img {
    height: 3.75rem;
    width: auto;
    margin-right: 0.625rem;
    align-items: center;
}
.logo-text {
    color: var(--text-primary);
    align-items: center;
    font-size: 1.4em;
}
.year-badge {
    font-size: 1.4em;
    color: var(--text-primary);
    margin-left: 0.3125rem;
    align-items: center;
}
.mobile-menu-overlay,
.mobile-menu-panel {
    display: none;
}
.mobile-menu-overlay.active,
.mobile-menu-panel.active {
    display: block;
}
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
}
.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -18.75rem;
    width: 18.75rem;
    height: 100vh;
    background: var(--secondary-bg);
    box-shadow: var(--shadow-lg);
    z-index: 2001;
    transition: right 0.3s ease;
    display: block;
}
.mobile-menu-panel.active {
    right: 0;
}
.mobile-menu-header {
    padding: 1.25rem;
    border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
}
.mobile-menu-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5em;
    cursor: pointer;
}
.mobile-nav-links {
    list-style: none;
    padding: 1.25rem 0;
    margin: 0;
}
.mobile-nav-links li {
    margin: 0;
}
.mobile-nav-links a {
    display: block;
    padding: 0.9375rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.3s;
}
.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    background: var(--button-color);
    color: white;
}
.mobile-menu-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2em;
    cursor: pointer;
    padding: 0.375rem;
    border-radius: var(--border-radius-md);
    transition: background 0.3s;
}
.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.9375rem;
}
.nav-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--base-width);
    margin: 0 auto;
    padding: 0 1rem;
    height: 100%;
}
.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
}
#adPlaceholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--ad-height) !important;
    background-color: transparent !important;
    color: var(--text-secondary);
    border: 0.0625rem solid rgba(245, 245, 220, 0.1);
    border-radius: var(--border-radius-md);
    width: var(--ad-width);
    height: var(--ad-height);
    flex-shrink: 0;
}

#adPlaceholder * {
    opacity: 1 !important;
    background-color: initial !important;
}

#adPlaceholder img {
    opacity: 1 !important;
    background: none !important;
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin: auto;
}

#adPlaceholder p,
#adPlaceholder span,
#adPlaceholder div,
#adPlaceholder a {
    opacity: 1 !important;
    color: inherit !important;
    background: none !important;
}

body.light-theme #adPlaceholder {
    border: 0.0625rem solid rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
    background-color: transparent !important;
}

body.light-theme #adPlaceholder * {
    opacity: 1 !important;
}
.nav-item {
    display: flex;
    align-items: center;
}
.nav-item #adPlaceholder {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-button {
    background: var(--button-color);
    border: 1px solid rgba(245, 245, 220, 0.2);
    border-radius: var(--border-radius-md);
    color: var(--text-color);
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    background: rgba(245, 245, 220, 0.1);
    border-color: rgba(245, 245, 220, 0.3);
}

body.light-theme .search-button {
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--text-color-light);
}

body.light-theme .search-button:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.3);
}

.sticky-content * {
    pointer-events: auto;
}
.sticky-content {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--nav-height);
    height: var(--header-height);
    z-index: 999;
    background-color: transparent;
    pointer-events: none;
    overflow: visible;
    width: 100%;

}

.header-section {
    width: 100%;
    max-width: var(--base-width);
    margin: 0 auto;
    background-color: transparent;
    flex-shrink: 0;
    height: 100%;
    overflow: visible;
}
.container.layout-header {
    max-width: var(--base-width);
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    position: relative;
}
.layout-header > div {
    align-self: stretch;
}
.layout-header > * {
    flex-shrink: 0;
}
.layout-header {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: transparent;
    border-top: none !important;
    z-index: 998;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0 0.375rem 1rem;
}
.layout-header .header {
    top: 0.375rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    padding: 0;
    max-width: 25rem;
    min-width: 18.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.header {
    text-align: center;
    margin-bottom: 0;
    padding: 0.375rem 0;
    background-color: transparent;
}
.title {
    font-size: 1.5em;
    margin-bottom: 0.3125rem;
    text-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.5);
    color: var(--title-color);
}
.countdown-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.125rem;
    margin-bottom: 0.125rem;
}
.countdown {
    background: rgba(0, 0, 0, 0.1);
    color: #f5f5dc;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
    min-width: 17.5rem;
    font-size: 0.9em;

    height: auto;
    line-height: 1.4;
}
.layout-header .radio-player {
    padding-top: 0.05rem;
    padding-bottom: 0.05rem;
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--card-bg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    margin-top: 0.4rem;
    box-shadow: var(--shadow-md);
}
.layout-header .radio-player audio {
    width: 100%;
    height: 2rem;
}
.player-title {
  font-size: 0.85rem;
  margin-bottom: 0.1rem;
  text-align: center;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.song-meta {
  font-size: 0.85rem;
  margin-bottom: 0.1rem;
  text-align: center;
  width: 100%;  
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.layout-header .user-status {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    background: var(--card-bg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    margin-top: 0.4rem;
    box-shadow: var(--shadow-md);
}
.layout-header .header, 
.layout-header .radio-player,
.layout-header .user-status {
    flex: 0 0 20rem;
    height: var(--sticky-unscaled-height);
    max-width: 20rem;
    min-width: 16rem;
    align-self: flex-start;
}
#loginPrompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
}
#loginPrompt .btn,
#loginPrompt .btn,
#userInfo .btn {
  font-size: 0.95em;
  padding: 0.375rem 1rem;
  min-width: 6rem;
  height: auto;
}
#loginPrompt > button,
#loginPrompt > .btn,
#guestLoginBtn {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    align-self: center !important;
}
.main-content .container {
    margin-top: 0;
    max-width: var(--base-width);
    margin-left: auto;
    margin-right: auto;
}
.main-content {
    position: fixed;
    top: calc(var(--nav-height) + var(--sticky-unscaled-height) + 0.75rem) !important;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    background: transparent;
    z-index: 998;
    scroll-behavior: smooth;
    scroll-padding-top: 4.75rem;
    width: 100%;
    padding-left: calc(0.75rem);
}
.main-content > .container:first-child {
    margin-top: 0;
}
.main-content .alerts {
    margin-top: 0;
}
.main-content::-webkit-scrollbar {
    width: 0.75rem;
}
.main-content::-webkit-scrollbar-track {
    background: var(--primary-bg);
    border-radius: var(--border-radius-md);
}
.main-content::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: var(--border-radius-md);
    border: 0.125rem solid var(--primary-bg);
}
.main-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}
.main-content::before {
    content: '';
    position: absolute;
    top: -0.0625rem;
    left: 0;
    right: 0;
    height: 0.0625rem;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.3;
}
.calendar-container {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: var(--base-width);
    position: relative;
    overflow: visible;
    contain: layout style;
    margin: 0 auto;
    max-width: var(--base-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.25rem 1rem 1.25rem;
    align-self: center;
    margin-top: 0;
}
.container {
    position: relative;
    max-width: var(--base-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 1.25rem;
}
.dashboard-container {
    position: relative;
    max-width: var(--base-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 1.25rem;
    z-index: 1999;
    margin-top: auto;
}
#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--footer-height);
    margin: 0;
    padding: 0.25rem 0;
    background: var(--secondary-bg);
    border-radius: 0;
    text-align: center;
    box-shadow: 0 -0.125rem 0.625rem rgba(0, 0, 0, 0.3);
    border-bottom: 0.125rem solid var(--button-color);
    z-index: 999;
    font-size: 0.9em;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
}
.modal-content {
    position: relative;
    margin: 3.125rem auto;
    background: var(--secondary-bg);
    padding: 1.875rem;
    border-radius: var(--border-radius-lg);
    max-width: 37.5rem;
    width: 90%;
    box-shadow: var(--shadow-lg);
    animation: modalFadeIn 0.3s;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-3.125rem); }
    to { opacity: 1; transform: translateY(0); }
}
.close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 1.75em;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.3s;
  z-index: 10;
}
.close:hover {
    color: var(--text-primary);
}
.image-preview {
    max-width: 100%;
    max-height: 12.5rem;
    border-radius: var(--border-radius-md);
    margin-top: 13.125rem;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}
.alert {
    margin-top: 0;
    margin-bottom: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-radius: var(--border-radius-md);
    display: none;
    animation: slideIn 0.3s;
    border-left: 0.25rem solid;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-1.25rem); }
    to { opacity: 1; transform: translateY(0); }
}
.alert-success {
    background: rgba(29, 209, 161, 0.1);
    color: #1dd1a1;
    border-color: #1dd1a1;
}
.alert-error {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    border-color: #ff6b6b;
}
.manager-panel {
    background: var(--secondary-bg);
    border-radius: var(--border-radius-lg);
    padding: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 1.875rem;
    box-shadow: var(--shadow-md);
    padding-left: 1rem;
    text-align: left;
}
.manager-panel h2 {
    border-bottom: 0.0625rem solid rgba(245, 245, 220, 0.1);
    padding-bottom: 0.625rem;
    margin-bottom: 1.25rem;
}
.admin-panel {
    background: var(--secondary-bg);
    border-radius: var(--border-radius-lg);
    padding: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 1.875rem;
    box-shadow: var(--shadow-md);
}
.admin-panel h2 {
    border-bottom: 0.0625rem solid rgba(245, 245, 220, 0.1);
    padding-bottom: 0.625rem;
    margin-bottom: 1.25rem;
}
.admin-section {
    background: var(--card-bg);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    margin-bottom: 1.25rem;
}
.admin-section h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1em;
}
.admin-section button {
    margin-right: 0.625rem;
    margin-bottom: 0.625rem;
}

.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper input[type="password"],
.password-input-wrapper input[type="text"] {
    width: 100%;
    padding-right: 2.5rem;
}

.password-toggle {
    position: absolute;
    right: 0.625rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.375rem;
    transition: color 0.3s, opacity 0.3s;
    z-index: 2;
}

.password-toggle:hover {
    color: var(--text-primary);
    opacity: 0.8;
}

.password-toggle i {
    font-size: 1rem;
    pointer-events: none;
}

.timezone-selector select,
#inputTimezone {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color, #444);
    border-radius: var(--border-radius-md);
    padding: 0.4rem 0.75rem;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}


.timezone-selector select:hover,
#inputTimezone:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px var(--accent-color-faded, rgba(0,0,0,0.1));
}

.timezone-selector select:focus,
#inputTimezone:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px var(--accent-color-faded, rgba(0,0,0,0.15));
}


.timezone-selector {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
}

.timezone-selector select {
    font-size: 0.85rem;   
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm, 4px); 
    min-width: 75px;      
    line-height: 1.2;     
}


.mobile-warning {
    display: none; 
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--secondary-bg);
    border: 2px solid var(--accent-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    max-width: 90vw;
    width: 20rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    animation: fadeInScale 0.5s ease;
}

.mobile-warning::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

.mobile-warning h3 {
    margin: 0 0 1rem 0;
    color: var(--accent-color);
    font-size: 1.2em;
}

.mobile-warning p {
    margin: 0 0 1rem 0;
    line-height: 1.5;
    color: var(--text-primary);
}

.mobile-warning .icon {
    font-size: 2em;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

#sponsorSection img {
    max-width: 900px !important;     
    max-height: 120px;     
    object-fit: contain;
    display: block;
    margin: auto;
}
#sponsorSection > div {
    padding: 16px 0 !important;
}
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@media screen and (max-width: 1023px) {
    .mobile-warning {
        display: block;
    }
    
    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        backdrop-filter: blur(3px);
        z-index: 9998;
        pointer-events: none;
    }
}

@media screen and (min-width: 1024px) {
    .mobile-warning {
        display: none !important;
    }
}

.tier-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.tier-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}

.tier-text {
  flex: 1;
}


