/* فونت پیشنهادی (اختیاری): Vazirmatn */
@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;600;800&display=swap");

:root{
  --bg:#070b16;
  --card: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.10);
  --text:#e9edf7;
  --muted: rgba(233,237,247,.72);
  --accent:#6ee7ff;
  --accent2:#a78bfa;
  --good:#22c55e;
  --bad:#ef4444;
  --warn:#f59e0b;
  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --r: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:98%; }
body{
  margin:0;
  font-family:"Vazirmatn", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background:
    radial-gradient(1100px 700px at 15% 20%, rgba(110,231,255,.18), transparent 60%),
    radial-gradient(900px 650px at 85% 20%, rgba(167,139,250,.16), transparent 55%),
    radial-gradient(900px 650px at 50% 90%, rgba(34,197,94,.10), transparent 55%),
    var(--bg);
  overflow-x:hidden;
}

.bgOrbs{
  position:fixed; inset:0;
  pointer-events:none;
  opacity:.9;
  filter: blur(30px);
  background:
    radial-gradient(260px 260px at 20% 30%, rgba(110,231,255,.35), transparent 70%),
    radial-gradient(300px 300px at 80% 35%, rgba(167,139,250,.30), transparent 70%),
    radial-gradient(260px 260px at 55% 85%, rgba(34,197,94,.18), transparent 70%);
  animation: floaty 10s ease-in-out infinite alternate;
}
@keyframes floaty{
  from{ transform: translateY(0); }
  to{ transform: translateY(-14px); }
}

.container{
  width:min(1100px, 92vw);
  margin: 28px auto 40px;
}

.topBar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 0;
}

.logo{
  width:44px;height:44px;border-radius:14px;
  background:
    linear-gradient(135deg, rgba(110,231,255,.85), rgba(167,139,250,.85));
  box-shadow: 0 10px 30px rgba(110,231,255,.10);
}
h1{ margin:0; font-size:22px; font-weight:800; letter-spacing:-.2px; }
.subtitle{ margin:6px 0 0; color:var(--muted); font-size:13px; }

.statusCard{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  background: var(--card);
  border:1px solid var(--stroke);
  border-radius: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  white-space:nowrap;
}
.dot{
  width:10px;height:10px;border-radius:50%;
  background: var(--warn);
  box-shadow: 0 0 0 6px rgba(245,158,11,.15);
  animation: pulse 1.1s infinite;
}
@keyframes pulse{
  0%{ transform:scale(1); opacity:1; }
  70%{ transform:scale(1.15); opacity:.75; }
  100%{ transform:scale(1); opacity:1; }
}
.statusStrong{ font-weight:800; }
.statusMeta{ color:var(--muted); margin-right:8px; font-size:12px; }

.statusCard.online .dot{ background: var(--good); box-shadow:0 0 0 6px rgba(34,197,94,.15); }
.statusCard.offline .dot{ background: var(--bad); box-shadow:0 0 0 6px rgba(239,68,68,.15); }
.statusCard.checking .dot{ background: var(--warn); box-shadow:0 0 0 6px rgba(245,158,11,.15); }

.grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
  margin-bottom: 12px;
}
@media (max-width: 900px){
  .topBar{ flex-direction:column; align-items:stretch; }
  .grid{ grid-template-columns: 1fr; }
}

.card{
  background: var(--card);
  border:1px solid var(--stroke);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow:hidden;
  transform: translateZ(0);
}
.cardHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:14px 16px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.cardHeader h2{ margin:0; font-size:16px; font-weight:800; }
.cardBody{ padding:16px; }

.pill{
  font-size:12px;
  color: rgba(233,237,247,.85);
  padding:6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
}

.desc{
  color: var(--muted);
  line-height: 1.9;
  margin: 0 0 14px;
  font-size: 13px;
}

.stats{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:12px;
}
.mini{
  padding:12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  transition: transform .18s ease, border-color .18s ease;
}
.mini:hover{
  transform: translateY(-2px);
  border-color: rgba(110,231,255,.28);
}
.miniTitle{ margin:0; color:var(--muted); font-size:12px; }
.miniText{ margin:8px 0 0; font-size:18px; font-weight:800; }

.sectionTitle{
  display:flex; align-items:center; justify-content:space-between;
  margin-top: 14px;
}
.sectionTitle h3{ margin:0; font-size:14px; font-weight:800; }

.downloads{
  margin-top: 10px;
  display:grid;
  gap:10px;
}
.dl{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: inherit;
  text-decoration:none;
  transition: transform .18s ease, border-color .18s ease;
}
.dl:hover{
  transform: translateY(-2px);
  border-color: rgba(167,139,250,.28);
}
.dlLeft{ display:flex; align-items:center; gap:10px; min-width:0; }
.icon{
  width:38px; height:38px; border-radius: 14px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}
.dlText{ min-width:0; }
.dlTitle{ margin:0; font-weight:800; }
.dlSub{
  margin:4px 0 0;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.dlBtn{
  padding:8px 12px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(110,231,255,.20), rgba(167,139,250,.18));
  font-weight:800;
  font-size: 12px;
}

.row{
  margin-top: 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

.btn{
  border:none;
  padding:10px 14px;
  border-radius: 14px;
  color: #06101a;
  font-weight:900;
  cursor:pointer;
  background: linear-gradient(135deg, rgba(110,231,255,.95), rgba(167,139,250,.95));
  box-shadow: 0 12px 30px rgba(110,231,255,.14);
  transition: transform .18s ease;
}
.btn:hover{ transform: translateY(-2px); }

.tinyLink{
  color: rgba(233,237,247,.85);
  font-size: 12px;
  text-decoration: none;
  border-bottom: 1px dashed rgba(233,237,247,.35);
}
.tinyLink:hover{ color: #fff; border-bottom-color: rgba(255,255,255,.7); }

.videoWrap{
  border-radius: 16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.videoWrap video{
  width:100%;
  height:auto;
  display:block;
}

.footer{
  text-align:center;
  margin-top: 18px;
  font-size: 14px;
  color: rgba(233,237,247,.65);
}
/* --- Video Custom Card --- */
.videoCard{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  overflow: hidden;
}

.videoTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.videoBadge{
  font-size:12px;
  font-weight:900;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(110,231,255,.16), rgba(167,139,250,.12));
}

.videoMeta{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color: rgba(233,237,247,.70);
}

.vDot{
  width:8px;height:8px;border-radius:50%;
  background: rgba(34,197,94,.9);
  box-shadow: 0 0 0 6px rgba(34,197,94,.12);
  animation: vPulse 1.2s infinite;
}
@keyframes vPulse{
  0%{ transform:scale(1); opacity:1; }
  70%{ transform:scale(1.15); opacity:.75; }
  100%{ transform:scale(1); opacity:1; }
}

.videoFrame{
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.20);
}

.videoEl{
  width:100%;
  height:auto;
  display:block;
  outline:none;
}

/* دکمه شناور پلی/پاز */
.videoFab{
  position:absolute;
  left:14px;  /* چون RTL هستیم، دکمه سمت چپ جذاب‌تره */
  bottom:14px;
  width:46px;height:46px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(10,15,30,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-weight: 900;
  cursor:pointer;
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  transition: transform .18s ease, background .18s ease;
}
.videoFab:hover{ transform: translateY(-2px); background: rgba(10,15,30,.70); }

.videoBottom{
  padding: 12px 14px 14px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.vTitle{
  margin:0;
  font-weight: 900;
  font-size: 14px;
}
.vSub{
  margin:6px 0 0;
  font-size: 12px;
  color: rgba(233,237,247,.70);
  line-height: 1.8;
  max-width: 42ch;
}

.videoActions{
  display:flex;
  gap:8px;
  align-items:center;
}

.vBtn{
  border:none;
  cursor:pointer;
  padding:9px 12px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 12px;
  color: #06101a;
  background: linear-gradient(135deg, rgba(110,231,255,.95), rgba(167,139,250,.95));
  box-shadow: 0 12px 30px rgba(110,231,255,.12);
  transition: transform .18s ease;
}
.vBtn:hover{ transform: translateY(-2px); }

.vBtn.ghost{
  color: rgba(233,237,247,.90);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: none;
}
/* اطمینان از حذف کنترل‌های پیشفرض (برخی مرورگرها) */
video::-webkit-media-controls { display:none !important; }
video::-webkit-media-controls-enclosure { display:none !important; }
.footerGlow{
  font-size: 32px;
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
  color: rgba(233,237,247,.55);
}

.footerGlow .name{
  font-size: 32px;
  font-weight: 900;
  color: #6ee7ff;
  text-shadow:
    0 0 12px rgba(110,231,255,.35),
    0 0 24px rgba(110,231,255,.18);
}

.footerGlow .heart{
  font-size: 32px;
  margin: 0 4px;
  animation: glowHeart 2s infinite;
}

@keyframes glowHeart{
  0%,100%{
    filter: drop-shadow(0 0 0 rgba(110,231,255,0));
  }
  50%{
    filter: drop-shadow(0 0 12px rgba(110,231,255,.6));
  }
}
.copyBtn{
  border: 1px solid rgba(255,255,255,.12);
  padding:10px 14px;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  color: rgba(233,237,247,.9);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all .18s ease;
}

.copyBtn:hover{
  transform: translateY(-2px);
  border-color: rgba(110,231,255,.45);
  color:#fff;
}

.copyBtn.copied{
  background: linear-gradient(135deg, rgba(110,231,255,.95), rgba(167,139,250,.95));
  color:#06101a;
}
/* Media grid */
.mediaGrid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 900px){
  .mediaGrid{ grid-template-columns: 1fr; }
}

.mediaCard{
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,.03);
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
}

.mediaTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 10px;
}

.mediaBadge{
  font-weight: 700;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}

.mediaMeta{
  display:flex;
  align-items:center;
  gap:8px;
  opacity:.9;
  font-size: 12px;
}

.mediaTitle{
  margin: 6px 0 12px 0;
  font-weight: 800;
  font-size: 14px;
}

/* Hide native audio UI (we didn't add controls anyway, but keep it safe) */
.audioEl{
  width: 0;
  height: 0;
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

/* Custom player */
.playerUI{
  display: flex;
  gap: 12px;
  align-items: stretch;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  padding: 12px;
}

.pBtn{
  width: 54px;
  min-width: 54px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-size: 18px;
  background: rgba(255,255,255,.08);
  color: inherit;
}

.pBtn.isPlaying{ background: rgba(255,255,255,.14); }

.pMain{
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pTimes{
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: .9;
  font-size: 12px;
}

.pSeek{
  width: 100%;
  accent-color: auto; /* مرورگر خودش */
}

.pBottom{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pMini{
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: inherit;
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 12px;
}

.pVolWrap{
  display: flex;
  align-items: center;
  gap: 8px;
}

.pVol{
  width: 130px;
  accent-color: auto;
}

.pSpeed{
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: inherit;
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
}
