/* ═══════════════════════════════════════════
   RADYO DANSET — style.css
   ═══════════════════════════════════════════ */

:root {
  --primary:       #f97316;
  --primary-dark:  #ea6c0a;
  --primary-dim:   rgba(249, 115, 22, 0.2);
  --bg:            #080604;
  --bg-light:      #1a1008;
  --surface:       #120d08;
  --surface-light: #2a1a0a;
  --border:        rgba(42, 26, 10, 0.8);
  --text:          #f1f5f9;
  --muted:         #94a3b8;
  --player-h:      80px;
  --font:          'Spline Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  padding-bottom: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 2, 5, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.logo-icon { font-size: 2rem; color: var(--primary); }

.logo-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
}

.btn-iletisim {
  height: 36px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: #fff;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: border-color 0.2s, color 0.2s;
}

.btn-iletisim:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn:hover { color: #fff; }
.mobile-menu-btn .material-symbols-outlined { font-size: 1.5rem; }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #080604 0%, rgba(8,6,4,0.65) 50%, transparent 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  padding: 48px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}

.hero-left { flex: 1; min-width: 0; }

.hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  padding-right: 80px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 1.4s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

.gradient-text {
  background: linear-gradient(90deg, #f97316, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--primary);
  border: none;
  color: #fff;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 8px 24px rgba(249,115,22,0.35);
}

.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-primary .material-symbols-outlined { font-size: 1.25rem; }

/* ═══════════════════════════════════════════
   HERO LOGO KARTI
   ═══════════════════════════════════════════ */
#card-hero {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  width: 280px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#card-hero .card-art {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

#card-hero .card-bg {
  background: transparent !important;
  background-image: none !important;
  display: none;
}

#card-hero .card-canvas { display: none !important; }

#card-hero .card-overlay {
  display: flex !important;
  opacity: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: none;
}

#card-hero.tap-flash .card-overlay {
  animation: tapFlash 0.8s ease forwards;
}

#card-hero .card-live-badge { display: none !important; }
#card-hero .card-eq { display: none !important; }

#card-hero .card-info {
  text-align: center;
  padding-top: 4px;
}

.hero-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  z-index: 1;
}

/* ═══════════════════════════════════════════
   STATIONS
   ═══════════════════════════════════════════ */
.stations-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 32px 0px 32px;
}

.stations-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.ad-banner {
  width: 120px;
  flex-shrink: 0;
  min-height: 500px;
  position: sticky;
  top: 80px;
}

.stations-center { flex: 1; min-width: 0; }

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

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.section-header p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 4px;
}

.stations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ═══════════════════════════════════════════
   STATION CARD
   ═══════════════════════════════════════════ */
.station-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  animation: fadeUp 0.5s ease both;
}

.station-card:nth-child(1) { animation-delay: 0.05s; }
.station-card:nth-child(2) { animation-delay: 0.10s; }
.station-card:nth-child(3) { animation-delay: 0.15s; }
.station-card:nth-child(4) { animation-delay: 0.20s; }
.station-card:nth-child(5) { animation-delay: 0.25s; }
.station-card:nth-child(6) { animation-delay: 0.30s; }
.station-card:nth-child(7) { animation-delay: 0.35s; }
.station-card:nth-child(8) { animation-delay: 0.40s; }

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

.card-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.card-bg { position: absolute; inset: 0; z-index: 0; }

.card-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.card-icon-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ringPulse 3s ease infinite;
}

.card-icon-inner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon-inner .material-symbols-outlined { font-size: 1.4rem; }

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50%       { transform: scale(1.06); opacity: 1; }
}

/* Overlay — sadece tap-flash ile görünür */
.card-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

.station-card.tap-flash .card-overlay {
  animation: tapFlash 0.8s ease forwards;
}

@keyframes tapFlash {
  0%   { opacity: 1; }
  60%  { opacity: 1; }
  100% { opacity: 0; }
}

.card-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(249,115,22,0.5);
}

.card-play-btn .material-symbols-outlined { font-size: 1.75rem; }

.card-live-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 6;
}

.card-info h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  transition: color 0.2s;
  line-height: 1.3;
}

.station-card.active .card-info h3 { color: var(--primary); }

.card-info p {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
  width: 100%;
  border-top: 1px solid var(--border);
  margin-top: 32px;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-left a {
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-left a:hover { color: var(--primary); }

.footer-right {
  color: var(--muted);
  font-size: 0.8rem;
  text-align: right;
}

/* ═══════════════════════════════════════════
   PLAYER BAR
   ═══════════════════════════════════════════ */
.player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(18, 8, 18, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.player-bar.visible { transform: translateY(0); }

.player-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  height: var(--player-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.player-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.player-art {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--surface-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

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

.player-art .material-symbols-outlined {
  font-size: 1.5rem;
  color: var(--primary);
  opacity: 0.5;
}

.player-info { min-width: 0; }

.player-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-status {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-viz {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
  margin-left: 8px;
  opacity: 0;
  transition: opacity 0.3s;
  flex-shrink: 0;
}

.player-bar.playing .mini-viz { opacity: 1; }

.viz-bar { width: 3px; background: var(--primary); border-radius: 2px; height: 4px; }

.player-bar.playing .viz-bar { animation: vizanim 1s ease infinite alternate; }

.player-bar.playing .viz-bar:nth-child(1) { animation-duration: 0.7s; animation-delay: 0.0s; }
.player-bar.playing .viz-bar:nth-child(2) { animation-duration: 0.5s; animation-delay: 0.3s; }
.player-bar.playing .viz-bar:nth-child(3) { animation-duration: 0.9s; animation-delay: 0.1s; }
.player-bar.playing .viz-bar:nth-child(4) { animation-duration: 0.6s; animation-delay: 0.4s; }
.player-bar.playing .viz-bar:nth-child(5) { animation-duration: 0.8s; animation-delay: 0.2s; }

@keyframes vizanim {
  from { height: 4px; }
  to   { height: 18px; }
}

.player-center { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.player-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s;
  box-shadow: 0 4px 16px rgba(255,255,255,0.2);
}

.player-play-btn:hover { transform: scale(1.08); }
.player-play-btn:active { transform: scale(0.95); }

.player-play-btn .material-symbols-outlined {
  font-size: 1.75rem;
  color: #000;
  font-variation-settings: 'FILL' 1;
}

.player-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  justify-content: flex-end;
}

.channel-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-light);
  border: 1px solid rgba(255,255,255,0.05);
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 1.4s ease infinite;
}

.volume-wrap { display: flex; align-items: center; gap: 8px; }
.vol-icon { font-size: 1.2rem; color: var(--muted); }

input[type="range"] {
  -webkit-appearance: none;
  width: 90px;
  height: 3px;
  background: var(--surface-light);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1023px) {
  .header-inner { padding: 0 20px; }

  .hero-content {
    padding: 40px 20px;
    flex-direction: column;
    align-items: center;
  }

  .hero-left {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-right: 0;
    margin-top: 24px;
    width: 100%;
  }

  #card-hero {
    width: 100% !important;
    max-width: 300px;
    margin: 0 auto;
  }

  .stations-section { padding: 24px 20px 0px 20px; }
  .ad-banner { display: none !important; }
  .stations-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .player-inner { padding: 0 20px; gap: 16px; }
  .channel-badge { display: none; }
  .volume-wrap input { width: 70px; }
  .footer-inner { padding: 24px 20px; }
}

@media (max-width: 767px) {
  :root { --player-h: 68px; }
  .mobile-menu-btn { display: flex; }
  .hero { min-height: 420px; }

  .hero-content h1 { font-size: clamp(1.8rem, 8vw, 2.8rem); text-align: center; }

  .btn-primary { height: 42px; padding: 0 20px; font-size: 0.8rem; }
  .stations-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .section-header h2 { font-size: 1.2rem; }
  .player-left { gap: 10px; }
  .player-art { width: 44px; height: 44px; }
  .player-name { font-size: 0.85rem; }
  .mini-viz { display: none; }
  .player-right .volume-wrap { display: none; }
  .player-play-btn { width: 42px; height: 42px; }
  .player-right { display: none; }
  .player-center { margin-left: auto; }
  .modal-content { max-height: calc(85vh - 70px); }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
  }
  .footer-right { align-self: center; text-align: center; }
  .footer-left { align-items: center; text-align: center; }

  #card-hero {
    width: 100% !important;
    max-width: 200px;
    margin: 0 auto;
  }
  #card-hero .card-info { padding-top: 8px; }
  #card-hero .card-play-btn { width: 36px; height: 36px; }
  #card-hero .card-play-btn .material-symbols-outlined { font-size: 1.4rem; }
}

@media (max-width: 479px) {
  .header-inner { padding: 0 16px; }
  .logo-name { font-size: 0.85rem; }
  .hero-content { padding: 32px 16px; }
  .hero-content h1 { font-size: clamp(1.6rem, 9vw, 2.2rem); }
  .stations-section { padding: 28px 16px; }
  .stations-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .card-info h3 { font-size: 0.8rem; }
  .card-info p { font-size: 0.68rem; }
  .player-inner { padding: 0 16px; }
  .footer-inner { padding: 16px; }
  .hero-right { margin-top: 12px; }

  #card-hero {
    width: 100% !important;
    max-width: 180px;
  }
  #card-hero .card-play-btn { width: 32px; height: 32px; }
  #card-hero .card-play-btn .material-symbols-outlined { font-size: 1.2rem; }
}

@media (hover: none) {
  .btn-primary:hover { transform: none; }
  .player-play-btn:hover { transform: none; }
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .player-bar {
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(var(--player-h) + env(safe-area-inset-bottom));
  }
}

/* ═══════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 4, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 800px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  transform: translateY(30px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.modal-overlay.active .modal-content { transform: translateY(0); }

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

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--muted);
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}

.modal-close:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-body .policy-date { font-size: 0.8rem; color: var(--muted); margin-bottom: 32px; }
.modal-body .policy-block { margin-bottom: 24px; }
.modal-body .policy-block h3 { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.modal-body .policy-block p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.modal-body .policy-block a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
.modal-body .policy-block a:hover { text-decoration: underline; color: var(--primary-dark); }
.modal-body .divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }