/* =====================================================
   YouTube Card + Player + PiP — Styles
   ===================================================== */

/* ---- 1. YouTube Chat Card ---- */
.chat_video_container {
  display: inline-block !important;
  max-width: 140px !important;
  width: 140px !important;
  vertical-align: middle;
  margin: 3px 0;
}

.yt_chat_card {
  display: block;
  width: 140px;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 3px 10px rgba(0,0,0,0.45);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none !important;
  padding: 0 !important;
  position: relative !important;
  background-color: #111 !important;
  /* Override main.css open_player styles */
  color: #fff !important;
  opacity: 1 !important;
  top: auto !important;
  right: auto !important;
}

.yt_chat_card:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 5px 18px rgba(255,0,0,0.35);
  border-color: rgba(255,0,0,0.5);
}

/* Fixed-height thumbnail (140 x 79 = 16:9) */
.yt_thumb_wrap {
  position: relative;
  width: 100%;
  height: 79px;
  background: #1a1a1a;
  overflow: hidden;
  display: block;
}

/* Fallback for legacy messages containing open_player and hide_mobile */
.chat_video_container .hide_mobile {
  display: inline-flex !important;
}

.boom_youtube.open_player {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  background: #cc0000 !important;
  color: #fff !important;
  padding: 6px 14px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  position: static !important;
  opacity: 1 !important;
  top: auto !important;
  right: auto !important;
}

.yt_thumb_img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.yt_chat_card:hover .yt_thumb_img { transform: scale(1.06); }

.yt_play_btn {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.22);
  transition: background 0.2s;
}

.yt_chat_card:hover .yt_play_btn { background: rgba(0,0,0,0.42); }

.yt_play_btn i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,0,0,0.9);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(255,0,0,0.6);
  padding-left: 2px;
  transition: transform 0.2s ease;
}

.yt_chat_card:hover .yt_play_btn i { transform: scale(1.18); }

.yt_badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
  pointer-events: none;
}
.yt_badge i { color: #ff0000; }

/* ---- 2. Player Window ---- */
#container_stream {
  position: fixed;
  z-index: 9999;
  background: #0d0d0d;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.75);
  display: none;
  transform-origin: center center;
  will-change: transform, opacity;
}
#stream_header {
  display: flex;
  align-items: center;
  background: #1a1a1a;
  height: 42px;
  padding: 0 12px;
  gap: 8px;
  cursor: move;
  user-select: none;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.stream_title {
  flex: 1;
  color: #f0f0f0;
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
}
.stream_ctrl_btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s, color 0.15s;
}
#hide_stream { background: rgba(255,255,255,0.1); color: #ccc; }
#hide_stream:hover { background: rgba(255,255,255,0.22); color: #fff; }
#close_stream { background: rgba(255,0,0,0.18); color: #ff7070; }
#close_stream:hover { background: #e00; color: #fff; }
#wrap_stream {
  width: 100%;
  height: 292px;
  background: #000;
}
#wrap_stream iframe { width: 100%; height: 100%; border: none; display: block; }

/* ---- 3. PiP Bubble ---- */
#yt_pip_bubble {
  position: fixed;
  z-index: 10000;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  box-shadow: 0 6px 22px rgba(0,0,0,0.6), 0 0 18px rgba(255,0,0,0.45);
}
/* Entrance animation */
#yt_pip_bubble.pip_in { animation: pipIn 0.3s cubic-bezier(0.34,1.56,0.64,1) both; }
@keyframes pipIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
/* Dragging state */
#yt_pip_bubble.pip_dragging { cursor: grabbing; transform: scale(1.08); transition: none; }

/* Rotating gradient ring */
.pip_ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ff0000, #ff6600, #ffcc00, #ff0000);
  animation: pipRing 3s linear infinite;
  z-index: 0;
}
@keyframes pipRing { to { transform: rotate(360deg); } }

/* Pulsing aura */
#yt_pip_bubble::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255,0,0,0.5);
  animation: pipPulse 2s ease-out infinite;
  pointer-events: none;
}
@keyframes pipPulse {
  0%   { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Thumbnail inside bubble */
#pip_thumb {
  position: relative;
  z-index: 1;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #111;
  pointer-events: none;
}

/* Play icon overlay */
.pip_icon {
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,0,0,0.88);
  color: #fff;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding-left: 2px;
}

/* Sound wave bars */
.pip_waves {
  position: absolute;
  bottom: 4px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  pointer-events: none;
}
.pip_waves span {
  width: 3px;
  background: #fff;
  border-radius: 2px;
  animation: pipWave 0.85s ease-in-out infinite alternate;
}
.pip_waves span:nth-child(1) { height: 5px; animation-delay: 0s; }
.pip_waves span:nth-child(2) { height: 10px; animation-delay: 0.28s; }
.pip_waves span:nth-child(3) { height: 6px; animation-delay: 0.56s; }
@keyframes pipWave { from { transform: scaleY(0.4); } to { transform: scaleY(1); } }

/* Close button */
#pip_close {
  position: absolute;
  top: -4px;
  right: -4px;
  z-index: 10;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #cc0000;
  color: #fff;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transition: transform 0.2s ease, background 0.2s;
}
#pip_close:hover { transform: scale(1.25) rotate(90deg); background: #ff0000; }

/* ---- Mobile ---- */
@media screen and (max-width: 768px) {
  .open_player.yt_chat_card { width: 100%; max-width: 200px; }
  #container_stream { border-radius: 8px; }
  #stream_header { height: 38px; padding: 0 8px; }
  #wrap_stream { height: 200px; }
  #yt_pip_bubble { width: 60px; height: 60px; }
  #pip_thumb { width: 52px; height: 52px; }
}

/* login page Seo */
/* .midd { display: inline-table; vertical-align: top; width: 300px }
.room { margin: 0 auto 15px; text-align: center; border: 1px solid lavender; background: #f9f9f9 }
.room strong { background: #E3F0F7; color: #32526d; padding: 5px 0; font: bold 18px 'Segoe UI',Tahoma }
.room p { font: 16px 'Segoe UI',Tahoma; margin: 5px; color: #0069b4; line-height: 1.8 }
.room a { display: table; margin: 10px auto 5px; color: #fff; background: #f97360; padding: 3px 5px; border-radius: 5px; font: 18px 'Segoe UI'; text-decoration: none }
.room a:hover { background: steelblue }
.link a { display: table; margin: 10px auto 5px; background: #f97360; padding: 3px 5px; border-radius: 5px; font: 18px 'Segoe UI'; text-decoration: none }
.link a:hover { background: steelblue }
.copyright {color:#0c0d0d; background: yellow;}
.member_btn{background: #74b20e;color: #000;}
.link {
 background-color:#f9f9f9;
 padding:10px;
 border-radius:25px
} */
/*header*/
header {
    background: aliceblue;
    margin: 10px auto;
    width: 90%
}

/* footer css */
#main_links {
    padding: 15px 0;
    height: auto;
}

#menu_main_links {
    font-size: 15px;
    width: auto;
}

#menu_main_links li {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 6px;
    font-size: 13px;
}

#menu_main_links li a {
    color: #000;
    text-decoration: none;
}

pre {
    line-height: 2;
    white-space: pre-line;
    font-family: "noto kufi arabic";
}

.title-h2,
.title-h1 {
    display: inline-block;
    color: white;
    background-color: #05b1d4;
    font-size: 30px;
    font-weight: 400;
    height: fit-content;
    padding: 14px;
}

.mg20 {
    margin: 0% 9%;
}

.maincontent {
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 25px
}

.headlinez {
    font-weight: 400;
    font-size: 32px;
    color: #000 !important
}

.textlinez {
    font-weight: 400;
    font-size: 16px !important;
    color: grey !important
}

.headlinez1 {
    font-weight: bold;
    font-size: 32px;
    color: #e62121 !important
}

.textlinez1 {
    font-weight: 400;
    font-size: 16px !important;
    color: #000 !important
}