:root {
  --blue: #244aa5;
  --blue-2: #3f79bd;
  --sun: #ffd71d;
  --orange: #f47a22;
  --teal: #169b9b;
  --berry: #cf3f64;
  --ink: #20222a;
  --muted: #686d77;
  --paper: #f7f4ee;
  --line: #ded8cd;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(32, 34, 42, 0.13);
  --hero-image: url("https://neuroniofestivo.com/fatacil25/wp-content/uploads/2024/09/D25-30.jpg");
  --ticket-image: url("https://neuroniofestivo.com/fatacil25/wp-content/uploads/2024/08/D17-53.jpg");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overscroll-behavior-y: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: calc(86px + env(safe-area-inset-bottom));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 12px clamp(16px, 4vw, 54px);
  background: rgba(247, 244, 238, 0.92);
  border-bottom: 1px solid rgba(222, 216, 205, 0.8);
  backdrop-filter: blur(18px);
}

.brand img {
  display: block;
  width: 134px;
  height: auto;
}

.topnav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.topnav a,
.radio-top-button,
.ticket-button,
.primary-action,
.secondary-action,
.chip,
.icon-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
}

.topnav a {
  padding: 0 13px;
  color: #31343c;
}

.topnav a:hover,
.topnav a:focus-visible {
  background: #ebe6da;
}

.radio-top-button {
  padding: 0 15px;
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 12px 24px rgba(22, 155, 155, 0.2);
}

.ticket-button,
.primary-action {
  border: 0;
  padding: 0 18px;
  color: #18213b;
  background: var(--sun);
  box-shadow: 0 12px 26px rgba(255, 215, 29, 0.28);
}

.secondary-action {
  padding: 0 18px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.hero-band {
  display: grid;
  align-items: center;
  min-height: 560px;
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(36, 74, 165, 0.94), rgba(36, 74, 165, 0.72) 46%, rgba(22, 155, 155, 0.42)),
    var(--hero-image) center / cover;
}

.hero-copy {
  width: min(760px, calc(100% - 32px));
  max-width: none;
  padding: clamp(42px, 8vw, 92px) clamp(20px, 5vw, 76px);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sun);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 5.9rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 530px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.65;
}

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

.hero-highlight {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-highlight span,
.hero-highlight small {
  display: block;
}

.hero-highlight span {
  margin-bottom: 8px;
  color: var(--sun);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-highlight strong {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
  font-size: 1.25rem;
  line-height: 1.18;
}

.hero-highlight small {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}

.hero-highlight-link {
  min-height: 36px;
  margin-top: 12px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #18213b;
  background: var(--sun);
  font-size: 0.86rem;
  font-weight: 900;
}

.hero-dots {
  display: flex;
  gap: 7px;
  margin-top: 12px;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

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

.quick-grid {
  width: min(1180px, calc(100% - 32px));
  margin: -42px auto 54px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  position: relative;
  z-index: 3;
}

.quick-link {
  min-height: 100px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.quick-link span {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-link strong {
  font-size: 1.45rem;
}

.section,
.ad-strip,
.module-ad {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 58px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.placeholder {
  min-height: 180px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.56);
}

.ad-strip {
  display: grid;
  gap: 14px;
}

.sponsor-ticker {
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid rgba(222, 216, 205, 0.86);
  box-shadow: 0 12px 30px rgba(32, 34, 42, 0.08);
}

.sponsor-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 18px 24px;
  animation: sponsor-scroll 28s linear infinite;
}

.sponsor-logo {
  width: 150px;
  height: 78px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.sponsor-logo img {
  max-width: 148px;
  max-height: 90px;
  object-fit: contain;
}

@keyframes sponsor-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.ad-format-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ad-format {
  min-height: 118px;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  border: 1px dashed var(--line);
}

.ad-format span,
.ad-format small {
  display: block;
}

.ad-format span {
  margin-bottom: 10px;
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 900;
}

.ad-format strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.ad-format small {
  color: var(--muted);
  line-height: 1.4;
}

.module-ad {
  margin-top: -24px;
  margin-bottom: 46px;
}

.module-ad-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) 1fr;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(222, 216, 205, 0.92);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(32, 34, 42, 0.08);
}

.module-ad-card.text-only {
  grid-template-columns: 1fr;
  background: linear-gradient(90deg, rgba(255, 215, 29, 0.24), rgba(22, 155, 155, 0.13)), var(--white);
}

.module-ad-media {
  min-height: 112px;
  background: #ebe6da;
}

.module-ad-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.module-ad-copy {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px;
}

.module-ad-copy span {
  color: var(--orange);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.module-ad-copy strong {
  color: var(--blue);
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  line-height: 1.05;
}

.module-ad-copy small {
  color: #4b5059;
  line-height: 1.4;
}

.splash-ad {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(32, 34, 42, 0.68);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.splash-ad.open {
  opacity: 1;
  pointer-events: auto;
}

.splash-card {
  position: relative;
  width: min(880px, 100%);
  max-height: calc(100vh - 36px);
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 1fr);
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 28px 78px rgba(0, 0, 0, 0.34);
}

.splash-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(32, 34, 42, 0.18);
}

.splash-media {
  min-height: 320px;
  background: #ebe6da;
}

.splash-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.splash-content {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 12px;
  padding: clamp(24px, 4vw, 46px);
}

.splash-content h2 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 0.98;
}

.splash-content p:not(.eyebrow) {
  margin: 0;
  color: #4b5059;
  font-size: 1.03rem;
  line-height: 1.58;
}

.splash-content .primary-action {
  margin-top: 8px;
}

.ticket-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: clamp(22px, 4vw, 42px);
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(110deg, rgba(32, 34, 42, 0.9), rgba(32, 34, 42, 0.45)),
    var(--ticket-image) center / cover;
  box-shadow: var(--shadow);
}

.ticket-panel h3 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1;
}

.ticket-panel p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
}

.ticket-panel-final {
  margin-top: 28px;
}

.feature-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 8px;
  background: var(--white);
  border: 1px solid rgba(222, 216, 205, 0.9);
  box-shadow: 0 12px 30px rgba(32, 34, 42, 0.08);
}

.feature-panel h2,
.feature-panel h3 {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.feature-panel p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.58;
}

.president-panel {
  background:
    linear-gradient(90deg, rgba(255, 215, 29, 0.18), rgba(22, 155, 155, 0.08)),
    var(--white);
}

.magazine-panel {
  border-color: rgba(36, 74, 165, 0.22);
}

.feature-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.history-panel {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 8px;
  background: #fbfaf6;
  border: 1px solid rgba(222, 216, 205, 0.9);
  box-shadow: 0 12px 30px rgba(32, 34, 42, 0.08);
}

.history-panel h3 {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.history-panel p:not(.eyebrow) {
  max-width: 880px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

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

.history-image-grid a {
  min-height: 170px;
  overflow: hidden;
  border-radius: 8px;
  background: #1f2330;
}

.history-image-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.radio-panel {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 4vw, 30px);
  border-radius: 8px;
  background: var(--white);
  border: 1px solid rgba(222, 216, 205, 0.9);
  box-shadow: 0 12px 30px rgba(32, 34, 42, 0.08);
}

.radio-copy h3 {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1;
}

.radio-copy p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.58;
}

.radio-frame {
  width: 100%;
  display: block;
  border: 0;
  border-radius: 8px;
  background: #f4efe7;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  color: #30343d;
  background: var(--white);
}

.chip.active {
  color: #10213c;
  background: var(--sun);
  border-color: var(--sun);
}

select,
input,
textarea {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
}

select,
input {
  padding: 0 12px;
}

textarea {
  min-height: 136px;
  padding: 12px;
  line-height: 1.45;
  resize: vertical;
}

.toolbar select {
  width: min(280px, 100%);
}

.toolbar input {
  max-width: 420px;
}

.program-grid,
.exhibitors-grid,
.parks-grid,
.social-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.program-card,
.exhibitor-card,
.park-card,
.social-card,
.news-card {
  border-radius: 8px;
  background: var(--white);
  border: 1px solid rgba(222, 216, 205, 0.88);
  box-shadow: 0 12px 30px rgba(32, 34, 42, 0.08);
}

.news-card {
  overflow: hidden;
}

.news-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.news-card > div {
  padding: 18px;
}

.news-card time {
  display: block;
  margin-bottom: 12px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.news-card h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
  line-height: 1.14;
}

.news-card p {
  min-height: 76px;
  color: var(--muted);
  line-height: 1.5;
}

.article-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.article-link-card {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 18px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(222, 216, 205, 0.88);
  box-shadow: 0 12px 30px rgba(32, 34, 42, 0.08);
}

.article-link-card span {
  color: var(--berry);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.article-link-card strong {
  color: var(--blue);
  font-size: 1.24rem;
  line-height: 1.12;
}

.article-link-card small {
  color: var(--muted);
  line-height: 1.45;
}

.live-program-panel {
  padding: 22px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid rgba(222, 216, 205, 0.88);
  box-shadow: 0 12px 30px rgba(32, 34, 42, 0.08);
}

.live-program-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 16px;
}

.live-program-head h3 {
  margin-bottom: 8px;
  font-size: clamp(1.45rem, 3vw, 2.3rem);
}

.live-program-head p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
}

.notify-preference {
  min-width: 220px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid #ece6dc;
  border-radius: 8px;
  background: #fbfaf6;
}

.notify-preference span {
  color: #30343d;
  font-size: 0.82rem;
  font-weight: 900;
}

.live-program-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.live-program-card {
  min-height: 142px;
  padding: 16px;
  border: 1px solid #ece6dc;
  border-radius: 8px;
  background: #fbfaf6;
}

.live-program-card span,
.live-program-card small {
  display: inline-flex;
}

.live-program-card span {
  min-height: 28px;
  align-items: center;
  margin-bottom: 16px;
  padding: 0 10px;
  border-radius: 999px;
  color: #17383b;
  background: rgba(22, 155, 155, 0.14);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.live-program-card.now span {
  color: var(--white);
  background: var(--berry);
}

.live-program-card.soon span {
  color: #10213c;
  background: var(--sun);
}

.live-program-card h4 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  line-height: 1.12;
}

.live-program-card p {
  margin-bottom: 10px;
  color: var(--muted);
}

.live-program-card small {
  color: #4b5059;
  line-height: 1.35;
}

.program-card {
  min-height: 160px;
  padding: 18px;
}

.program-card time {
  display: block;
  margin-bottom: 18px;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.program-card h3 {
  margin-bottom: 8px;
  font-size: 1.38rem;
  line-height: 1.12;
}

.program-card p {
  margin-bottom: 16px;
  color: var(--muted);
}

.program-card span,
.exhibitor-card span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #17383b;
  background: rgba(22, 155, 155, 0.14);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.exhibitor-card {
  min-height: 208px;
  padding: 18px;
}

.exhibitor-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 26px;
}

.exhibitor-card strong {
  color: var(--berry);
  font-size: 1.2rem;
}

.exhibitor-card h3 {
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.exhibitor-card p {
  margin-bottom: 12px;
  color: var(--muted);
}

.exhibitor-card small {
  color: #4b5059;
  line-height: 1.45;
}

.park-card {
  overflow: hidden;
}

.park-meter {
  height: 9px;
  background: linear-gradient(90deg, currentColor var(--percent), #eee9de 0);
}

.park-meter.green,
.status-dot.green {
  color: #1e9b5c;
}

.park-meter.amber,
.status-dot.amber {
  color: #d48d16;
}

.park-meter.red,
.status-dot.red {
  color: #c63b45;
}

.park-card-body {
  position: relative;
  min-height: 210px;
  padding: 20px;
}

.status-dot {
  width: 13px;
  height: 13px;
  display: inline-block;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 16%, transparent);
}

.park-card h3 {
  margin: 14px 0 8px;
  font-size: 1.45rem;
}

.park-card p {
  min-height: 48px;
  margin-bottom: 10px;
  color: var(--muted);
}

.park-card strong,
.park-card small {
  display: block;
}

.park-card small {
  margin: 5px 0 18px;
  color: #4b5059;
}

.secondary-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal);
  font-weight: 850;
}

.live-frame {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 18px;
  border-radius: 8px;
  background: #eae4d8;
}

.live-frame iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.photo-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 14px;
}

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

.photo-feature,
.photo-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 8px;
  background: #1f2330;
  border: 1px solid rgba(222, 216, 205, 0.88);
}

.photo-feature {
  min-height: 470px;
}

.photo-feature img,
.photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.24s ease;
}

.photo-feature:hover img,
.photo-card:hover img {
  transform: scale(1.035);
}

.media-tag {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 900;
  text-transform: uppercase;
}

.media-tag {
  top: 12px;
  left: 12px;
  padding: 0 10px;
  color: #10213c;
  background: var(--sun);
}

.media-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  gap: 4px;
  padding: 46px 16px 16px;
  color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(21, 24, 32, 0.86));
}

.media-caption strong,
.media-caption small {
  display: block;
}

.media-caption strong {
  font-size: 1.05rem;
  line-height: 1.12;
}

.media-caption small {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

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

.video-embed-card {
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid rgba(222, 216, 205, 0.88);
  box-shadow: 0 12px 30px rgba(32, 34, 42, 0.08);
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 280px;
  display: block;
  border: 0;
  background: #1f2330;
}

.video-embed-card.is-instagram {
  max-width: 540px;
  justify-self: center;
}

.video-embed-card.is-instagram .video-frame {
  height: min(760px, 140vw);
  min-height: 620px;
  aspect-ratio: 9 / 16;
}

.video-embed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.video-embed-head span {
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.video-embed-head strong {
  color: var(--blue);
  font-size: 1.05rem;
  line-height: 1.15;
  text-align: right;
}

.section-link-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.social-card {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  color: var(--white);
  background: var(--berry);
  font-weight: 900;
}

.social-card {
  background: var(--blue);
}

.admin-section {
  padding-top: 10px;
}

.admin-area-nav {
  position: sticky;
  top: 10px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px;
  border: 1px solid rgba(222, 216, 205, 0.88);
  border-radius: 8px;
  background: rgba(247, 244, 238, 0.94);
  backdrop-filter: blur(16px);
}

.admin-area-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 8px;
  color: #30343d;
  background: var(--white);
  font-weight: 850;
}

.admin-area {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid rgba(222, 216, 205, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.admin-area-title h2 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1;
}

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

.text-admin-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.text-settings {
  display: grid;
  gap: 14px;
}

.text-settings-group {
  display: grid;
  grid-template-columns: minmax(190px, 0.34fr) 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid #ece6dc;
  border-radius: 8px;
  background: #fbfaf6;
}

.text-settings-group h4 {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 1.05rem;
}

.text-settings-group p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.text-settings-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.admin-grid label,
.full-label,
.admin-row label {
  display: grid;
  gap: 8px;
  color: #31343c;
  font-size: 0.84rem;
  font-weight: 850;
}

.full-label {
  margin-top: 14px;
}

#adminJson {
  min-height: 360px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
}

.admin-collections {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.admin-collection {
  padding: 16px;
  border: 1px solid rgba(222, 216, 205, 0.9);
  border-radius: 8px;
  background: var(--white);
}

.admin-collection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-collection h3 {
  margin: 0;
  font-size: 1.12rem;
}

.admin-rows {
  display: grid;
  gap: 10px;
}

.admin-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr)) auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid #ece6dc;
  border-radius: 8px;
  background: #fbfaf6;
}

.admin-collection[data-admin-collection="ads"] .admin-row,
.admin-collection[data-admin-collection="photos"] .admin-row,
.admin-collection[data-admin-collection="videos"] .admin-row {
  grid-template-columns: repeat(4, minmax(120px, 1fr)) auto;
}

.admin-collection[data-admin-collection="videos"] .admin-row {
  grid-template-columns: repeat(3, minmax(120px, 1fr)) auto;
}

.admin-collection[data-admin-collection="moduleAds"] .admin-row {
  grid-template-columns: minmax(170px, 0.9fr) minmax(90px, 0.5fr) repeat(4, minmax(120px, 1fr)) auto;
}

.admin-collection[data-admin-collection="adSpaces"] .admin-row {
  grid-template-columns: minmax(90px, 0.45fr) repeat(3, minmax(130px, 1fr)) auto;
}

.admin-collection[data-admin-collection="videos"] textarea[data-field="url"] {
  min-height: 172px;
}

.import-panel {
  display: grid;
  gap: 10px;
}

.import-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.monitor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.monitor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.analytics-monitor {
  display: grid;
  gap: 14px;
}

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

.metric-card,
.analytics-card {
  border: 1px solid rgba(222, 216, 205, 0.9);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(32, 34, 42, 0.08);
}

.metric-card {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.metric-card strong {
  color: var(--blue);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

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

.analytics-card {
  padding: 18px;
}

.analytics-card h3 {
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 1.25rem;
}

.bar-list {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  gap: 6px;
}

.bar-row > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #30343d;
  font-size: 0.9rem;
  font-weight: 850;
}

.bar-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-row i {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee9de;
}

.bar-row i::before {
  width: var(--bar);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  content: "";
}

.empty-chart {
  margin: 0;
  color: var(--muted);
}

.remove-button {
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--berry);
  font-weight: 850;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.secondary-admin {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #30343d;
  background: var(--white);
  font-weight: 850;
}

.admin-note,
.notice {
  color: var(--berry);
  font-weight: 800;
}

.admin-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 70px;
}

.admin-login {
  width: min(460px, 100%);
  margin: 10vh auto 0;
  padding: 28px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.admin-login img {
  width: 136px;
  height: auto;
}

.admin-login h1 {
  max-width: none;
  margin: 20px 0 8px;
  color: var(--blue);
  font-size: 2.8rem;
}

.admin-login p {
  color: var(--muted);
  line-height: 1.5;
}

.admin-login label {
  display: grid;
  gap: 8px;
  margin: 18px 0 14px;
  font-weight: 850;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-header h1 {
  max-width: none;
  margin: 0;
  color: var(--blue);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.admin-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mobile-nav {
  position: fixed;
  right: 10px;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: 10px;
  z-index: 30;
  display: none;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  contain: layout paint;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.mobile-nav a {
  min-height: 56px;
  display: grid;
  place-items: center;
  color: #30343d;
  font-size: 0.68rem;
  font-weight: 850;
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: auto 1fr;
  }

  .topnav {
    display: none;
  }

  .top-actions {
    justify-self: end;
  }

  .hero-copy {
    padding-bottom: 28px;
  }

  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
  }

  .ad-format-grid,
  .metric-grid,
  .analytics-grid,
  .history-image-grid,
  .program-grid,
  .exhibitors-grid,
  .parks-grid,
  .social-grid,
  .news-grid,
  .article-link-grid,
  .live-program-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ticket-panel,
  .feature-panel,
  .module-ad-card,
  .photo-showcase,
  .live-program-head,
  .splash-card {
    grid-template-columns: 1fr;
  }

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

  .text-settings-group {
    grid-template-columns: 1fr;
  }

  .monitor-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-row,
  .admin-collection[data-admin-collection="ads"] .admin-row,
  .admin-collection[data-admin-collection="photos"] .admin-row,
  .admin-collection[data-admin-collection="videos"] .admin-row,
  .admin-collection[data-admin-collection="adSpaces"] .admin-row,
  .admin-collection[data-admin-collection="moduleAds"] .admin-row,
  .text-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-nav {
    display: grid;
  }
}

@media (max-width: 560px) {
  .live-frame {
    padding: 10px;
  }

  .live-frame iframe {
    min-height: 520px;
  }

  .brand img {
    width: 108px;
  }

  .topbar {
    padding: 10px 14px;
  }

  .radio-top-button,
  .ticket-button {
    padding: 0 12px;
  }

  h1 {
    font-size: 3rem;
  }

  .quick-grid {
    width: calc(100% - 24px);
    gap: 10px;
  }

  .quick-link {
    min-height: 90px;
    padding: 14px;
  }

  .quick-link strong {
    font-size: 1.18rem;
  }

  .section,
  .ad-strip,
  .module-ad {
    width: calc(100% - 24px);
  }

  .ad-format-grid,
  .metric-grid,
  .analytics-grid,
  .history-image-grid,
  .program-grid,
  .exhibitors-grid,
  .parks-grid,
  .social-grid,
  .news-grid,
  .article-link-grid,
  .live-program-list,
  .admin-grid,
  .admin-row,
  .admin-collection[data-admin-collection="ads"] .admin-row,
  .admin-collection[data-admin-collection="photos"] .admin-row,
  .admin-collection[data-admin-collection="videos"] .admin-row,
  .admin-collection[data-admin-collection="adSpaces"] .admin-row,
  .admin-collection[data-admin-collection="moduleAds"] .admin-row,
  .text-admin-grid {
    grid-template-columns: 1fr;
  }

  .ticket-panel {
    align-items: stretch;
  }

  .feature-actions {
    justify-content: stretch;
  }

  .feature-actions a,
  .feature-panel > a {
    width: 100%;
  }

  .text-settings-fields {
    grid-template-columns: 1fr;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar select,
  .toolbar input {
    width: 100%;
    max-width: none;
  }

  .photo-mosaic,
  .video-embed-grid {
    grid-template-columns: 1fr;
  }

  .photo-feature {
    min-height: 320px;
  }

  .video-frame {
    min-height: 220px;
  }

  .video-embed-card.is-instagram .video-frame {
    height: min(680px, 160vw);
    min-height: 520px;
  }

  .notify-preference {
    align-items: stretch;
    flex-direction: column;
  }

  .section-link-row {
    align-items: stretch;
    flex-direction: column;
  }

  .splash-ad {
    align-items: end;
    padding: 12px;
  }

  .splash-card {
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }

  .splash-media {
    min-height: 190px;
  }

  .splash-content {
    padding: 24px;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
