/* ==========================================================================
   YouTube Music PC Web Player - 100% Screenshot Matching Design System
   ========================================================================== */

:root {
  --bg-base: #030303;
  --bg-header: #030303;
  --bg-player: #212121;
  --bg-surface: #121212;
  --bg-card: #181818;
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.08);

  --text-primary: #ffffff;
  --text-secondary: #aaaaaa;
  --text-muted: #717171;

  --accent-yt-red: #ff0000;
  --accent-blue: #8ab4f8;

  --font-main: 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --header-height: 64px;
  --player-height: 72px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-pill: 9999px;
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Global Ultra-Sleek Dark Glass Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}
* {
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-base);
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  user-select: none;
}

button {
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  touch-action: manipulation;
}

input {
  font-family: inherit;
  color: inherit;
  outline: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* App Container */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  position: relative;
  background-color: var(--bg-base);
  overflow: hidden;
}

/* ==========================================================================
   YouTube Music PC Top Header (스크린샷 100% 일치)
   ========================================================================== */
.ytm-header {
  height: var(--header-height);
  background-color: var(--bg-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  flex-shrink: 0;
}

.ytm-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.nav-history-btns {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-hist-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-hist-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.ytm-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.ytm-logo-circle {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ytm-brand-name {
  font-family: 'Roboto', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
}

/* 상단 탭 네비게이션 (홈 / 둘러보기 / 보관함) */
.ytm-top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
}

.ytm-nav-tab {
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #aaa;
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.ytm-nav-tab:hover {
  color: #fff;
}

.ytm-nav-tab.active {
  color: #ffffff;
}

/* 검색창 */
.ytm-search-box {
  display: flex;
  align-items: center;
  background: #212121;
  border-radius: var(--radius-md);
  padding: 0 12px;
  height: 38px;
  width: 360px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-left: 16px;
  transition: width 0.2s ease, border-color 0.2s ease;
}

.ytm-search-box:focus-within {
  border-color: rgba(255, 255, 255, 0.3);
  background: #181818;
}

.ytm-search-btn {
  color: #aaa;
  display: flex;
  align-items: center;
}

.ytm-search-box input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.92rem;
  width: 100%;
  margin-left: 8px;
}

.ytm-search-box input::placeholder {
  color: #717171;
}

.search-clear-btn {
  color: #aaa;
}

.search-clear-btn:hover {
  color: #fff;
}

.ytm-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ytm-action-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #aaa;
}

.ytm-action-icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.user-profile-avatar-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-profile-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-login-btn {
  padding: 8px 16px;
  background: #ffffff;
  color: #030303;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   Main Content Layout (Full Width Desktop - No Left Sidebar)
   ========================================================================== */
.main-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.content-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 28px 48px calc(var(--player-height) + 40px) 48px;
  max-width: 1480px;
  margin: 0 auto;
  width: 100%;
}

.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
}

.bottom-spacer {
  height: 30px;
}

/* Section Common */
.section-container {
  margin-bottom: 48px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
  display: block;
}

.section-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.section-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-arrow-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  transition: all var(--transition-fast);
}

.section-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.section-text-btn {
  color: #aaa;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 16px;
  margin-right: 6px;
}

.section-text-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   섹션 1: 빠른 선곡 (4행 그리드 레이아웃 - 스크린샷 100% 일치)
   ========================================================================== */
.quick-picks-grid-ytm {
  display: grid;
  grid-template-rows: repeat(4, 56px);
  grid-auto-flow: column;
  grid-auto-columns: minmax(340px, 1fr);
  gap: 10px 32px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.quick-picks-grid-ytm::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.track-row-card {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
  gap: 14px;
}

.track-row-card:hover {
  background: var(--bg-card-hover);
}

.track-row-card.playing {
  background: rgba(255, 255, 255, 0.12);
}

.track-row-cover {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: #181818;
}

.track-row-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
  color: #fff;
}

.track-row-card:hover .cover-play-overlay {
  opacity: 1;
}

.track-row-card.playing .cover-play-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.6);
}

.track-row-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.track-row-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-row-artist {
  font-size: 0.82rem;
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
}

.track-radio-icon {
  font-size: 0.75rem;
  color: #aaa;
  margin-right: 2px;
}

.track-row-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.track-row-card:hover .track-row-actions {
  opacity: 1;
}

.btn-track-action {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #aaa;
}

.btn-track-action:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   섹션 2: 다시 듣기 (Large Square Cards - 스크린샷 일치)
   ========================================================================== */
.cards-horizontal-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 220px);
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cards-horizontal-scroll::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.music-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-cover-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #181818;
}

.card-cover-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* 스크린샷에 보이는 중앙 화이트 재생 삼각형 오버레이 */
.card-float-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0.85;
  transition: all var(--transition-fast);
}

.music-card:hover .card-float-play-btn {
  opacity: 1;
  transform: scale(1.1);
  background: #ff0000;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-subtitle {
  font-size: 0.82rem;
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   섹션 3: 아티스트 추천 (Artist Spotlight)
   ========================================================================== */
.artist-spotlight-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.artist-spotlight-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.artist-spotlight-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   섹션 4: 실시간 TOP 차트 & 라이브 뱃지
   ========================================================================== */
.badge-live-pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: pulseDot 1.4s infinite ease-in-out;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.top-charts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.chart-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.chart-rank {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  width: 24px;
  text-align: center;
}

.chart-cover {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.chart-meta {
  flex: 1;
  min-width: 0;
}

.chart-song-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-song-artist {
  font-size: 0.82rem;
  color: #aaa;
}

/* ==========================================================================
   하단 플레이어 바 (YouTube Music PC 스크린샷 100% 일치)
   ========================================================================== */
.player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--player-height);
  background: var(--bg-player);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 500;
  display: flex;
  flex-direction: column;
}

/* 최상단 풀폭 레드 진행 바 */
.player-seek-container {
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 4px;
  cursor: pointer;
  transition: height 0.15s ease;
}

.player-seek-container:hover {
  height: 6px;
  top: -3px;
}

.seek-buffer-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #383838;
  width: 100%;
}

.seek-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--accent-yt-red);
  width: 0%;
  transition: width 0.1s linear;
}

.seek-slider {
  position: absolute;
  top: -6px;
  left: 0;
  width: 100%;
  height: 16px;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
}

.player-bar-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

/* 1. 좌측: 컨트롤 & 시간 표시 (|◀  ⏸  ▶|  1:37 / 2:58) */
.player-left-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 280px;
  flex-shrink: 0;
}

.ctrl-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ctrl-btn.active {
  color: var(--accent-yt-red);
}

/* 재생/일시정지 메인 버튼 */
.btn-play-main {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  transition: transform 0.15s ease;
}

.btn-play-main:hover {
  transform: scale(1.12);
}

.player-time-display {
  font-size: 0.82rem;
  color: #aaa;
  margin-left: 6px;
  font-feature-settings: 'tnum';
  letter-spacing: 0.5px;
}

/* 2. 중앙: 현재 곡 정보 & 리액션 버튼 ([Cover] Title / Artist • Album  👎 👍 ⋮) */
.player-track-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  justify-content: center;
  min-width: 0;
  max-width: 640px;
}

.player-cover-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.player-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
}

.player-title {
  font-size: 0.92rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.player-artist {
  font-size: 0.8rem;
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-track-reactions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
}

.btn-thumb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.btn-thumb:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-thumb.liked {
  color: #fff;
}

.btn-thumb.liked i, .btn-thumb.liked svg {
  fill: currentColor;
}

/* 3. 우측: 볼륨 & 셔플/반복 & 가사 열기 (🔁 🔀 🔊 ∧) */
.player-right-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 280px;
  justify-content: flex-end;
  flex-shrink: 0;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-slider {
  width: 80px;
  height: 4px;
  accent-color: #fff;
  cursor: pointer;
}

/* ==========================================================================
   실시간 동기화 가사 (Synced Lyrics with Instrumental Indicators)
   ========================================================================== */
.lyrics-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 24px;
  max-width: 680px;
  margin: 0 auto;
  min-height: 400px;
}

.lyric-line {
  font-size: 1.25rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.25s ease, font-size 0.25s ease, transform 0.25s ease;
  user-select: none;
}

.lyric-line:hover {
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.04);
}

.lyric-line.active {
  color: #ffffff !important;
  font-size: 1.55rem !important;
  font-weight: 800 !important;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.6);
  transform: scale(1.02);
  transform-origin: left center;
  background: rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--accent-yt-red);
}

.lyric-line.past {
  color: rgba(255, 255, 255, 0.22);
}

/* 전주/간주 중 인디케이터 */
.lyric-line.instrumental {
  color: #ff5252;
  font-style: italic;
  letter-spacing: 0.5px;
}

.lyric-line.instrumental.active {
  color: #ff6b6b !important;
  text-shadow: 0 0 14px rgba(255, 82, 82, 0.6);
}

/* ==========================================================================
   Google 정품 스타일 로그인 선택 모달 (Authentic Google Sign-In Chooser)
   ========================================================================== */
.auth-taste-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.auth-taste-modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}

.google-signin-dialog {
  position: relative;
  background: #202124;
  border-radius: 14px;
  width: 440px;
  max-width: 90vw;
  padding: 36px 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 85vh;
  overflow-y: auto;
}

@keyframes modalPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.google-dialog-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  margin-bottom: 24px;
}

.auth-modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #aaa;
}

.auth-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.google-dialog-title {
  font-size: 1.45rem;
  font-weight: 500;
  margin-top: 14px;
  color: #e8eaed;
}

.google-dialog-subtitle {
  font-size: 0.92rem;
  color: #9aa0a6;
  margin-top: 4px;
}

.google-input-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.google-label {
  font-size: 0.82rem;
  color: var(--accent-blue);
  font-weight: 500;
}

.google-input-box input {
  background: transparent;
  border: 1px solid #5f6368;
  border-radius: 4px;
  padding: 12px 14px;
  color: #fff;
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.google-input-box input:focus {
  border-color: var(--accent-blue);
}

.btn-google-next {
  background: var(--accent-blue);
  color: #202124;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 11px 24px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  transition: filter var(--transition-fast);
}

.btn-google-next:hover {
  filter: brightness(1.1);
}

.google-account-list-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0 14px 0;
  color: #9aa0a6;
  font-size: 0.78rem;
}

.google-account-list-divider::before,
.google-account-list-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.google-account-list-divider span {
  padding: 0 10px;
}

.google-account-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.google-account-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.google-account-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.account-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #4285f4;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.account-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.account-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.account-email {
  font-size: 0.78rem;
  color: #9aa0a6;
}

.btn-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  width: 100%;
}

/* ==========================================================================
   Full Player Modal (Now Playing Full View)
   ========================================================================== */
.full-player-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: #030303;
  z-index: 600;
  flex-direction: column;
  overflow: hidden;
}

.full-player-modal.open {
  display: flex;
}

.modal-header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-tabs {
  display: flex;
  gap: 16px;
}

.modal-tab {
  font-size: 0.95rem;
  font-weight: 700;
  color: #aaa;
  padding: 8px 16px;
}

.modal-tab.active {
  color: #fff;
  border-bottom: 2px solid #fff;
}

.modal-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  padding: 32px 48px;
  gap: 48px;
}

.modal-visual-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}

.modal-album-art-wrap {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.8);
}

.modal-album-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-track-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 24px;
}

.modal-song-title {
  font-size: 1.45rem;
  font-weight: 700;
}

.modal-song-artist {
  font-size: 0.95rem;
  color: #aaa;
}

.modal-content-panel {
  flex: 1;
  overflow-y: auto;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Toast */
.toast-notification {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: #282828;
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 1000;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   모바일 최적화 미디어 쿼리 (Mobile Responsive)
   ========================================================================== */
.sidebar {
  display: none;
}

.mobile-menu-btn {
  display: none;
}

.mobile-nav-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: inline-flex;
    color: #fff;
  }

  .ytm-top-nav, .nav-history-btns, .ytm-search-box {
    display: none;
  }

  .sidebar {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    background: #080808;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,0.8);
    flex-direction: column;
    padding: 16px;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .sidebar-mobile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 998;
  }

  .sidebar-mobile-backdrop.active {
    display: block;
  }

  .mobile-nav-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #111;
    border-top: 1px solid var(--border-subtle);
    z-index: 200;
    justify-content: space-around;
    align-items: center;
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #aaa;
    font-size: 0.72rem;
    flex: 1;
    height: 100%;
    justify-content: center;
  }

  .mobile-nav-item.active {
    color: #fff;
  }

  .player-bar {
    bottom: 56px;
    height: 60px;
    z-index: 150;
  }

  .player-left-controls, .player-right-actions {
    width: auto;
  }

  .player-time-display, .player-track-reactions, .volume-container {
    display: none;
  }

  .content-scroll-area {
    padding: 16px 16px 140px 16px;
  }

  .modal-body {
    flex-direction: column;
    padding: 16px;
  }
}
