:root {
  --bg-black: #090909;
  --bg-card: #121212;
  --accent-blue: #007bff;
  --accent-neon: #00d2ff;
  --text-main: #ffffff;
  --text-dim: #b3b3b3;
  --neon-shadow: 0 0 15px rgba(0, 123, 255, 0.4);
  --neo-shadow: 6px 6px 12px #050505, -6px -6px 12px #151515;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--bg-black);
  color: var(--text-main);
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 10px;
}

.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 500px; /* Mobile first focus */
  margin: 0 auto;
  position: relative;
}

/* Header & Search */
.header {
  padding: 20px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}

.search-bar {
  display: flex;
  background: var(--bg-card);
  border-radius: 30px;
  padding: 10px 20px;
  box-shadow: var(--neo-shadow);
  border: 1px solid transparent;
  transition: 0.3s;
}

.search-bar:focus-within {
  border-color: var(--accent-blue);
  box-shadow: var(--neon-shadow);
}

.search-bar input {
  background: transparent;
  border: none;
  color: white;
  width: 100%;
  outline: none;
  font-size: 14px;
}

/* Content Area */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 120px 20px;
}

.section-title {
  font-size: 22px;
  margin: 25px 0 15px 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Cards & Lists */
.card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--neo-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.card:active {
  transform: scale(0.98);
}

.card img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}

.card-info {
  flex: 1;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.card-subtitle {
  font-size: 12px;
  color: var(--text-dim);
}

/* Neon Button */
.btn-neon {
  background: var(--accent-blue);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 600;
  box-shadow: var(--neon-shadow);
  cursor: pointer;
  transition: 0.3s;
}

.btn-neon:hover {
  filter: brightness(1.2);
}

/* Player Bar & Expanded */
.player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(18, 18, 18, 0.98);
  backdrop-filter: blur(20px);
  padding: 10px 20px 25px 20px;
  border-top: 1px solid #333;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.player-bar.expanded {
  height: 100vh;
  padding-top: 60px;
  justify-content: space-around;
}

.expanded-header {
  display: none;
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  justify-content: space-between;
}

.player-bar.expanded .expanded-header {
  display: flex;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-info img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
}

.player-bar.expanded .player-info {
  flex-direction: column;
  text-align: center;
}

.player-bar.expanded .player-info img {
  width: 80vw;
  height: 80vw;
  max-width: 300px;
  max-height: 300px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  margin-bottom: 20px;
}

.player-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
}

.player-bar.expanded .player-controls {
  gap: 35px;
}

.time-info {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 5px;
}

.control-icon.active {
  color: var(--accent-blue);
  filter: drop-shadow(0 0 5px var(--accent-blue));
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  border-bottom: 1px solid #222;
}

.tab {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding-bottom: 5px;
}

.tab.active {
  color: var(--accent-blue);
  border-bottom: 2px solid var(--accent-blue);
}

/* YouTube Hidden Container */
#yt-player {
  display: none;
}
