@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;700&family=Share+Tech+Mono&display=swap');

:root {
  --main-bg-color: #0a0a16;
  --panel-bg-color: #151528;
  --panel-bg-color-rgb: 21, 21, 40;
  --panel-border-color: #FFCC00;
  --highlight-color: #05d9e8;
  --secondary-color: #0000FF;
  --tertiary-color: #d600ff;
  --text-color: #cbe3ff;
  --sidebar-width: 250px;
}

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

body {
  font-family: 'Rajdhani', sans-serif;
  background-color: var(--main-bg-color);
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(135deg, rgba(10, 10, 22, 0.6) 0%, rgba(26, 26, 58, 0.5) 100%), url('icons/background.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  animation: backgroundZoom 40s ease-in-out infinite;
}

@keyframes backgroundZoom {
  0% {
    background-size: 100% auto;
  }
  50% {
    background-size: 120% auto;
  }
  100% {
    background-size: 100% auto;
  }
}

body::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.1) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 1;
}

.container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 500px;
  padding: 20px;
  transition: transform 0.3s ease;
}

.sidebar {
  position: fixed;
  left: -var(--sidebar-width);
  top: 0;
  width: var(--sidebar-width);
  height: 100%;
  background-color: var(--panel-bg-color);
  border-right: 2px solid var(--panel-border-color);
  z-index: 10;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 3px 0 15px rgba(0, 0, 0, 0.5);
  padding: 20px;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
  display: none;
  scrollbar-width: none;  
  scrollbar-color: var(--highlight-color) rgba(0, 0, 0, 0.3);
}

.sidebar::-webkit-scrollbar {
  width: 0;  
  display: none;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: var(--highlight-color);
  border-radius: 3px;
  border: 1px solid var(--highlight-color);
  box-shadow: 0 0 5px var(--highlight-color);
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background-color: var(--secondary-color);
  box-shadow: 0 0 8px var(--secondary-color);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--highlight-color);
  border-radius: 3px;
  border: 1px solid var(--highlight-color);
  box-shadow: 0 0 5px var(--highlight-color);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--secondary-color);
  box-shadow: 0 0 8px var(--secondary-color);
}

.sidebar.open {
  left: 0;
  visibility: visible;
  opacity: 1;
  display: block;
}

.sidebar-header {
  padding: 15px 0;
  border-bottom: 1px solid var(--secondary-color);
  margin-bottom: 20px;
}

.sidebar-title {
  font-family: 'Share Tech Mono', monospace;
  color: var(--highlight-color);
  font-size: 24px;
  font-weight: 700;
  text-align: left;
  margin-bottom: 10px;
  text-shadow: 0 0 5px var(--highlight-color);
  padding: 0 0 0 5px;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1;
  max-height: calc(100vh - 150px); 
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-item {
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.3);
  border-left: 2px solid var(--highlight-color);
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text-color);
  position: relative;
  overflow: hidden;
}

.sidebar-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(5, 217, 232, 0.2), transparent);
  transition: left 0.8s ease;
}

.sidebar-item:hover::before {
  left: 100%;
}

.sidebar-item:hover {
  background-color: rgba(5, 217, 232, 0.2);
  transform: translateX(5px);
  box-shadow: 0 0 10px rgba(5, 217, 232, 0.5);
}

.sidebar-icon {
  width: 20px;
  height: 20px;
  margin-right: 15px;
  fill: var(--text-color);
  transition: fill 0.3s ease, transform 0.3s ease;
}

.sidebar-item:hover .sidebar-icon {
  fill: var(--highlight-color);
  transform: scale(1.2);
}

.sidebar-item:nth-child(1) .sidebar-icon {
  fill: #1877f2; 
}

.sidebar-item:nth-child(2) .sidebar-icon {
  fill: #ff0000; 
}

.sidebar-item:nth-child(3) .sidebar-icon {
  fill: #00f2ea; 
}

.sidebar-item:nth-child(4) .sidebar-icon {
  fill: #25d366; 
}

.sidebar-item:nth-child(5) .sidebar-icon {
  fill: var(--tertiary-color); 
}

.sidebar-item:nth-child(6) .sidebar-icon {
  fill: #4caf50; 
}

.sidebar-item-text {
  font-size: 16px;
  letter-spacing: 1px;
}

.sidebar-footer {
  margin-top: 20px;
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
}

.sidebar-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background-color: rgba(var(--panel-bg-color-rgb), 0.8);
  border: 2px solid var(--panel-border-color);
  border-radius: 50%;
  z-index: 11;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(255, 42, 109, 0.3);
}

.sidebar-toggle:hover,
.sidebar-toggle.active {
  background-color: rgba(255, 42, 109, 0.3);
  box-shadow: 0 0 15px var(--secondary-color);
  transform: translateX(0);
}

.sidebar.open .sidebar-toggle {
  position: absolute;
  top: 20px;
  left: calc(var(--sidebar-width) - 60px);
  transform: translateX(0);
}

.sidebar-toggle::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-style: solid;
  border-width: 8px 0 8px 12px;
  border-color: transparent transparent transparent var(--panel-border-color);
  opacity: 0.8;
  transition: opacity 0.3s ease;
  display: none;
}

.sidebar-toggle:hover::after {
  opacity: 1;
}

.sidebar-toggle-icon {
  width: 30px;
  height: 30px;
  fill: var(--text-color);
  transition: all 0.3s ease;
}

body.sidebar-active .container {
  transform: translateX(0);
}

@media (max-width: 768px) {
  body.sidebar-active .container {
    transform: translateX(0);
    margin-left: auto;
    margin-right: auto;
  }
  
  .sidebar {
    width: 100%;
    left: -100%;
  }
  
  .sidebar.open {
    left: 0;
  }
  
  .sidebar.open .sidebar-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    left: auto;
  }
  
  .panel-header {
    flex-direction: column-reverse;
    align-items: center;
    gap: 10px;
  }
  
  .status {
    margin-bottom: 5px;
    justify-content: center;
  }
  
  .chat-modal-content {
    width: 95%;
    height: 90vh;
    max-width: none;
    max-height: none;
    border-radius: 4px;
  }
  
  .chat-close-btn {
    top: 5px;
    right: 5px;
  }
  
  .chat-header {
    padding: 8px;
    font-size: 16px;
  }
  
  #cboxdiv > div:first-child {
    height: calc(100% - 80px) !important;
  }
  .schedule-toggle {
    top: 20px;
    right: 20px;
  }
  
  /* Hide schedule toggle when sidebar is open on mobile */
  body.sidebar-active .schedule-toggle,
  .sidebar.open ~ .schedule-toggle {
    display: none !important;
  }
  
  /* Hide sidebar toggle when schedule menu is open on mobile */
  .schedule-menu.open ~ .sidebar-toggle {
    display: none !important;
  }
  
  .schedule-menu {
    width: 100%;
    right: -100%;
    max-width: 100%;
  }
  
  .schedule-item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "time"
      "show"
      "host";
    gap: 8px;
    padding: 10px;
  }
  
  .schedule-time {
    font-size: 11px;
  }
  
  .schedule-show {
    font-size: 13px;
  }
  
  .host-card {
    padding: 12px 8px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .host-avatar {
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .host-social {
    justify-content: center;
  }
  
  .schedule-header {
    padding-bottom: 8px;
  }
  
  .schedule-content {
    padding: 12px;
  }
  
  .schedule-tabs {
    margin-bottom: 10px;
  }
}

.cyberpunk-panel {
  background-color: rgba(var(--panel-bg-color-rgb), 0.8);
  border: 2px solid var(--panel-border-color);
  box-shadow: 0 0 20px rgba(255, 42, 109, 0.3),
              inset 0 0 15px rgba(5, 217, 232, 0.2);
  border-radius: 8px;
  padding: 25px;
  position: relative;
  overflow: hidden;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 0 10px var(--highlight-color);
}

.highlight {
  color: var(--secondary-color);
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Share Tech Mono', monospace;
  white-space: nowrap;
}

.status-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ff3333;
  box-shadow: 0 0 8px #ff3333;
}

.status-light.active {
  background-color: #33ff66;
  box-shadow: 0 0 8px #33ff66;
  animation: pulse 2s infinite;
}

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

.visualization-container {
  position: relative;
  width: 100%;
  height: 120px;
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--tertiary-color);
  margin-bottom: 20px;
  border-radius: 4px;
  overflow: hidden;
}

.album-art-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  filter: blur(3px);
  transition: background-image 0.5s ease;
}

#visualizer {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.frequency-display {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 16px;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 4px 8px;
  border-radius: 4px;
  border-left: 2px solid var(--highlight-color);
}

.frequency-value {
  color: var(--highlight-color);
}

.station-info {
  margin-bottom: 20px;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.3);
  border-left: 3px solid var(--secondary-color);
  display: flex;
  gap: 15px;
  align-items: center;
}

.station-name {
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--highlight-color);
  text-shadow: 0 0 5px var(--highlight-color);
  letter-spacing: 1px;
}

.album-art {
  width: 60px;
  height: 60px;
  border: 2px solid var(--highlight-color);
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

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

.album-art.has-image img {
  filter: none;
  opacity: 1;
  transition: filter 0.5s ease, opacity 0.5s ease;
}

.album-art.has-image:hover img,
.album-art.has-image.active img {
  filter: none;
  opacity: 1;
}

.station-text {
  flex: 1;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.btn {
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--highlight-color);
  color: var(--text-color);
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn:hover {
  background-color: rgba(5, 217, 232, 0.2);
  box-shadow: 0 0 10px var(--highlight-color);
}

.play-btn {
  width: 70px;
  height: 70px;
  background-color: rgba(255, 42, 109, 0.3);
  border: 2px solid var(--secondary-color);
}

.play-btn:hover {
  background-color: rgba(255, 42, 109, 0.5);
  box-shadow: 0 0 15px var(--secondary-color);
}

.icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.play-btn .icon {
  width: 30px;
  height: 30px;
}

.pause-icon {
  display: none;
}

.volume-slider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.volume-percentage-display {
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    color: var(--text-color);
    width: 40px;
    text-align: right;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  background: #2e2e4a;
  outline: none;
  border-radius: 5px;
  position: relative;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  background: var(--highlight-color);
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 0 5px var(--highlight-color);
  z-index: 2;
  position: relative;
}

.slider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  background: var(--highlight-color);
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 0 5px var(--highlight-color);
  z-index: 2;
  position: relative;
}

.slider {
  background: linear-gradient(to right, var(--highlight-color) 0%, var(--highlight-color) 80%, #2e2e4a 80%, #2e2e4a 100%);
}

.panel-footer {
  display: flex;
  justify-content: center;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
}

.social-icons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 10px;
}

.social-icon-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--highlight-color);
  border-radius: 50%;
  padding: 8px;
  transition: all 0.3s ease;
}

.social-icon-link:hover {
  background-color: rgba(5, 217, 232, 0.2);
  box-shadow: 0 0 15px var(--highlight-color);
  transform: translateY(-5px);
}

.social-icon {
  width: 20px;
  height: 20px;
  fill: var(--text-color);
}

.social-icon-link:nth-child(1) {
  border-color: #1DA1F2;
}
.social-icon-link:nth-child(1):hover {
  background-color: rgba(29, 161, 242, 0.2);
  box-shadow: 0 0 15px #1DA1F2;
}
.social-icon-link:nth-child(1) .social-icon {
  fill: #1DA1F2;
}

.social-icon-link:nth-child(2) {
  border-color: #4267B2;
}
.social-icon-link:nth-child(2):hover {
  background-color: rgba(66, 103, 178, 0.2);
  box-shadow: 0 0 15px #4267B2;
}
.social-icon-link:nth-child(2) .social-icon {
  fill: #4267B2;
}

.social-icon-link:nth-child(3) {
  border-color: #E1306C;
}
.social-icon-link:nth-child(3):hover {
  background-color: rgba(225, 48, 108, 0.2);
  box-shadow: 0 0 15px #E1306C;
}
.social-icon-link:nth-child(3) .social-icon {
  fill: #E1306C;
}

.chat-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.chat-modal.show {
  opacity: 1;
  visibility: visible;
}

.chat-modal-content {
  width: 90%;
  max-width: 800px;
  height: 80vh;
  max-height: 800px;
  background-color: var(--panel-bg-color);
  border: 2px solid var(--panel-border-color);
  box-shadow: 0 0 20px rgba(255, 42, 109, 0.3),
              inset 0 0 15px rgba(5, 217, 232, 0.2);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-iframe-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#cboxdiv {
  height: 100% !important;
  display: flex;
  flex-direction: column;
}

#cboxdiv > div:first-child {
  flex: 1;
  height: auto !important;
}

.chat-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--secondary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 2;
  transition: all 0.2s ease;
}

.chat-close-btn svg {
  width: 20px;
  height: 20px;
  fill: var(--text-color);
  transition: fill 0.2s ease, transform 0.2s ease;
}

.chat-close-btn:hover {
  background-color: rgba(255, 42, 109, 0.3);
  box-shadow: 0 0 10px var(--secondary-color);
  transform: scale(1.1);
}

.chat-close-btn:hover svg {
  fill: var(--highlight-color);
  transform: rotate(90deg);
}

.chat-header {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 10px 15px;
  font-family: 'Share Tech Mono', monospace;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
}

.schedule-menu {
  position: fixed;
  right: -350px;
  top: 0;
  width: 350px;
  height: 100%;
  background-color: var(--panel-bg-color);
  border-left: 2px solid var(--panel-border-color);
  z-index: 10;
  overflow-y: auto;
  box-shadow: -3px 0 15px rgba(0, 0, 0, 0.5);
  transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  scrollbar-width: thin;
  scrollbar-color: var(--highlight-color) rgba(0, 0, 0, 0.3);
  background-color: var(--panel-bg-color);
}

.schedule-menu.open {
  right: 0;
  transition: none;
}

.schedule-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: rgba(var(--panel-bg-color-rgb), 0.8);
  border: 2px solid var(--tertiary-color);
  border-radius: 50%;
  z-index: 11;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(214, 0, 255, 0.3);
  overflow: hidden;
}

.schedule-toggle-icon {
  width: 30px;
  height: 30px;
  fill: var(--text-color);
  transition: fill 0.3s ease, transform 0.3s ease;
}

.schedule-toggle:hover {
  background-color: rgba(214, 0, 255, 0.3);
  box-shadow: 0 0 15px var(--tertiary-color);
}

.schedule-toggle:hover .schedule-toggle-icon {
  fill: var(--highlight-color);
}

.schedule-content {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--tertiary-color);
}

.schedule-header h3 {
  font-family: 'Share Tech Mono', monospace;
  color: var(--highlight-color);
  margin: 0;
  font-size: 20px;
  text-shadow: 0 0 5px var(--highlight-color);
  letter-spacing: 1px;
  order: 2;
  text-align: center;
  flex: 1;
}

.schedule-close-btn {
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--panel-border-color);
  border-radius: 50%;
  transition: none;
  order: 1;
  box-shadow: none;
}

.schedule-close-btn svg {
  width: 35px;
  height: 35px;
  fill: var(--text-color);
  transition: fill 0.3s ease, transform 0.3s ease;
}

.schedule-close-btn:hover,
.schedule-close-btn:active,
.schedule-menu.open .schedule-close-btn {
  background-color: rgba(255, 42, 109, 0.3);
  transform: none;
}

.schedule-close-btn:hover svg,
.schedule-close-btn:active svg,
.schedule-menu.open .schedule-close-btn svg {
  fill: var(--highlight-color);
  transform: none;
}

.schedule-tabs {
  display: flex;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  margin-bottom: 15px;
  padding: 2px;
  position: relative;
  overflow: hidden;
}

.schedule-tabs::before {
  content: '';
  position: absolute;
  width: 50%;
  height: calc(100% - 4px);
  background-color: rgba(255, 42, 109, 0.2);
  border-radius: 3px;
  top: 2px;
  left: 2px;
  z-index: 0;
  transition: transform 0.3s ease;
  transform: translateX(0);
}

.schedule-tabs.hosts-active::before {
  transform: translateX(100%);
}

.schedule-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-color);
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  padding: 8px 0;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.schedule-tab.active {
  color: var(--highlight-color);
  text-shadow: 0 0 5px var(--highlight-color);
}

.schedule-tab-content {
  display: none;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--highlight-color) rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease forwards;
}

.schedule-tab-content::-webkit-scrollbar {
  width: 4px;
}

.schedule-tab-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}

.schedule-tab-content::-webkit-scrollbar-thumb {
  background-color: var(--highlight-color);
  border-radius: 3px;
}

.schedule-tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.schedule-day {
  margin-bottom: 20px;
  position: relative;
  background-color: var(--panel-bg-color);
  border-left: 2px solid var(--panel-border-color);
  border-radius: 4px;
  padding: 10px;
  overflow: hidden;
}

.schedule-day::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 42, 109, 0.05) 0%, transparent 100%);
  pointer-events: none;
}

.day-header {
  color: var(--highlight-color);
  font-family: 'Share Tech Mono', monospace;
  margin-bottom: 10px;
  font-weight: bold;
  display: inline-block;
  position: relative;
  text-shadow: 0 0 5px var(--highlight-color);
}

.day-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--highlight-color);
  box-shadow: 0 0 5px var(--highlight-color);
}

.schedule-item {
  padding: 8px;
  margin-bottom: 6px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-areas:
    "time show"
    "time host";
  gap: 2px 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-left: 1px solid var(--highlight-color);
}

.schedule-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(5, 217, 232, 0.1), transparent);
  transition: left 0.8s ease;
}

.schedule-item:hover::before {
  left: 100%;
}

.schedule-item:hover {
  transform: translateX(5px);
  background-color: rgba(5, 217, 232, 0.1);
  box-shadow: 0 0 8px rgba(5, 217, 232, 0.2);
}

.schedule-time {
  grid-area: time;
  font-family: 'Share Tech Mono', monospace;
  color: var(--highlight-color);
  font-size: 12px;
  display: flex;
  align-items: center;
  text-shadow: 0 0 3px var(--highlight-color);
}

.schedule-show {
  grid-area: show;
  font-weight: bold;
  font-size: 14px;
  color: var(--secondary-color);
}

.schedule-host {
  grid-area: host;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.host-card {
  display: flex;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 15px;
  border-left: 2px solid var(--panel-border-color);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.host-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 42, 109, 0.05) 0%, transparent 100%);
  pointer-events: none;
}

.host-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.host-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--highlight-color);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
  overflow: hidden;
  flex-shrink: 0;
}

.host-avatar svg {
  width: 40px;
  height: 40px;
  fill: var(--highlight-color);
}

.host-info {
  flex: 1;
}

.host-info h4 {
  margin: 0 0 8px 0;
  color: var(--highlight-color);
  font-family: 'Share Tech Mono', monospace;
}

.host-info p {
  margin: 0 0 12px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

.host-social {
  display: flex;
  gap: 8px;
}

.host-social-link {
  width: 30px;
  height: 30px;
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--highlight-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.host-social-link svg {
  width: 16px;
  height: 16px;
  fill: var(--text-color);
  transition: fill 0.3s ease;
}

.host-social-link:hover {
  background-color: rgba(5, 217, 232, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 3px 10px rgba(5, 217, 232, 0.3);
}

.host-social-link:hover svg {
  fill: var(--highlight-color);
}

.schedule-menu.open + .schedule-toggle,
.schedule-menu.open ~ .schedule-toggle {
  display: none;
}

@media (max-width: 480px) {
  .schedule-toggle {
    width: 50px;  
    height: 50px; 
    top: 20px;    
    right: 20px;
  }
  
  .schedule-toggle-icon {
    width: 30px;  
    height: 30px; 
  }
}

@media (max-width: 768px) {
  body.sidebar-active .container {
    transform: translateX(0);
    margin-left: auto;
    margin-right: auto;
  }
  
  .sidebar {
    width: 100%;
    left: -100%;
  }
  
  .sidebar.open {
    left: 0;
  }
  
  .sidebar.open .sidebar-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    left: auto;
  }
  
  .panel-header {
    flex-direction: column-reverse;
    align-items: center;
    gap: 10px;
  }
  
  .status {
    margin-bottom: 5px;
    justify-content: center;
  }
  
  .chat-modal-content {
    width: 95%;
    height: 90vh;
    max-width: none;
    max-height: none;
    border-radius: 4px;
  }
  
  .chat-close-btn {
    top: 5px;
    right: 5px;
  }
  
  .chat-header {
    padding: 8px;
    font-size: 16px;
  }
  
  #cboxdiv > div:first-child {
    height: calc(100% - 80px) !important;
  }
  .schedule-toggle {
    top: 20px;
    right: 20px;
  }
  
  /* Hide schedule toggle when sidebar is open on mobile */
  body.sidebar-active .schedule-toggle,
  .sidebar.open ~ .schedule-toggle {
    display: none !important;
  }
  
  /* Hide sidebar toggle when schedule menu is open on mobile */
  .schedule-menu.open ~ .sidebar-toggle {
    display: none !important;
  }
  
  .schedule-menu {
    width: 100%;
    right: -100%;
    max-width: 100%;
  }
  
  .schedule-item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "time"
      "show"
      "host";
    gap: 8px;
    padding: 10px;
  }
  
  .schedule-time {
    font-size: 11px;
  }
  
  .schedule-show {
    font-size: 13px;
  }
  
  .host-card {
    padding: 12px 8px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .host-avatar {
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .host-social {
    justify-content: center;
  }
  
  .schedule-header {
    padding-bottom: 8px;
  }
  
  .schedule-content {
    padding: 12px;
  }
  
  .schedule-tabs {
    margin-bottom: 10px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .schedule-menu {
    width: 320px;
    right: -320px;
  }
  
  .schedule-content {
    padding: 15px;
  }
  
  .host-info p {
    font-size: 12px;
  }
}

@media (max-height: 600px) {
  .schedule-content {
    padding: 10px;
  }
  
  .schedule-day {
    margin-bottom: 12px;
  }
  
  .schedule-item {
    padding: 6px;
    margin-bottom: 4px;
  }
  
  .host-card {
    padding: 10px;
    margin-bottom: 10px;
  }
  
  .host-avatar {
    width: 50px;
    height: 50px;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .schedule-menu {
    padding-bottom: 20px;
  }
  
  .schedule-tab-content {
    max-height: 60vh;
  }
  
  .host-card {
    flex-direction: row;
    text-align: left;
    align-items: center;
  }
  
  .host-avatar {
    margin-right: 10px;
    margin-bottom: 0;
  }
  
  .host-social {
    justify-content: flex-start;
  }
}

/* Fix for iOS Safari 100vh issue */
@supports (-webkit-touch-callout: none) {
  body, 
  .sidebar, 
  .schedule-menu {
    height: -webkit-fill-available;
  }
}

/* Improve touch targets for mobile devices */
.btn, 
.sidebar-toggle, 
.schedule-toggle, 
.schedule-close-btn,
.host-social-link,
.social-icon-link {
  min-width: 44px;  /* Minimum recommended touch target size */
  min-height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Better scrolling on iOS */
.sidebar,
.schedule-menu,
.schedule-tab-content {
  -webkit-overflow-scrolling: touch;
}

/* Fix for Firefox */
@-moz-document url-prefix() {
  .slider::-moz-range-track {
    background: #2e2e4a;
  }
  
  .slider::-moz-range-progress {
    background: var(--highlight-color);
  }
}

/* Edge/IE specific fixes */
@supports (-ms-ime-align:auto) {
  .slider {
    margin: 0;
  }
}

/* Improve compatibility for mobile browsers */
@media (hover: none) {
  /* Remove hover effects for touch devices where they can cause issues */
  .sidebar-item:hover::before,
  .schedule-item:hover::before {
    display: none;
  }
  
  /* Make buttons easier to press on mobile */
  .btn, 
  .schedule-toggle, 
  .sidebar-toggle {
    padding: 12px;
  }
}

/* Fix for notch devices */
@supports (padding: max(0px)) {
  body {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }
}

.side-banner {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 160px;
  height: 400px;
  background-color: rgba(var(--panel-bg-color-rgb), 0.8);
  border: 2px solid var(--panel-border-color);
  box-shadow: 0 0 15px rgba(255, 42, 109, 0.3);
  z-index: 5;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 6px;
  max-height: calc(100vh - 140px);
}

.left-banner {
  left: 10px;
  top: calc(50% + 10px);
}

.right-banner {
  right: 10px;
  top: calc(50% + 10px);
}

.banner-title {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 8px;
  text-align: center;
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  letter-spacing: 1px;
}

.banner-image {
  flex: 1;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner-image img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 1200px) {
  .side-banner {
    display: none;
  }
}