#player-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0;
}

#player-shell {
  overflow: hidden;
  position: relative;
  border-radius: 10px;
  border-top-right-radius: 0;
  border-top-left-radius: 0;
}

#player-screen .idle-txt {
  color: var(--muted);
  font-size: 14px;
  margin-top: 10px;
  z-index: 1;
}

#player-screen {
  width: 100%;
  height: clamp(420px, 78vh, 850px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #080b12;
}

#player-screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#player-screen .idle-txt {
  color: #bec9d8;
  font-size: 1rem;
  margin-top: 10px;
  z-index: 1;
}

#ch-bar {
  background: linear-gradient(
    180deg,
    rgba(32, 36, 45, 0.95),
    rgba(24, 27, 35, 0.98)
  );

  padding: 14px 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#ch-bar .ch-name {
  font-family: "Oswald", sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.3px;
}

/* SHARE */

#share-btn {
  height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: 0.25s ease;
  white-space: nowrap;
}

#share-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#share-btn:hover {
  color: #fff;
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(96, 165, 250, 0.45);
}

#share-menu {
  display: none;
  position: absolute;
  right: 0;
  bottom: 115%;
  z-index: 9999;
  width: 190px;
  padding: 8px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #232834 0%, #191d26 100%);
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: shareIn 0.2s ease;
}

#share-menu.open {
  display: flex !important;
  flex-direction: column;
  gap: 5px;
}

#share-menu a {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #cbd5e1 !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

/* ICONOS */

#share-menu a svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  fill: currentColor;
}

#share-menu #sh-wa:hover {
  background: rgba(37, 211, 102, 0.12);
  color: #25d366 !important;
}

#share-menu #sh-fb:hover {
  background: rgba(24, 119, 242, 0.12);
}

#share-menu #sh-cp:hover {
  background: rgba(59, 130, 246, 0.14);
}

@keyframes shareIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* SOURCES */

.sources-bar {
  display: none;

  align-items: center;

  flex-wrap: wrap;

  padding: 12px 16px 16px;

  background: linear-gradient(
    180deg,
    rgba(24, 27, 35, 0.98),
    rgba(15, 17, 20, 0.98)
  );

  gap: 10px;
}

.sources-bar.visible {
  display: flex;
}

#src-btns {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;
}

/* SOURCE BUTTONS */

.src-btn {
  height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
  white-space: nowrap;
}

.src-btn:hover {
  color: #fff;
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(96, 165, 250, 0.45);
}

.src-btn.on {
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-color: #60a5fa;
}

.src-btn .q-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.src-btn.on .q-badge {
  background: rgba(255, 255, 255, 0.2);
}

.player-empty {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  max-width: 360px;

  text-align: center;

  padding: 28px;
}

.player-empty__icon {
  width: 74px;
  height: 74px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.18),
    rgba(59, 130, 246, 0.05)
  );

  border: 1px solid rgba(96, 165, 250, 0.25);

  margin-bottom: 18px;

  box-shadow:
    0 0 30px rgba(59, 130, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.player-empty__icon svg {
  width: 34px;
  height: 34px;

  fill: none;
  stroke: #60a5fa;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.player-empty__title {
  margin: 0 0 10px;

  color: #fff;

  font-size: 22px;
  font-weight: 700;
}

.player-empty__text {
  margin: 0;

  color: #94a3b8;

  font-size: 14px;
  line-height: 1.7;
}

#player-screen::before {
  content: "";

  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle at center,
    rgba(59, 130, 246, 0.08),
    transparent 60%
  );

  pointer-events: none;
}

.player-error .error-icon {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.18),
    rgba(239, 68, 68, 0.05)
  );

  border: 1px solid rgba(239, 68, 68, 0.28);

  box-shadow:
    0 0 30px rgba(239, 68, 68, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.player-error .error-icon svg {
  stroke: #ef4444;
}

@media (max-width: 640px) {
  #player-shell {
    border-radius: 12px;
  }

  #player-screen {
    height: 260px;
  }

  #ch-bar {
    padding: 12px;
  }

  #ch-bar .ch-name {
    font-size: 18px;
  }

  .sources-bar {
    padding: 10px;
  }

  .src-btn {
    height: 32px;

    padding: 0 12px;

    font-size: 11px;
  }
}
