/* Retró Rádió Csíkszereda – radioretro.ro */
:root {
  --bg: #e6e6e6;          /* matches the photo backdrop */
  --bg-deep: #dadada;
  --ink: #1c1c1e;
  --muted: #5f5f63;
  --red: #d31f2b;
  --red-dark: #b0151f;
  --yellow: #f3c623;
  --white: #fff;
  --radius: 14px;
  --max: 1180px;
  --font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 var(--font); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); text-underline-offset: 3px; }
a:hover { color: var(--red); }
svg { fill: currentColor; }

/* bilingual pairs: HU first line, RO second, smaller */
.hu { display: block; }
.ro { display: block; font-size: .78em; font-weight: 500; letter-spacing: .02em; opacity: .72; }

/* ---------- header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: var(--max); margin: 0 auto; padding: 18px 20px 10px;
}
.brand img { width: 230px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; justify-content: flex-end; }
.nav-item {
  text-decoration: none; color: var(--ink); text-align: center;
  padding: 8px 14px; border-radius: 999px; line-height: 1.15;
  font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: .03em;
  transition: background .2s, color .2s;
}
.nav-item .ro { text-transform: none; letter-spacing: 0; font-size: .74em; }
.nav-item:hover, .nav-item:focus-visible { background: var(--white); color: var(--red); outline: none; }
.nav-item--small { font-size: 13px; opacity: .8; }

/* ---------- hero ---------- */
.hero {
  position: relative; max-width: var(--max); margin: 0 auto; padding: 0 20px;
  min-height: calc(100vh - 110px); min-height: calc(100svh - 110px);
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 20px;
}
.hero-text { position: relative; z-index: 2; padding: 30px 0 60px; }
.eyebrow { margin: 0 0 10px; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow strong { color: var(--red); }
h1 { margin: 0 0 34px; font-size: clamp(34px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -.01em; }
h1 .ro { font-size: .5em; margin-top: 10px; letter-spacing: 0; }

.play-btn {
  display: inline-flex; align-items: center; gap: 18px; cursor: pointer;
  background: var(--red); color: var(--white); border: 0; border-radius: 999px;
  padding: 12px 34px 12px 14px; font: inherit; text-align: left;
  box-shadow: 0 12px 30px rgba(211,31,43,.32), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .15s, box-shadow .2s, background .2s;
}
.play-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(211,31,43,.38); background: var(--red-dark); }
.play-btn:active { transform: translateY(0); }
.play-btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.play-icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--yellow); color: var(--ink);
  display: grid; place-items: center; flex: none; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12);
}
.play-icon svg { width: 36px; height: 36px; }
.play-label { font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .04em; line-height: 1.1; }
.play-label .ro { text-transform: none; letter-spacing: 0; opacity: .85; }
.ic-pause { display: none; }
.is-playing .ic-play { display: none; }
.is-playing .ic-pause { display: block; }
.is-playing .play-icon { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(243,198,35,.55); } 50% { box-shadow: 0 0 0 12px rgba(243,198,35,0); } }

.now-playing { margin: 26px 0 0; font-size: 17px; }
.np-label { color: var(--muted); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; display: block; }
.np-label .hu { display: inline; }
.np-title { font-weight: 700; font-size: 20px; }
.player-status { margin: 12px 0 0; color: var(--red-dark); font-size: 15px; min-height: 1.4em; }
.player-status:empty { display: none; }

.hero-photo { position: relative; z-index: 1; align-self: stretch; display: flex; align-items: center; justify-content: center; }
.hero-photo img {
  width: 100%; max-height: calc(100vh - 120px); max-height: calc(100svh - 120px); object-fit: contain;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 20%, #000 80%, transparent),
                      linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 20%, #000 80%, transparent),
                      linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}

/* ---------- sections ---------- */
section { scroll-margin-top: 20px; }
h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.05; margin: 0 0 28px; }
h2 .ro { font-size: .55em; margin-top: 6px; }

.facebook { background: var(--bg-deep); padding: 70px 20px; text-align: center; }
.facebook h2 { text-align: center; }
.fb-wrap { max-width: 500px; margin: 0 auto; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.08); }
.fb-wrap iframe { width: 100%; max-width: 500px; display: block; }
.fb-link { margin: 18px 0 0; font-size: 15px; }

.contact { max-width: var(--max); margin: 0 auto; padding: 80px 20px 60px; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.legal dl { margin: 0; }
.legal dl > div { padding: 14px 0; border-top: 1px solid rgba(0,0,0,.1); }
.legal dl > div:first-child { border-top: 0; padding-top: 0; }
.legal dt { font-weight: 700; margin-bottom: 4px; }
.legal dt .ro { font-size: .8em; }
.legal dd { margin: 0; }
.legal dd .ro { font-size: .92em; opacity: .8; }
.legal a { font-weight: 600; }

.contact-form {
  background: var(--white); border-radius: var(--radius); padding: 28px 28px 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,.07); display: grid; gap: 16px;
}
.form-intro { margin: 0 0 4px; color: var(--muted); font-size: 15px; }
.contact-form label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.contact-form label .hu { display: inline; }
.contact-form input, .contact-form textarea {
  font: inherit; font-weight: 400; padding: 11px 13px; border: 1.5px solid #cfcfd3; border-radius: 10px;
  background: #fafafa; color: var(--ink); width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--red); background: var(--white); box-shadow: 0 0 0 3px rgba(211,31,43,.14); }
.contact-form textarea { resize: vertical; min-height: 140px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn {
  justify-self: start; cursor: pointer; border: 0; border-radius: 999px; padding: 13px 30px;
  background: var(--red); color: var(--white); font: inherit; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  transition: background .2s, transform .15s;
}
.btn:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn .hu { display: inline; }
.form-msg { margin: 0; font-size: 15px; min-height: 1.4em; }
.form-msg.ok { color: #1b7a3a; font-weight: 600; }
.form-msg.err { color: var(--red-dark); font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { text-align: center; padding: 30px 20px 120px; color: var(--muted); font-size: 14px; border-top: 1px solid rgba(0,0,0,.08); }
.site-footer p { margin: 6px 0; }
.site-footer a { color: inherit; }
.site-footer .hu { display: inline; }
.sep { margin: 0 8px; }

/* ---------- mini player (fixed bottom bar while playing) ---------- */
.mini-player {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%) translateY(0);
  width: min(560px, calc(100% - 24px)); z-index: 50;
  display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 14px;
  background: rgba(28,28,30,.94); color: var(--white); border-radius: 999px;
  box-shadow: 0 16px 40px rgba(0,0,0,.35); backdrop-filter: blur(8px);
  animation: rise .3s ease-out;
}
@keyframes rise { from { transform: translateX(-50%) translateY(20px); opacity: 0; } }
.mini-player[hidden] { display: none; }
.mini-player img { width: 72px; height: auto; flex: none; filter: drop-shadow(0 0 1px rgba(255,255,255,.4)); }
.mp-text { flex: 1; min-width: 0; line-height: 1.2; }
.mp-text strong { display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--yellow); }
.mp-text span { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-btn { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--red); color: var(--white); cursor: pointer; display: grid; place-items: center; }
.mp-btn svg { width: 26px; height: 26px; }
.mp-btn:hover { background: var(--red-dark); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .brand img { width: 190px; }
  .nav-item { font-size: 14px; padding: 6px 10px; }
}
@media (max-width: 760px) {
  .site-header { flex-direction: column; align-items: center; gap: 14px; padding-top: 16px; }
  .site-nav { justify-content: center; }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero-text { order: 2; padding: 6px 0 50px; text-align: center; }
  .hero-photo { order: 1; margin: 0 -20px; }
  .hero-photo img { max-height: 58vh; max-height: 58svh;
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
            mask-image: linear-gradient(to bottom, #000 72%, transparent); -webkit-mask-composite: initial; mask-composite: initial; }
  h1 { margin-bottom: 26px; }
  .eyebrow { font-size: 13px; letter-spacing: .1em; }
  .play-btn { padding: 10px 26px 10px 10px; gap: 14px; }
  .play-icon { width: 56px; height: 56px; }
  .play-label { font-size: 18px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact { padding-top: 60px; }
  .facebook { padding: 56px 16px; }
  .contact-form { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .is-playing .play-icon, .mini-player { animation: none; }
}
