/* ==========================================================================
   CyberArcade - Pro Gaming Theater Layout & Design System
   ========================================================================== */

:root {
  /* Color Palette - Neon Cyber Gaming */
  --bg-darkest: #070a10;
  --bg-primary: #0c101a;
  --bg-surface: #141b2b;
  --bg-surface-hover: #1c263c;
  --bg-rail: #0a0e18;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-neon: rgba(0, 240, 255, 0.25);
  --border-neon-hover: rgba(0, 240, 255, 0.6);

  --neon-cyan: #00f0ff;
  --neon-pink: #ff007f;
  --neon-purple: #9d4edd;
  --neon-green: #00ff88;
  --neon-amber: #ffaa00;

  --text-main: #f3f6fa;
  --text-muted: #8d9dae;
  --text-dim: #556577;

  --font-display: 'Orbitron', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-neon-cyan: 0 0 15px rgba(0, 240, 255, 0.35);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);

  --rail-width: 72px;
  --header-height: 64px;

  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body.cyber-theater-theme {
  font-family: var(--font-body);
  background-color: var(--bg-darkest);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Ambient Glows */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.glow-top-left {
  width: 500px;
  height: 500px;
  top: -100px;
  left: 0;
  background: radial-gradient(circle, var(--neon-cyan) 0%, transparent 70%);
}

.glow-bottom-right {
  width: 600px;
  height: 600px;
  bottom: -150px;
  right: -100px;
  background: radial-gradient(circle, var(--neon-purple) 0%, transparent 70%);
}

.scanlines {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.2) 50%);
  background-size: 100% 4px;
  opacity: 0.25;
}

/* App Master Layout (Left Rail + Main Viewport) */
.app-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Left Navigation Rail
   ========================================================================== */
.nav-rail {
  width: var(--rail-width);
  background: var(--bg-rail);
  border-right: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 0;
  z-index: 100;
  flex-shrink: 0;
}

.rail-logo {
  margin-bottom: 1.25rem;
}

.rail-brand-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(255, 0, 127, 0.2));
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 1.6rem;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
  transition: transform var(--transition-fast);
}

.rail-brand-link:hover {
  transform: scale(1.08);
}

.rail-menu {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  padding: 0 0.45rem;
}

.rail-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 100%;
  height: 54px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.rail-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.rail-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rail-btn:hover {
  background: var(--bg-surface);
  color: var(--text-main);
}

.rail-btn.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(157, 78, 221, 0.25));
  border: 1px solid var(--border-neon);
  color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

.rail-divider {
  width: 70%;
  height: 1px;
  background: var(--border-subtle);
  margin: 0.5rem auto;
}

/* ==========================================================================
   Top Header Bar
   ========================================================================== */
.main-viewport {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.top-header {
  height: var(--header-height);
  background: rgba(10, 14, 24, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  gap: 1.25rem;
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-bolt {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 8px var(--neon-cyan));
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.brand-title span {
  color: var(--neon-cyan);
}

/* Search Capsule */
.header-center {
  flex-grow: 1;
  max-width: 620px;
}

.search-capsule {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-lens {
  position: absolute;
  left: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  pointer-events: none;
}

.search-capsule input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 0.65rem 2.5rem 0.65rem 2.8rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.search-capsule input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  background: #182236;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.3);
}

.clear-search-btn {
  position: absolute;
  right: 0.85rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  display: none;
}

.clear-search-btn:hover {
  color: var(--neon-pink);
}

/* Header Buttons */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.pill-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
}

.pill-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-neon);
  color: var(--neon-cyan);
}

.surprise-pill {
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.25), rgba(0, 240, 255, 0.2));
  border-color: rgba(157, 78, 221, 0.4);
}

.surprise-pill:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

.icon-pill {
  padding: 0.5rem 0.75rem;
  font-size: 1.05rem;
}

.badge {
  background: var(--neon-pink);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Content Container
   ========================================================================== */
.content-container {
  padding: 1.5rem 1.75rem 4rem 1.75rem;
  max-width: 1540px;
  width: 100%;
  margin: 0 auto;
}

/* ==========================================================================
   2-Column Theater Layout (Player + Up Next Sidebar)
   ========================================================================== */
.theater-section {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  align-items: start;
}

.theater-player-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

/* Breadcrumbs */
.theater-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.crumb-home {
  cursor: pointer;
  color: var(--text-muted);
}

.crumb-home:hover {
  color: var(--neon-cyan);
}

.crumb-cat {
  color: var(--neon-cyan);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  background: rgba(0, 240, 255, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs);
}

.crumb-title {
  color: var(--text-main);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Theater Screen Card */
.theater-screen-card {
  background: #04060a;
  border: 2px solid var(--border-neon);
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 240, 255, 0.15);
  height: 560px;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Under-Screen Action Bar */
.player-action-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.bar-left-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.active-game-heading {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.game-meta-tags {
  display: flex;
  gap: 0.4rem;
}

.meta-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
}

.cat-tag {
  background: rgba(0, 240, 255, 0.15);
  color: var(--neon-cyan);
}

.cloud-tag {
  background: rgba(0, 255, 136, 0.15);
  color: var(--neon-green);
}

.bar-right-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.action-control-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-fast);
}

.action-control-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.action-control-btn.active-like {
  color: var(--neon-green);
  border-color: var(--neon-green);
  background: rgba(0, 255, 136, 0.15);
}

.action-control-btn.active-fav {
  color: var(--neon-amber);
  border-color: var(--neon-amber);
  background: rgba(255, 170, 0, 0.15);
}

.primary-action-ctrl {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(0, 136, 255, 0.25));
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

/* Score chips & Info Panel */
.game-info-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.info-score-chips {
  display: flex;
  gap: 1rem;
}

.chip {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.4rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.chip-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
}

.chip-val {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--neon-cyan);
}

.high-val {
  color: var(--neon-amber);
}

.game-description-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.controls-guide-box h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--neon-cyan);
  margin-bottom: 0.4rem;
}

/* ==========================================================================
   Right Column: "Play Next" Recommended Queue
   ========================================================================== */
.theater-sidebar-col {
  width: 100%;
}

.sidebar-sticky-wrap {
  position: sticky;
  top: calc(var(--header-height) + 1.25rem);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.65rem;
}

.sidebar-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.sidebar-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--neon-pink);
  background: rgba(255, 0, 127, 0.12);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
  letter-spacing: 0.5px;
}

.up-next-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Custom Scrollbar */
.up-next-grid::-webkit-scrollbar {
  width: 5px;
}
.up-next-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* Up Next Mini Card */
.up-next-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(10, 14, 24, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.55rem;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
  text-decoration: none;
  color: inherit;
}

.up-next-card:hover {
  transform: translateX(4px);
  border-color: var(--border-neon);
  background: var(--bg-surface-hover);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.15);
}

.up-next-thumb {
  width: 78px;
  height: 54px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: #090e18;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.75rem;
}

.up-next-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.up-next-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.up-next-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
}

.up-next-cat {
  font-size: 0.7rem;
  color: var(--neon-cyan);
  text-transform: uppercase;
  font-weight: 600;
}

/* ==========================================================================
   Bottom Explorer Catalog
   ========================================================================== */
.explore-catalog-section {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2.5rem;
}

.catalog-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.catalog-heading-wrap h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.catalog-counter {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.category-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pill-tab {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.pill-tab:hover {
  background: var(--bg-surface-hover);
  color: var(--text-main);
  border-color: rgba(0, 240, 255, 0.3);
}

.pill-tab.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(157, 78, 221, 0.25));
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.game-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-neon-hover);
  box-shadow: 0 10px 25px rgba(0, 240, 255, 0.2);
  background: var(--bg-surface-hover);
}

.game-card-banner {
  height: 140px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #080d17;
  overflow: hidden;
}

.game-card-icon {
  font-size: 3.5rem;
  z-index: 1;
}

.game-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.game-card:hover .game-card-img {
  transform: scale(1.08);
}

.card-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  background: rgba(10, 13, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
}

.card-fav-btn:hover, .card-fav-btn.active {
  color: var(--neon-amber);
  border-color: var(--neon-amber);
}

.game-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.game-badges {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.cat-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
  background: rgba(0, 240, 255, 0.12);
  color: var(--neon-cyan);
}

.high-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
  background: rgba(255, 170, 0, 0.15);
  color: var(--neon-amber);
  margin-left: auto;
}

.game-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #fff;
}

.game-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.85rem;
  flex-grow: 1;
}

.game-card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.65rem;
}

.play-action-text {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--neon-cyan);
}

.game-card:hover .play-action-text {
  color: var(--neon-pink);
}

/* No Results State */
.no-results {
  text-align: center;
  padding: 3.5rem 1rem;
  background: var(--bg-surface);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
}

.no-results-icon {
  font-size: 2.8rem;
  margin-bottom: 0.75rem;
}

.no-results h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.no-results p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  border: none;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-primary:hover {
  filter: brightness(1.2);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  cursor: pointer;
}

/* Footer */
.app-footer {
  background: #04060b;
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 1.75rem 1.5rem 1.75rem;
}

.footer-inner {
  max-width: 1540px;
  margin: 0 auto 1.75rem auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  margin-bottom: 0.3rem;
}

.footer-logo span {
  color: var(--neon-cyan);
}

.footer-brand-info p {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-meta-links {
  display: flex;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-copy {
  max-width: 1540px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.25rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.75rem;
}

/* Responsive Media Queries */
@media (max-width: 1100px) {
  .theater-section {
    grid-template-columns: 1fr;
  }
  .up-next-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    max-height: none;
  }
}

@media (max-width: 768px) {
  .nav-rail {
    display: none;
  }
  .content-container {
    padding: 1rem;
  }
  .top-header {
    padding: 0 1rem;
  }
  .search-capsule input {
    font-size: 0.85rem;
  }
  .pill-btn span:not(.badge) {
    display: none;
  }
  .player-action-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .bar-right-controls {
    justify-content: space-between;
  }
}
