/* ================================================================
   Display Screen Stylesheet (Big TV)
================================================================ */

.display-page {
  background: linear-gradient(135deg, #0a0e27 0%, #0e2356 35%, #064e6e 100%);
  color: #fff;
  min-height: 100vh;
  overflow: hidden;
}

.d-wrap {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100vh;
  padding: 20px 30px;
  gap: 20px;
}

/* ===== Header ===== */
.d-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.d-brand { display: flex; align-items: center; gap: 16px; }
.d-logo {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 36px; font-weight: 800;
  box-shadow: 0 10px 30px rgba(56,189,248,0.25);
  overflow: hidden;
  padding: 6px;
}
.d-logo img { width: 100%; height: 100%; object-fit: contain; }
.d-title { font-size: 28px; font-weight: 800; }
.d-sub { font-size: 14px; opacity: .7; }
.d-clock { text-align: right; }
.d-time { font-size: 36px; font-weight: 700; font-variant-numeric: tabular-nums; }
.d-date { font-size: 14px; opacity: .7; }

/* ===== Main ===== */
.d-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  min-height: 0;
}
.d-section-title {
  font-size: 20px;
  font-weight: 700;
  opacity: .85;
  margin-bottom: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ===== Now Calling ===== */
.d-now-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 16px;
  align-content: start;
}
.d-now-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  animation: slideIn .4s ease-out;
}
.d-now-card.calling {
  background: linear-gradient(135deg, rgba(56,189,248,0.35), rgba(37,99,235,0.35));
  border-color: rgba(56,189,248,0.6);
  box-shadow: 0 20px 60px rgba(56,189,248,0.35);
  animation: pulse 2s ease-in-out infinite;
}
.d-now-counter {
  font-size: 14px; font-weight: 700;
  opacity: .85; letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.d-now-number {
  font-size: clamp(72px, 12vw, 140px);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
  text-shadow: 0 6px 30px rgba(0,0,0,0.4);
}
.d-now-service { font-size: 18px; opacity: .9; text-align: center; margin-top: 6px; }
.d-now-empty {
  background: rgba(255,255,255,0.03);
  border-radius: 24px;
  padding: 60px;
  text-align: center;
  opacity: .5;
  border: 2px dashed rgba(255,255,255,0.15);
}

/* ===== Next Queue ===== */
.d-next-grid {
  display: grid;
  gap: 10px;
  align-content: start;
  max-height: 100%;
  overflow-y: auto;
  padding-right: 8px;
}
.d-next-grid::-webkit-scrollbar { width: 6px; }
.d-next-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }

.d-next-item {
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 4px solid var(--svc-color, #38bdf8);
}
.d-next-num {
  font-size: 28px; font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.d-next-svc { font-size: 13px; opacity: .7; }
.d-next-pos {
  font-size: 12px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
}

/* ===== Footer ===== */
.d-footer {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.d-marquee {
  flex: 1;
  font-size: 16px;
  opacity: .8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.d-sound-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
}
.d-sound-btn:hover { background: rgba(255,255,255,0.18); }
.d-sound-btn.enabled { background: rgba(16,185,129,0.4); border-color: rgba(16,185,129,0.6); }

@media (max-width: 1024px) {
  .d-main { grid-template-columns: 1fr; }
  .d-now-number { font-size: 80px; }
}
