:root {
  --site-bg: #f4f2ed;
  --site-ink: #151515;
  --site-muted: #6c6964;
  --site-line: #ddd8cf;
  --site-coral: #ff593b;
  --site-lime: #c5f45b;
  --site-paper: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--site-ink); background: var(--site-bg); }
button, input, select, textarea { font: inherit; }
a { color: inherit; }

.global-ribbon {
  min-height: 28px;
  display: grid;
  place-items: center;
  padding: 6px 20px;
  background: #151515;
  color: #f8f6f1;
  font: 700 11px/1.25 Arial, sans-serif;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  text-align: center;
}

.global-header {
  position: sticky;
  top: 0;
  z-index: 90;
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 0 clamp(24px, 5vw, 78px);
  background: rgba(245, 243, 238, .94);
  border-bottom: 1px solid var(--site-line);
  box-shadow: 0 8px 24px rgba(25, 22, 18, .025);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.global-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 900 18px/1 Arial, sans-serif;
  white-space: nowrap;
}

.global-brand img { width: 74px; height: 38px; object-fit: contain; }
.global-brand .brand-iptv { color: var(--site-coral); }

.global-nav { display: flex; justify-content: center; gap: 6px; }
.global-nav a {
  padding: 10px 13px;
  border-radius: 6px;
  text-decoration: none;
  font: 800 13px/1 Arial, sans-serif;
}
.global-nav a:hover { color: var(--site-coral); }

.global-actions { display: flex; align-items: center; gap: 8px; }
.global-actions a, .global-actions button {
  border: 0;
  background: transparent;
  padding: 10px 12px;
  font: 800 13px/1 Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.global-actions .global-primary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-inline: 17px;
  border-radius: 7px;
  background: var(--site-coral);
  color: white;
  box-shadow: 0 9px 22px rgba(255, 89, 59, .2);
}
.global-actions .global-account-trigger { color: inherit; }

.global-footer {
  padding: 42px max(24px, calc((100vw - 1180px) / 2));
  background: #151515;
  color: #f5f2ec;
}
.global-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.global-footer p { max-width: 620px; color: #aaa59d; line-height: 1.65; }
.global-footer nav { display: flex; justify-content: flex-end; align-items: flex-start; flex-wrap: wrap; gap: 16px; }
.global-footer a { color: white; text-decoration: none; font-weight: 700; }
.global-footer small { display: block; margin-top: 28px; padding-top: 20px; border-top: 1px solid #34322f; color: #8c8881; }

.account-chip {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .global-header {
    position: sticky;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px 16px 0;
  }
  .global-brand img { width: 60px; }
  .global-brand { font-size: 15px; }
  .global-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 9px;
    scrollbar-width: none;
  }
  .global-nav::-webkit-scrollbar { display: none; }
  .global-nav a { flex: 0 0 auto; font-size: 12px; padding: 9px 10px; }
  .global-actions a, .global-actions button { padding: 9px; font-size: 12px; }
  .global-actions .global-primary { min-height: 38px; padding-inline: 12px; }
  .global-footer-grid { grid-template-columns: 1fr; }
  .global-footer nav { justify-content: flex-start; }
}

@media (max-width: 430px) {
  .global-actions > :not(.global-primary) { display: none; }
  .global-ribbon { font-size: 9px; }
}

/* Keep the three primary destinations centered and persistent. */
.global-brand { justify-self: start; }
.global-nav { justify-self: center; }
.global-actions { justify-self: end; }
#providers { scroll-margin-top: 120px; }
@media (max-width: 820px) {
  .global-header { grid-template-columns: 1fr auto; }
  .global-nav { width: 100%; justify-content: center; overflow-x: auto; }
}
