/* WORLD MEDIA V3 — premium mobile experience layer */
:root {
  --mobile-nav-h: 66px;
  --mobile-dock-h: 70px;
  --glass: rgba(10, 11, 15, .82);
}

.drawer-handle,
.drawer-title-row,
.mobile-context-row,
.mobile-bottom-nav { display: none; }

.radio-hero { position: relative; }
.radio-hero-expand {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
  cursor: pointer;
}
.radio-hero-expand:not(:disabled):hover { color: var(--text); border-color: var(--line-strong); }
.radio-hero-expand:disabled { opacity: .28; cursor: default; }

.audio-dock { grid-template-columns: 52px minmax(0,1fr) 28px 48px minmax(90px,180px) 42px; }
.audio-eq { height: 22px; display: flex; gap: 3px; align-items: end; justify-content: center; opacity: .35; }
.audio-eq i { display: block; width: 3px; height: 8px; border-radius: 4px; background: var(--gold); transform-origin: bottom; }
.audio-dock.is-playing .audio-eq { opacity: 1; }
.audio-dock.is-playing .audio-eq i:nth-child(1) { animation: eqA .72s ease-in-out infinite alternate; }
.audio-dock.is-playing .audio-eq i:nth-child(2) { animation: eqB .55s ease-in-out infinite alternate; }
.audio-dock.is-playing .audio-eq i:nth-child(3) { animation: eqC .9s ease-in-out infinite alternate; }
@keyframes eqA { from { height: 5px; } to { height: 18px; } }
@keyframes eqB { from { height: 15px; } to { height: 7px; } }
@keyframes eqC { from { height: 8px; } to { height: 20px; } }

/* Full-screen Now Playing */
.now-sheet {
  position: fixed;
  z-index: 120;
  inset: 0;
  overflow: hidden;
}
.now-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .24s ease;
}
.now-sheet-panel {
  --sheet-art: none;
  position: absolute;
  inset: 0;
  min-height: 100dvh;
  padding: calc(12px + env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(6,7,10,.22), rgba(6,7,10,.76) 48%, #07080b 80%),
    radial-gradient(circle at 50% 18%, rgba(216,177,94,.30), transparent 38%),
    #0b0c10;
  transform: translateY(6%);
  opacity: 0;
  transition: transform .28s cubic-bezier(.22,.8,.25,1), opacity .22s ease;
}
.now-sheet.is-open .now-sheet-backdrop { opacity: 1; }
.now-sheet.is-open .now-sheet-panel { transform: translateY(0); opacity: 1; }
.now-sheet-top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; min-height: 44px; }
.now-sheet-caption { text-align: center; font-size: 10px; font-weight: 900; letter-spacing: .17em; color: #c8cbd2; }
.now-sheet-close,
.now-sheet-secondary {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.055);
  color: var(--text);
  font-size: 22px;
}
.now-sheet-art-wrap { position: relative; width: min(74vw, 330px); margin: clamp(22px, 6vh, 58px) auto 0; }
.now-sheet-art {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.11);
  background: linear-gradient(145deg,#191d26,#090a0d);
  color: var(--gold);
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 38px 90px rgba(0,0,0,.45), 0 0 0 1px rgba(216,177,94,.04);
}
.now-sheet-art img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.now-sheet-eq {
  position: absolute;
  right: 16px;
  bottom: 16px;
  height: 34px;
  min-width: 48px;
  padding: 7px 9px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 99px;
  background: rgba(6,7,10,.72);
  backdrop-filter: blur(10px);
  opacity: .65;
}
.now-sheet-eq i { width: 3px; height: 8px; border-radius: 5px; background: var(--gold); }
.now-sheet-eq.is-playing i:nth-child(1) { animation: eqA .65s ease-in-out infinite alternate; }
.now-sheet-eq.is-playing i:nth-child(2) { animation: eqB .46s ease-in-out infinite alternate; }
.now-sheet-eq.is-playing i:nth-child(3) { animation: eqC .8s ease-in-out infinite alternate; }
.now-sheet-eq.is-playing i:nth-child(4) { animation: eqA .52s ease-in-out infinite alternate-reverse; }
.now-sheet-copy { width: min(92vw, 520px); margin: clamp(24px, 4vh, 42px) auto 0; text-align: center; }
.now-sheet-copy h2 { margin: 4px 0 8px; font-size: clamp(26px, 7vw, 40px); line-height: 1.05; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-sheet-copy > p:last-child { margin: 0; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-sheet-controls { display: grid; grid-template-columns: 52px 76px 52px; justify-content: center; align-items: center; gap: 28px; margin: clamp(26px, 5vh, 48px) auto 0; }
.now-sheet-secondary { width: 52px; height: 52px; font-size: 24px; cursor: pointer; }
.now-sheet-secondary.is-favorite { color: var(--gold); background: var(--gold-soft); border-color: rgba(216,177,94,.25); }
.now-sheet-play { width: 76px; height: 76px; border: 0; border-radius: 50%; background: linear-gradient(145deg,#f3d286,#b88c3a); color: #16120a; font-size: 27px; font-weight: 900; box-shadow: 0 18px 42px rgba(216,177,94,.22); cursor: pointer; }
.now-sheet-volume-row { width: min(82vw, 390px); margin: clamp(28px, 5vh, 48px) auto 0; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; color: var(--muted); font-size: 12px; }
.now-sheet-volume-row input { width: 100%; accent-color: var(--gold); }
.now-sheet-source { margin: auto auto 0; padding-top: 22px; color: #666d79; text-align: center; font-size: 10px; }
body.now-sheet-open { overflow: hidden; }

/* Loading skeletons */
.channel-card.skeleton { pointer-events: none; overflow: hidden; }
.channel-card.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.045), transparent);
  animation: shimmer 1.25s linear infinite;
}
.skeleton-logo { width: 58px; height: 58px; border-radius: 12px; background: rgba(255,255,255,.05); }
.skeleton-lines { display: grid; gap: 9px; }
.skeleton-lines i { height: 10px; width: 72%; border-radius: 99px; background: rgba(255,255,255,.05); }
.skeleton-lines i:last-child { width: 45%; }
@keyframes shimmer { to { transform: translateX(100%); } }

@media (max-width: 620px) {
  :root {
    --header-h: 66px;
    --audio-dock-h: var(--mobile-dock-h);
  }

  html { overscroll-behavior-y: none; }
  body {
    background:
      radial-gradient(circle at 88% -5%, rgba(216,177,94,.13), transparent 28%),
      var(--bg);
    padding-bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom));
  }
  body.has-audio-dock {
    padding-bottom: calc(var(--mobile-nav-h) + var(--mobile-dock-h) + 18px + env(safe-area-inset-bottom));
  }

  .topbar {
    min-height: calc(var(--header-h) + env(safe-area-inset-top));
    padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
    gap: 11px;
    border-bottom-color: rgba(255,255,255,.055);
    background: rgba(7,8,11,.78);
    backdrop-filter: blur(24px) saturate(135%);
    -webkit-backdrop-filter: blur(24px) saturate(135%);
  }
  .menu-btn { width: 44px; height: 44px; border-radius: 15px; font-size: 0; }
  .menu-btn::before { content: '☰'; font-size: 20px; }
  .brand { gap: 10px; }
  .brand-mark { width: 42px; height: 42px; border-radius: 14px; font-size: 21px; }
  .brand-copy { display: flex !important; }
  .brand-copy strong { font-size: 12px; letter-spacing: .17em; white-space: nowrap; }
  .brand-copy small { display: none; }
  .mode-switch { display: none; }
  .top-actions { display: block; margin-left: auto; }
  .top-actions .icon-btn { display: block; width: 42px; height: 42px; border-radius: 14px; font-size: 20px; }

  .sidebar {
    z-index: 95;
    top: auto;
    bottom: 0;
    width: 100%;
    height: min(78dvh, 690px);
    border: 1px solid rgba(255,255,255,.09);
    border-bottom: 0;
    border-radius: 28px 28px 0 0;
    background: rgba(12,13,18,.96);
    box-shadow: 0 -30px 90px rgba(0,0,0,.55);
    transform: translateY(105%);
    transition: transform .28s cubic-bezier(.22,.8,.25,1);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
  }
  .sidebar.is-open { transform: translateY(0); }
  .drawer-backdrop { z-index: 90; background: rgba(0,0,0,.58); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
  .sidebar-inner { padding: 7px 18px calc(22px + env(safe-area-inset-bottom)); }
  .drawer-handle { display: block; width: 38px; height: 5px; margin: 3px auto 14px; border-radius: 99px; background: rgba(255,255,255,.18); }
  .drawer-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
  .drawer-title-row > div { display: flex; flex-direction: column; gap: 3px; }
  .drawer-title-row span { color: var(--gold); font-size: 9px; font-weight: 900; letter-spacing: .18em; }
  .drawer-title-row strong { font-size: 24px; }
  .drawer-close { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.04); font-size: 25px; color: #c9cbd1; }
  .country-box select { height: 52px; border-radius: 15px; background: #141720; font-size: 15px; }
  .genre-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 7px; scrollbar-width: none; }
  .genre-chips::-webkit-scrollbar { display: none; }
  .genre-chip { flex: 0 0 auto; height: 36px; padding: 0 12px; border-radius: 99px; font-size: 11px; }
  .nav-list { margin-top: 18px; gap: 4px; }
  .nav-item { height: 52px; border-radius: 15px; padding: 0 14px; font-size: 14px; }
  .sidebar-note { margin-top: 18px; }

  .main-content {
    padding: calc(var(--header-h) + env(safe-area-inset-top) + 14px) 14px 28px;
  }

  .player-card { border-radius: 20px; box-shadow: 0 22px 55px rgba(0,0,0,.30); }
  .player-stage { aspect-ratio: 16/9; }
  .now-playing { grid-template-columns: 44px minmax(0,1fr) 42px 42px; gap: 10px; min-height: 66px; padding: 10px 11px; }
  .now-logo { width: 44px; height: 44px; border-radius: 12px; }
  .now-copy strong { font-size: 13px; }
  .now-copy span { font-size: 10px; }

  .radio-hero {
    min-height: 0;
    grid-template-columns: 78px minmax(0,1fr) 36px;
    gap: 12px;
    padding: 13px;
    border-radius: 20px;
    background:
      radial-gradient(circle at 12% 32%, rgba(216,177,94,.16), transparent 44%),
      linear-gradient(145deg, #13161d, #0b0c10);
    box-shadow: 0 20px 54px rgba(0,0,0,.22);
  }
  .radio-hero-art { width: 78px; border-radius: 17px; }
  .radio-hero-copy .eyebrow { margin-bottom: 3px; font-size: 8px; }
  .radio-hero-copy h1 { margin: 0 0 5px; font-size: 19px; line-height: 1.1; }
  .radio-hero-copy > p:not(.eyebrow) { font-size: 10px; }
  .radio-hero-actions { display: none; }
  .radio-hero-expand {
    position: static;
    align-self: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 15px;
  }

  .browser-section { padding-top: 20px; }
  .browser-head { align-items: center; }
  .browser-head h2 { font-size: 29px; letter-spacing: -.03em; }
  .channel-total { font-size: 11px; }

  .mobile-context-row { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
  .mobile-context-row::-webkit-scrollbar { display: none; }
  .context-pill {
    flex: 0 0 auto;
    min-height: 37px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 99px;
    background: rgba(255,255,255,.035);
    color: #d8dbe2;
    font-size: 11px;
  }
  .context-pill b { color: var(--gold); font-size: 10px; }

  .filters {
    position: sticky;
    z-index: 28;
    top: calc(var(--header-h) + env(safe-area-inset-top));
    margin: 10px -2px 6px;
    padding: 8px 2px 9px;
    flex-direction: row;
    align-items: center;
    background: linear-gradient(180deg, rgba(7,8,11,.98) 70%, rgba(7,8,11,.88));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  .search-box { height: 44px; border-radius: 15px; background: #101219; }
  .search-box span { font-size: 18px; }
  .search-box input { font-size: 14px; }
  .compat-toggle { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border-radius: 15px; }
  .compat-toggle span { display: none; }
  .compat-toggle input { width: 17px; height: 17px; margin: 0; }
  .status-bar { min-height: 22px; margin: 0 2px 2px; font-size: 10px; }

  .channel-grid { grid-template-columns: 1fr; gap: 0; }
  .channel-card {
    min-height: 76px;
    grid-template-columns: 54px minmax(0,1fr);
    gap: 11px;
    padding: 10px 6px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.065);
    border-radius: 0;
    background: transparent;
    transition: background .16s ease, transform .16s ease;
  }
  .channel-card:hover { transform: none; background: rgba(255,255,255,.025); }
  .channel-card:active { transform: scale(.992); background: rgba(255,255,255,.045); }
  .channel-card.is-radio { background: transparent; }
  .channel-card.is-active {
    margin: 3px 0;
    padding-left: 9px;
    padding-right: 9px;
    border: 1px solid rgba(216,177,94,.34);
    border-radius: 16px;
    background: linear-gradient(90deg, rgba(216,177,94,.09), rgba(255,255,255,.018));
    box-shadow: inset 0 0 0 1px rgba(216,177,94,.035);
  }
  .card-logo { width: 54px; height: 54px; border-radius: 14px; }
  .card-copy { padding-right: 34px; }
  .card-copy strong { font-size: 14px; letter-spacing: -.01em; }
  .card-copy span { margin-top: 5px; font-size: 10px; }
  .compat-pill { margin-top: 6px !important; padding: 3px 7px; border-radius: 99px; font-size: 7px !important; }
  .card-fav { right: 3px; top: 50%; width: 40px; height: 40px; transform: translateY(-50%); font-size: 22px; color: #69707e; }
  .channel-card.is-active .card-fav { right: 6px; }
  .channel-card.skeleton { min-height: 76px; }
  .skeleton-logo { width: 54px; height: 54px; border-radius: 14px; }

  .site-footer {
    padding: 22px 14px 28px;
    display: grid;
    gap: 5px;
    text-align: center;
    font-size: 9px;
    border-top: 0;
  }

  .mobile-bottom-nav {
    position: fixed;
    z-index: 85;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom));
    padding: 6px 14px calc(6px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(3,1fr);
    align-items: center;
    border-top: 1px solid rgba(255,255,255,.075);
    background: rgba(8,9,13,.88);
    backdrop-filter: blur(26px) saturate(140%);
    -webkit-backdrop-filter: blur(26px) saturate(140%);
    box-shadow: 0 -16px 50px rgba(0,0,0,.28);
  }
  .bottom-mode-btn {
    position: relative;
    min-height: 53px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    border: 0;
    border-radius: 15px;
    background: transparent;
    color: #777e8d;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
  }
  .bottom-mode-icon { font-size: 21px; line-height: 1; }
  .bottom-mode-btn.is-active { color: var(--gold); }
  .bottom-mode-btn.is-active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: var(--gold);
    box-shadow: 0 0 12px rgba(216,177,94,.5);
  }

  .audio-dock {
    left: 10px;
    right: 10px;
    bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom) + 8px);
    min-height: var(--mobile-dock-h);
    padding: 9px 10px;
    grid-template-columns: 46px minmax(0,1fr) 22px 46px 40px;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    background: rgba(13,15,20,.92);
    box-shadow: 0 18px 60px rgba(0,0,0,.48);
    cursor: pointer;
  }
  .audio-dock-logo { width: 46px; height: 46px; border-radius: 12px; }
  .audio-dock-copy strong { font-size: 13px; }
  .audio-dock-copy span { font-size: 9px; }
  .audio-eq { display: flex; }
  .audio-main-btn { width: 46px; height: 46px; }
  .audio-volume { display: none; }
  .audio-fav-btn { width: 40px; height: 40px; border: 0; background: transparent; }

  .now-sheet-panel { border-radius: 0; }
}

@media (max-width: 380px) {
  .brand-copy strong { font-size: 10px; letter-spacing: .14em; }
  .brand-mark { width: 39px; height: 39px; }
  .topbar { padding-left: 12px; padding-right: 12px; }
  .menu-btn { width: 41px; height: 41px; }
  .top-actions .icon-btn { width: 39px; height: 39px; }
  .radio-hero { grid-template-columns: 70px minmax(0,1fr) 34px; }
  .radio-hero-art { width: 70px; }
  .now-sheet-art-wrap { width: min(68vw, 265px); margin-top: 18px; }
  .now-sheet-controls { margin-top: 24px; gap: 22px; }
}

@media (min-width: 621px) {
  .now-sheet-panel {
    inset: auto 0 0 auto;
    width: min(520px, 100vw);
    min-height: 760px;
    height: min(92vh, 820px);
    border: 1px solid var(--line);
    border-radius: 28px 0 0 0;
  }
}

@media (display-mode: standalone) and (max-width: 620px) {
  .topbar { padding-top: calc(11px + env(safe-area-inset-top)); }
  .mobile-bottom-nav { padding-bottom: calc(7px + env(safe-area-inset-bottom)); }
}

/* v3.10 Universal Share */
@media (max-width: 900px) { .visual-share-now { width: 42px; height: 42px; font-size: 18px; } }
