/* ========================= BROADCAST PAGE RESET
========================= */

.broadcast-container {
  padding: 14px 14px 90px;
  background: #000;
  min-height: 100vh;
}

/* =========================
   TITLE
========================= */

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 14px;
  color: #fff;
}

/* =========================
   VERTICAL FEED LAYOUT
========================= */

.channel-rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* =========================
   CARD DESIGN
========================= */

.channel-card {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: #0a0a0a;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.channel-card:active {
  transform: scale(0.98);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* =========================
   IMAGE FIXED FRAMING
========================= */
/* =========================
   BROADCAST PAGE RESET
========================= */

.broadcast-container {
  padding: 14px 14px 90px;
  background: #000;
  min-height: 100vh;
}

/* =========================
   TITLE
========================= */

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 14px;
  color: #fff;
}

/* =========================
   VERTICAL FEED LAYOUT
========================= */

.channel-rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* =========================
   CARD DESIGN
========================= */

.channel-card {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: #0a0a0a;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.channel-card:active {
  transform: scale(0.98);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* =========================
   IMAGE FIXED FRAMING
========================= */
.channel-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: radial-gradient(circle, #111, #000);
  transition: opacity 0.4s ease;
}

/* =========================
   OVERLAY TITLE
========================= */

.channel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.95),
    rgba(0,0,0,0.6),
    rgba(0,0,0,0)
  );
}

/* =========================
   LIVE BADGE
========================= */

.channel-live {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #e50914;
  color: #fff;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

/* =========================
   LIVE PULSE INDICATOR FIXED
========================= */

.channel-signal {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 4px;
  background: rgba(0,0,0,0.6);
  padding: 6px 8px;
  border-radius: 10px;
  backdrop-filter: blur(6px);
}

.channel-signal span {
  width: 3px;
  height: 12px;
  background: #ffd000;
  border-radius: 2px;
  transform-origin: bottom center;
  animation: signal 1s infinite ease-in-out;
}

.channel-signal span:nth-child(1) { animation-delay: 0s; }
.channel-signal span:nth-child(2) { animation-delay: 0.2s; }
.channel-signal span:nth-child(3) { animation-delay: 0.4s; }

@keyframes signal {
  0% { transform: scaleY(0.4); opacity: 0.4; }
  50% { transform: scaleY(1.4); opacity: 1; }
  100% { transform: scaleY(0.4); opacity: 0.4; }
}

/* =========================
   LOADING / ERROR UI
========================= */

#broadcast-status {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 15px;
  text-align: center;
}

.status-box {
  background: #0f0f0f;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid #1f1f1f;
  max-width: 300px;
  animation: fadeIn 0.3s ease;
}

.status-loader {
  width: 38px;
  height: 38px;
  border: 3px solid #222;
  border-top: 3px solid #f5c542;
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin 1s linear infinite;
}

.status-btn {
  background: #f5c542;
  color: #000;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  margin-top: 12px;
}

.hidden { display: none; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* =========================
   DESKTOP LIMIT
========================= */
@media (min-width: 900px) {
  .broadcast-container {
    max-width: 900px;
    margin: 0 auto;
  }
}

/* =========================
   OVERLAY TITLE
========================= */

.channel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.95),
    rgba(0,0,0,0.6),
    rgba(0,0,0,0)
  );
}

/* =========================
   LIVE BADGE
========================= */

.channel-live {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #e50914;
  color: #fff;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

/* =========================
   LIVE PULSE INDICATOR FIXED
========================= */

.channel-signal {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 4px;
  background: rgba(0,0,0,0.6);
  padding: 6px 8px;
  border-radius: 10px;
  backdrop-filter: blur(6px);
}

.channel-signal span {
  width: 3px;
  height: 12px;
  background: #ffd000;
  border-radius: 2px;
  transform-origin: bottom center;
  animation: signal 1s infinite ease-in-out;
}

.channel-signal span:nth-child(1) { animation-delay: 0s; }
.channel-signal span:nth-child(2) { animation-delay: 0.2s; }
.channel-signal span:nth-child(3) { animation-delay: 0.4s; }

@keyframes signal {
  0% { transform: scaleY(0.4); opacity: 0.4; }
  50% { transform: scaleY(1.4); opacity: 1; }
  100% { transform: scaleY(0.4); opacity: 0.4; }
}

/* =========================
   LOADING / ERROR UI
========================= */

#broadcast-status {
  min-height: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 15px;
  text-align: center;
}

.status-box {
  background: #0f0f0f;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid #1f1f1f;
  max-width: 300px;
  animation: fadeIn 0.3s ease;
}

.status-loader {
  width: 38px;
  height: 38px;
  border: 3px solid #222;
  border-top: 3px solid #f5c542;
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin 1s linear infinite;
}

.status-btn {
  background: #f5c542;
  color: #000;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  margin-top: 12px;
}

.hidden { display: none; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* =========================
   DESKTOP LIMIT
========================= */

@media (min-width: 900px) {
  .broadcast-container {
    max-width: 900px;
    margin: 0 auto;
  }
}
/* Fade in animation */
.fade-in {
  opacity: 0;
  transform: translateY(6px);
  animation: fadeCard 0.4s ease forwards;
}

@keyframes fadeCard {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover polish */
.channel-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.channel-card:hover {
  transform: scale(1.015);
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

/* Skeleton shimmer */
.skeleton-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skeleton-card {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: linear-gradient(
    110deg,
    #111 25%,
    #1c1c1c 37%,
    #111 63%
  );
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  to {
    background-position-x: -200%;
  }
}
/* =========================
   HERO SECTION (REPLACE OLD ONE)
========================= */

.hero-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: #000;
  margin-bottom: 18px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  cursor: pointer;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.back-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  padding: 6px;
  cursor: pointer;
}
