﻿.home-main {
  min-height: 100vh;
  padding: 14px 20px;
  overflow: hidden;
  color: #e5f2ff;
  background:
    linear-gradient(rgba(99, 102, 241, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 12% 10%, rgba(0, 229, 255, 0.28), transparent 28rem),
    radial-gradient(circle at 86% 14%, rgba(168, 85, 247, 0.32), transparent 26rem),
    radial-gradient(circle at 54% 100%, rgba(16, 185, 129, 0.16), transparent 28rem),
    linear-gradient(135deg, #020617 0%, #08111f 34%, #11113d 67%, #031827 100%);
  background-size: 34px 34px, 34px 34px, auto, auto, auto, auto;
  perspective: 1200px;
}

.home-main,
.home-main * {
  box-sizing: border-box;
}

body.home-dashboard-active .workstation,
.workstation:has(#mainPageRoot[style*="display: none"]) {
  grid-template-rows: minmax(0, 1fr);
  background:
    radial-gradient(circle at 14% 8%, rgba(0, 229, 255, 0.18), transparent 27rem),
    radial-gradient(circle at 80% 16%, rgba(168, 85, 247, 0.22), transparent 27rem),
    linear-gradient(135deg, #020617 0%, #06111f 45%, #0d102a 100%);
}

body.home-dashboard-active .workstation > .titlebar,
body.home-dashboard-active .workstation > .navbar,
body.home-dashboard-active .workstation > .statusbar,
.workstation:has(#mainPageRoot[style*="display: none"]) > .titlebar,
.workstation:has(#mainPageRoot[style*="display: none"]) > .navbar,
.workstation:has(#mainPageRoot[style*="display: none"]) > .statusbar {
  display: none;
}

body.home-dashboard-active .workstation > #homePersistentRoot,
.workstation:has(#mainPageRoot[style*="display: none"]) > #homePersistentRoot {
  grid-row: 1;
  min-height: 100vh;
}

.home-dashboard {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 28px);
  gap: 14px;
  max-width: 1760px;
  margin: 0 auto;
}

.home-top-tabs {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow-x: auto;
  border: 1px solid rgba(103, 232, 249, 0.11);
  border-radius: 20px;
  padding: 10px 12px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.78), rgba(20, 18, 52, 0.54)),
    rgba(2, 6, 23, 0.52);
  box-shadow:
    0 22px 46px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  scrollbar-width: none;
}

.home-top-tabs::-webkit-scrollbar {
  display: none;
}

.home-top-tab {
  display: inline-flex;
  min-width: max-content;
  height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  padding: 0 18px;
  background: rgba(15, 23, 42, 0.48);
  color: #e0f2fe;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.home-top-tab:hover {
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(30, 41, 100, 0.6);
  transform: translateY(-1px);
}

.home-top-tab.active {
  border-color: rgba(34, 211, 238, 0.72);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.36), rgba(124, 58, 237, 0.42));
  color: #7df9ff;
  box-shadow:
    0 0 24px rgba(34, 211, 238, 0.34),
    inset 0 0 18px rgba(16, 185, 129, 0.12);
}

.home-top-tab-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-content: center;
  color: #67e8f9;
  font-size: 17px;
}

.home-banner {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  border: 1px solid rgba(125, 249, 255, 0.32);
  border-radius: 24px;
  background-image:
    linear-gradient(116deg, rgba(2, 6, 23, 0.94), rgba(49, 46, 129, 0.76), rgba(6, 182, 212, 0.22)),
    var(--banner-image),
    radial-gradient(circle at 72% 25%, rgba(34, 211, 238, 0.22), transparent 18rem),
    linear-gradient(135deg, #020617, #17114e 55%, #042f3d);
  background-size: cover;
  background-position: center;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.48),
    0 0 42px rgba(34, 211, 238, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -80px 120px rgba(2, 6, 23, 0.45);
  transform: translateZ(0);
}

.home-banner::before,
.home-banner::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.home-banner::before {
  inset: -45%;
  background: conic-gradient(from 120deg, transparent, rgba(34, 211, 238, 0.18), transparent, rgba(168, 85, 247, 0.22), transparent);
  filter: blur(34px);
  opacity: 0.75;
}

.home-banner::after {
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.12), transparent 28%, transparent 70%, rgba(34,211,238,0.12)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.045) 0, rgba(255,255,255,0.045) 1px, transparent 1px, transparent 92px);
  mix-blend-mode: screen;
}

.home-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 38px 84px;
  color: #e0f2fe;
  text-shadow: 0 0 22px rgba(34, 211, 238, 0.26);
}

.home-banner-badge {
  width: fit-content;
  border: 1px solid rgba(34, 211, 238, 0.5);
  border-radius: 999px;
  padding: 6px 13px;
  background: rgba(8, 47, 73, 0.42);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.18), inset 0 0 18px rgba(168, 85, 247, 0.18);
  color: #a5f3fc;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
}

.home-banner h1,
.home-banner h2,
.home-banner p {
  margin: 0;
}

.home-banner h1 {
  width: fit-content;
  background: linear-gradient(90deg, #e0f2fe 0%, #67e8f9 28%, #a78bfa 65%, #f0abfc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(38px, 5.5vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
  filter: drop-shadow(0 0 26px rgba(34, 211, 238, 0.38));
}

.home-banner h2 {
  color: #dbeafe;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 900;
}

.home-banner p {
  max-width: 720px;
  color: rgba(224, 242, 254, 0.86);
  font-weight: 700;
}

.home-banner strong {
  width: fit-content;
  margin-top: 8px;
  border: 1px solid rgba(16, 185, 129, 0.36);
  border-radius: 12px;
  padding: 7px 12px;
  background: rgba(6, 78, 59, 0.28);
  color: #86efac;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.16);
}

.home-slide-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(125, 249, 255, 0.42);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.48);
  color: #cffafe;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 26px rgba(34, 211, 238, 0.2), inset 0 0 20px rgba(168, 85, 247, 0.12);
  transform: translateY(-50%);
  backdrop-filter: blur(14px);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-slide-btn:hover {
  border-color: rgba(216, 180, 254, 0.8);
  box-shadow: 0 0 36px rgba(168, 85, 247, 0.38), inset 0 0 24px rgba(34, 211, 238, 0.16);
  transform: translateY(-50%) scale(1.06);
}

.home-slide-btn.prev { left: 18px; }
.home-slide-btn.next { right: 18px; }

.home-slide-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.home-dot {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(103, 232, 249, 0.42);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.22);
  cursor: pointer;
}

.home-dot.active {
  width: 28px;
  border-color: rgba(216, 180, 254, 0.92);
  border-radius: 999px;
  background: linear-gradient(90deg, #22d3ee, #8b5cf6, #ec4899);
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.64);
}

.home-media-grid {
  display: grid;
  grid-template-columns: minmax(270px, 22%) minmax(560px, 1fr) minmax(270px, 22%);
  align-items: stretch;
  gap: 16px;
  min-height: 0;
  height: calc(100vh - 114px);
}

.home-card {
  display: flex;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(103, 232, 249, 0.2);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.82), rgba(30, 27, 75, 0.62)),
    rgba(2, 6, 23, 0.64);
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.42),
    0 0 34px rgba(34, 211, 238, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  transform: translateZ(0);
}

.home-card-head,
.home-music-nav,
.home-manual-play {
  flex: 0 0 auto;
}

.home-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 15px;
  border-bottom: 1px solid rgba(103, 232, 249, 0.16);
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.12), rgba(139, 92, 246, 0.14), rgba(2, 6, 23, 0.08));
}

.home-card-head h2 {
  margin: 0;
  background: linear-gradient(90deg, #e0f2fe, #67e8f9, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 16px;
  font-weight: 900;
}

.home-card-head span {
  color: #93c5fd;
  font-size: 12px;
  font-weight: 900;
}

.home-youtube-add,
.home-music-actions,
.home-music-nav {
  display: flex;
  gap: 8px;
  padding: 11px;
}

.home-youtube-add input {
  min-width: 0;
  flex: 1;
  border: 1px solid rgba(125, 249, 255, 0.22);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(2, 6, 23, 0.56);
  color: #e0f2fe;
  outline: none;
  font-size: 13px;
  box-shadow: inset 0 0 22px rgba(34, 211, 238, 0.05);
}

.home-youtube-add input::placeholder {
  color: rgba(191, 219, 254, 0.58);
}

.home-youtube-add input:focus {
  border-color: rgba(168, 85, 247, 0.85);
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.22), inset 0 0 18px rgba(34, 211, 238, 0.08);
}

.home-youtube-add input.invalid {
  border-color: #fb7185;
  background: rgba(127, 29, 29, 0.42);
}

.home-youtube-add button,
.home-music-actions button,
.home-music-nav button,
.home-manual-play {
  border: 1px solid rgba(125, 249, 255, 0.24);
  border-radius: 12px;
  padding: 10px 13px;
  background: linear-gradient(135deg, #06b6d4, #6d5dfc 48%, #a855f7);
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.28), 0 0 18px rgba(34, 211, 238, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.home-youtube-add button:hover,
.home-music-actions button:hover,
.home-music-nav button:hover,
.home-manual-play:hover {
  filter: brightness(1.12) saturate(1.15);
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.38), 0 0 28px rgba(34, 211, 238, 0.28);
  transform: translateY(-1px);
}

.home-music-actions button:last-child {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(88, 28, 135, 0.82));
  color: #c4b5fd;
}

.home-video-list,
.home-music-list {
  flex: 1;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 11px 13px;
  scrollbar-color: #8b5cf6 rgba(15, 23, 42, 0.6);
  scrollbar-width: thin;
}

.home-video-list::-webkit-scrollbar,
.home-music-list::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

.home-video-list::-webkit-scrollbar-track,
.home-music-list::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.7);
  border-radius: 999px;
}

.home-video-list::-webkit-scrollbar-thumb,
.home-music-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, #22d3ee, #8b5cf6);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.5);
}

.home-video-item,
.home-track-item {
  display: flex;
  width: 100%;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  margin-bottom: 10px;
  padding: 9px;
  background: rgba(15, 23, 42, 0.62);
  color: #e0f2fe;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 8px 20px rgba(0,0,0,0.18);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.home-video-item:hover,
.home-track-item:hover {
  border-color: rgba(34, 211, 238, 0.48);
  background: rgba(30, 41, 100, 0.72);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.12), inset 0 1px 0 rgba(255,255,255,0.08);
  transform: translateY(-1px);
}

.home-video-item.active,
.home-track-item.active {
  border-color: rgba(216, 180, 254, 0.75);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(124, 58, 237, 0.33));
  box-shadow: inset 4px 0 0 #22d3ee, 0 0 28px rgba(168, 85, 247, 0.22);
}

.home-video-item img {
  width: 86px;
  height: 54px;
  flex: 0 0 auto;
  border: 1px solid rgba(125, 249, 255, 0.16);
  border-radius: 10px;
  object-fit: cover;
  background: #020617;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.08);
}

.home-video-item span,
.home-track-item span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.home-video-item strong,
.home-track-item strong {
  overflow: hidden;
  color: #f8fafc;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-video-item small,
.home-track-item small {
  color: #93c5fd;
  font-size: 12px;
  line-height: 1.35;
}

.player-card {
  display: flex;
  flex-direction: column;
}

.home-player-box {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  padding: 13px 13px 0;
}

.home-player-marquee {
  display: flex;
  flex: 0 0 auto;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 20px 20px 0 0;
  margin: 0;
  padding: 8px 14px;
  background:
    linear-gradient(90deg, rgba(30, 11, 49, 0.76), rgba(8, 47, 73, 0.52)),
    radial-gradient(circle at 8% 50%, rgba(236, 72, 153, 0.28), transparent 9rem),
    radial-gradient(circle at 92% 50%, rgba(34, 211, 238, 0.18), transparent 9rem);
  box-shadow:
    0 0 22px rgba(236, 72, 153, 0.16),
    inset 0 0 18px rgba(34, 211, 238, 0.06);
}

.home-marquee-note {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-content: center;
  border: 1px solid rgba(34, 211, 238, 0.38);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.36), rgba(88, 28, 135, 0.34));
  color: #f0abfc;
  font-size: 17px;
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.24);
}

.home-marquee-window {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: #f0abfc;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(236, 72, 153, 0.42);
}

#homeNowPlayingMarquee {
  display: inline-block;
  min-width: 100%;
  padding-left: 100%;
  animation: homeMarqueeScroll 16s linear infinite;
}

.home-marquee-mini-bars {
  display: inline-flex;
  height: 24px;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
}

.home-marquee-mini-bars i {
  display: block;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #22d3ee, #d946ef);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.65);
  animation: homeMiniBar 0.82s ease-in-out infinite alternate;
}

.home-marquee-mini-bars i:nth-child(1) { height: 9px; animation-delay: 0s; }
.home-marquee-mini-bars i:nth-child(2) { height: 18px; animation-delay: 0.12s; }
.home-marquee-mini-bars i:nth-child(3) { height: 13px; animation-delay: 0.24s; }
.home-marquee-mini-bars i:nth-child(4) { height: 21px; animation-delay: 0.36s; }

@keyframes homeMarqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@keyframes homeMiniBar {
  from { transform: scaleY(0.45); opacity: 0.58; }
  to { transform: scaleY(1); opacity: 1; }
}

.home-audio-wave-panel {
  position: relative;
  flex: 0 0 78px;
  height: 78px;
  min-height: 78px;
  overflow: hidden;
  border: 1px solid rgba(120, 210, 255, 0.18);
  border-radius: 16px;
  margin: 0 13px 13px;
  background:
    linear-gradient(135deg, rgba(5, 12, 22, 0.72), rgba(20, 18, 52, 0.58)),
    radial-gradient(circle at 16% 24%, rgba(0, 220, 255, 0.16), transparent 11rem),
    radial-gradient(circle at 88% 35%, rgba(126, 87, 255, 0.18), transparent 12rem);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.3),
    0 0 24px rgba(0, 220, 255, 0.1),
    inset 0 0 24px rgba(0, 220, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.home-audio-wave-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07), transparent 22%, transparent 74%, rgba(0, 220, 255, 0.1)),
    repeating-linear-gradient(90deg, rgba(120, 210, 255, 0.045) 0, rgba(120, 210, 255, 0.045) 1px, transparent 1px, transparent 31px);
  mix-blend-mode: screen;
  opacity: 0.62;
}

#homeAudioWaveCanvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

.home-youtube-frame {
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 18px;
  background: #020617;
  flex: 1;
  min-height: 340px;
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.16), 0 22px 45px rgba(0, 0, 0, 0.42);
}

.home-youtube-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.home-player-empty {
  display: grid;
  min-height: 280px;
  flex: 1;
  place-content: center;
  justify-items: center;
  gap: 9px;
  border: 1px dashed rgba(125, 249, 255, 0.35);
  border-radius: 18px;
  color: #a5f3fc;
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.16), transparent 15rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(49, 46, 129, 0.5));
  text-align: center;
  box-shadow: inset 0 0 40px rgba(34, 211, 238, 0.08);
}

.home-player-empty div {
  display: grid;
  width: 62px;
  height: 62px;
  place-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #22d3ee, #8b5cf6);
  color: #fff;
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.34);
}

.home-player-alert {
  flex: 0 0 auto;
  margin: 8px 0 0;
  border: 1px solid rgba(251, 191, 36, 0.36);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(120, 53, 15, 0.3);
  color: #fbbf24;
  font-size: 12px;
  font-weight: 800;
}

.home-hidden-input,
.hidden {
  display: none !important;
}

.home-audio {
  display: block;
  width: calc(100% - 22px);
  margin: 11px;
  accent-color: #8b5cf6;
  filter: drop-shadow(0 0 14px rgba(34, 211, 238, 0.12));
}

.home-manual-play {
  width: calc(100% - 22px);
  margin: 0 11px 11px;
  background: linear-gradient(135deg, #10b981, #06b6d4, #6d5dfc);
}

.home-track-item {
  justify-content: space-between;
}

.home-track-item em {
  color: #86efac;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-shadow: 0 0 14px rgba(16, 185, 129, 0.42);
  white-space: nowrap;
}

.home-empty-list {
  border: 1px dashed rgba(125, 249, 255, 0.24);
  border-radius: 14px;
  padding: 18px 12px;
  color: #93c5fd;
  background: rgba(15, 23, 42, 0.46);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 980px) {
  .home-main {
    overflow: auto;
  }
  .home-dashboard {
    min-height: auto;
  }
  .home-media-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .home-banner-overlay {
    padding: 30px 58px;
  }
  .home-video-list,
  .home-music-list {
    min-height: 260px;
  }
}

@media (max-width: 620px) {
  .home-main {
    padding: 10px;
  }
  .home-banner {
    min-height: 210px;
    border-radius: 18px;
  }
  .home-banner-overlay {
    padding: 26px 48px;
  }
  .home-banner h1 {
    font-size: 34px;
  }
  .home-youtube-add,
  .home-music-actions,
  .home-music-nav {
    flex-wrap: wrap;
  }
  .home-youtube-add input,
  .home-youtube-add button,
  .home-music-actions button,
  .home-music-nav button {
    width: 100%;
  }
}

/* Mobile Home drawers. PC Home keeps the current dashboard unchanged. */
@media (max-width: 768px) {
  body.home-dashboard-active .workstation,
  .workstation:has(#mainPageRoot[style*="display: none"]) {
    grid-template-rows: auto minmax(0, 1fr) !important;
  }

  body.home-dashboard-active .workstation > .navbar,
  .workstation:has(#mainPageRoot[style*="display: none"]) > .navbar {
    display: flex !important;
  }

  body.home-dashboard-active .workstation > .titlebar,
  body.home-dashboard-active .workstation > .statusbar,
  .workstation:has(#mainPageRoot[style*="display: none"]) > .titlebar,
  .workstation:has(#mainPageRoot[style*="display: none"]) > .statusbar {
    display: none !important;
  }

  body.home-dashboard-active .workstation > #homePersistentRoot,
  .workstation:has(#mainPageRoot[style*="display: none"]) > #homePersistentRoot {
    grid-row: 2 !important;
  }

  .home-main {
    width: 100vw !important;
    min-width: 0 !important;
    height: calc(100vh - 56px) !important;
    min-height: 0 !important;
    padding: 8px !important;
    overflow: hidden !important;
  }

  .home-dashboard {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 0 !important;
    gap: 8px !important;
    overflow: hidden !important;
  }

  .home-top-tabs {
    display: none !important;
  }

  .home-media-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    gap: 0 !important;
    overflow: hidden !important;
  }

  .player-card {
    grid-column: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
  }

  .video-list-card,
  .music-card {
    position: fixed !important;
    top: 56px !important;
    bottom: 0 !important;
    width: 82vw !important;
    max-width: 360px !important;
    min-width: 0 !important;
    height: auto !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    pointer-events: auto !important;
    touch-action: pan-y;
    border: 1px solid rgba(103, 232, 249, 0.24) !important;
    background:
      linear-gradient(150deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.96)),
      rgba(5, 15, 35, 0.96) !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.48), 0 0 18px rgba(34, 211, 238, 0.1) !important;
    backdrop-filter: none !important;
    will-change: transform;
    transition: transform 180ms ease-out !important;
  }

  .video-list-card {
    left: 0 !important;
    border-radius: 0 18px 18px 0 !important;
    transform: translate3d(-105%, 0, 0) !important;
  }

  .music-card {
    right: 0 !important;
    border-radius: 18px 0 0 18px !important;
    transform: translate3d(105%, 0, 0) !important;
  }

  .workstation.mobile-left-open .video-list-card {
    transform: translate3d(0, 0, 0) !important;
  }

  .workstation.mobile-right-open .music-card {
    transform: translate3d(0, 0, 0) !important;
  }

  .home-video-list,
  .home-music-list {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
  }

  .home-card input,
  .home-card textarea,
  .home-card select {
    font-size: 16px !important;
  }
}

.home-embed-warning {
  margin-top: 8px !important;
  color: #fbbf24 !important;
  font-size: 12px;
  font-weight: 700;
}

.home-open-youtube {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(125, 249, 255, 0.28);
  border-radius: 12px;
  margin-top: 6px;
  padding: 9px 12px;
  background: linear-gradient(135deg, #ef4444, #8b5cf6, #06b6d4);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.18), 0 0 18px rgba(34, 211, 238, 0.16);
}

.home-open-youtube:hover {
  filter: brightness(1.12) saturate(1.15);
  box-shadow: 0 14px 30px rgba(139, 92, 246, 0.34), 0 0 28px rgba(34, 211, 238, 0.26);
}

.home-video-file-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-content: center;
  border: 1px solid rgba(125, 249, 255, 0.22);
  border-radius: 14px;
  background: radial-gradient(circle at 35% 25%, rgba(34, 211, 238, 0.34), rgba(124, 58, 237, 0.24) 48%, rgba(2, 6, 23, 0.76));
  color: #e0f2fe;
  font-size: 18px;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.14), inset 0 1px 0 rgba(255,255,255,0.08);
}

.home-local-video-frame {
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 18px;
  background: #020617;
  flex: 1;
  min-height: 340px;
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.16), 0 22px 45px rgba(0, 0, 0, 0.42);
}

.home-local-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  background: #020617;
  object-fit: contain;
}

.home-dashboard-parking-lot {
  position: fixed;
  left: -120vw;
  top: 112px;
  width: min(1500px, 100vw);
  height: calc(100vh - 112px);
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.home-dashboard-parked {
  width: min(1500px, 100vw);
}



