/* ═══════════════════════════════════════════════════════
   JjayStream v2.0 – Ultra-Light Modern CSS
   Target: 3G networks, legacy Android 4.1+, 1GB RAM
   Size: <6KB minified | Zero external dependencies
   ═══════════════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --bg: #0B1426;
  --bg-card: #111E33;
  --bg-input: #152238;
  --bg-hover: #1A2B45;
  --accent: #00D4AA;
  --accent-dark: #00A88A;
  --accent-glow: rgba(0,212,170,0.12);
  --accent-warn: #FF6B6B;
  --text: #E8ECF1;
  --text-dim: #8899AA;
  --text-muted: #4A6080;
  --border: #1C3050;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-pill: 50px;
  --shadow: 0 4px 16px rgba(0,0,0,0.4);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ── Reset ── */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  overscroll-behavior: none;
}

body {
  background: #0B1426;
  background: var(--bg);
  color: #E8ECF1;
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  overscroll-behavior-y: contain;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

a { color: #00D4AA; color: var(--accent); text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ═══ HEADER ═══ */

/* Default: desktop & non-notch */
.header {
  background: #111E33;
  background: var(--bg-card);
  padding: 14px 16px 10px 16px;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  position: relative; /* fallback for browsers without sticky */
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(0,212,170,0.15);
  box-shadow: 0 1px 8px rgba(0,212,170,0.06);
}

/* iOS notch devices (iPhone X/XS/11/12/13/14/15) */
@media only screen and (max-width: 600px) and (orientation: portrait) {
  .header {
    padding-top: calc(env(safe-area-inset-top, 20px) + 10px);
    padding-bottom: 10px;
  }
}

/* PWA standalone: extra top padding for status bar */
@media all and (display-mode: standalone) {
  .header { padding-top: calc(env(safe-area-inset-top, 20px) + 18px) !important; }
  .search-bar { top: calc(56px + env(safe-area-inset-top, 20px)); }
}

/* PWA standalone: extra top padding for status bar */
@media all and (display-mode: standalone) {
  .header { padding-top: max(48px, calc(40px + var(--safe-top))); }
  .search-bar { top: max(82px, calc(66px + var(--safe-top))); }
}

.logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  user-select: none;
}
.logo span { color: #00D4AA; color: var(--accent); font-weight: 800; }
.logo small {
  font-size: 0.6rem; color: #8899AA; color: var(--text-dim);
  font-weight: 400; margin-left: 6px; vertical-align: middle;
  background: #152238; background: var(--bg-input); padding: 2px 6px; border-radius: 4px;
}

nav { display: flex; align-items: center; gap: 4px; }
nav a {
  color: #8899AA;
  color: var(--text-dim);
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 10px;
  border-radius: var(--radius);
}
nav a:hover, nav a.active { color: #fff; background: rgba(0,212,170,0.12); background: var(--accent-glow); }
nav a.active { color: #00D4AA; color: var(--accent); }

/* ═══ SEARCH ═══ */

.search-bar {
  padding: 10px 14px;
  background: #0B1426;
  background: var(--bg);
  display: flex;
  gap: 8px;
  position: relative; /* fallback for browsers without sticky */
  position: -webkit-sticky;
  position: sticky;
  top: 56px;
  z-index: 190;
  max-width: 100%;
  overflow: hidden;
}

@media only screen and (max-width: 600px) and (orientation: portrait) {
  .search-bar {
    top: calc(env(safe-area-inset-top, 20px) + 48px);
  }
}

.search-wrap { flex: 1; position: relative; }

.search-bar input {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.95rem;
  border: 1px solid #1C3050;
  border: 1px solid var(--border);
  border-radius: 50px;
  border-radius: var(--radius-pill);
  background: #152238;
  background: var(--bg-input);
  color: #E8ECF1;
  color: var(--text);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.search-bar input:focus {
  border-color: #00D4AA;
  border-color: var(--accent);
}
.search-bar input::placeholder { color: #4A6080; color: var(--text-muted); }

.search-wrap { margin-right: 8px; } /* gap fallback for Chrome < 84 */
.search-bar button {
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  background: #00D4AA;
  background: var(--accent);
  color: #0B1426;
  border: none;
  border-radius: 50px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  min-width: 64px;
}
.search-bar button:active { background: #00A88A; background: var(--accent-dark); }

/* ═══ CATEGORY TABS ═══ */
.tabs {
  display: flex;
  gap: 0;
  padding: 0 14px 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 100%;
  border-bottom: 1px solid #1C3050;
  border-bottom: 1px solid var(--border);
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  background: transparent;
  color: #8899AA;
  color: var(--text-dim);
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
}
.tab:active { opacity: 0.7; }
.tab.active {
  background: transparent;
  border-bottom-color: #00D4AA;
  border-bottom-color: var(--accent);
  color: #00D4AA;
  color: var(--accent);
}

/* ═══ VIDEO LIST ═══ */
.video-list { padding: 4px 12px; overflow: hidden; }

.video-item {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  gap: 12px;
  padding: 10px;
  border-bottom: none;
  cursor: pointer;
  border-radius: 14px;
  border-radius: var(--radius-lg);
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  background: #111E33;
  background: var(--bg-card);
  border: 1px solid #1C3050;
  border: 1px solid var(--border);
  margin-bottom: 8px;
}
.video-item:active { background: #1A2B45; background: var(--bg-hover); border-color: #00D4AA; border-color: var(--accent); }
.video-item:last-child { border-bottom: none; }

.video-item .thumb {
  position: relative;
  width: 140px;
  min-width: 140px;
  height: 79px; /* 140 * 9/16 fallback for Chrome < 88 */
  aspect-ratio: 16/9;
  border-radius: 6px;
  overflow: hidden;
  background: #152238;
  background: var(--bg-input);
  flex-shrink: 0;
}
.video-item .thumb {
  margin-right: 12px; /* gap fallback for Chrome < 84 */
}
.video-item .thumb img {
  width: 100%; height: auto; min-height: 100%; /* fallback if object-fit unsupported */
  object-fit: cover;
}

/* Duration badge */
.video-item .thumb .duration {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
  line-height: 1.4;
}

.video-item .info { flex: 1; min-width: 0; padding-top: 2px; }

.video-item .info .title {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #E8ECF1;
  color: var(--text);
}

.video-item .info .channel {
  font-size: 0.75rem;
  color: #8899AA;
  color: var(--text-dim);
  margin-top: 3px;
}

.video-item .info .meta {
  font-size: 0.7rem;
  color: #4A6080;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Fav Button ── */
.fav-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #4A6080;
  color: var(--text-muted);
  padding: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  align-self: center;
  line-height: 1;
}
.fav-btn.active { color: #FF6B6B; color: var(--accent-warn); }
.fav-btn:active { transform: scale(1.15); }

/* ═══ STATUS / EMPTY ═══ */
.status {
  text-align: center;
  padding: 32px 20px;
  color: #4A6080;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.status .icon { font-size: 2rem; margin-bottom: 8px; display: block; opacity: 0.6; }
.status.error { color: #FF6B6B; color: var(--accent-warn); }

/* ═══ PLAYER LOADING BAR ═══ */
.load-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10;
  background: #000;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
}
.load-box {
  text-align: center;
  width: 80%;
  max-width: 300px;
}
.load-label {
  color: #8899AA;
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-bottom: 10px;
}
.load-track {
  width: 100%;
  height: 6px;
  background: #1C3050;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.load-bar {
  height: 100%;
  width: 0%;
  background: #00D4AA;
  background: var(--accent);
  border-radius: 3px;
}
.load-pct {
  color: #00D4AA;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 8px;
}

/* ═══ BACK TO SEARCH FLOAT BUTTON ═══ */
.back-float-btn {
  position: fixed;
  top: 70px;
  left: 12px;
  z-index: 10000;
  background: rgba(17,30,51,0.85);
  color: #00D4AA;
  color: var(--accent);
  border: 1px solid #00D4AA;
  border: 1px solid var(--accent);
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 50px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
}
.back-float-btn:active {
  background: #00D4AA;
  background: var(--accent);
  color: #0B1426;
}

/* Landscape: move to top-left corner, smaller */
@media (orientation: landscape) and (max-height: 480px) {
  .back-float-btn {
    top: 8px;
    left: 8px;
    padding: 6px 12px;
    font-size: 0.72rem;
  }
}

/* ═══ PLAYER ═══ */
.player-wrap { background: #000; width: 100%; overflow: hidden; position: relative; }
.player-wrap iframe {
  width: 100%; height: 56.25vw; /* 16:9 fallback for Chrome < 88 */
  aspect-ratio: 16/9; border: none; display: block;
}

.player-info {
  padding: 14px 16px;
  border-bottom: 1px solid #1C3050;
  border-bottom: 1px solid var(--border);
}
.player-info h2 { font-size: 1rem; font-weight: 600; line-height: 1.35; }
.player-info .meta-line {
  font-size: 0.78rem; color: #8899AA; color: var(--text-dim); margin-top: 4px;
}

.player-controls {
  padding: 10px 16px;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  gap: 8px;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  border-bottom: 1px solid #1C3050;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.player-controls .btn {
  margin: 4px; /* gap fallback for Chrome < 84 */
}

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid #1C3050;
  border: 1px solid var(--border);
  border-radius: 10px;
  border-radius: var(--radius);
  background: #152238;
  background: var(--bg-input);
  color: #E8ECF1;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.btn:active { background: #1A2B45; background: var(--bg-hover); }
.btn.primary {
  background: #00D4AA;
  background: var(--accent);
  border-color: #00D4AA;
  border-color: var(--accent);
  color: #fff;
}
.btn.primary:active { background: #00A88A; background: var(--accent-dark); }
.btn.danger { color: #FF6B6B; color: var(--accent-warn); border-color: #FF6B6B; border-color: var(--accent-warn); background: transparent; }
.btn.full { width: 100%; justify-content: center; }

/* ═══ SECTION HEADER ═══ */
.section-header {
  padding: 14px 16px 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #8899AA;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ═══ ADMIN ═══ */
.admin-container {
  padding: 12px;
  max-width: 860px;
  margin: 0 auto;
  overflow-x: hidden;
}

.card {
  background: #111E33;
  background: var(--bg-card);
  border: 1px solid #1C3050;
  border: 1px solid var(--border);
  border-radius: 14px;
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
}

.card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #E8ECF1;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #1C3050;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title .badge {
  font-size: 0.65rem;
  background: rgba(0,212,170,0.12);
  background: var(--accent-glow);
  color: #00D4AA;
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 50px;
  border-radius: var(--radius-pill);
  font-weight: 500;
}

/* ── Stats Grid ── */
.stats-grid {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex; /* fallback for browsers without CSS Grid */
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.stats-grid .stat-card {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 30%; /* fallback sizing for flexbox */
  flex: 1 1 30%;
  margin: 4px; /* gap fallback for flexbox */
}
.stat-card {
  background: #152238;
  background: var(--bg-input);
  border: 1px solid #1C3050;
  border: 1px solid var(--border);
  border-radius: 10px;
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
}
.stat-card .num {
  font-size: 1.6rem;
  font-weight: 700;
  color: #00D4AA;
  color: var(--accent);
  line-height: 1.2;
}
.stat-card .label {
  font-size: 0.7rem;
  color: #8899AA;
  color: var(--text-dim);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ── Forms ── */
.form-group { margin-bottom: 12px; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  color: #8899AA;
  color: var(--text-dim);
  margin-bottom: 4px;
  font-weight: 500;
}

.form-input, .form-select {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.9rem;
  border: 1px solid #1C3050;
  border: 1px solid var(--border);
  border-radius: 10px;
  border-radius: var(--radius);
  background: #152238;
  background: var(--bg-input);
  color: #E8ECF1;
  color: var(--text);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus, .form-select:focus {
  border-color: #00D4AA;
  border-color: var(--accent);
}
.form-input::placeholder { color: #4A6080; color: var(--text-muted); }

/* ── Playlist Table ── */
.playlist-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; table-layout: fixed; word-wrap: break-word; }
.playlist-table th {
  text-align: left; padding: 8px;
  border-bottom: 1px solid #1C3050;
  border-bottom: 1px solid var(--border);
  color: #8899AA; color: var(--text-dim); font-weight: 500;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.3px;
}
.playlist-table td {
  padding: 8px; border-bottom: 1px solid #1C3050; border-bottom: 1px solid var(--border); vertical-align: middle;
}
.playlist-table tr:last-child td { border-bottom: none; }
.playlist-table .actions { white-space: nowrap; }
.playlist-table .actions button {
  background: none; border: none; color: #00D4AA; color: var(--accent);
  cursor: pointer; font-size: 0.78rem; padding: 4px 8px;
  border-radius: 4px;
}
.playlist-table .actions button:active { background: rgba(0,212,170,0.12); background: var(--accent-glow); }

.badge-status {
  font-size: 0.7rem; padding: 2px 8px;
  border-radius: 50px; border-radius: var(--radius-pill); font-weight: 500; display: inline-block;
}
.badge-status.active { background: rgba(76,175,80,0.15); color: #66bb6a; }
.badge-status.inactive { background: rgba(255,255,255,0.05); color: #4A6080; color: var(--text-muted); }

/* ═══ TOAST ═══ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #111E33;
  background: var(--bg-card);
  border: 1px solid #1C3050;
  border: 1px solid var(--border);
  color: #E8ECF1;
  color: var(--text);
  padding: 12px 24px;
  border-radius: 10px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  max-width: 90vw;
  text-align: center;
}
.toast.show {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ═══ SPINNER ═══ */
.spinner { text-align: center; padding: 24px; }
.spinner::after {
  content: ""; display: inline-block;
  width: 28px; height: 28px;
  border: 3px solid #1C3050;
  border: 3px solid var(--border);
  border-top-color: #00D4AA;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══ INSTALL APP BANNER ═══ */
.install-banner {
  position: fixed;
  bottom: 68px;
  left: 8px;
  right: 8px;
  z-index: 300;
  animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.install-banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0e1f38;
  border: 1.5px solid #00D4AA;
  border: 1.5px solid var(--accent);
  border-radius: 14px;
  border-radius: var(--radius-lg);
  padding: 12px 14px;
}
.install-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
}
.install-banner-text {
  flex: 1;
  min-width: 0;
}
.install-banner-text strong {
  display: block;
  font-size: 0.88rem;
  color: #fff;
  line-height: 1.3;
}
.install-banner-text span {
  font-size: 0.72rem;
  color: #8899AA;
  color: var(--text-dim);
  line-height: 1.3;
}
.install-banner-btn {
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  background: #00D4AA;
  background: var(--accent);
  color: #0B1426;
  border: none;
  border-radius: 50px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.install-banner-btn:active { background: #00A88A; background: var(--accent-dark); }
.install-banner-close {
  background: none;
  border: none;
  color: #4A6080;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 6px;
  flex-shrink: 0;
  line-height: 1;
}
.install-banner-close:active { color: #E8ECF1; color: var(--text); }

/* Install guide popup */
.install-guide-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.install-guide-box {
  background: #111E33;
  background: var(--bg-card);
  border: 1px solid #00D4AA;
  border: 1px solid var(--accent);
  border-radius: 14px;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  max-width: 360px;
  width: 100%;
  color: #E8ECF1;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.install-guide-box strong {
  font-size: 1.05rem;
  color: #00D4AA;
  color: var(--accent);
}

/* Hide install banner when in standalone PWA mode */
@media all and (display-mode: standalone) {
  .install-banner { display: none !important; }
}

/* Desktop: reposition banner (no bottom nav) */
@media (min-width: 601px) {
  .install-banner {
    bottom: 20px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
  }
}

/* ═══ FOOTER ═══ */
.footer {
  text-align: center;
  padding: 14px 16px;
  font-size: 0.65rem;
  color: #4A6080;
  color: var(--text-muted);
  border-top: 1px solid #1C3050;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}
.footer a { color: #8899AA; color: var(--text-dim); }

/* ═══ BOTTOM NAV (MOBILE) ═══ */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 6px; left: 8px; right: 8px;
  background: #111E33;
  background: var(--bg-card);
  border: 1px solid #1C3050;
  border: 1px solid var(--border);
  border-radius: 14px;
  border-radius: var(--radius-lg);
  padding: 4px 0;
  z-index: 200;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-around;
  justify-content: space-around;
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; color: #4A6080; color: var(--text-muted); font-size: 0.72rem;
  padding: 6px 10px; border-radius: 6px; text-decoration: none;
}
.bottom-nav a .nav-icon { font-size: 1.3rem; }
.bottom-nav a.active { color: #00D4AA; color: var(--accent); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 360px) {
  html { font-size: 13px; }
  .header { padding: 8px 12px; }
  .search-bar { padding: 8px 12px; }
  .video-item .thumb { width: 110px; min-width: 110px; }
  .stats-grid { gap: 4px; }
  .stat-card { padding: 8px; }
  .stat-card .num { font-size: 1.3rem; }
}

@media (max-width: 600px) {
  .bottom-nav { display: -webkit-box; display: -webkit-flex; display: flex; }
  body { padding-bottom: 72px; }
  .footer { display: none; }
  nav { display: none; }
}

@media (min-width: 601px) and (max-width: 1024px) {
  .video-list { padding: 8px 20px; }
  .search-bar { padding: 14px 20px; }
  .video-item .thumb { width: 180px; min-width: 180px; }
}

@media (min-width: 1025px) {
  .video-list, .search-bar, .tabs {
    max-width: 960px; margin: 0 auto;
  }
  .video-list { padding: 8px 24px; }
  .search-bar { padding: 16px 24px; }
  .header { padding: 10px 24px; }
}

@media (orientation: landscape) and (max-height: 480px) {
  .header { padding: 4px 12px; }
  .search-bar { padding: 4px 12px; position: static; }
  .video-item { padding: 6px 4px; }
  .video-item .thumb { width: 120px; min-width: 120px; }
  .bottom-nav { display: none; }
}

/* ═══ KIOSK MODE ═══ */
body.kiosk-mode .header,
body.kiosk-mode .bottom-nav,
body.kiosk-mode .footer,
body.kiosk-mode .search-bar,
body.kiosk-mode .tabs { display: none !important; }

body.kiosk-mode .player-wrap iframe {
  width: 100vw; height: 100vh;
  position: fixed; top: 0; left: 0; z-index: 9999;
}
body.kiosk-mode { padding: 0 !important; overflow: hidden; }

/* Kiosk exit overlay */
.kiosk-exit-overlay {
  display: none;
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 10001;
  text-align: right;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
body.kiosk-mode .kiosk-exit-overlay {
  display: block;
  pointer-events: auto;
  animation: kioskFadeInOut 6s ease forwards;
}
.kiosk-exit-btn {
  background: rgba(0,0,0,0.75);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.kiosk-exit-btn:active { background: var(--accent); }
.kiosk-exit-hint {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}
body.kiosk-mode .kiosk-exit-overlay.show {
  opacity: 1 !important;
  animation: none;
}
@keyframes kioskFadeInOut {
  0% { opacity: 1; }
  60% { opacity: 1; }
  100% { opacity: 0; }
}

/* Kiosk tap zone (top-left corner) */
.kiosk-tap-zone {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 80px; height: 80px;
  z-index: 10002;
}
body.kiosk-mode .kiosk-tap-zone {
  display: block;
}

/* ═══════════════════════════════════════
   HOME PAGE – Hero & Module Cards
   ═══════════════════════════════════════ */

.home-hero {
  padding: 28px 16px 8px;
  text-align: center;
}
.home-hero-inner { max-width: 520px; margin: 0 auto; }
.home-hero-icon { font-size: 2.5rem; margin-bottom: 8px; }
.home-hero-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #E8ECF1;
  color: var(--text);
  line-height: 1.3;
}
.home-hero-title span { color: #00D4AA; color: var(--accent); }
.home-hero-desc {
  font-size: 0.82rem;
  color: #8899AA;
  color: var(--text-dim);
  margin-top: 6px;
  line-height: 1.45;
}

/* Module Cards */
.home-modules {
  padding: 16px 14px 4px;
  max-width: 640px;
  margin: 0 auto;
}
.module-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin-bottom: 10px;
  background: #111E33;
  background: var(--bg-card);
  border: 1px solid #1C3050;
  border: 1px solid var(--border);
  border-radius: 14px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}
.module-card:active {
  background: #1A2B45;
  background: var(--bg-hover);
  border-color: #00D4AA;
  border-color: var(--accent);
}
.module-icon {
  font-size: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}
.module-watch .module-icon { background: rgba(255,68,68,0.15); }
.module-games .module-icon { background: rgba(0,212,170,0.15); }
.module-music .module-icon { background: rgba(108,92,231,0.15); }
.module-info { flex: 1; min-width: 0; }
.module-title {
  font-size: 1rem;
  font-weight: 600;
  color: #E8ECF1;
  color: var(--text);
}
.module-desc {
  font-size: 0.75rem;
  color: #8899AA;
  color: var(--text-dim);
  margin-top: 2px;
}
.module-arrow {
  font-size: 1rem;
  color: #4A6080;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Quick Actions Grid */
.home-quick {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 14px 12px;
}
.quick-grid {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.quick-item {
  -webkit-flex: 1 1 22%;
  flex: 1 1 22%;
  margin: 4px;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  gap: 4px;
  padding: 12px 6px;
  background: #111E33;
  background: var(--bg-card);
  border: 1px solid #1C3050;
  border: 1px solid var(--border);
  border-radius: 10px;
  border-radius: var(--radius);
  text-decoration: none;
  color: #8899AA;
  color: var(--text-dim);
  font-size: 0.7rem;
  text-align: center;
  min-width: 0;
}
.quick-item:active { border-color: #00D4AA; border-color: var(--accent); color: #E8ECF1; color: var(--text); }
.quick-icon { font-size: 1.4rem; }

@media (max-width: 360px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-item { -webkit-flex: 1 1 44%; flex: 1 1 44%; }
}

/* ═══════════════════════════════════════
   PAGE HERO (Games, Music, etc.)
   ═══════════════════════════════════════ */

.page-hero {
  text-align: center;
  padding: 24px 16px 8px;
}
.page-hero-icon { font-size: 3rem; margin-bottom: 6px; }
.page-hero-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #E8ECF1;
  color: var(--text);
}
.page-hero-desc {
  font-size: 0.95rem;
  color: #8899AA;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ═══════════════════════════════════════
   GAMES MODULE
   ═══════════════════════════════════════ */

.games-grid {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 12px 14px;
  max-width: 640px;
  margin: 0 auto;
}
.game-card {
  -webkit-flex: 1 1 44%;
  flex: 1 1 44%;
  margin: 4px;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 18px 10px;
  min-height: 110px;
  background: #111E33;
  background: var(--bg-card);
  border: 1px solid #1C3050;
  border: 1px solid var(--border);
  border-radius: 14px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.game-card:active {
  background: #1A2B45;
  background: var(--bg-hover);
  border-color: #00D4AA;
  border-color: var(--accent);
}
.game-icon { font-size: 2.6rem; flex-shrink: 0; line-height: 1; }
.game-info { min-width: 0; }
.game-title {
  font-size: 1rem;
  font-weight: 600;
  color: #E8ECF1;
  color: var(--text);
}
.game-desc {
  font-size: 0.85rem;
  color: #8899AA;
  color: var(--text-dim);
  margin-top: 2px;
}

@media (max-width: 400px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .game-card { min-height: 100px; padding: 14px 8px; }
  .game-icon { font-size: 2.2rem; }
}

/* Game Area */
.game-area {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 14px;
}
.game-area-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}
.game-area-title {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: #E8ECF1;
  color: var(--text);
}
.game-area-score {
  font-size: 0.95rem;
  font-weight: 600;
  color: #00D4AA;
  color: var(--accent);
}
.game-area-canvas {
  background: #111E33;
  background: var(--bg-card);
  border: 1px solid #1C3050;
  border: 1px solid var(--border);
  border-radius: 14px;
  border-radius: var(--radius-lg);
  padding: 16px;
  min-height: 200px;
  overflow: hidden;
}

/* Snake Controls */
.snake-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
}
.snake-controls div { display: flex; gap: 24px; }
.snake-controls button {
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
  background: #152238;
  background: var(--bg-input);
  border: 1px solid #1C3050;
  border: 1px solid var(--border);
  color: #E8ECF1;
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
}
.snake-controls button:active { background: #00D4AA; background: var(--accent); color: #0B1426; }

/* Tic Tac Toe */
.ttt-board {
  text-align: center;
  font-size: 0;
  max-width: 260px;
  margin: 0 auto;
}
.ttt-cell {
  display: inline-block;
  vertical-align: top;
  width: 30%;
  height: 0;
  padding-bottom: 30%;
  line-height: 2.8;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  background: #152238;
  background: var(--bg-input);
  border: 1px solid #1C3050;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  margin: 1%;
  box-sizing: border-box;
}
.ttt-cell:active { background: #1A2B45; background: var(--bg-hover); }
.ttt-x { color: #00D4AA; color: var(--accent); }
.ttt-o { color: #FF6B6B; color: var(--accent-warn); }

/* Memory Match */
.memory-board {
  text-align: center;
  font-size: 0;
  max-width: 320px;
  margin: 0 auto;
}
.memory-card {
  display: inline-block;
  vertical-align: top;
  width: 22%;
  height: 0;
  padding-bottom: 22%;
  line-height: 2.6;
  text-align: center;
  font-size: 1.4rem;
  background: #152238;
  background: var(--bg-input);
  border: 1px solid #1C3050;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  color: #4A6080;
  color: var(--text-muted);
  margin: 1%;
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
}
.memory-card.flipped { background: #1A2B45; background: var(--bg-hover); color: #E8ECF1; color: var(--text); }
.memory-card.matched { background: rgba(0,212,170,0.15); border-color: #00D4AA; border-color: var(--accent); }

/* Quiz */
.quiz-container { max-width: 480px; margin: 0 auto; }
.quiz-progress {
  font-size: 0.75rem;
  color: #8899AA;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.quiz-question {
  font-size: 1.05rem;
  font-weight: 600;
  color: #E8ECF1;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.4;
}
.math-question {
  font-size: 1.8rem;
  font-weight: 700;
  color: #00D4AA;
  color: var(--accent);
  text-align: center;
  margin-bottom: 16px;
}
.quiz-options { display: flex; flex-direction: column; gap: 8px; }
.quiz-option {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.88rem;
  text-align: left;
  background: #152238;
  background: var(--bg-input);
  border: 1px solid #1C3050;
  border: 1px solid var(--border);
  border-radius: 10px;
  border-radius: var(--radius);
  color: #E8ECF1;
  color: var(--text);
  cursor: pointer;
}
.quiz-option:active { border-color: #00D4AA; border-color: var(--accent); }

/* Reaction Time */
.reaction-box {
  padding: 40px 20px;
  text-align: center;
  border-radius: 14px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  min-height: 180px;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
}
.reaction-text { font-size: 1.1rem; font-weight: 600; }
.reaction-wait { background: #152238; background: var(--bg-input); color: #FF6B6B; }
.reaction-go { background: #00D4AA; background: var(--accent); color: #0B1426; }
.reaction-fail { background: rgba(255,107,107,0.15); color: #FF6B6B; }
.reaction-result { background: rgba(0,212,170,0.15); color: #00D4AA; color: var(--accent); }

/* 2048 */
.g2048-board {
  text-align: center;
  font-size: 0;
  max-width: 280px;
  margin: 0 auto;
  background: #0B1426;
  padding: 6px;
  border-radius: 10px;
}
.g2048-tile {
  display: inline-block;
  vertical-align: top;
  width: 22%;
  height: 0;
  padding-bottom: 22%;
  line-height: 2.6;
  text-align: center;
  font-weight: 700;
  border-radius: 6px;
  margin: 1%;
  box-sizing: border-box;
}

/* Sliding Puzzle */
.sliding-board {
  text-align: center;
  font-size: 0;
  max-width: 260px;
  margin: 0 auto;
  background: #0B1426;
  padding: 6px;
  border-radius: 10px;
}
.sliding-tile {
  display: inline-block;
  vertical-align: top;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  background: #1A2B45;
  background: var(--bg-hover);
  color: #E8ECF1;
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  margin: 2px;
  box-sizing: border-box;
}
.sliding-tile:active { background: #00D4AA; background: var(--accent); color: #0B1426; }
.sliding-empty { background: transparent !important; cursor: default; }
.sliding-correct { background: rgba(0,212,170,0.2); border: 1px solid rgba(0,212,170,0.4); }

/* Sudoku */
.sudoku-board {
  text-align: center;
  font-size: 0;
  max-width: 320px;
  margin: 0 auto;
  background: #0B1426;
  padding: 4px;
  border-radius: 8px;
}
.sudoku-cell {
  display: inline-block;
  vertical-align: top;
  width: 10%;
  height: 0;
  padding-bottom: 10%;
  line-height: 2.8;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  background: #152238;
  background: var(--bg-input);
  color: #E8ECF1;
  color: var(--text);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  border-radius: 2px;
  margin: 0.25%;
  box-sizing: border-box;
}
.sudoku-given { color: #00D4AA; color: var(--accent); font-weight: 700; cursor: default; }
.sudoku-selected { background: rgba(0,212,170,0.25) !important; outline: 2px solid #00D4AA; outline: 2px solid var(--accent); }
.sudoku-wrong { color: #FF6B6B !important; color: var(--accent-warn) !important; }
.sudoku-border-r { border-right: 2px solid #00D4AA; border-right: 2px solid var(--accent); }
.sudoku-border-b { border-bottom: 2px solid #00D4AA; border-bottom: 2px solid var(--accent); }
.sudoku-pad {
  text-align: center;
  margin-top: 12px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.sudoku-num {
  display: inline-block;
  width: 34px;
  height: 34px;
  font-size: 0.9rem;
  font-weight: 600;
  background: #152238;
  background: var(--bg-input);
  border: 1px solid #1C3050;
  border: 1px solid var(--border);
  color: #E8ECF1;
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  margin: 3px;
}
.sudoku-num:active { background: #00D4AA; background: var(--accent); color: #0B1426; }
.sudoku-clear { color: #FF6B6B; color: var(--accent-warn); }

/* Minecraft 2D */
.mc-controls {
  max-width: 480px;
  margin: 10px auto 70px;
  padding: 10px;
  background: rgba(220,225,230,0.95);
  border: 1px solid #aaa;
  border-radius: 14px;
  border-radius: var(--radius-lg);
}
.mc-ctrl-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.mc-dpad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.mc-dpad-mid {
  display: flex;
  gap: 4px;
}
.mc-joystick-wrap {
  flex-shrink: 0;
  width: 130px;
  height: 130px;
  touch-action: none;
}
.mc-joystick-canvas {
  display: block;
  width: 130px;
  height: 130px;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.mc-right-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.mc-btn-jump {
  width: 80px;
  height: 56px;
  font-size: 1.3rem;
  line-height: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.mc-btn-jump span {
  font-size: 0.8rem;
  margin-top: 1px;
}
.mc-btn {
  border: 1px solid #bbb;
  background: #e0e4e8;
  color: #111;
  border-radius: 10px;
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.mc-btn:active {
  background: #c8d0d8;
  border-color: #00D4AA;
  border-color: var(--accent);
  color: #111;
}
.mc-action-col {
  display: flex;
  gap: 8px;
}
.mc-btn-action {
  width: 80px;
  height: 72px;
  font-size: 1.4rem;
  line-height: 1.2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.mc-btn-action br + * {
  font-size: 0.85rem;
}
.mc-ctrl-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}
.mc-toolbar { flex-wrap: nowrap; }
.mc-btn-tool {
  height: 48px;
  min-width: 48px;
  padding: 0 12px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.mc-btn-wide {
  flex: 1;
  min-width: 0;
}
.mc-active {
  border-color: #00D4AA !important;
  border-color: var(--accent) !important;
  background: rgba(0,212,170,0.2) !important;
  color: #006650 !important;
  box-shadow: 0 0 8px rgba(0,212,170,0.3);
}
.mc-panel {
  background: #e8eaed;
  border: 1px solid #aaa;
  border-radius: 10px;
  border-radius: var(--radius);
  padding: 10px;
  margin-top: 8px;
  max-height: 200px;
  overflow-y: auto;
}
.mc-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 8px;
}
.mc-close {
  background: none;
  border: none;
  color: #555;
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 6px;
}
.mc-recipe {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid #1C3050;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 4px;
  font-size: 0.88rem;
  color: #555;
  opacity: 0.5;
}
.mc-recipe.mc-can {
  opacity: 1;
  color: #111;
  cursor: pointer;
  border-color: rgba(0,212,170,0.3);
}
.mc-recipe.mc-can:active {
  background: rgba(0,212,170,0.1);
}
.mc-recipe-need {
  font-size: 0.82rem;
  color: #666;
  display: block;
}
.mc-inv-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(28,48,80,0.5);
  font-size: 0.88rem;
  color: #111;
  cursor: pointer;
}
.mc-inv-item:active { background: rgba(0,212,170,0.1); }
.mc-inv-swatch {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  flex-shrink: 0;
}
.mc-inv-count {
  margin-left: auto;
  color: #555;
  font-size: 0.85rem;
}

/* ═══════════════════════════════════════
   MUSIC MODULE
   ═══════════════════════════════════════ */

.music-active {
  border-color: #00D4AA !important;
  border-color: var(--accent) !important;
  background: rgba(0,212,170,0.06) !important;
}
.music-play-icon {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  color: #00D4AA;
  color: var(--accent);
  padding: 0 4px;
  flex-shrink: 0;
}

/* Now Playing Bar */
.now-playing {
  position: fixed;
  bottom: 68px;
  left: 8px;
  right: 8px;
  z-index: 250;
  background: #111E33;
  background: var(--bg-card);
  border: 1px solid #00D4AA;
  border: 1px solid var(--accent);
  border-radius: 14px;
  border-radius: var(--radius-lg);
  padding: 8px 12px;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.4);
}

/* ═══════════════════════════════════════
   RESPONSIVE FONT SCALING
   ═══════════════════════════════════════ */
@media (min-width: 400px) {
  html { font-size: 16px; }
}
@media (min-width: 600px) {
  html { font-size: 17px; }
}
@media (min-width: 800px) {
  html { font-size: 18px; }
}
.now-playing-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}
.now-playing-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.now-playing-info { flex: 1; min-width: 0; }
.now-playing-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #E8ECF1;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.now-playing-artist {
  font-size: 0.65rem;
  color: #8899AA;
  color: var(--text-dim);
}
.now-playing-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #00D4AA;
  color: var(--accent);
  cursor: pointer;
  padding: 6px;
}

/* Music Player (Full) */
.music-player {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 14px 12px;
}
.music-player-inner {
  background: #111E33;
  background: var(--bg-card);
  border: 1px solid #1C3050;
  border: 1px solid var(--border);
  border-radius: 14px;
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
}
.music-player-thumb {
  width: 160px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 auto 12px;
}
.music-player-title {
  font-size: 1rem;
  font-weight: 600;
  color: #E8ECF1;
  color: var(--text);
  margin-bottom: 4px;
}
.music-player-artist {
  font-size: 0.78rem;
  color: #8899AA;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.music-player-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
}

@media (min-width: 601px) {
  .now-playing {
    bottom: 20px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
  }
}
