:root {
  --bg: #0f1012;
  --panel: #f5f5f5;
  --panel-strong: #ffffff;
  --ink: #161616;
  --muted: #696969;
  --line: rgba(255, 255, 255, 0.18);
  --dark-line: rgba(21, 21, 21, 0.14);
  --accent: #ee6900;
  --accent-2: #dae9f4;
  --accent-3: #b8b8b8;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(238, 105, 0, 0.2), transparent 34%),
    linear-gradient(180deg, #1b1b1d 0%, var(--bg) 56%, #08090a 100%);
  color: var(--panel);
  font-family:
    "Open Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body.tv-mode {
  user-select: none;
}

body.hide-cursor,
body.hide-cursor * {
  cursor: none !important;
}

.tv-dashboard {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  padding: 26px;
}

.tv-dashboard > * {
  margin-bottom: 18px;
}
.tv-dashboard > *:last-child {
  margin-bottom: 0;
}

.topbar,
.bottom-band,
.main-grid,
.side-stack {
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
}

.topbar > * {
  margin-right: 18px;
}
.topbar > *:last-child {
  margin-right: 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  flex: 1 1 300px;
  min-width: 0;
}

.brand-lockup > * {
  margin-right: 16px;
}
.brand-lockup > *:last-child {
  margin-right: 0;
}

.brand-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 210px;
  min-height: 64px;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(238, 105, 0, 0.28));
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  color: #ffffff;
  font-family: "Oswald", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
}

.brand-subtitle {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Oswald", sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.1;
  text-transform: uppercase;
}

.visitor-message,
.clock-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.visitor-message {
  flex: 0.75 1 340px;
  padding: 16px 20px;
}

.visitor-message p {
  color: var(--accent-3);
  font-size: 0.9rem;
  font-weight: 800;
}

.visitor-message strong {
  display: block;
  margin-top: 3px;
  color: #ffffff;
  font-family: "Oswald", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.1;
}

.clock-panel {
  flex: 0 0 auto;
  min-width: 210px;
  padding: 14px 18px;
  text-align: right;
}

.clock-panel time {
  display: block;
  color: #ffffff;
  font-family: "Oswald", sans-serif;
  font-size: 2.7rem;
  font-weight: 900;
  line-height: 0.95;
}

.clock-panel p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.main-grid {
  display: flex;
  align-items: stretch;
  flex: 1 1 0%;
  min-height: 0;
}

.main-grid > * {
  margin-right: 18px;
}
.main-grid > *:last-child {
  margin-right: 0;
}

.spotlight-panel,
.metrics-panel,
.agenda-panel,
.badges-panel,
.ticker,
.qr-panel {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.spotlight-panel {
  position: relative;
  display: flex;
  flex: 1.75 1 0%;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  background:
    linear-gradient(135deg, rgba(238, 105, 0, 0.24), transparent 42%),
    linear-gradient(180deg, #202123 0%, #111214 100%);
  color: #ffffff;
}

.spotlight-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), var(--accent-3));
}

.spotlight-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 0.75 1 310px;
  min-width: 0;
  padding: 34px 28px 40px 40px;
}

.spotlight-copy h2 {
  margin-top: 14px;
  color: #ffffff;
  font-family: "Oswald", sans-serif;
  font-size: 3.55rem;
  font-weight: 700;
  line-height: 0.95;
  max-width: 690px;
  overflow-wrap: anywhere;
}

.client-pill {
  align-self: flex-start;
  margin-top: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(238, 105, 0, 0.48);
  border-radius: 999px;
  background: rgba(238, 105, 0, 0.14);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

#slide-copy {
  margin-top: 22px;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
  line-height: 1.38;
}

.slide-meta {
  display: flex;
  margin-top: 28px;
  max-width: 590px;
}

.slide-meta > div {
  flex: 1 1 0%;
  margin-right: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}
.slide-meta > div:last-child {
  margin-right: 0;
}

.slide-meta span {
  display: block;
  color: #ffffff;
  font-family: "Oswald", sans-serif;
  font-size: 1.8rem;
  font-weight: 950;
  line-height: 1;
  overflow-wrap: anywhere;
}

.slide-meta small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  font-weight: 750;
}

.campaign-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  flex: 1.1 1 420px;
  min-width: 0;
  min-height: 0;
  padding: 12px 12px 12px 0;
}

.visual-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: #151515;
  box-shadow: none;
  overflow: hidden;
}

.visual-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #151515;
}

.visual-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(238, 105, 0, 0.24), transparent 48%),
    linear-gradient(180deg, transparent 46%, rgba(0, 0, 0, 0.58));
  pointer-events: none;
}

.visual-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.visual-badge {
  position: absolute;
  right: 34px;
  top: 28px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #151515;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.slide-dots {
  position: absolute;
  left: 32px;
  bottom: 26px;
  display: flex;
}

.slide-dots span {
  width: 30px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  margin-right: 8px;
}
.slide-dots span:last-child {
  margin-right: 0;
}

.slide-dots span.is-active {
  background: var(--accent);
}

.side-stack {
  display: flex;
  flex-direction: column;
  flex: 0.85 1 340px;
  min-height: 0;
}

.side-stack > * {
  margin-bottom: 18px;
}
.side-stack > *:last-child {
  margin-bottom: 0;
}

.metrics-panel,
.agenda-panel,
.badges-panel {
  min-height: 0;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(18px);
}

.metrics-panel {
  flex: 1 1 0%;
}
.agenda-panel,
.badges-panel {
  flex: 0.95 1 0%;
}

.metric-grid {
  display: flex;
  flex-wrap: wrap;
  margin: -5px;
}

.metric {
  flex: 1 1 calc(50% - 10px);
  margin: 5px;
  min-width: 0;
  min-height: 112px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
}

.metric strong {
  display: block;
  color: #ffffff;
  font-family: "Oswald", sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.2;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-title-row > * {
  margin-right: 14px;
}
.panel-title-row > *:last-child {
  margin-right: 0;
}

.panel-title-row span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(38, 208, 168, 0.18);
  color: #9ef2dc;
  font-size: 0.76rem;
  font-weight: 900;
}

.agenda-panel ul {
  display: flex;
  flex-direction: column;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.agenda-panel li {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.agenda-panel li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.agenda-kicker {
  flex: 0 0 64px;
  margin-right: 12px;
  color: var(--accent-3);
  font-family: "Oswald", sans-serif;
  font-size: 0.92rem;
  font-weight: 950;
}

.agenda-panel strong {
  display: block;
  color: #ffffff;
  font-size: 0.96rem;
  line-height: 1.2;
}

.agenda-panel small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
}

.badge-grid {
  display: flex;
  flex-wrap: wrap;
  margin: -5px;
}

.badge-card {
  flex: 0 0 calc(33.333% - 10px);
  margin: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 72px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: #ffffff;
}

.badge-card-large {
  flex: 0 0 calc(50% - 10px);
  min-height: 108px;
}

.badge-card img {
  display: block;
  width: 100%;
  max-width: 132px;
  max-height: 72px;
  object-fit: contain;
}

.badge-card-large img {
  max-height: 96px;
}

.social-post {
  display: flex;
  align-items: flex-start;
  margin-top: 16px;
}

.social-avatar {
  flex: 0 0 52px;
  margin-right: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-weight: 950;
}

.social-post strong {
  color: #ffffff;
  font-size: 1rem;
}

.social-post p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  line-height: 1.28;
}

.bottom-band {
  display: flex;
}
.bottom-band > * {
  margin-right: 18px;
}
.bottom-band > *:last-child {
  margin-right: 0;
}

.ticker,
.qr-panel {
  display: flex;
  align-items: center;
  min-height: 90px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(18px);
}

.ticker {
  flex: 1 1 0%;
  overflow: hidden;
  padding: 0 22px;
}

.ticker span {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  align-self: stretch;
  flex: 0 0 auto;
  margin-right: 22px;
  padding-right: 22px;
  color: var(--accent-3);
  font-size: 0.9rem;
  font-weight: 950;
  text-transform: uppercase;
}

.ticker-track {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.ticker p {
  display: inline-block;
  min-width: 0;
  padding-left: 100%;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  white-space: nowrap;
  animation: marquee 26s linear infinite;
}

.qr-panel {
  gap: 14px;
  width: 310px;
  padding: 12px 16px;
}

.qr-panel strong {
  display: block;
  color: #ffffff;
  font-family: "Oswald", sans-serif;
  font-size: 1.25rem;
}

.qr-code {
  display: flex;
  flex-wrap: wrap;
  flex: 0 0 auto;
  width: 80px;
  padding: 10px;
  border-radius: 6px;
  background: #ffffff;
}

.qr-code span {
  width: 12px;
  height: 12px;
  margin: 2.5px;
  border-radius: 2px;
  background: #151515;
}

.qr-code span:nth-child(2),
.qr-code span:nth-child(5),
.qr-code span:nth-child(7),
.qr-code span:nth-child(11),
.qr-code span:nth-child(14),
.qr-code span:nth-child(18),
.qr-code span:nth-child(21),
.qr-code span:nth-child(24) {
  background: transparent;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

@media (max-width: 1180px) {
  body {
    overflow: auto;
  }

  .tv-dashboard {
    min-height: 100vh;
    height: auto;
  }

  .topbar,
  .main-grid,
  .bottom-band {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar > *, .main-grid > *, .bottom-band > * {
    margin-right: 0;
    margin-bottom: 18px;
  }

  .topbar > *:last-child, .main-grid > *:last-child, .bottom-band > *:last-child {
    margin-bottom: 0;
  }

  .clock-panel {
    text-align: left;
  }

  .spotlight-panel {
    flex-direction: column;
  }

  .spotlight-copy {
    padding: 24px 24px 34px 30px;
  }

  .campaign-visual {
    order: -1;
    padding: 12px 12px 0 20px;
  }

  .visual-frame {
    min-height: 260px;
    aspect-ratio: 16 / 10;
  }

  .qr-panel {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .tv-dashboard {
    padding: 16px;
  }

  .spotlight-panel,
  .metrics-panel,
  .agenda-panel,
  .badges-panel {
    padding: 18px;
  }

  .spotlight-panel {
    padding: 0;
  }

  .spotlight-copy {
    padding: 20px 18px 32px 26px;
  }

  .campaign-visual {
    padding: 10px 10px 0 18px;
  }

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

  .brand-lockup {
    align-items: flex-start;
    flex-direction: column;
  }
  
  .brand-lockup > * {
    margin-right: 0;
    margin-bottom: 8px;
  }
  
  .brand-lockup > *:last-child {
    margin-bottom: 0;
  }

  .brand-logo-box {
    width: 180px;
    min-height: auto;
  }

  h1 {
    font-size: 2rem;
  }

  .brand-subtitle {
    font-size: 1rem;
  }

  .spotlight-copy h2 {
    font-size: 2.35rem;
    line-height: 1;
  }

  #slide-copy {
    font-size: 1rem;
  }

  .slide-meta,
  .metric-grid {
    flex-direction: column;
  }
  
  .slide-meta > div, .metric {
    margin-right: 0;
    margin-bottom: 12px;
  }

  .slide-meta > div:last-child, .metric:last-child {
    margin-bottom: 0;
  }

  .slide-meta span,
  .metric strong {
    font-size: 1.65rem;
  }

  .ticker p {
    font-size: 1.05rem;
  }

  .badge-card {
    flex: 0 0 calc(50% - 10px);
  }

  .badge-card-large {
    flex: 0 0 calc(100% - 10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker p {
    animation: none;
  }
}

/* Fullscreen Button Styles */
.fullscreen-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(18px);
  transition: all 0.3s ease;
  min-height: 90px;
}

.fullscreen-toggle:hover,
.fullscreen-toggle:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  outline: none;
}

body.hide-cursor .fullscreen-toggle {
  opacity: 0;
  pointer-events: none;
}

/* Hide button when actually in fullscreen */
:fullscreen .fullscreen-toggle { display: none; }
:-webkit-full-screen .fullscreen-toggle { display: none; }
:-moz-full-screen .fullscreen-toggle { display: none; }
:-ms-fullscreen .fullscreen-toggle { display: none; }