/* ---------------- RESET ---------------- */
* { box-sizing:border-box;
 }
body {
  margin:0;
  font-family: 'Inter', system-ui;
  background: radial-gradient(circle at top, #0c0f1a, #000);
  color:#fff;
  overflow-x:hidden;
}

#female-sign {
  width: 20px;
  margin-left: 5px;
}

.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10002;
}

.popup-box {
  width: 320px;
  background: rgba(12, 15, 26, 0.9);
  border: 1px solid rgba(36, 161, 222, 0.3);
  border-radius: 20px;
  backdrop-filter: blur(15px);
  box-shadow: 0 0 25px rgba(36, 161, 222, 0.2), 0 0 80px rgba(36, 161, 222, 0.1);
  padding: 2rem 1.5rem;
  text-align: center;
  animation: fadeIn 0.5s ease forwards;
  position: relative;
}

@keyframes fadeIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.popup-header {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(45deg, #24a1de, #60efff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 8px rgba(36, 161, 222, 0.4);
}

.popup-subtitle {
  font-size: 1rem;
  color: #aaa;
  margin-bottom: 1.2rem;
}

.popup-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.popup-buttons a {
  text-decoration: none;
}

.popup-btn {
  padding: 0.8rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  cursor: pointer;
  transition: all 0.35s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.popup-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(36, 161, 222, 0.3), rgba(96, 239, 255, 0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popup-btn:hover::after {
  opacity: 1;
}

.join-btn {
  background: linear-gradient(135deg, #24a1de, #1b7bb0);
  box-shadow: 0 0 12px rgba(36, 161, 222, 0.4);
}

.join-btn:hover {
  background: linear-gradient(135deg, #2ec0ff, #24a1de);
  box-shadow: 0 0 16px rgba(36, 161, 222, 0.6);
}

.already-btn {
  background: rgba(255,255,255,0.05);
}

.already-btn:hover {
  background: rgba(255,255,255,0.15);
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 1.3rem;
  color: #24a1de;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s;
}

.close-btn:hover {
  color: #fff;
}

/* From Uiverse.io by Mangesh636 */ 
.telegram-btn {
  background: transparent;
  margin-top: 20px;
  position: relative;
  padding: 5px 15px;
  display: flex;
  align-items: center;
  font-size: 17px;
  font-family: 'Inter', system-ui;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgb(36, 161, 222);
  border-radius: 25px;
  outline: none;
  overflow: hidden;
  color: rgb(36, 161, 222);
  transition: color 0.3s 0.1s ease-out;
  text-align: center;
}

.telegram-btn span {
  margin: 10px;
}

.telegram-btn::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  content: "";
  border-radius: 50%;
  display: block;
  width: 20em;
  height: 20em;
  left: -5em;
  text-align: center;
  transition: box-shadow 0.5s ease-out;
  z-index: -1;
}

.telegram-btn:hover {
  color: #fff;
  border: 1px solid rgb(36, 161, 222);
}

.telegram-btn:hover::before {
  box-shadow: inset 0 0 0 10em rgb(36, 161, 222);
}



/* ---------------- LOADER ---------------- */
#loader {
  position:fixed;
  inset:0;
  background:#000;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:48px;
  font-weight:700;
  letter-spacing:6px;
  z-index:9999;
  animation:pulse 1.5s infinite;
}
@keyframes pulse {
  0%{opacity:.3}
  50%{opacity:1}
  100%{opacity:.3}
}

/* ---------------- LAYOUT ---------------- */
.app {
  display:flex;
  min-height:100vh;
}

/*Link*/
a {
    text-decoration: none;
    color: #fff;
  }

/* Sidebar */
.sidebar {
  width:220px;
  background:rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  border-right:1px solid rgba(255,255,255,0.08);
  padding:20px;
}
.sidebar h2 {
  font-size:18px;
  margin-bottom:16px;
}
.channel {
  padding:10px;
  border-radius:10px;
  margin-bottom:8px;
  background:rgba(255,255,255,0.03);
  cursor:pointer;
  transition:.3s;
  display: flex;
  align-items: center;
}
.channel:hover {
  background:rgba(36, 160, 222, 0.801);
}

/* Main */
.main {
  flex:1;
  padding:20px;
}

/* Header */
.header {
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.logo {
  font-size:24px;
  font-weight:700;
  letter-spacing:3px;
}
.live-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: linear-gradient(90deg, #dc2626, #ef4444);
  animation: pulse-live 2s infinite ease-in-out;
  padding: 6px 12px;
  border-radius: 9999px;
  color: white;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  line-height: 1;
}

.live-badge .badge-dot {
  width: 8px;
  height: 8px;
  background-color: white;
  border-radius: 50%;
  margin-right: 6px;
  display: inline-block;
}

.live-badge .badge-dot.ping {
  position: absolute;
  opacity: 0.75;
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes pulse-live {
  0%, 100% { transform: scale(1); box-shadow: 0 0 15px #ef4444; }
  50% { transform: scale(1.05); box-shadow: 0 0 25px #ef4444; }
}

/* Hero */
.hero h1 {
  margin:0;
  text-align: center;
  margin-top: 5px;
  font-size:20px;
}

/* Player */
.player-box {
    margin-top: 15px;
    margin-bottom: 15px;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 0 30px rgba(36, 160, 222, 0.267);
  position:relative;
}

/* Neon Overlay */
.player-box::after {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
}

/* Footer */

.footer-container {
  background: rgba(12, 15, 26, 0.95);
  padding: 40px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 40px;
  color: #ccc;
  font-size: 14px;
  text-align: center;
}

.footer-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px dashed rgba(255, 255, 255, .18);
}

.footer-section a {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  margin-top: 20px;
  padding: 0 15px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: #ccc;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #24a1de;
}

.footer-section a:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  height: 14px;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.2);
}


.footer-bottom {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid rgba(255, 255, 255, 0.05);
  opacity: 0.6;
  font-size: 13px;
}

/* ---------------- CONTENT BOX ---------------- */
.content-box {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 30px;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.content-box h1, .content-box h2 { color: #fff; }
.content-box p { color: #ccc; line-height: 1.6; }
.content-box ul { color: #ccc; margin-left: 20px; }
.content-box li { margin-bottom: 8px; }
.disclaimer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  color: #999;
  font-size: 0.9rem;
}

/* Player Containers */
.frame-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
    border-radius: 12px;
}
.frame-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.shaka-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
}
.shaka-video-container video {
    width: 100%;
    height: 100%;
    background: #000;
    object-fit: contain;
}
.shaka-spinner-container,
.shaka-spinner,
.shaka-spinner-svg {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Mobile Layout Fixes & Desktop Restoration */
@media (max-width: 900px) {
    /* Fix Mobile Spacing (Header to Video) */
    .main {
        padding: 10px 20px !important;
    }
    .hero {
        margin-top: 20px !important;
        height: auto !important;
        margin-bottom: 15px !important;
    }
    .player-box {
        margin-top: 0 !important;
    }

    /* Force Sidebar Display & Style for Mobile */
    .sidebar {
        display: block !important;
        width: 100% !important;
        border-right: none !important;
        background: transparent !important;
        backdrop-filter: none !important;
        padding: 0 !important;
        margin-top: 2rem;
    }
    
    /* Container padding for mobile */
    #sidebar {
        padding: 0 15px 30px 15px;
    }
    
    .sidebar h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        color: #fff;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 0.5rem;
        font-weight: 700;
        display: flex;
        align-items: center;
    }
    
    .sidebar h2::before {
        content: '';
        display: inline-block;
        width: 4px;
        height: 24px;
        background: #24a1de;
        margin-right: 10px;
        border-radius: 2px;
    }

    /* Channel Items Grid on Mobile */
    .sidebar .channel {
        background: rgba(255, 255, 255, 0.05) !important;
        margin-bottom: 0.8rem;
        border-radius: 12px;
        padding: 1rem;
        border: 1px solid rgba(255,255,255,0.05);
    }
    
    .sidebar .telegram-btn {
        width: 100%;
        justify-content: center;
        margin-top: 1.5rem;
    }
}

@media (min-width: 901px) {
    /* Restore Desktop Sidebar Positioning */
    #sidebar .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 40;
        height: 100vh;
        width: 220px;
    }
    
    .main {
        margin-left: 220px;
        width: auto;
    }
    
    #sidebar {
        padding: 0;
    }
}
