/*
 * RadyoSever Premium Polish — v1.19.0
 * Son katman: mevcut davranışa dokunmadan görsel hiyerarşi ve mobil rahatlık.
 */

:root {
  --rs-polish-bg: #07080f;
  --rs-polish-surface: rgba(19, 21, 37, .78);
  --rs-polish-border: rgba(255, 255, 255, .085);
  --rs-polish-border-strong: rgba(139, 92, 246, .34);
  --rs-polish-purple: #8b5cf6;
  --rs-polish-cyan: #22d3ee;
  --rs-polish-text: #f7f7fb;
  --rs-polish-muted: #a6a8bb;
  --rs-polish-shadow: 0 18px 50px rgba(0, 0, 0, .28);
}

body {
  background:
    radial-gradient(circle at 76% -10%, rgba(124, 58, 237, .13), transparent 34rem),
    radial-gradient(circle at 8% 45%, rgba(6, 182, 212, .055), transparent 30rem),
    var(--rs-polish-bg);
  color: var(--rs-polish-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .28;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.rs-header {
  border-bottom: 1px solid var(--rs-polish-border);
  background: rgba(8, 9, 17, .76);
  box-shadow: 0 10px 36px rgba(0, 0, 0, .16);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.rs-header-search form,
.rs-live-search-input {
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.rs-header-search form:focus-within {
  border-color: rgba(139, 92, 246, .62);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, .11), 0 10px 28px rgba(0, 0, 0, .18);
}

.rs-sidebar {
  border-right-color: var(--rs-polish-border);
  background: rgba(9, 10, 19, .93);
  box-shadow: 14px 0 42px rgba(0, 0, 0, .2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.rs-nav-link {
  border: 1px solid transparent;
  border-radius: 14px;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.rs-nav-link:hover {
  border-color: rgba(139, 92, 246, .18);
  background: linear-gradient(110deg, rgba(139, 92, 246, .15), rgba(34, 211, 238, .045));
  transform: translateX(2px);
}

.rs-nav-item.active > .rs-nav-link {
  border-color: rgba(139, 92, 246, .32);
  background: linear-gradient(110deg, rgba(139, 92, 246, .24), rgba(34, 211, 238, .08));
  box-shadow: inset 3px 0 0 var(--rs-polish-purple), 0 8px 24px rgba(76, 29, 149, .13);
}

.rs-hero {
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--rs-polish-border);
  box-shadow: var(--rs-polish-shadow), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.rs-hero::after {
  content: "";
  position: absolute;
  width: 20rem;
  height: 20rem;
  right: -7rem;
  top: -8rem;
  z-index: -1;
  border-radius: 50%;
  background: rgba(34, 211, 238, .12);
  filter: blur(60px);
  pointer-events: none;
}

.rs-hero-title {
  letter-spacing: -.045em;
  text-wrap: balance;
}

.rs-hero-subtitle {
  color: var(--rs-polish-muted);
  text-wrap: balance;
}

.rs-hero-search-inner {
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .24);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.rs-hero-search-inner:focus-within {
  border-color: rgba(34, 211, 238, .55);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .1), 0 18px 52px rgba(0, 0, 0, .3);
  transform: translateY(-1px);
}

.rs-section-header {
  align-items: end;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--rs-polish-border);
}

.rs-section-title {
  letter-spacing: -.025em;
  text-wrap: balance;
}

.rs-see-all {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(139, 92, 246, .09);
  transition: background-color .18s ease, transform .18s ease;
}

.rs-see-all:hover {
  background: rgba(139, 92, 246, .18);
  transform: translateX(2px);
}

.rs-radio-card {
  border-color: var(--rs-polish-border);
  background: linear-gradient(145deg, rgba(25, 27, 46, .9), rgba(14, 15, 27, .92));
  box-shadow: 0 12px 34px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .035);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.rs-radio-card:hover {
  border-color: var(--rs-polish-border-strong);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .3), 0 0 0 1px rgba(139, 92, 246, .08);
  transform: translateY(-4px);
}

.rs-radio-card-title a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.rs-radio-card-title a:hover { text-decoration: underline; }

.rs-play-btn {
  box-shadow: 0 10px 24px rgba(124, 58, 237, .28);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.rs-play-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 13px 30px rgba(124, 58, 237, .4);
  transform: scale(1.06);
}

.rs-radio-card.is-playing,
.rs-radio-card.rs-is-playing {
  border-color: rgba(34, 211, 238, .55);
  box-shadow: 0 18px 48px rgba(6, 182, 212, .12), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.rs-player,
.rs-global-player {
  border-top: 1px solid rgba(139, 92, 246, .25);
  background: rgba(9, 10, 19, .9);
  box-shadow: 0 -16px 46px rgba(0, 0, 0, .3);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

/* Açık modda da yüzeyler temiz ve okunaklı kalsın. */
body.light-theme,
body.rs-light-theme,
[data-theme="light"] body {
  --rs-polish-text: #171625;
  --rs-polish-muted: #656579;
  --rs-polish-border: rgba(31, 30, 51, .11);
  background: #f6f7fb;
}

body.light-theme .rs-radio-card,
body.rs-light-theme .rs-radio-card,
[data-theme="light"] .rs-radio-card {
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 12px 32px rgba(45, 38, 78, .08);
}

@media (max-width: 767px) {
  .rs-hero {
    border-left: 0;
    border-right: 0;
    border-radius: 0 0 26px 26px;
  }

  .rs-hero-title { letter-spacing: -.035em; }

  .rs-section-header {
    gap: 10px;
    align-items: center;
  }

  .rs-radio-card:hover { transform: none; }

  .rs-mobile-nav {
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--rs-polish-border);
    background: rgba(9, 10, 19, .93);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rs-nav-link,
  .rs-radio-card,
  .rs-play-btn,
  .rs-see-all,
  .rs-hero-search-inner { transition: none !important; }

  .rs-radio-card:hover,
  .rs-play-btn:hover,
  .rs-nav-link:hover { transform: none !important; }
}

/* Klavye kullanıcıları için tüm etkileşimlerde görünür, tutarlı odak. */
:where(a, button, input, select, textarea, [role="button"], [tabindex]):focus-visible {
  outline: 3px solid #22d3ee;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(34, 211, 238, .18);
}

@media (forced-colors: active) {
  :where(a, button, input, select, textarea, [role="button"], [tabindex]):focus-visible {
    outline: 2px solid CanvasText;
    box-shadow: none;
  }
}
