:root{
  --red:#d81b2c;
  --red-dark:#b0121f;
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#222;
  --muted:#6b7280;
  --shadow: 0 10px 25px rgba(0,0,0,.08);
  --radius:18px;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ===== Header ===== */
.header{
  background: linear-gradient(135deg, var(--red), #ff3b3b);
  color:#fff;
  padding: 22px 16px;
  box-shadow: var(--shadow);
  position: sticky;
  top:0;
  z-index: 10;
}

.header-inner{
  max-width: 1050px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.logo{
  width:48px;
  height:48px;
  border-radius:14px;
  object-fit:cover;
  background: rgba(255,255,255,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}

.brand-text h1{
  margin:0;
  font-size: 18px;
  font-weight: 900;
}

.brand-text p{
  margin:0;
  font-size: 12px;
  opacity:.9;
}

/* ===== Clock ===== */
.clock{
  text-align:left;
  direction:ltr;
  font-weight:900;
  font-size: 18px;
  background: rgba(255,255,255,.15);
  padding:10px 12px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
  min-width: 160px;
}

.clock small{
  display:block;
  font-weight:600;
  font-size: 11px;
  opacity:.9;
}

/* ===== Layout ===== */
.container{
  max-width: 1050px;
  margin: 18px auto;
  padding: 0 16px 40px;
  display:grid;
  gap:16px;
}

.grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
}

@media (max-width: 900px){
  .grid{grid-template-columns: 1fr;}
  .clock{min-width:auto;}
}

/* ===== Cards ===== */
.card{
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  position:relative;
  overflow:hidden;
}

.card::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(circle at top right, rgba(216,27,44,.12), transparent 55%);
  pointer-events:none;
}

.card-title{
  margin:0 0 12px;
  font-size: 16px;
  font-weight: 900;
  display:flex;
  align-items:center;
  gap:10px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(216,27,44,.08);
  color: var(--red);
  font-weight: 800;
  font-size: 12px;
}

/* ===== Info List ===== */
.info-list{
  display:grid;
  gap:12px;
  margin-top: 10px;
}

.info-item{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding: 12px 12px;
  border-radius: 14px;
  background: #fafafa;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}

.info-item strong{
  color: var(--red);
  font-size: 13px;
  min-width: 90px;
}

.info-item span{
  font-weight:800;
  font-size: 13px;
  color:#111;
  text-align:left;
  direction:ltr;
}

.info-item span.fa{
  direction:rtl;
  text-align:right;
}

.muted{
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
  line-height:1.7;
}

/* ===== Occasions ===== */
.occasions{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:10px;
}

.occasions li{
  padding: 12px 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
  display:flex;
  align-items:flex-start;
  gap:10px;
}

.dot{
  width:10px;
  height:10px;
  border-radius:50%;
  margin-top:6px;
  background: var(--red);
  flex:0 0 auto;
  box-shadow: 0 0 0 4px rgba(216,27,44,.12);
}

.occasions li p{
  margin:0;
  font-size: 13px;
  font-weight: 800;
  line-height:1.7;
}

.occasions li small{
  display:block;
  margin-top:4px;
  color: var(--muted);
  font-weight:600;
  font-size: 12px;
}

.loading{
  opacity:.9;
}

/* ===== Audio ===== */
audio{
  width: 100%;
  border-radius: 14px;
  overflow:hidden;
}

.audio-actions{
  margin-top: 12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.btn{
  border:none;
  background: var(--red);
  color:#fff;
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 900;
  cursor:pointer;
  transition:.2s;
  box-shadow: 0 10px 18px rgba(216,27,44,.25);
}

.btn:hover{
  background: var(--red-dark);
  transform: translateY(-1px);
}

.btn-outline{
  background: transparent;
  color: var(--red);
  box-shadow: inset 0 0 0 2px rgba(216,27,44,.25);
}

.btn-outline:hover{
  background: rgba(216,27,44,.08);
  transform: translateY(-1px);
}

/* ===== Footer ===== */
.footer{
  text-align:center;
  color: var(--muted);
  font-size: 12px;
  padding-top: 6px;
}
