/* ProgressBar.css */
.top-progress-container{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9999;
  pointer-events: none;
}
.top-progress-bar{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 200ms ease-out, opacity 300ms linear;
  box-shadow: 0 0 8px rgba(0,0,0,0.08);
}

/*  background: linear-gradient(90deg, #ffa500, #00a8ff); /* orange -> blue taste */
/* index.css */
:root {
  --accent: #2AA9F2;
  --accent-2: #E382A8;
  --surface: #0F1724;
  --surface-2: #1C2536;
  --text: #E6EEF8;
  --text-secondary: rgba(230, 238, 248, 0.6);
  --player-z: 2000;
  --nav-z: 1300;
}

* { box-sizing: border-box; }

html, body, #root { height: 100%; overflow: hidden; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, #071029 0%, #0b1220 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* App Structure */
.app-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.app-main {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  padding-bottom: 140px; /* Space for miniplayer + nav */
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(7, 16, 41, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Typography */
.page-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 16px 0; letter-spacing: -0.02em; }
.text-grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.small { font-size: 0.85rem; color: var(--text-secondary); }

/* Components */
.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 16px;
  transition: transform 0.2s;
}

/* Full Screen Player Overlay */
.fs-player {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #1a2236 0%, #071029 100%);
  z-index: var(--player-z);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: translateY(100%); /* Hidden by default */
  overflow: hidden;
}

.fs-player.open {
  transform: translateY(0);
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-in { animation: fadeIn 0.5s ease-out; }

/* Utilities */
.h-stack { display: flex; gap: 12px; align-items: center; }
.v-stack { display: flex; flex-direction: column; gap: 8px; }

/* Hidden YT */
#hitori-yt-player {
  position: absolute; left: -9999px; width: 1px; height: 1px; pointer-events: none;
}

.hidden {
  display: none;
}

/* Unavailable Tab Styling */
.MuiTab-root.unavailable {
  opacity: 0.4 !important;
  color: #E382A8 !important;
  cursor: not-allowed !important;
  text-decoration: line-through;
  transition: all 0.2s ease;
}

.MuiTab-root.unavailable:hover {
  opacity: 0.5 !important;
  background: rgba(227, 130, 168, 0.05);
}