/* PixelVault — Portal styles (главная + радио)
   Намеренно отдельный от css/main.css визуальный язык — светлый,
   спокойный, "портальный", в отличие от тёмной неоновой аркады игр.
   Секция игр (games/index.html и вложенные страницы) продолжает
   использовать main.css без изменений. */

:root {
  --pv2-bg:        #f7f7f9;
  --pv2-surface:   #ffffff;
  --pv2-surface-2: #f0f1f4;
  --pv2-border:    #e2e4ea;
  --pv2-border-2:  #d7d9e2;
  --pv2-text:      #1a1b23;
  --pv2-text-sec:  #6b6e7a;
  --pv2-text-mut:  #9497a3;
  --pv2-accent:    #7c3aed;
  --pv2-accent-bg: #f2ebfe;
  --pv2-radio:     #059669;
  --pv2-radio-bg:  #e5f7f0;
  --pv2-video:     #9497a3;
  --pv2-radius:    14px;
  --pv2-radius-sm: 10px;
  --pv2-font:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.portal * { margin: 0; padding: 0; box-sizing: border-box; }

.portal {
  background: var(--pv2-bg);
  color: var(--pv2-text);
  font-family: var(--pv2-font);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

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

.portal .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER ── */
.portal .p-header {
  background: rgba(247,247,249,0.9);
  border-bottom: 1px solid var(--pv2-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.portal .p-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.portal .p-logo {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.portal .p-logo .dot { color: var(--pv2-accent); }

.portal .lang-switch { display: inline-flex; gap: 4px; }
.portal .lang-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  color: var(--pv2-text-sec);
  background: transparent;
  border: 1px solid var(--pv2-border-2);
  border-radius: 8px;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.portal .lang-btn:hover { border-color: var(--pv2-accent); color: var(--pv2-accent); }
.portal .lang-btn.active { color: #fff; background: var(--pv2-accent); border-color: var(--pv2-accent); }

/* ── HERO ── */
.portal .p-hero { padding: 64px 0 40px; }
.portal .p-hero h1 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 700; margin-bottom: 10px; letter-spacing: -0.5px; }
.portal .p-hero p { color: var(--pv2-text-sec); font-size: 16px; }

/* ── SECTION CARDS (главная) ── */
.portal .section-cards {
  padding: 8px 0 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.portal .p-card {
  background: var(--pv2-surface);
  border: 1px solid var(--pv2-border);
  border-radius: var(--pv2-radius);
  padding: 28px 24px;
  transition: transform .15s, border-color .15s, box-shadow .15s;
  display: block;
}
.portal .p-card:hover {
  transform: translateY(-3px);
  border-color: var(--pv2-border-2);
  box-shadow: 0 8px 24px rgba(20,20,30,0.06);
}
.portal .p-card.disabled { opacity: .55; cursor: default; pointer-events: none; }

.portal .p-card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.portal .p-card-icon.games { background: var(--pv2-accent-bg); color: var(--pv2-accent); }
.portal .p-card-icon.radio { background: var(--pv2-radio-bg); color: var(--pv2-radio); }
.portal .p-card-icon.video { background: var(--pv2-surface-2); color: var(--pv2-video); }

.portal .p-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.portal .p-card p { font-size: 13.5px; color: var(--pv2-text-sec); line-height: 1.5; }
.portal .p-card .badge-soon {
  display: inline-block; margin-top: 10px;
  font-size: 11px; font-weight: 600;
  color: var(--pv2-text-mut); background: var(--pv2-surface-2);
  padding: 3px 9px; border-radius: 20px;
}

/* ── FOOTER ── */
.portal .p-footer { border-top: 1px solid var(--pv2-border); padding: 28px 0; }
.portal .p-footer .container {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.portal .p-footer p { color: var(--pv2-text-mut); font-size: 13px; }
.portal .p-footer nav { display: flex; gap: 20px; }
.portal .p-footer nav a { color: var(--pv2-text-sec); font-size: 13px; }
.portal .p-footer nav a:hover { color: var(--pv2-accent); }

/* ── RADIO: заголовок и секции по языкам ── */
.portal .radio-page-header { padding: 48px 0 8px; }
.portal .radio-page-header .breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--pv2-text-sec); margin-bottom: 18px;
}
.portal .radio-page-header .breadcrumb a:hover { color: var(--pv2-accent); }
.portal .radio-page-header h1 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; margin-bottom: 6px; }
.portal .radio-page-header p { color: var(--pv2-text-sec); font-size: 15px; }

.portal .radio-block { padding: 32px 0 8px; }
.portal .radio-block h2 {
  font-size: 15px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.4px; color: var(--pv2-text-sec);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--pv2-border);
}

.portal .station-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.portal .station-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--pv2-surface);
  border: 1px solid var(--pv2-border);
  border-radius: var(--pv2-radius-sm);
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.portal .station-row:hover { border-color: var(--pv2-border-2); }
.portal .station-row.playing { border-color: var(--pv2-radio); background: var(--pv2-radio-bg); }

.portal .station-row .btn-toggle {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--pv2-surface-2);
  color: var(--pv2-text-sec);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  cursor: pointer;
}
.portal .station-row.playing .btn-toggle { background: var(--pv2-radio); color: #fff; }

.portal .station-row .station-meta { min-width: 0; flex: 1; }
.portal .station-row .station-name {
  font-size: 13.5px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.portal .station-row .station-sub { font-size: 11.5px; color: var(--pv2-text-mut); }

.portal .radio-empty, .portal .radio-loading {
  color: var(--pv2-text-mut); font-size: 13.5px; padding: 6px 0 2px;
}

/* ── PLAYER BAR (только на странице радио) ── */
.portal .player-spacer { height: 76px; }
.portal .player-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--pv2-surface);
  border-top: 1px solid var(--pv2-border);
  box-shadow: 0 -4px 20px rgba(20,20,30,0.06);
  z-index: 200;
}
.portal .player-bar .container {
  display: flex; align-items: center; gap: 16px;
  height: 76px;
}
.portal .player-bar .btn-play {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--pv2-radio);
  color: #fff;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.portal .player-bar .btn-play:disabled { background: var(--pv2-surface-2); color: var(--pv2-text-mut); cursor: default; }
.portal .player-bar .now-playing { min-width: 0; flex: 1; }
.portal .player-bar .np-name {
  font-size: 14px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.portal .player-bar .np-status { font-size: 12px; color: var(--pv2-text-mut); }
.portal .player-bar .np-status .live-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--pv2-radio); margin-right: 5px;
}
.portal .player-bar .volume-wrap {
  display: flex; align-items: center; gap: 8px;
  color: var(--pv2-text-sec);
  flex: 0 0 auto;
}
.portal .player-bar input[type="range"] { width: 100px; accent-color: var(--pv2-radio); }

@media (max-width: 640px) {
  .portal .p-hero { padding: 40px 0 24px; }
  .portal .radio-page-header { padding: 32px 0 4px; }
  .portal .player-bar .volume-wrap { display: none; }
  .portal .station-list { grid-template-columns: 1fr 1fr; }
}
