/* BISTRITA.XYZ — hand-painted / anti-template skin
   No Google Fonts. No CDN. No Bootstrap. No external CSS/JS dependencies. */
:root{
 --red:#ff173d;--paper:#eee8dc;--ink:#070707;--gray:#bdbdbd;--white:#fff;
 --max:1671px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#050505;color:#fff;font-family:Arial,Helvetica,sans-serif}
a{color:inherit}
button,input,textarea{font:inherit}
img{max-width:100%}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important}
.mural{position:relative;margin:0 auto;width:min(100%,var(--max));aspect-ratio:1671/941;background:#050505 url("mural.webp") center top/100% 100% no-repeat}
.hot{position:absolute;display:block;background:transparent;border:0;cursor:pointer;z-index:3;text-indent:-9999px}
.hot:focus-visible{outline:3px solid #fff;outline-offset:3px}
.nav-home{left:29.7%;top:4.2%;width:6.5%;height:6%}
.nav-chat{left:37.1%;top:4.2%;width:5.2%;height:6%}
.nav-radio{left:43.6%;top:4.2%;width:5.2%;height:6%}
.nav-about{left:49.4%;top:4.2%;width:8.8%;height:6%}
.nav-news{left:58.5%;top:4.2%;width:6.5%;height:6%}
.nav-contact{left:65.7%;top:4.2%;width:6.5%;height:6%}
.nav-mail{left:71.9%;top:4.2%;width:6.5%;height:6%}
.social-fb{right:11.2%;top:3.3%;width:2.3%;height:6.5%}
.social-ig{right:8.2%;top:3.3%;width:2.3%;height:6.5%}
.social-yt{right:5.2%;top:3.3%;width:2.3%;height:6.5%}
.social-sp{right:2.2%;top:3.3%;width:2.3%;height:6.5%}
.hero-radio{left:41.2%;top:56.2%;width:17%;height:7.5%}
.player-link{left:34%;top:65.5%;width:32%;height:13.5%}
.tile-chat{left:11.7%;top:81.0%;width:12.8%;height:10.8%}
.tile-radio{left:25.1%;top:81.0%;width:11.6%;height:10.8%}
.tile-news{left:36.8%;top:81.0%;width:12.3%;height:10.8%}
.tile-about{left:49.2%;top:81.0%;width:12.8%;height:10.8%}
.tile-contact{left:62.1%;top:80.4%;width:11.2%;height:11.5%}
.newsletter{left:72.9%;top:78.7%;width:22.5%;height:14.7%}

/* Secondary pages: the same jagged, inked border language as the mural buttons. */
.page-bg{min-height:100vh;background:#070707 url("mural.webp") center top/cover fixed no-repeat}
.page-overlay{min-height:100vh;background:linear-gradient(90deg,rgba(0,0,0,.9),rgba(0,0,0,.72))}
.site-nav{max-width:1120px;margin:20px auto 0;padding:13px 18px;display:flex;gap:6px;justify-content:center;flex-wrap:wrap;background:#050505;border:3px solid #fff;box-shadow:9px 9px var(--red);clip-path:polygon(1% 11%,8% 2%,18% 7%,31% 1%,44% 6%,58% 2%,71% 7%,84% 2%,96% 9%,100% 21%,97% 38%,100% 54%,96% 70%,99% 86%,91% 98%,77% 93%,63% 99%,49% 94%,35% 100%,21% 94%,8% 98%,0 87%,4% 70%,0 54%,4% 36%)}
.site-nav a{padding:10px 14px;text-decoration:none;font-weight:900;display:inline-block;clip-path:polygon(2% 14%,10% 5%,22% 10%,35% 2%,49% 8%,63% 3%,77% 9%,90% 4%,100% 15%,96% 33%,100% 50%,96% 67%,100% 84%,90% 97%,75% 92%,61% 99%,47% 94%,33% 100%,19% 94%,6% 98%,0 84%,4% 68%,0 51%,4% 34%)}
.site-nav a:hover,.site-nav a.active{background:var(--red);transform:rotate(-2deg)}
.content{max-width:1000px;margin:60px auto;padding:42px;background:rgba(5,5,5,.94);border:4px solid var(--paper);box-shadow:12px 12px var(--red);clip-path:polygon(2% 7%,8% 2%,20% 6%,32% 1%,45% 6%,59% 2%,73% 7%,88% 3%,99% 10%,95% 27%,100% 44%,96% 61%,99% 79%,91% 98%,76% 93%,62% 99%,48% 94%,33% 100%,18% 94%,3% 98%,6% 80%,1% 63%,5% 46%,1% 29%)}
.content h1{font-size:clamp(44px,8vw,88px);margin:0 0 18px;color:var(--paper);font-style:italic;text-shadow:5px 5px var(--red),9px 9px #000}
.content h2{color:var(--red);text-transform:uppercase}
.content p,.content li{font-size:18px;line-height:1.65}
.ink-btn,.form button{display:inline-block;margin-top:16px;padding:14px 25px;color:#fff;background:var(--red);text-decoration:none;border:3px solid #000;font-weight:900;box-shadow:7px 7px #000;cursor:pointer;clip-path:polygon(2% 14%,9% 5%,20% 9%,32% 2%,45% 7%,57% 1%,70% 7%,83% 3%,97% 10%,100% 23%,97% 38%,100% 53%,96% 69%,99% 85%,91% 97%,77% 92%,63% 99%,49% 94%,35% 100%,21% 94%,8% 98%,1% 87%,4% 72%,0 58%,4% 43%,1% 28%)}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.card{padding:22px;background:var(--paper);color:#111;border:3px solid #000;box-shadow:7px 7px var(--red);clip-path:polygon(2% 8%,8% 2%,20% 6%,32% 1%,46% 6%,60% 2%,74% 7%,88% 3%,99% 9%,96% 28%,100% 45%,96% 62%,99% 82%,91% 98%,76% 93%,61% 99%,47% 94%,32% 100%,17% 94%,3% 98%,6% 80%,1% 63%,5% 46%,1% 29%)}
.form{display:grid;gap:14px;max-width:720px}
.form label{font-weight:900}.form input,.form textarea{width:100%;padding:14px;background:#fff;color:#000;border:3px solid #000}.form textarea{min-height:150px}
.footer{max-width:1120px;margin:30px auto;padding:22px;border-top:2px solid #fff;color:#ddd}
.audio{position:fixed;left:50%;bottom:12px;transform:translateX(-50%);z-index:30;display:flex;align-items:center;gap:10px;background:#050505ee;border:2px solid #fff;padding:8px 12px;box-shadow:5px 5px var(--red)}
.audio button{border:0;background:var(--red);color:#fff;font-weight:900;padding:9px 13px;cursor:pointer}
.notice{padding:14px 18px;background:#111;border-left:6px solid var(--red);margin:20px 0}
@media(max-width:800px){
 .mural{min-height:100vh;aspect-ratio:auto;background-size:auto 100%;background-position:center top}
 .site-nav{margin:10px 10px 0}.content{margin:35px 12px;padding:30px 24px}.cards{grid-template-columns:1fr}
}





/* FULL RADIO PLAYER — fixed bottom-right */
.audio{
 position:fixed !important;
 right:20px !important;
 bottom:20px !important;
 left:auto !important;
 top:auto !important;
 transform:none !important;
 z-index:99999 !important;
 display:flex;
 align-items:center;
 gap:10px;
 width:auto;
 max-width:calc(100vw - 40px);
 background:#050505ee;
 border:2px solid #fff;
 padding:8px 12px;
 box-shadow:5px 5px var(--red);
}

.audio button{
 border:0;
 background:var(--red);
 color:#fff;
 font-weight:900;
 padding:9px 13px;
 cursor:pointer;
}

@media(max-width:800px){
 .audio{
  right:10px !important;
  bottom:10px !important;
  left:auto !important;
  top:auto !important;
  transform:none !important;
  max-width:calc(100vw - 20px);
 }
}


/* COOKIE CONSENT */
.cookie-banner{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:100000;
  background:#080808;
  color:#fff;
  border-top:3px solid #fff;
  box-shadow:0 -8px 0 #ff173d;
  padding:18px 24px;
  display:none;
  font-family:Arial,Helvetica,sans-serif;
}

.cookie-banner.show{
  display:block;
}

.cookie-inner{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.cookie-copy{
  flex:1;
}

.cookie-title{
  margin:0 0 7px;
  color:#ff173d;
  font-size:20px;
  font-weight:900;
  text-transform:uppercase;
}

.cookie-text{
  margin:0;
  color:#eee;
  font-size:14px;
  line-height:1.5;
}

.cookie-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}

.cookie-btn{
  border:2px solid #fff;
  background:#111;
  color:#fff;
  padding:11px 18px;
  font-weight:900;
  cursor:pointer;
  text-transform:uppercase;
}

.cookie-btn:hover{
  background:#333;
}

.cookie-btn.accept{
  background:#ff173d;
  border-color:#ff173d;
}

.cookie-btn.accept:hover{
  background:#e00028;
}

.cookie-settings{
  position:fixed;
  inset:0;
  z-index:100001;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(0,0,0,.78);
}

.cookie-settings.show{
  display:flex;
}

.cookie-panel{
  width:min(560px,100%);
  background:#090909;
  color:#fff;
  border:3px solid #fff;
  box-shadow:10px 10px #ff173d;
  padding:28px;
  clip-path:polygon(
    2% 6%,10% 2%,23% 6%,37% 1%,51% 6%,65% 2%,79% 7%,
    94% 3%,100% 13%,96% 30%,100% 48%,96% 65%,99% 84%,
    91% 98%,76% 93%,61% 99%,47% 94%,32% 100%,17% 94%,
    3% 98%,6% 80%,1% 62%,5% 45%,1% 27%
  );
}

.cookie-panel h2{
  margin:0 0 18px;
  color:#ff173d;
  text-transform:uppercase;
}

.cookie-option{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:15px 0;
  border-bottom:1px solid #444;
}

.cookie-option strong{
  display:block;
  margin-bottom:4px;
}

.cookie-option small{
  color:#bbb;
  line-height:1.4;
}

.cookie-option input{
  width:20px;
  height:20px;
  accent-color:#ff173d;
}

.cookie-panel-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:22px;
}

@media(max-width:800px){
  .cookie-banner{
    padding:15px;
  }

  .cookie-inner{
    flex-direction:column;
    align-items:stretch;
    gap:12px;
  }

  .cookie-actions{
    width:100%;
  }

  .cookie-btn{
    flex:1;
    padding:10px 8px;
    font-size:12px;
  }

  .cookie-panel{
    padding:24px 20px;
  }
}


/* Contact button in newsletter section */
.newsletter-contact{
  margin:18px 0 0;
}

.contact-link{
  display:inline-block;
  text-decoration:none;
  color:#fff;
  background:#ff173d;
  border:2px solid #fff;
  padding:10px 22px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.4px;
  box-shadow:5px 5px #fff;
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.contact-link:hover{
  background:#e00028;
  transform:translate(2px,2px);
  box-shadow:3px 3px #fff;
}

.contact-link:focus-visible{
  outline:3px solid #ff173d;
  outline-offset:3px;
}

/* NEWS */
.news-intro{max-width:760px}.news-list{display:flex;flex-direction:column;gap:0;margin-top:30px}.news-item{padding:28px 4px 32px;border-top:3px solid #fff;position:relative}.news-item:last-child{border-bottom:3px solid #fff}.news-item h2{font-size:clamp(28px,4vw,46px);margin:7px 0 14px;color:var(--paper);text-transform:uppercase}.news-meta{font-weight:900;color:var(--red);font-size:14px;letter-spacing:1px}.news-body{font-size:18px;line-height:1.75;color:#eee;max-width:820px}.news-body p{margin:0 0 14px}.news-body a{color:var(--red);font-weight:900}.admin-item{border-top:2px solid #555;padding:15px 0;display:grid;grid-template-columns:1fr auto;gap:6px}.admin-item h3{margin:0;color:var(--paper)}.admin-item small{grid-column:1}.admin-item form{grid-column:2;grid-row:1/3}.admin-item button{background:var(--red);color:#fff;border:2px solid #000;padding:8px 12px;font-weight:900;cursor:pointer}.form select{width:100%;padding:14px;background:#fff;color:#000;border:3px solid #000}.admin-news hr{margin:40px 0;border:0;border-top:3px solid #fff}


/* MOBILE / iOS / ANDROID */
html{overflow-x:hidden;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{overflow-x:hidden;min-width:0;-webkit-tap-highlight-color:transparent}
img,video,iframe{max-width:100%}
button,a,input,textarea,select{touch-action:manipulation}
@supports(padding:env(safe-area-inset-bottom)){
  .audio{bottom:calc(10px + env(safe-area-inset-bottom))!important}
  .cookie-banner{padding-bottom:calc(14px + env(safe-area-inset-bottom))}
}
@media(max-width:900px){
  nav{flex-wrap:wrap;gap:8px}
  nav a{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
}
@media(max-width:600px){
  body{font-size:16px}
  header,.header,.site-header{padding-left:14px;padding-right:14px}
  .container,.wrap,main,.content{width:calc(100% - 24px);max-width:100%;margin-left:auto;margin-right:auto}
  h1{font-size:clamp(30px,10vw,46px);line-height:1}
  h2{font-size:clamp(24px,7vw,34px)}
  nav{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  nav a{width:100%;min-height:46px;padding:10px 8px;font-size:13px;box-sizing:border-box}
  .news-card,.article-card,.post,.news-item{width:100%;box-sizing:border-box;margin-bottom:14px;padding:18px}
  input,textarea,select{width:100%;box-sizing:border-box;font-size:16px;border-radius:0}
  textarea{min-height:150px}
  form button,.btn,.button{min-height:46px;width:100%}
  .audio{right:10px!important;left:auto!important;bottom:10px!important;max-width:calc(100vw - 20px)!important;box-sizing:border-box;padding:7px 9px;gap:7px;font-size:12px}
  .audio b{max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .audio button{min-width:44px;min-height:44px;padding:8px 10px}
  .cookie-banner{padding:14px 12px}
  .cookie-inner{width:100%;gap:10px}
  .cookie-title{font-size:17px}
  .cookie-text{font-size:13px}
  .cookie-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}
  .cookie-btn{min-height:44px;padding:10px 7px}
  .cookie-settings{padding:12px;align-items:flex-end}
  .cookie-panel{width:100%;max-height:88vh;overflow-y:auto;padding:22px 18px;box-sizing:border-box}
  .cookie-option{align-items:flex-start}
  .cookie-option input{flex:0 0 auto;width:22px;height:22px}
  .cookie-panel-actions{display:grid;grid-template-columns:1fr 1fr}
  iframe{width:100%!important;max-width:100%!important}
}
@media(max-width:380px){
  nav{grid-template-columns:1fr}
  .audio b{max-width:105px}
  .cookie-actions,.cookie-panel-actions{grid-template-columns:1fr}
}

/* =========================================================
   TRUE MOBILE AUTOFIT — KEEP THE COMPLETE MURAL IN VIEW
   ========================================================= */
@media (max-width: 768px) {
  html, body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  /* The homepage artwork is a complete responsive canvas.
     Never scale it by viewport height: that was causing the
     portrait phone view to zoom/crop the mural horizontally. */
  .mural {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0 !important;
    aspect-ratio: 1671 / 941 !important;
    background-size: 100% 100% !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    overflow: hidden;
  }

  /* Keep the newsletter/content below the artwork inside the viewport. */
  .content {
    width: calc(100% - 20px) !important;
    max-width: 100% !important;
    margin: 24px auto !important;
    padding: 24px 18px !important;
  }

  /* Touch targets remain usable without making the artwork overflow. */
  .hot {
    max-width: 100%;
  }

  /* Bottom-right player adapts to the actual viewport width. */
  .audio {
    width: max-content !important;
    max-width: calc(100vw - 16px) !important;
    right: 8px !important;
    left: auto !important;
    transform: none !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    overflow: hidden;
  }

  .audio b,
  .audio span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* iOS/Android dynamic viewport for full-height secondary pages. */
  .page-bg,
  .page-overlay {
    min-height: 100vh;
    min-height: 100dvh;
  }
}

/* Extra-small portrait screens: still use the full mural, never crop it. */
@media (max-width: 430px) and (orientation: portrait) {
  .mural {
    width: 100vw;
    max-width: 100vw;
    aspect-ratio: 1671 / 941 !important;
  }
}
