:root {
  --yellow: #f4f000;
  --red: #bd1515;
  --ink: #11110f;
  --paper: #fffef2;
  --muted: #67645a;
  --line: rgba(17, 17, 15, 0.14);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #111;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(115deg, rgba(244, 240, 0, 0.72), rgba(244, 240, 0, 0.52) 32%, rgba(189, 21, 21, 0.72) 100%),
    url("back.webp") center center / cover no-repeat,
    url("assets/back.webp") center center / cover no-repeat,
    url("assets/logo.svg") center 17% / min(760px, 115vw) no-repeat;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 86px;
  padding: 14px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(255,255,255,0.22);
  background: rgba(17, 17, 15, 0.82);
  color: white;
  backdrop-filter: blur(16px);
}

.brand img {
  display: block;
  width: clamp(140px, 18vw, 230px);
  border-radius: 7px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.24);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  min-width: 78px;
  padding: 10px 13px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 7px;
  color: white;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.install-button,
.contact-button,
.call-button {
  min-height: 48px;
  border-radius: 7px;
  padding: 0 18px;
  font-weight: 950;
  cursor: pointer;
  text-decoration: none;
}

.install-button {
  border: 0;
  background: var(--ink);
  color: var(--yellow);
}

.contact-button {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(17,17,15,0.35);
  background: rgba(255,255,255,0.62);
  color: var(--ink);
}

.call-button {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: var(--red);
  color: white;
  box-shadow: 0 12px 28px rgba(189,21,21,0.28);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(22px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 86px);
  padding: clamp(32px, 7vw, 82px) clamp(16px, 5vw, 70px);
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.83rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section-title h2,
.admin-main h1 {
  margin: 0;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 9ch;
  font-size: clamp(3.3rem, 9vw, 8rem);
  font-weight: 1000;
}

.hero-copy p:last-child {
  max-width: 610px;
  margin: 24px 0 0;
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.42;
}

.radio-console {
  width: 100%;
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(44, 38, 28, 0.97), rgba(13, 13, 12, 0.98)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02) 2px, transparent 2px, transparent 8px);
  color: #f8f3df;
  box-shadow: var(--shadow);
}

.console-head,
.controls,
.footer,
.dashboard-head,
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.console-head {
  margin-bottom: 20px;
  font-weight: 900;
}

.status-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 8px;
  border-radius: 50%;
  background: #777;
  box-shadow: 0 0 0 rgba(244,240,0,0);
}

.status-dot.live {
  background: var(--yellow);
  box-shadow: 0 0 18px rgba(244,240,0,0.8);
}

.frequency {
  color: var(--yellow);
}

.meters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.vu-meter {
  position: relative;
  height: clamp(170px, 24vw, 230px);
  overflow: hidden;
  border: 1px solid rgba(244, 240, 0, 0.32);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 115%, rgba(188,21,21,0.24), transparent 31%),
    linear-gradient(180deg, #f9e8b2, #d6b467);
  box-shadow: inset 0 0 34px rgba(0,0,0,0.24);
}

.vu-meter::before {
  position: absolute;
  right: 8%;
  bottom: 34%;
  left: 8%;
  height: 80%;
  border-top: 3px solid rgba(20,20,20,0.58);
  border-radius: 50% 50% 0 0;
  content: "";
}

.vu-meter::after {
  position: absolute;
  inset: 16px;
  border-radius: 6px;
  background: linear-gradient(90deg, transparent 70%, rgba(189,21,21,0.18));
  content: "";
}

.scale {
  position: absolute;
  inset: 26px 24px auto;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  color: #251a12;
  font-family: Georgia, serif;
  font-size: clamp(0.8rem, 1.6vw, 1.02rem);
  font-weight: 900;
}

.needle {
  position: absolute;
  bottom: 23px;
  left: 50%;
  z-index: 3;
  width: 3px;
  height: 66%;
  border-radius: 3px;
  background: #bf1515;
  transform: translateX(-50%) rotate(-43deg);
  transform-origin: bottom center;
  transition: transform 80ms linear;
}

.pivot {
  position: absolute;
  bottom: 15px;
  left: 50%;
  z-index: 4;
  width: 22px;
  height: 22px;
  border: 3px solid #3b2b1e;
  border-radius: 50%;
  background: #111;
  transform: translateX(-50%);
}

.vu-meter strong {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 4;
  color: #251a12;
}

.controls {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.16);
}

.play-button {
  display: grid;
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: #090909;
  font-size: 1.6rem;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(244,240,0,0.3);
}

.control-copy {
  display: grid;
  flex: 1 1 auto;
  gap: 4px;
}

.control-copy span,
.volume span {
  color: #d7d0bc;
  font-size: 0.9rem;
}

.volume {
  display: grid;
  flex: 0 1 170px;
  gap: 8px;
}

input[type="range"] {
  accent-color: var(--yellow);
}

.notes-section {
  padding: 68px clamp(16px, 5vw, 70px) 90px;
  background: var(--paper);
}

.all-notes-section {
  padding: 68px clamp(16px, 5vw, 70px) 90px;
  background: #f5f3df;
}

.all-notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contact-section,
.install-section {
  padding: 68px clamp(16px, 5vw, 70px);
}

.contact-section {
  background: #181818;
  color: white;
}

.contact-section .eyebrow,
.install-section .eyebrow {
  color: var(--red);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.contact-item,
.broadcast-card,
.install-panel {
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  padding: 20px;
}

.contact-item {
  display: grid;
  gap: 10px;
  min-height: 132px;
  background: rgba(255,255,255,0.07);
  text-decoration: none;
}

.contact-item-accent {
  background: var(--yellow);
  color: var(--ink);
}

.contact-item-accent span {
  color: var(--red);
}

.contact-item span,
.broadcast-card strong {
  color: var(--yellow);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-item strong {
  overflow-wrap: anywhere;
  font-size: 1.05rem;
  line-height: 1.28;
}

.broadcast-card {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  background: rgba(244,240,0,0.08);
}

.install-section {
  background: var(--paper);
}

.install-panel {
  display: grid;
  grid-template-columns: minmax(210px, 0.32fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  border-color: var(--line);
  background: white;
  box-shadow: 0 16px 38px rgba(0,0,0,0.08);
}

.install-steps {
  display: grid;
  gap: 10px;
}

.install-steps p,
.install-message {
  margin: 0;
  color: #3f3b33;
  line-height: 1.45;
}

.install-message {
  grid-column: 1 / -1;
  color: var(--red);
  font-weight: 850;
}

.section-title {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-title h2,
.section-title h1,
.admin-main h1 {
  font-size: clamp(2rem, 4.2vw, 4.3rem);
}

.carousel-shell {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 14px;
  align-items: center;
}

.notes-carousel {
  display: grid;
  grid-auto-columns: minmax(280px, calc((100% - 36px) / 3));
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.note-card {
  display: grid;
  grid-template-rows: auto auto;
  min-height: 430px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 16px 38px rgba(0,0,0,0.09);
}

.home-note-card {
  min-height: 360px;
}

.home-note-card > a {
  display: block;
}

.home-note-card > a .note-image {
  display: block;
  border-radius: 8px 8px 0 0;
}

.home-note-card .note-content {
  grid-template-rows: auto;
  padding: 18px 22px;
}

.note-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 7px;
  background: var(--yellow);
}

.lazy-image {
  opacity: 0;
  transition: opacity 180ms ease;
}

.lazy-loaded {
  opacity: 1;
}

.note-content {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
  padding: 22px;
}

.note-date {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.note-card h3 {
  margin: 0;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  line-height: 1.12;
}

.note-card h3 a {
  color: inherit;
  text-decoration: none;
}

.note-card h3 a:hover {
  color: var(--red);
}

.note-card p {
  margin: 0;
  color: #3f3b33;
  line-height: 1.5;
}

.read-more {
  justify-self: start;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  padding: 0 14px;
  background: var(--red);
  color: white;
  font-weight: 950;
  text-decoration: none;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-top: 2px;
}

.share-row a,
.share-row button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 9px;
  background: white;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 32px;
  text-decoration: none;
  cursor: pointer;
}

.share-icon {
  display: inline-grid !important;
  width: 42px;
  height: 42px;
  min-height: 42px !important;
  place-items: center;
  border: 0 !important;
  border-radius: 50% !important;
  padding: 0 !important;
  color: white !important;
  font-size: 0.85rem !important;
  line-height: 1 !important;
  box-shadow: 0 8px 18px rgba(0,0,0,0.14);
}

.share-icon span {
  font-weight: 1000;
}

.share-facebook {
  background: #1877f2 !important;
}

.share-instagram {
  background: #c13584 !important;
}

.share-mail {
  background: #4f5b67 !important;
}

.share-twitter {
  background: #111 !important;
}

.share-whatsapp {
  background: #25d366 !important;
}

.single-share {
  margin: 18px 0 22px;
}

.ivoox-embed {
  min-height: 98px;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.ivoox-embed iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}

.carousel-btn {
  display: grid;
  width: 48px;
  height: 72px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: #181818;
  color: var(--yellow);
  font-size: 2.2rem;
  cursor: pointer;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  min-height: 18px;
}

.dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.22);
  cursor: pointer;
}

.dots button.active {
  background: var(--red);
}

.footer {
  flex-wrap: wrap;
  padding: 24px clamp(16px, 5vw, 70px);
  background: #101010;
  color: white;
  font-weight: 750;
}

.admin-body {
  min-height: 100vh;
}

.note-page {
  min-height: calc(100vh - 86px);
  padding: clamp(30px, 6vw, 76px) clamp(16px, 5vw, 70px);
  background: var(--paper);
}

.single-note {
  width: min(980px, 100%);
  margin: 0 auto;
}

.single-note h1 {
  margin: 0;
  font-size: clamp(2.15rem, 5.2vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.single-note-image + h1 {
  margin-top: 24px;
}

.single-summary {
  max-width: 820px;
  margin: 22px 0;
  padding: 18px 20px;
  border-left: 6px solid var(--red);
  border-radius: 8px;
  background: white;
  color: #242018;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 850;
  line-height: 1.42;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.single-summary span {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.single-summary p {
  margin: 0;
}

.single-note-image {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--yellow);
  box-shadow: 0 16px 38px rgba(0,0,0,0.12);
}

.single-embed {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.single-embed iframe {
  min-height: 200px;
}

.single-body {
  margin-top: 24px;
  color: #29261f;
  font-size: 1.06rem;
  line-height: 1.72;
}

.admin-main {
  display: grid;
  min-height: calc(100vh - 86px);
  place-items: start center;
  padding: clamp(28px, 5vw, 64px) 16px;
}

.login-panel,
.dashboard {
  width: min(980px, 100%);
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(255, 254, 242, 0.96);
  box-shadow: var(--shadow);
}

.hidden {
  display: none;
}

.form-grid,
.editor-form {
  display: grid;
  gap: 16px;
}

.form-grid {
  max-width: 520px;
  margin-top: 24px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  padding: 13px 14px;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.primary,
.ghost {
  min-height: 46px;
  border-radius: 7px;
  padding: 0 18px;
  font-weight: 950;
  cursor: pointer;
}

.primary {
  border: 0;
  background: var(--red);
  color: white;
}

.ghost {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--red);
  font-weight: 800;
}

.pwa-check-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.pwa-check-list p {
  margin: 0;
  padding: 12px 14px;
  border-radius: 7px;
  background: white;
  line-height: 1.35;
}

.pwa-ok {
  border-left: 5px solid #1f8f45;
}

.pwa-bad {
  border-left: 5px solid var(--red);
}

.image-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.image-preview img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 7px;
  background: var(--yellow);
}

.dashboard {
  display: grid;
  gap: 24px;
}

.dashboard.hidden {
  display: none;
}

.notes-manager {
  display: grid;
  gap: 14px;
}

.notes-manager h2 {
  margin: 10px 0 0;
}

.admin-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.admin-note h3 {
  margin: 0 0 4px;
}

.admin-note-date {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 950;
}

.admin-note p {
  margin: 0;
  color: var(--muted);
}

.admin-note-actions {
  display: flex;
  gap: 8px;
}

.admin-note-actions form {
  margin: 0;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 10ch;
  }

  .notes-carousel {
    grid-auto-columns: minmax(270px, calc((100% - 18px) / 2));
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .all-notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .install-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .topbar,
  .controls,
  .dashboard-head,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .nav {
    width: 100%;
  }

  .nav a {
    flex: 1;
    min-width: 0;
  }

  .hero {
    padding-top: 28px;
  }

  .meters {
    grid-template-columns: 1fr;
  }

  .carousel-shell {
    grid-template-columns: 1fr;
  }

  .carousel-btn {
    display: none;
  }

  .notes-carousel {
    grid-auto-columns: minmax(270px, 90%);
  }

  .admin-note {
    grid-template-columns: 1fr;
  }

  .image-preview {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .contact-grid,
  .all-notes-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }
}
