/*
Theme Name: Blok Radio
Theme URI: https://example.com/blok-radio
Author: Blok Radio
Author URI: https://example.com
Description: Tamna, "protest poster" tema za studentske/gradjanske internet radio i news portale. Ugradjen live stream plejer, raspored programa, emisije (custom post type) i mesto za live chat widget/plugin.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: blok-radio
Tags: dark, news, blog, one-column, two-columns, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root{
  --br-bg:            #0c0c0d;
  --br-bg-alt:        #141415;
  --br-card:          #18181a;
  --br-card-border:   #2a2a2c;
  --br-yellow:        #f4c520;
  --br-yellow-dim:    #cfa717;
  --br-red:           #e6394a;
  --br-white:         #f4f2ea;
  --br-muted:         #9a9a95;
  --br-green:         #3ecf6e;

  --br-font-display:  'Anton', 'Archivo Black', Impact, sans-serif;
  --br-font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --br-font-mono:     'JetBrains Mono', 'Courier New', monospace;

  --br-radius:        3px;
  --br-container:     1280px;
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; overflow-x:hidden; }
body{
  margin:0;
  background:var(--br-bg);
  color:var(--br-white);
  font-family:var(--br-font-body);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  max-width:100vw;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; cursor:pointer; }
h1,h2,h3,h4{
  font-family:var(--br-font-display);
  text-transform:uppercase;
  letter-spacing:.5px;
  line-height:1.05;
  margin:0 0 .5em;
}
.screen-reader-text{ position:absolute; left:-9999px; }

.br-container{
  max-width:var(--br-container);
  margin:0 auto;
  padding:0 24px;
}

/* subtle paper-grain overlay used behind hero/dark sections */
.br-grain{ position:relative; isolation:isolate; }
.br-grain::before{
  content:"";
  position:absolute; inset:0;
  pointer-events:none;
  opacity:.06;
  background-image:radial-gradient(rgba(255,255,255,.9) 1px, transparent 1px);
  background-size:3px 3px;
  z-index:0;
}
.br-grain > *{ position:relative; z-index:1; }

/* =========================================================
   TOP HORIZONTAL BANNER (izmedju menija i naslovnih modula)
   ========================================================= */
.br-top-banner{ padding:18px 0; border-bottom:1px solid var(--br-card-border); }
.br-top-banner .br-widget{ background:transparent; border:none; padding:0; margin:0; }
.br-top-banner img{ width:100%; height:auto; border-radius:6px; display:block; }

/* =========================================================
   TOP BAR / HEADER
   ========================================================= */
.br-header{
  background:var(--br-bg);
  border-bottom:1px solid var(--br-card-border);
  position:sticky; top:0; z-index:50;
}
.br-header-inner{
  display:flex; align-items:center; justify-content:space-between;
  height:130px; gap:24px; padding:16px 0;
}
.br-logo{ display:flex; align-items:center; gap:2px; font-family:var(--br-font-display); font-size:22px; letter-spacing:.5px; position:relative; z-index:2; margin:0; flex-shrink:0; }
/* Logo je uspravan (znak + tekst ispod), zato mu dajemo visinu a ne sirinu -
   sirina se sama racuna iz stvarnog odnosa slike, bez izoblicenja. */
.br-logo img{ height:104px; width:auto; max-height:104px; }
.br-logo .accent{ color:var(--br-yellow); }

.br-primary-nav{ flex:1; display:flex; justify-content:center; }
.br-primary-nav ul{ display:flex; gap:32px; align-items:center; }
.br-primary-nav a{
  font-size:13px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--br-white); padding:8px 2px; border-bottom:2px solid transparent;
  transition:color .15s, border-color .15s;
}
.br-primary-nav a:hover,
.br-primary-nav .current-menu-item > a{
  color:var(--br-yellow); border-color:var(--br-yellow);
}

.br-social{ display:flex; gap:14px; align-items:center; }
.br-social a{
  width:32px; height:32px; display:flex; align-items:center; justify-content:center;
  color:var(--br-white); border:1px solid var(--br-card-border); border-radius:50%;
  transition:border-color .15s, color .15s;
}
.br-social a:hover{ color:var(--br-bg); background:var(--br-yellow); border-color:var(--br-yellow); }

/* Pretraga u headeru - zamenjuje ikonice mreza gore desno; posebna kopija se prikazuje
   kao prva stavka u mobilnom sandwich meniju (vidi .br-header-search--mobile ispod). */
.br-header-search{
  display:flex; align-items:center; gap:8px;
  background:var(--br-bg-alt); border:1px solid var(--br-card-border); border-radius:22px;
  padding:6px 6px 6px 16px; flex:none;
}
.br-header-search input[type=search]{
  background:transparent; border:none; outline:none; color:var(--br-white);
  font-size:13px; width:150px; font-family:inherit;
}
.br-header-search input[type=search]::placeholder{ color:var(--br-muted); }
.br-header-search input[type=search]::-webkit-search-cancel-button{ display:none; }
.br-header-search button{
  background:var(--br-yellow); border:none; width:28px; height:28px; border-radius:50%; flex:none;
  display:flex; align-items:center; justify-content:center; color:#141414; font-size:12px;
  transition:background .15s;
}
.br-header-search button:hover{ background:#fff; }

.br-header-search--mobile{ display:none; }

.br-menu-toggle{
  display:none; background:none; border:1px solid var(--br-card-border); color:var(--br-white);
  padding:8px 10px; border-radius:var(--br-radius);
}

/* =========================================================
   HERO / LIVE PLAYER
   ========================================================= */
.br-hero{
  background:linear-gradient(180deg, #151011 0%, #0c0c0d 70%);
  border-bottom:1px solid var(--br-card-border);
  padding:32px 0 40px;
}
.br-hero-grid{
  display:grid;
  grid-template-columns:1.6fr 1fr;
  gap:24px;
  align-items:start;
}
.br-live-panel{
  background:#161213;
  border:1px solid var(--br-card-border);
  border-radius:6px;
  overflow:hidden;
  position:relative;
}
.br-live-art{
  position:relative;
  min-height:260px;
  background:
    linear-gradient(0deg, rgba(12,12,13,.92), rgba(12,12,13,.55)),
    repeating-linear-gradient(115deg, #1c1a19 0 2px, #211d1b 2px 4px);
  padding:28px 32px 90px;
}
.br-live-art.has-bg-image{
  background-size:cover;
  background-position:center;
}
.br-live-badge{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--br-red); color:#fff; font-weight:800; font-size:11px;
  letter-spacing:.1em; text-transform:uppercase; padding:5px 10px; border-radius:3px;
}
.br-live-badge .dot{ width:7px; height:7px; border-radius:50%; background:#fff; animation:br-pulse 1.4s infinite; }
@keyframes br-pulse{ 0%,100%{opacity:1;} 50%{opacity:.25;} }

.br-live-station{ color:var(--br-yellow); font-weight:700; letter-spacing:.08em; text-transform:uppercase; font-size:13px; margin-top:18px; }
.br-live-title{ font-size:clamp(30px,4vw,44px); margin:6px 0 10px; }
.br-live-sub{ color:var(--br-muted); max-width:480px; font-size:15px; }
.br-live-sub p{ margin:0 0 12px; }
.br-live-sub p:last-child{ margin-bottom:0; }

.br-player-bar{
  position:relative;
  background:#100e0e;
  padding:18px 32px 22px;
  display:flex; align-items:center; gap:20px;
}
.br-play-btn{
  width:64px; height:64px; border-radius:50%; flex:none;
  background:transparent; border:2px solid var(--br-white); color:var(--br-white);
  display:flex; align-items:center; justify-content:center; font-size:22px;
  transition:transform .15s, border-color .15s, color .15s;
}
.br-play-btn:hover{ border-color:var(--br-yellow); color:var(--br-yellow); transform:scale(1.05); }
.br-play-btn.is-reconnecting{ border-color:var(--br-yellow); animation:br-reconnect-pulse 1.1s ease-in-out infinite; }
@keyframes br-reconnect-pulse{ 0%,100%{ opacity:1; } 50%{ opacity:.4; } }
.br-waveform{ flex:1; height:44px; display:flex; align-items:flex-end; gap:2px; overflow:hidden; }
.br-waveform span{ width:3px; background:var(--br-yellow); opacity:.55; border-radius:2px; }

.br-player-controls{
  display:flex; align-items:center; gap:18px; flex-wrap:wrap;
  padding:12px 32px 0; color:var(--br-muted); font-size:12px;
}
.br-player-controls .br-volume{ display:flex; align-items:center; gap:8px; }
.br-player-controls input[type=range]{ accent-color:var(--br-yellow); width:110px; }
.br-player-controls .sep{ opacity:.4; }
.br-player-controls .br-actions{ margin-left:auto; display:flex; gap:18px; }
.br-player-controls .br-actions a{ display:flex; align-items:center; gap:6px; }
.br-player-controls .br-actions a:hover{ color:var(--br-yellow); }

.br-popup-link{
  margin-left:auto; width:28px; height:28px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:var(--br-muted); border:1px solid var(--br-card-border); font-size:12px;
  transition:color .15s, border-color .15s;
}
.br-popup-link:hover{ color:var(--br-yellow); border-color:var(--br-yellow); }

/* Status konekcije (Konekcija uspostavljena / Pokusavam ponovnu uspostavu...) */
.br-stream-status{
  padding:10px 32px 0; font-size:12px; font-weight:600; letter-spacing:.02em;
  display:flex; align-items:center; gap:7px;
}
.br-stream-status:empty{ display:none; }
.br-stream-status::before{ content:""; width:7px; height:7px; border-radius:50%; flex:none; }
.br-stream-status.is-connecting{ color:var(--br-muted); }
.br-stream-status.is-connecting::before{ background:var(--br-muted); animation:br-pulse 1s infinite; }
.br-stream-status.is-live{ color:var(--br-green); }
.br-stream-status.is-live::before{ background:var(--br-green); }
.br-stream-status.is-reconnecting{ color:var(--br-yellow); }
.br-stream-status.is-reconnecting::before{ background:var(--br-yellow); animation:br-pulse 1s infinite; }
.br-stream-status.is-failed{ color:var(--br-red); }
.br-stream-status.is-failed::before{ background:var(--br-red); }

/* Sidebar: O nama + Raspored */
.br-side-stack{ display:flex; flex-direction:column; gap:20px; }
.br-box{
  background:var(--br-card); border:1px solid var(--br-card-border); border-radius:6px; padding:22px 24px;
}
.br-box h3{ font-size:19px; margin-bottom:12px; }
.br-box h3 .bar{ display:inline-block; width:22px; height:3px; background:var(--br-yellow); margin-right:10px; vertical-align:middle; }
.br-box p{ color:var(--br-muted); font-size:14px; margin:0 0 16px; }
.br-about-text p{ color:var(--br-muted); font-size:14px; margin:0 0 14px; }
.br-about-text p:last-child{ margin-bottom:16px; }
.br-btn{
  display:inline-block; background:var(--br-yellow); color:#141414; font-weight:800; font-size:12px;
  letter-spacing:.06em; text-transform:uppercase; padding:11px 20px; border-radius:3px; border:none;
  transition:background .15s;
}
.br-btn:hover{ background:#fff; color:#000; }
.br-btn-outline{
  background:transparent; color:var(--br-white); border:1px solid var(--br-card-border);
}
.br-btn-outline:hover{ border-color:var(--br-yellow); color:var(--br-yellow); background:transparent; }

.br-link-list li{ margin-bottom:9px; font-size:14px; }
.br-link-list a{ display:flex; align-items:center; gap:10px; color:var(--br-muted); }
.br-link-list a:hover{ color:var(--br-yellow); }
.br-link-list .ic{ width:16px; text-align:center; color:var(--br-yellow); }

.br-schedule li{
  display:flex; justify-content:space-between; gap:10px; font-size:13px;
  padding:8px 0; border-bottom:1px solid var(--br-card-border);
}
.br-schedule li:last-child{ border-bottom:none; }
.br-schedule .time{ color:var(--br-yellow); font-family:var(--br-font-mono); font-weight:700; }
.br-schedule .show{ color:var(--br-white); text-align:right; }
.br-schedule-link{ display:inline-block; margin-top:14px; color:var(--br-yellow); font-size:13px; font-weight:700; }

/* Homepage grid: hero | about+schedule | chat (top row), shows + aside banner zone (bottom row) */
/* Homepage grid: hero-top/about-top/chat dele PRVI red, hero-bottom/about-bottom/chat dele DRUGI red
   (chat se proteze kroz oba), shows+aside dele TRECI red. Zato sto je ovo pravi CSS Grid red (ne flex
   stek), granica izmedju plejera i "Najnovije vesti" AUTOMATSKI se poklapa sa granicom izmedju
   "O nama" i "Raspored danas" - ista logika kao poravnanje redova u tabeli. */
.br-home-grid{
  display:grid;
  grid-template-columns:1.6fr 1fr 1fr;
  grid-template-rows:auto auto auto;
  grid-template-areas:
    "hero-top about-top chat"
    "hero-bottom about-bottom chat"
    "shows shows aside";
  gap:24px;
  align-items:stretch;
  padding:32px 0 0;
}
.br-home-grid .area-hero-top{ grid-area:hero-top; min-width:0; display:flex; }
.br-home-grid .area-hero-top > .br-live-panel{ flex:1; }
.br-home-grid .area-hero-bottom{ grid-area:hero-bottom; min-width:0; display:flex; }
.br-home-grid .area-hero-bottom > .br-box{ flex:1; display:flex; flex-direction:column; height:100%; }

.br-home-grid .area-about-top{ grid-area:about-top; min-width:0; display:flex; }
/* Kartica "O nama" fizicki popuni celu visinu svoje celije (umesto da ostavi
   nevidljivu prazninu ispod sebe do granice reda) - lista linkova upija visak. */
.br-home-grid .area-about-top > .br-box{ flex:1; display:flex; flex-direction:column; height:100%; }
.br-home-grid .area-about-top .br-link-list{ flex:1; }
.br-home-grid .area-about-bottom{ grid-area:about-bottom; min-width:0; display:flex; }
.br-home-grid .area-about-bottom > .br-box{ flex:1; display:flex; flex-direction:column; height:100%; }
.br-home-grid .area-about-bottom .br-schedule{ flex:1; }
.br-home-grid .area-about-bottom .br-schedule-link{ margin-top:auto; }

.br-fill-widgets{ overflow:hidden; }
.br-fill-widgets .br-widget{ background:transparent; border:none; padding:0; margin:0; flex:1; display:flex; flex-direction:column; }
.br-fill-widgets .br-widget img{ border-radius:4px; }

.br-home-grid .area-chat{ grid-area:chat; height:100%; min-width:0; }
.br-home-grid .area-shows{ grid-area:shows; padding:40px 0 8px; min-width:0; }
/* Ne rastezemo ovu kolonu na silu - banner/ad kod cesto ima svoju fiksnu visinu,
   pa "height:100%" pravi prazninu ispod njega. Neka prati svoju prirodnu velicinu. */
.br-home-grid .area-aside{ grid-area:aside; min-width:0; align-self:start; }
.br-home-grid .area-aside .br-widget{ margin-bottom:0; }
.br-home-grid .area-aside .br-widget img{ width:100%; height:auto; border-radius:6px; }

.br-mini-news{ flex:1; }
.br-fill-more-link{ margin-top:auto; padding-top:6px; }
.br-mini-news li{ border-bottom:1px solid var(--br-card-border); }
.br-mini-news li:last-child{ border-bottom:none; }
.br-mini-news a{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:11px 0; }
.br-mini-news .title{ font-size:14px; color:var(--br-white); }
.br-mini-news a:hover .title{ color:var(--br-yellow); }
.br-mini-news .date{ font-size:11px; color:var(--br-muted); white-space:nowrap; flex:none; }

@media (max-width:1024px){
  .br-home-grid{
    grid-template-columns:1fr 1fr;
    grid-template-areas:
      "hero-top hero-top"
      "hero-bottom hero-bottom"
      "about-top chat"
      "about-bottom chat"
      "shows shows"
      "aside aside";
  }
}
@media (max-width:760px){
  .br-home-grid{
    grid-template-columns:1fr;
    grid-template-areas:
      "hero-top"
      "hero-bottom"
      "about-top"
      "about-bottom"
      "chat"
      "shows"
      "aside";
  }
}

/* =========================================================
   SECTION HEADINGS
   ========================================================= */
.br-section{ padding:56px 0; }
.br-section-head{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom:26px; }
.br-section-head h2{ font-size:26px; }
.br-section-head a{ color:var(--br-yellow); font-size:13px; font-weight:700; }

/* =========================================================
   EMISIJE / SHOWS GRID
   ========================================================= */
.br-shows-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.br-show-card{
  position:relative; border-radius:6px; overflow:hidden; min-height:190px;
  display:flex; flex-direction:column; justify-content:flex-end; padding:20px;
  background-size:cover; background-position:center;
}
.br-show-card::before{
  content:""; position:absolute; inset:0;
  background:linear-gradient(0deg, rgba(0,0,0,.88) 15%, rgba(0,0,0,.25) 70%);
}
.br-show-card > *{ position:relative; z-index:1; }
.br-show-card .cat{ font-size:11px; color:var(--br-yellow); font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.br-show-card h3{ font-size:19px; margin:6px 0 6px; }
.br-show-card p{ font-size:13px; color:#d6d6d0; margin:0 0 10px; }
.br-show-card .meta{ display:flex; align-items:center; justify-content:space-between; font-size:12px; color:var(--br-muted); }
.br-show-card .play-mini{
  width:34px; height:34px; border-radius:50%; background:var(--br-yellow); color:#141414;
  display:flex; align-items:center; justify-content:center; font-size:13px;
}

/* =========================================================
   NEWS GRID (blog posts)
   ========================================================= */
.br-news-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.br-news-card{ background:var(--br-card); border:1px solid var(--br-card-border); border-radius:6px; overflow:hidden; }
.br-news-card .thumb{ aspect-ratio:16/10; background-size:cover; background-position:center; background-color:#222; }
.br-news-card .body{ padding:18px 20px 22px; }
.br-news-card .cat{ font-size:11px; color:var(--br-yellow); font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
.br-news-card h3{ font-family:var(--br-font-body); text-transform:none; font-size:18px; letter-spacing:0; font-weight:800; margin:8px 0 8px; }
.br-news-card p{ color:var(--br-muted); font-size:14px; margin:0 0 10px; }
.br-news-card .date{ font-size:12px; color:var(--br-muted); }

/* =========================================================
   LIVE CHAT PANEL
   ========================================================= */
.br-chat-box{ display:flex; flex-direction:column; height:100%; min-height:520px; }
.br-chat-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.br-chat-head h3{ display:flex; align-items:center; gap:10px; }
.br-chat-count{ display:flex; align-items:center; gap:6px; color:var(--br-green); font-size:13px; font-weight:700; }
.br-chat-count .dot{ width:8px; height:8px; border-radius:50%; background:var(--br-green); }
.br-chat-embed{ flex:1; overflow:hidden; border-radius:4px; }
.br-chat-messages{ flex:1; overflow-y:auto; display:flex; flex-direction:column; gap:14px; padding-right:4px; }
.br-chat-msg{ display:flex; gap:10px; font-size:13px; }
.br-chat-msg .avatar{ width:30px; height:30px; border-radius:50%; flex:none; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:12px; color:#141414; }
.br-chat-msg .name{ font-weight:700; }
.br-chat-msg .time{ color:var(--br-muted); font-size:11px; margin-left:6px; }
.br-chat-msg .text{ color:#d6d6d0; margin-top:2px; }
.br-chat-input{
  margin-top:14px; display:flex; gap:8px; align-items:center;
  border:1px solid var(--br-card-border); border-radius:4px; padding:8px 10px; background:#101011;
}
.br-chat-input input{ flex:1; background:transparent; border:none; outline:none; color:var(--br-white); font-size:13px; }
.br-chat-input button{ background:var(--br-yellow); border:none; width:30px; height:30px; border-radius:4px; display:flex; align-items:center; justify-content:center; color:#141414; }
.br-chat-rules{ text-align:center; font-size:11px; color:var(--br-muted); margin-top:10px; }
.br-chat-note{ font-size:12px; color:var(--br-muted); border:1px dashed var(--br-card-border); padding:12px; border-radius:4px; }

/* =========================================================
   FOOTER
   ========================================================= */
.br-footer{ border-top:1px solid var(--br-card-border); padding:22px 0; }
.br-footer .br-container{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.br-footer small{ color:var(--br-muted); font-size:13px; }
.br-footer ul a{ color:var(--br-muted); font-size:13px; transition:color .15s; }
.br-footer ul a:hover{ color:var(--br-yellow); }
.br-footer .br-social{ gap:12px; }

/* =========================================================
   GENERIC BLOG / SINGLE / ARCHIVE
   ========================================================= */
.br-page-header{ padding-top:48px; padding-bottom:20px; border-bottom:1px solid var(--br-card-border); }
.br-page-header h1{ font-size:34px; }
.br-content-wrap{ display:grid; grid-template-columns:2fr 1fr; gap:36px; padding:44px 0; }
.br-article img{ border-radius:6px; margin:18px 0; }
.br-article h2{ font-family:var(--br-font-body); text-transform:none; letter-spacing:0; font-size:24px; margin-top:1.6em; }
.br-article p{ color:#d6d6d0; }
.br-post-meta{ color:var(--br-muted); font-size:13px; margin-bottom:18px; }
.br-widget{ background:var(--br-card); border:1px solid var(--br-card-border); border-radius:6px; padding:20px; margin-bottom:22px; }
.br-widget h4{ font-size:15px; margin-bottom:14px; }
/* Rezultati pretrage: slika + tekst jedan pored drugog, linija izmedju rezultata */
.br-search-result{
  display:flex; gap:20px; padding:24px 0;
  border-bottom:1px solid var(--br-card-border);
}
.br-search-result:first-child{ padding-top:0; }
.br-search-result:last-child{ border-bottom:none; }
.br-search-result-thumb{ flex:none; width:140px; }
.br-search-result-thumb img{ border-radius:6px; aspect-ratio:4/3; object-fit:cover; margin:0; }
.br-search-result-body{ flex:1; min-width:0; }
.br-search-result-body h3{ font-family:var(--br-font-body); text-transform:none; letter-spacing:0; font-size:18px; margin-bottom:6px; }
.br-search-result-body p{ color:var(--br-muted); font-size:14px; margin:8px 0 0; }

.br-pagination{ display:flex; gap:8px; margin-top:30px; }
.br-pagination a,.br-pagination span{ padding:8px 14px; border:1px solid var(--br-card-border); border-radius:4px; font-size:13px; }
.br-pagination .current{ background:var(--br-yellow); color:#141414; border-color:var(--br-yellow); }

.br-comments{ margin-top:40px; }
.br-comments textarea, .br-comments input[type=text], .br-comments input[type=email]{
  width:100%; background:#101011; border:1px solid var(--br-card-border); border-radius:4px; color:var(--br-white); padding:10px 12px; margin-bottom:12px; font-family:inherit;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width:1024px){
  .br-hero-grid{ grid-template-columns:1fr; }
  .br-shows-grid{ grid-template-columns:repeat(2,1fr); }
  .br-news-grid{ grid-template-columns:repeat(2,1fr); }
  .br-content-wrap{ grid-template-columns:1fr; }
}
@media (max-width:760px){
  .br-container{ padding:0 16px; }
  .br-header-inner{ padding:16px 20px; gap:16px; }
  .br-primary-nav{ display:none; }
  .br-header .br-social{ display:none; }
  .br-header-search--desktop{ display:none; }
  .br-menu-toggle{ display:flex; align-items:center; gap:6px; }
  .br-shows-grid{ grid-template-columns:1fr; }
  .br-news-grid{ grid-template-columns:1fr; }
  .br-player-controls .br-actions{ margin-left:0; width:100%; justify-content:space-between; }

  /* Vise vazdusnog prostora izmedju banera/menija i naslova clanka na mobilnom -
     bez ovoga naslov deluje "zalepljen" uz liniju iznad. */
  .br-page-header{ padding-top:28px; padding-bottom:14px; }
  .br-page-header h1{ font-size:26px; }

  /* Mobile nav dropdown: opened via JS adding .is-open to .br-primary-nav */
  .br-primary-nav.is-open{
    display:block;
    position:absolute;
    top:130px; left:0; right:0;
    background:var(--br-bg);
    border-bottom:1px solid var(--br-card-border);
    padding:8px 24px 20px;
    z-index:60;
  }
  /* Pretraga je prva stavka u meniju - puna sirina, iznad linkova */
  .br-primary-nav.is-open .br-header-search--mobile{
    display:flex;
    width:100%;
    margin:8px 0 14px;
  }
  .br-primary-nav.is-open .br-header-search--mobile input[type=search]{
    flex:1; width:auto;
  }
  .br-primary-nav.is-open ul{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:4px;
  }
  .br-primary-nav.is-open a{
    display:block;
    width:100%;
    padding:12px 0;
    border-bottom:1px solid var(--br-card-border);
  }
}

/* =========================================================
   POPUP PLEJER (standalone stranica otvorena preko window.open)
   ========================================================= */
body.br-popup-player{
  margin:0; padding:16px; min-height:100vh;
  display:flex; align-items:center; justify-content:center;
}
body.br-popup-player .br-popup-wrap{ width:100%; max-width:360px; }
body.br-popup-player .br-live-panel{ overflow:hidden; }
body.br-popup-player .br-live-art{ min-height:auto; padding:20px 20px 26px; }
body.br-popup-player .br-player-bar{ padding:14px 20px 16px; }
body.br-popup-player .br-player-controls{ padding:10px 20px 0; }
body.br-popup-player .br-stream-status{ padding:10px 20px 18px; }
body.br-popup-player .br-popup-link{ display:none; }

@media (max-width:600px){
  .br-search-result{ flex-direction:column; }
  .br-search-result-thumb{ width:100%; }
}
