/* ============================================
   HANKRL THEME - MAIN STYLES
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Exo+2:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap');

:root {
  --color-bg: #0a0a0d;
  --color-bg2: #111116;
  --color-bg3: #1a1a22;
  --color-card: #16161f;
  --color-accent: #00e676;
  --color-accent2: #00bcd4;
  --color-text: #e0e0e0;
  --color-text-muted: #888;
  --color-border: #2a2a35;
  --color-nav: #0d0d12;
  --font-display: 'Rajdhani', sans-serif;
  --font-body: 'Exo 2', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  --radius: 6px;
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
}

a { color: var(--color-accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-accent2); }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   NAVIGATION
   ============================================ */

#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-nav);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 30px;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 6px;
  color: #fff;
  text-transform: uppercase;
}

.site-logo:hover { color: var(--color-accent); }

#site-navigation ul {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

#site-navigation a {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
}

#site-navigation a:hover { color: var(--color-accent); }

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 20px;
}

.lang-switcher a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-muted);
  padding: 3px 6px;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  transition: var(--transition);
}

.lang-switcher a:hover,
.lang-switcher a.active {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 18px;
  border-radius: var(--radius);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* background-size controlled solely by inline style from Customizer */
  background-position: center; /* fallback only; overridden by inline style */
  filter: brightness(0.35);
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-section:hover .hero-bg { transform: scale(1.0); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(10,10,13,0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(60px, 10vw, 120px);
  font-weight: 700;
  letter-spacing: 15px;
  color: #fff;
  text-shadow: 0 0 60px rgba(0,230,118,0.3), 0 0 120px rgba(0,188,212,0.2);
  text-transform: uppercase;
  animation: glowPulse 3s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  from { text-shadow: 0 0 30px rgba(0,230,118,0.2), 0 0 60px rgba(0,188,212,0.1); }
  to { text-shadow: 0 0 60px rgba(0,230,118,0.5), 0 0 120px rgba(0,188,212,0.3); }
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  letter-spacing: 2px;
  margin-top: 12px;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-wrap {
  padding: 70px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 4px;
  text-align: center;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent2));
  margin: 12px auto 0;
}

/* ============================================
   ALBUMS GRID
   ============================================ */

/* ============================================
   ALBUMS GRID — all cards identical height
   grid-auto-rows fixes every row to the same
   height regardless of content.
   ============================================ */

.albums-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1px;  /* JS sets grid-row-end:span N per card */
  column-gap: 24px;
  row-gap: 0;           /* row gap is baked into span calculation */
  align-items: start;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease;
}

.albums-grid.is-layout-ready {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 900px) {
  .albums-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .albums-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    row-gap: 24px;
    opacity: 1;
    visibility: visible;
  }
  .albums-grid .album-card { grid-row-end: unset !important; }
}

/* ============================================
   TRACK LIST — Scrollable container
   Max-height calculated in JS from data-track-limit.
   CSS sets scrollbar style and overflow.
   ============================================ */

.track-list-wrap {
  position: relative;
  flex: 1;          /* fill remaining height inside .album-info flex column */
  min-height: 0;    /* required for flex children with overflow */
  /* max-height set by JS after page load */

  /* Use scroll (not auto) so scrollbar space is always reserved —
     this prevents Brave Browser shields from hiding it */
  overflow-y: scroll;
  overflow-x: hidden;

  /* Make room for the scrollbar so it doesn't overlap track items */
  padding-right: 2px;

  /* Firefox — W3C standard scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) rgba(255,255,255,0.06);
}

/* Webkit (Chrome, Safari, Edge, Brave) — explicit scrollbar styling.
   Brave hides "overlay" scrollbars; a non-zero width forces a real scrollbar. */
.track-list-wrap::-webkit-scrollbar {
  width: 6px;            /* must be non-zero for Brave to respect it */
  display: block;        /* explicitly un-hide */
}

.track-list-wrap::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  margin: 4px 0;         /* small gap top/bottom so it doesn't touch card edge */
}

.track-list-wrap::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 6px;
  min-height: 24px;      /* thumb never collapses to invisible height */
  border: 1px solid transparent;
  background-clip: padding-box;
}

.track-list-wrap::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent2);
  border-color: transparent;
}

/* When no scrolling needed, hide the scrollbar gap visually */
.track-list-wrap:not(.has-scroll) {
  overflow-y: hidden;
}
.track-list-wrap:not(.has-scroll)::-webkit-scrollbar {
  display: none;
}

/* Fade-out bottom edge hint when list is scrollable */
.track-list-wrap.has-scroll::after {
  content: '';
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  display: block;
  background: linear-gradient(to bottom, transparent 0%, var(--color-card) 100%);
  pointer-events: none;
  margin-top: -28px;
}

.album-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.album-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
}

/* Cover: always square — width driven by column, height matches width */
.album-cover {
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 1 / 1;      /* perfect square regardless of image dimensions */
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.album-cover {
  background: linear-gradient(135deg, rgba(18,22,32,.95), rgba(10,13,20,.98));
}

.album-card:hover .album-cover img { transform: scale(1.05); }

/* Info section: fills remaining card height, scrolls internally */
.album-info {
  padding: 16px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.album-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 4px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.album-description {
  min-height: 3.9em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.track-list-wrap {
  min-height: 170px;
}

@media (max-width: 900px) {
  .albums-grid { opacity: 1; visibility: visible; }
  .track-list-wrap { min-height: 0; }
}

.album-description {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
  flex-shrink: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(12px * 1.5 * 2);
}

/* Track list */
.track-list {
  list-style: none;
  margin-top: 10px;
}

.track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  margin-bottom: 4px;
  border-radius: 4px;
  background: var(--color-bg3);
  cursor: pointer;
  transition: background var(--transition);
}

.track-item:hover,
.track-item.active {
  background: var(--color-accent);
}

.track-item:hover .track-name,
.track-item.active .track-name {
  color: #000;
}

.track-item:hover .track-play,
.track-item.active .track-play {
  color: #000;
}

.track-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition);
}

.track-play {
  color: var(--color-accent);
  font-size: 12px;
  transition: color var(--transition);
}

/* ============================================
   HERO VIDEO BACKGROUND
   ============================================ */

.hero-section.has-video .hero-bg { display: none; }

/* YouTube hero wrapper */
.hero-yt-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-yt-wrap iframe,
.hero-yt-wrap > div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* 16:9 ratio, always covers the container */
  width: max(100%, calc(100vh * 16 / 9));
  height: max(100%, calc(100vw * 9 / 16));
  pointer-events: none;
  border: none;
}

/* MP4 video hero */
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35);
  z-index: 0;
}

/* ============================================
   YOUTUBE MODAL
   ============================================ */

#yt-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

#yt-modal.open { display: flex; }

#yt-modal-inner {
  position: relative;
  width: min(900px, 94vw);
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 0 80px rgba(0, 230, 118, 0.15);
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.93); }
  to   { opacity: 1; transform: scale(1); }
}

#yt-modal-player {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
}

#yt-modal-player iframe { width: 100%; height: 100%; border: none; }

#yt-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(0,0,0,0.7);
  border: 1px solid var(--color-border);
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-body);
  transition: var(--transition);
}

#yt-modal-close:hover { background: var(--color-accent); color: #000; border-color: var(--color-accent); }

/* YouTube badge in player */
.yt-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #ff4444;
  border: 1px solid #ff4444;
  padding: 2px 8px;
  border-radius: 3px;
  margin-right: 6px;
  letter-spacing: 1px;
}

.yt-expand-btn {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 18px;
  padding: 4px 8px;
  border-radius: 4px;
  margin-right: 6px;
  transition: var(--transition);
  line-height: 1;
}

.yt-expand-btn:hover { color: var(--color-accent); border-color: var(--color-accent); }

.player-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
   LYRICS PANEL
   ============================================ */

#lyrics-panel {
  position: fixed;
  bottom: 64px;
  right: 0;
  width: 360px;
  max-height: 60vh;
  background: rgba(13,13,18,0.97);
  border: 1px solid var(--color-border);
  border-bottom: none;
  border-radius: 12px 0 0 0;
  z-index: 998;
  display: none;
  flex-direction: column;
  backdrop-filter: blur(20px);
  box-shadow: -4px -4px 30px rgba(0,0,0,0.5);
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
}

#lyrics-panel.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.lyrics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.lyrics-title-bar {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--color-accent2);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.lyrics-track-name {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.lyrics-close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  transition: var(--transition);
}
.lyrics-close:hover { color: var(--color-text); }

.lyrics-body {
  overflow-y: auto;
  padding: 16px;
  flex: 1;
  line-height: 2;
  font-size: 14px;
  color: var(--color-text);
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.lyrics-body::-webkit-scrollbar { width: 4px; }
.lyrics-body::-webkit-scrollbar-track { background: transparent; }
.lyrics-body::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }

.lyrics-empty {
  color: var(--color-text-muted);
  font-style: italic;
  text-align: center;
  padding: 20px 0;
}

/* Lyrics toggle button in player */
.lyrics-toggle-btn {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 5px 10px;
  border-radius: 4px;
  transition: var(--transition);
  white-space: nowrap;
}

.lyrics-toggle-btn:hover,
.lyrics-toggle-btn.active {
  color: var(--color-accent2);
  border-color: var(--color-accent2);
  background: rgba(0,188,212,0.08);
}

/* ============================================
   FIX: HERO VIDEO - URL field visible
   ============================================ */

.hero-bg {
  position: absolute;
  inset: 0;
  /* background-size controlled solely by inline style from Customizer */
  filter: brightness(0.35);
  transform: scale(1.05);
  z-index: 0;
}

/* ============================================
   MOBILE FIXES
   ============================================ */

@media (max-width: 768px) {
  .header-inner { padding: 0 14px; gap: 10px; }
  #site-navigation { display: none !important; }
  #site-navigation.open { display: flex !important; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--color-nav); padding: 16px; border-bottom: 1px solid var(--color-border); gap: 0; margin-left: 0; }
  #site-navigation.open ul { flex-direction: column !important; gap: 0; }
  #site-navigation.open ul li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
  #lyrics-panel { width: 100%; border-radius: 12px 12px 0 0; }
  .player-info { width: 120px; }
  .player-progress { display: none; }
}

/* Logo text fallback */
.site-logo-text {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 5px;
  color: #fff;
  text-transform: uppercase;
}
.site-logo:hover .site-logo-text { color: var(--color-accent); }

   HERO IMAGE OVERLAY ON VIDEO
   ============================================ */

/* Image overlaid on top of video */
.hero-img-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-size: cover;
  background-position: center;
  /* Semi-transparent so video is subtly visible beneath */
  opacity: 0.85;
}

/* When image overlays video, dim video more */
.hero-section.has-img-overlay .hero-yt-wrap,
.hero-section.has-img-overlay .hero-video-bg {
  filter: brightness(0.2) blur(2px);
}

/* Overlay on top of image overlay */
.hero-section.has-img-overlay .hero-overlay {
  z-index: 3;
}

/* ============================================
   PLAYER BAR – CENTERED LAYOUT FIX
   ============================================ */
}

/* ============================================
   FIX: HEADER LAYOUT - Logo sol, menü sağ
   ============================================ */

.header-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 60px;
  padding: 0 30px;
  gap: 20px;
}

/* Logo: sol köşe, küçük */
.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-logo img {
  max-height: 40px;
  width: auto;
  display: block;
}

/* Navigation: sağa it, flex row */
#site-navigation {
  display: flex !important;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

#site-navigation ul {
  list-style: none;
  display: flex !important;
  flex-direction: row !important;
  gap: 24px;
  align-items: center;
  flex-wrap: nowrap;
}

#site-navigation li {
  white-space: nowrap;
}

/* ============================================
   FIX: LANGUAGE DROPDOWN
   ============================================ */

.lang-switcher {
  position: relative;
  margin-left: 12px;
  flex-shrink: 0;
}

.lang-switcher-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  transition: var(--transition);
  white-space: nowrap;
}

.lang-switcher-btn:hover,
.lang-switcher.open .lang-switcher-btn {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.lang-switcher-btn .arrow {
  font-size: 8px;
  transition: transform 0.2s;
}

.lang-switcher.open .lang-switcher-btn .arrow { transform: rotate(180deg); }

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--color-nav);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  min-width: 140px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  overflow: hidden;
  z-index: 1001;
}

.lang-switcher.open .lang-dropdown { display: block; }

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.lang-dropdown a:last-child { border-bottom: none; }

.lang-dropdown a:hover { background: var(--color-bg3); color: var(--color-text); }

.lang-dropdown a.active {
  color: var(--color-accent);
  background: rgba(0,230,118,0.05);
}

.lang-dropdown a .lang-flag { font-size: 16px; }
.lang-dropdown a .lang-name { flex: 1; }
.lang-dropdown a .lang-check { color: var(--color-accent); font-size: 14px; }

/* ============================================
   FIX: TRACK LIST - play butonu büyük & renkli
   ============================================ */

.track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  margin-bottom: 4px;
  border-radius: 5px;
  background: var(--color-bg3);
  cursor: pointer;
  transition: background var(--transition), transform 0.15s;
  gap: 10px;
}

.track-item:hover { background: rgba(0,230,118,0.12); transform: translateX(3px); }
.track-item.active { background: var(--color-accent); }
.track-item.active .track-name,
.track-item.active .track-play-btn { color: #000; }

.track-name { font-size: 13px; font-weight: 500; color: var(--color-text); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Play button - bigger, visible */
.track-play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-accent);
  border-radius: 50%;
  color: #000;
  font-size: 11px;
  flex-shrink: 0;
  transition: var(--transition);
  line-height: 1;
  padding-left: 2px; /* optical center for play triangle */
}

.track-item:hover .track-play-btn { background: var(--color-accent2); transform: scale(1.1); }
.track-item.active .track-play-btn { background: #000; color: var(--color-accent); }

/* Lyrics icon on track */
.track-lyrics-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 13px;
  flex-shrink: 0;
  opacity: 0.6;
  transition: var(--transition);
  cursor: pointer;
  border-radius: 3px;
}

.track-lyrics-icon:hover { opacity: 1; color: var(--color-accent2); background: rgba(0,188,212,0.1); }
.track-item.active .track-lyrics-icon { color: #000; opacity: 0.7; }

/* ============================================

/* ============================================
   MUSIC PLAYER — REDESIGNED
   ============================================ */

#music-player {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  height: 72px;
  background: rgba(8, 8, 12, 0.96);
  border-top: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  display: none;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.6);
}

#music-player.active { display: flex; align-items: center; }

/* Accent gradient top border */
#music-player::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--color-accent) 30%, var(--color-accent2) 70%, transparent 100%);
  opacity: 0.6;
}

.player-inner {
  display: grid;
  /* [thumb+info+controls] [progress] [actions] */
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  gap: 16px;
}

/* ---- LEFT: thumb + info + controls inline ---- */
.player-left-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.player-thumb {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.08);
}

.player-info {
  min-width: 0;
  width: 160px;
  flex-shrink: 0;
}

.player-track-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
}

.player-album-name {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
  letter-spacing: 0.2px;
}

/* ---- CENTER: progress bar (takes all remaining space) ---- */
.player-center-group { display: none; } /* no longer used as separate element */

.player-progress-wrap {
  min-width: 0;
  width: 100%;
}

/* Controls are now inline inside left group */
.player-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid rgba(255,255,255,0.06);
}

.player-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
}

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

/* Play button – larger, accented circle */
.player-btn.play-btn {
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  color: #000;
  border-radius: 50%;
  padding: 0;
  box-shadow: 0 0 16px rgba(0,230,118,0.35);
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.player-btn.play-btn:hover {
  background: #00ff88;
  box-shadow: 0 0 24px rgba(0,230,118,0.6);
  transform: scale(1.07);
}

.player-btn.play-btn .icon-play,
.player-btn.play-btn .icon-pause {
  display: block;
  fill: #000;
}

/* Progress bar */
.player-progress-wrap .progress-bar,
.player-progress .progress-bar,
.progress-bar {
  position: relative;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  cursor: pointer;
  transition: height 0.15s;
}

.progress-bar:hover { height: 5px; }

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent2));
  border-radius: 999px;
  width: 0%;
  transition: width 0.4s linear;
  position: relative;
}

/* Scrubber dot - appears on hover */
.progress-thumb {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s;
  box-shadow: 0 0 8px rgba(0,230,118,0.5);
}

.progress-bar:hover .progress-thumb { transform: translateY(-50%) scale(1); }

.player-time {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.5px;
}

/* ---- RIGHT ---- */
.player-right {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* Icon buttons on the right */
.player-right button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 7px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}

.player-right button:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
}

.lyrics-toggle-btn.active {
  color: var(--color-accent2) !important;
  background: rgba(0,188,212,0.1) !important;
}

/* YouTube badge */
.yt-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #ff4444;
  border: 1px solid rgba(255,68,68,0.4);
  background: rgba(255,68,68,0.08);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ---- LYRICS PANEL ---- */

#lyrics-panel {
  position: fixed;
  bottom: 72px;
  right: 0;
  width: 340px;
  max-height: 55vh;
  background: rgba(10, 10, 16, 0.97);
  border: 1px solid rgba(255,255,255,0.07);
  border-bottom: none;
  border-radius: 14px 0 0 0;
  z-index: 998;
  display: none;
  flex-direction: column;
  backdrop-filter: blur(20px);
  box-shadow: -6px -6px 40px rgba(0,0,0,0.5);
}

#lyrics-panel.open { display: flex; animation: lyricsSlideIn 0.2s ease; }

@keyframes lyricsSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lyrics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.lyrics-title-bar {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--color-accent2);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.lyrics-track-name {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lyrics-close {
  background: none !important;
  border: none !important;
  color: rgba(255,255,255,0.3) !important;
  cursor: pointer;
  padding: 6px !important;
  border-radius: 6px !important;
}
.lyrics-close:hover { color: #fff !important; background: rgba(255,255,255,0.07) !important; }

.lyrics-body {
  overflow-y: auto;
  padding: 16px;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.lyrics-body::-webkit-scrollbar { width: 3px; }
.lyrics-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.lyric-line {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 2;
  transition: color 0.3s;
}

.lyric-line:hover { color: #fff; }

.lyrics-empty {
  color: rgba(255,255,255,0.25);
  font-size: 13px;
  text-align: center;
  padding: 24px 0;
  font-style: italic;
}

/* ---- YOUTUBE MODAL ---- */

#yt-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}
#yt-modal.open { display: flex; }

#yt-modal-inner {
  position: relative;
  width: min(900px, 94vw);
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 80px rgba(0,230,118,0.1);
  animation: modalIn 0.22s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

#yt-modal-player { aspect-ratio: 16/9; width: 100%; background: #000; }
#yt-modal-player iframe { width: 100%; height: 100%; border: none; }

#yt-modal-close {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-family: var(--font-body);
  transition: background 0.2s;
}
#yt-modal-close:hover { background: rgba(0,0,0,0.9); }

/* ---- MOBILE ---- */
@media (max-width: 768px) {
  .player-inner {
    grid-template-columns: 1fr auto;
    padding: 0 14px;
  }
  .player-center-group { display: none; }
  .player-left-group   { grid-column: 1; }
  .player-right        { grid-column: 2; }
  #lyrics-panel        { width: 100%; border-radius: 12px 12px 0 0; }
  body.player-open     { padding-bottom: 72px; }
}

/* ============================================
   ABOUT SECTION — matches screenshot
   ============================================ */

.about-section {
  background: var(--color-bg);
}

.about-section .section-title {
  text-align: center;
  margin-bottom: 48px;
}

.about-body {
  max-width: 800px;
  margin: 0 auto 40px;
}

.about-body p {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255,255,255,0.75);
  margin-bottom: 20px;
}

.about-body p:last-child { margin-bottom: 0; }

/* Button + socials row */
.about-footer {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 800px;
  margin: 0 auto;
  flex-wrap: wrap;
}

/* Outlined button exactly like screenshot */
.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-outline:hover {
  background: var(--color-accent);
  color: #000;
}

/* Also keep btn-primary for compatibility */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}
.btn-primary:hover { background: var(--color-accent); color: #000; }

/* Social icons row */
.social-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.social-icon,
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s, transform 0.2s;
}

.social-icon:hover,
.social-links a:hover {
  color: #fff;
  transform: translateY(-2px);
}

.social-links a svg { width: 20px; height: 20px; }

/* ============================================
   HERO IMAGE OVERLAY — image over video,
   title + subtitle visible at bottom
   ============================================ */

/* When image overlays video, image takes top ~75% of hero */
.hero-section.has-img-overlay {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* The full-cover image overlay */
.hero-img-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-size: cover;
  background-position: center top;
}

/* Video dims behind image */
.hero-section.has-img-overlay .hero-yt-wrap,
.hero-section.has-img-overlay .hero-video-bg {
  filter: brightness(0.15);
}

/* Dark gradient at bottom so text is readable */
.hero-section.has-img-overlay .hero-overlay {
  z-index: 3;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.05) 55%,
    rgba(0,0,0,0.85) 80%,
    rgba(0,0,0,0.95) 100%
  ) !important;
}

/* Title block positioned at bottom of hero */
.hero-content--below-img {
  position: relative;
  z-index: 10;
  padding: 0 40px 50px;
  text-align: center;
  margin-top: auto;
  width: 100%;
}

.hero-logo {
  margin-bottom: 16px;
}

.hero-logo img {
  max-height: 60px;
  margin: 0 auto;
  filter: brightness(0) invert(1);
}

/* Normal hero content z-index fix */
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  text-align: center;
  padding: 0 40px;
}

/* ============================================
   FOOTER
   ============================================ */

#site-footer {
  background: var(--color-bg2);
  border-top: 1px solid var(--color-border);
  padding: 20px 0;
}

.footer-inner {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 1px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   PLAYER: mobile overrides
   ============================================ */

@media (max-width: 768px) {
  .player-inner {
    grid-template-columns: 1fr auto;
    padding: 0 12px;
    gap: 10px;
  }
  .player-left-group { min-width: 0; }
  .player-info { width: 100px; }
  .player-progress-wrap { display: none; }
  .player-right { gap: 2px; }
}

/* ============================================================
   UPCOMING SECTION — Same card size as Albums + Better Badge
   ============================================================ */

/* Use same albums-grid already defined, just style the overlay badge */
.upcoming-card-item {
  position: relative;
}

.upcoming-cover-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}

.upcoming-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  filter: brightness(0.8);
}

.upcoming-card-item:hover .upcoming-cover-wrap img { transform: scale(1.05); filter: brightness(0.65); }

/* Animated overlay badge */
.upcoming-overlay-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.upcoming-badge-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(0,230,118,0.15), rgba(0,188,212,0.15));
  border: 1px solid rgba(0,230,118,0.5);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent);
  backdrop-filter: blur(6px);
  animation: upcomingPulse 2.5s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(0,230,118,0.2), inset 0 0 20px rgba(0,230,118,0.05);
}

@keyframes upcomingPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0,230,118,0.2), inset 0 0 20px rgba(0,230,118,0.05); opacity: 1; }
  50%       { box-shadow: 0 0 35px rgba(0,230,118,0.45), inset 0 0 30px rgba(0,230,118,0.1); opacity: 0.85; }
}

/* Release date styling */
.upcoming-release-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-accent);
  margin-top: 10px;
  letter-spacing: 1px;
  opacity: 0.85;
}

/* Upcoming section title — more eye-catching */
.upcoming-section-title {
  position: relative;
  overflow: hidden;
}

.upcoming-title-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  margin-left: 12px;
  vertical-align: middle;
  position: relative;
  top: -2px;
  animation: titleDot 2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(0,230,118,0.7);
}

@keyframes titleDot {
  0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(0,230,118,0.7); }
  70%  { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(0,230,118,0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0,230,118,0); }
}

/* ============================================================
   MOBILE — Language Switcher Always Visible
   ============================================================ */

@media (max-width: 768px) {
  /* header-inner: logo | nav-toggle | lang-switcher */
  .header-inner {
    padding: 0 14px;
    gap: 8px;
  }

  /* Keep lang-switcher always visible (it's now outside nav) */
  .lang-switcher {
    margin-left: 0;
    flex-shrink: 0;
  }

  /* nav gets hidden, lang-switcher stays */
  #site-navigation {
    display: none !important;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--color-nav);
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    z-index: 999;
  }

  #site-navigation.open {
    display: flex !important;
    flex-direction: column;
  }

  #site-navigation.open ul {
    flex-direction: column !important;
    gap: 0;
  }

  #site-navigation.open ul li a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
  }

  /* Player: hide YouTube badge+button on mobile */
  .yt-badge,
  .yt-expand-btn {
    display: none !important;
  }

  /* Player: show compact progress below left group */
  .player-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    padding: 0 12px;
    gap: 0 10px;
    height: 72px;
  }

  .player-left-group {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .player-right {
    grid-column: 2;
    grid-row: 1 / 3;
    gap: 2px;
  }

  .player-progress-wrap {
    grid-column: 1;
    grid-row: 2;
    padding-bottom: 4px;
  }

  .player-info { width: 120px; }

  .player-time { display: none; }
}

/* ============================================================
   HERO — ensure bg doesn't overflow or look broken
   ============================================================ */

.hero-section {
  min-height: 300px;
}

.hero-bg {
  /* position/size now set inline via customizer; these are fallbacks */
  background-repeat: no-repeat;
}


/* ============================================================
   HEADER v2 — Logo left, right-group (lang + hamburger)
   ============================================================ */

.header-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 60px;
  padding: 0 30px;
  gap: 16px;
}

/* Desktop: site-navigation in the middle / right, lang after it */
#site-navigation {
  display: flex !important;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

#site-navigation ul {
  display: flex !important;
  flex-direction: row !important;
  list-style: none;
  gap: 24px;
  align-items: center;
}

/* Right group wraps lang-switcher + hamburger */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ---- Hamburger button ---- */
.menu-toggle {
  display: none; /* hidden on desktop */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 7px;
  transition: border-color var(--transition);
}

.menu-toggle:hover { border-color: var(--color-accent); }

.hamburger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

/* Animated X when open */
.menu-toggle.open .hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open .hamburger-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open .hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Mobile nav dropdown panel ---- */
.mobile-nav-panel {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--color-nav);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: mobileNavIn 0.2s ease;
}

@keyframes mobileNavIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-nav-panel.open {
  display: block;
}

.mobile-nav-panel ul {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}

.mobile-nav-panel ul li a {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition), background var(--transition);
}

.mobile-nav-panel ul li:last-child a { border-bottom: none; }

.mobile-nav-panel ul li a:hover {
  color: var(--color-accent);
  background: rgba(0,230,118,0.04);
  padding-left: 30px;
}

/* ---- Mobile overrides ---- */
@media (max-width: 768px) {
  .header-inner { padding: 0 16px; }

  /* Desktop nav hidden on mobile (mobile-nav-panel used instead) */
  #site-navigation { display: none !important; }

  /* Hamburger visible on mobile */
  .menu-toggle { display: flex; }

  /* Logo stays left naturally (flex justify-content: space-between) */
  .site-logo { flex-shrink: 0; }

  /* Lang switcher always visible, same size */
  .lang-switcher { margin-left: 0; }

  /* Keep site-header position: relative so mobile-nav positions correctly */
  #site-header { position: sticky; }
}

/* ============================================================
   YT-BADGE as link — hover underline hint
   ============================================================ */

a.yt-badge {
  text-decoration: none;
  cursor: pointer;
  transition: opacity var(--transition), border-color var(--transition);
}

a.yt-badge:hover {
  opacity: 0.8;
  border-color: #ff6666;
}

/* ============================================================
   Customizer live preview — hero bg updates instantly
   Handled via wp_customize_preview_init JS in functions.php
   ============================================================ */

/* ============================================================
   HERO-BG inline background-size always wins — no class override possible
   ============================================================ */

/* Remove any class-level background-size interference.
   The element's inline style from PHP/Customizer is the single source of truth. */
#hero-bg-el {
  background-size: 100% auto; /* safe default if inline style missing */
  background-repeat: no-repeat;
}

/* When inline style IS present, it wins (inline > ID selector).
   The !important below is a belt-AND-suspenders guard against future CSS additions. */
#hero-bg-el[style*="background-size"] {
  /* intentionally empty — inline style already wins; comment serves as a reminder */
}


/* ============================================================
   MOBILE LOGO — explicitly left-aligned
   ============================================================ */

@media (max-width: 768px) {
  /* header-inner: [logo] [flex-gap] [header-right]
     Logo always at the far left, header-right at far right */
  .header-inner {
    justify-content: flex-start !important; /* start instead of space-between */
    padding: 0 14px;
  }

  /* Logo: no auto-centering, sits at position 0 */
  .site-logo {
    flex: 0 0 auto;
    margin-right: auto; /* push everything else to the right */
    align-self: center;
  }

  /* Ensure no stray margin/auto from desktop rules */
  #site-navigation {
    margin-left: 0 !important;
  }
}

/* ============================================================
   MOBILE HEADER — Logo strictly left-aligned (definitive rules)
   ============================================================ */

@media (max-width: 768px) {
  /* Flex row: [logo | spacer | header-right] */
  #site-header .header-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important; /* start, not space-between */
    padding: 0 14px !important;
    gap: 0 !important;
  }

  /* Logo: left edge, no centering */
  #site-header .site-logo {
    flex: 0 0 auto !important;
    margin-right: auto !important; /* push header-right to far right */
    text-align: left !important;
    align-self: center !important;
  }

  /* Custom logo image inside anchor */
  #site-header .site-logo img,
  #site-header .site-logo .custom-logo {
    display: block !important;
    margin: 0 !important;        /* remove any auto margins */
    max-height: 38px !important;
    width: auto !important;
    text-align: left !important;
  }

  /* Text logo fallback */
  #site-header .site-logo-text {
    display: block !important;
    text-align: left !important;
  }

  /* header-right: stays at far right */
  #site-header .header-right {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  /* Desktop nav hidden */
  #site-header #site-navigation {
    display: none !important;
  }
}


/* ============================================
   PREMIUM LANGUAGE SWITCHER UPGRADE
   ============================================ */
.lang-switcher {
  margin-left: 14px;
}

.lang-switcher-btn {
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(7, 10, 18, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lang-switcher-btn .lang-flag,
.lang-dropdown .lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.lang-flag-img {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12);
}

.lang-switcher-btn .lang-short {
  color: var(--color-text);
  letter-spacing: 0.2px;
  text-transform: none;
  font-size: 12px;
}

.lang-switcher-btn .lang-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--color-text-muted);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.lang-dropdown {
  min-width: 220px;
  max-height: min(70vh, 420px);
  overflow-y: auto;
  border-radius: 16px;
  padding: 6px;
  background: rgba(10, 13, 23, 0.98);
}

.lang-dropdown a {
  min-height: 46px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  margin-bottom: 2px;
}

.lang-dropdown .lang-name {
  flex: 1 1 auto;
  min-width: 0;
  color: inherit;
}

.lang-dropdown .lang-check {
  margin-left: auto;
  color: var(--color-accent);
  font-weight: 700;
}

.lang-dropdown a:hover,
.lang-dropdown a:focus-visible {
  background: rgba(255,255,255,0.06);
  color: var(--color-text);
  outline: none;
}

.lang-dropdown a.active {
  background: rgba(0,230,118,0.10);
  box-shadow: inset 0 0 0 1px rgba(0,230,118,0.26);
}

.lang-dropdown::-webkit-scrollbar {
  width: 10px;
}

.lang-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.14);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

@media (max-width: 767px) {
  .lang-switcher-btn {
    min-height: 40px;
    padding: 8px 10px;
  }

  .lang-switcher-btn .lang-short {
    max-width: 82px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .lang-switcher-btn .lang-code {
    display: none;
  }

  .lang-dropdown {
    min-width: 200px;
    right: -4px;
  }
}


/* Lang switcher final cleanup */
.lang-switcher-btn .lang-short {
  margin-right: 0;
}

.lang-switcher-btn .lang-code {
  display: none !important;
}


/* ============================================================
   FIX: mobile player action buttons should not overlap
   ============================================================ */
@media (max-width: 768px) {
  #music-player {
    height: auto;
    min-height: 86px;
  }

  .player-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    align-items: center;
    gap: 6px 10px !important;
    height: auto !important;
    padding: 8px 12px !important;
  }

  .player-left-group {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .player-info {
    min-width: 0;
    width: auto !important;
    flex: 1 1 auto;
  }

  .player-track-name,
  .player-album-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .player-controls {
    margin-left: 6px;
    padding-left: 6px;
    gap: 2px;
  }

  .player-right {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    gap: 4px !important;
    flex-wrap: nowrap;
  }

  .player-right .yt-badge {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .player-progress-wrap {
    display: block !important;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    padding-bottom: 0;
  }

  .player-time {
    display: flex !important;
  }
}

@media (max-width: 480px) {
  .player-inner {
    padding: 8px 10px !important;
    gap: 6px 8px !important;
  }

  .player-thumb {
    width: 42px;
    height: 42px;
  }

  .player-btn {
    padding: 5px;
  }

  .player-btn.play-btn {
    width: 36px;
    height: 36px;
  }

  .player-right button,
  .player-right .yt-badge {
    padding: 6px;
  }

  .player-right .yt-badge {
    max-width: 74px;
    font-size: 9px;
    padding-left: 6px;
    padding-right: 6px;
  }
}


/* Album detail flow */
.album-cover-link { position: relative; display: block; overflow: hidden; }
.album-cover-overlay { position: absolute; inset: 0; display: flex; align-items: end; justify-content: center; padding: 18px; background: linear-gradient(180deg, rgba(0,0,0,0.06) 25%, rgba(0,0,0,0.7) 100%); opacity: 0; transition: opacity .25s ease; }
.album-cover-link:hover .album-cover-overlay, .album-cover-link:focus-visible .album-cover-overlay { opacity: 1; }
.album-cover-overlay__label { display:inline-flex; align-items:center; justify-content:center; min-width:140px; padding:10px 16px; border-radius:999px; background:#111; color:#fff; font-size:12px; letter-spacing:1px; text-transform:uppercase; border:1px solid rgba(255,255,255,.18); }
.album-title a { color: inherit; text-decoration: none; }
.album-card-actions { margin: 10px 0 14px; }
.album-details-btn { display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border-radius:999px; background:#161616; color:#fff; text-decoration:none; border:1px solid rgba(255,255,255,.1); font-size:12px; letter-spacing:.08em; text-transform:uppercase; }
.album-details-btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.24); }

.album-detail-page { padding: 46px 0 72px; }
.album-breadcrumbs { display:flex; gap:8px; align-items:center; color:#9d9d9d; font-size:13px; margin-bottom:22px; }
.album-breadcrumbs a { color:#cfcfcf; text-decoration:none; }
.single-album-shell { padding: 28px; border-radius: 26px; }
.single-album-hero { display:grid; grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); gap: 34px; align-items: start; }
.single-album-cover-wrap { position:sticky; top:96px; }
.single-album-cover { width:100%; display:block; border-radius:24px; box-shadow:0 28px 60px rgba(0,0,0,.35); }
.single-album-cover--placeholder { aspect-ratio:1/1; background:linear-gradient(135deg,#222,#111); }
.single-album-kicker { margin:0 0 8px; color:#9dd0ff; text-transform:uppercase; letter-spacing:.16em; font-size:12px; }
.single-album-title { margin:0 0 14px; font-size: clamp(34px, 6vw, 58px); line-height:1.05; }
.single-album-excerpt { font-size:18px; line-height:1.7; color:#d3d3d3; margin: 0 0 20px; max-width: 760px; }
.single-album-meta { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:18px; }
.single-album-meta span { display:inline-flex; align-items:center; gap:6px; padding:10px 14px; border-radius:999px; background:rgba(255,255,255,.04); color:#d7d7d7; border:1px solid rgba(255,255,255,.08); }
.single-album-links { display:flex; flex-wrap:wrap; gap:12px; margin-top: 8px; }
.single-album-links a { display:inline-flex; padding:11px 16px; border-radius:999px; text-decoration:none; color:#fff; background:#141414; border:1px solid rgba(255,255,255,.12); }
.single-album-section { margin-top: 34px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08); }
.single-album-section-head { margin-bottom: 16px; }
.single-album-section-head h2, .single-album-content h2, .single-album-related h2 { margin:0 0 8px; font-size: clamp(24px, 4vw, 34px); }
.single-album-section-head p { margin:0; color:#a8a8a8; }
.track-list-wrap--detail {
  max-height: none !important;
  overflow: visible !important;
  padding-bottom: 4px;
}
.track-list-wrap--detail .track-list {
  display: block;
}
.track-list-wrap--detail .track-item {
  min-height: 52px;
  align-items: center;
}
.track-list-wrap--detail .track-name {
  white-space: normal;
  overflow: visible;
  text-overflow: initial;
  line-height: 1.45;
  padding: 6px 0;
}
.single-album-section,
.single-album-content,
.single-album-related {
  clear: both;
}
.single-album-richtext { color:#cfcfcf; line-height:1.85; max-width: 860px; }
.single-album-richtext p { margin: 0 0 1.2em; }
.single-album-related { margin-top:40px; }
.albums-grid--related {
  grid-auto-rows: auto !important;
  row-gap: 24px !important;
  align-items: start;
}
.albums-grid--related .album-card {
  min-height: 0;
  height: auto;
  margin-bottom: 0;
  grid-row-end: unset !important;
}
@media (max-width: 900px) { .single-album-hero { grid-template-columns:1fr; } .single-album-cover-wrap { position:static; } .single-album-shell { padding:22px; } }


.album-card-excerpt {
  margin: 10px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.6em * 3);
}
.albums-grid--related .album-info {
  gap: 0;
}
.albums-grid--related .album-title {
  margin-bottom: 6px;
}
