/* RSTV FONT SYSTEM START */
@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/GalanoGrotesqueThinItalic.otf') format('opentype');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/GalanoGrotesqueBlack.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/GalanoGrotesqueBlackItalic.otf') format('opentype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/GalanoGrotesqueBold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/GalanoGrotesqueBoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/GalanoGrotesqueExtraBold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/GalanoGrotesqueExtraBoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/GalanoGrotesqueExtraLight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/GalanoGrotesqueExtraLightItalic.otf') format('opentype');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/GalanoGrotesqueHeavy.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/GalanoGrotesqueHeavyItalic.otf') format('opentype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/GalanoGrotesqueItalic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/GalanoGrotesqueLight.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/GalanoGrotesqueLightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/GalanoGrotesqueMedium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/GalanoGrotesqueMediumItalic.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/GalanoGrotesqueRegular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/GalanoGrotesqueSemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/GalanoGrotesqueSemiBoldItalic.otf') format('opentype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/GalanoGrotesqueThin.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/._GalanoGrotesqueThinItalic.otf') format('opentype');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/._GalanoGrotesqueBlack.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/._GalanoGrotesqueBlackItalic.otf') format('opentype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/._GalanoGrotesqueBold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/._GalanoGrotesqueBoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/._GalanoGrotesqueExtraBold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/._GalanoGrotesqueExtraBoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/._GalanoGrotesqueExtraLight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/._GalanoGrotesqueExtraLightItalic.otf') format('opentype');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/._GalanoGrotesqueHeavy.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/._GalanoGrotesqueHeavyItalic.otf') format('opentype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/._GalanoGrotesqueItalic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/._GalanoGrotesqueLight.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/._GalanoGrotesqueLightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/._GalanoGrotesqueMedium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/._GalanoGrotesqueMediumItalic.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/._GalanoGrotesqueRegular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/._GalanoGrotesqueSemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/._GalanoGrotesqueSemiBoldItalic.otf') format('opentype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'RSTV Brand';
  src: url('/assets/fonts/._GalanoGrotesqueThin.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

/* RSTV Digital — Sky Glass-style typography system */
:root{
  --font-primary:'RSTV Brand', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --type-tight:-0.045em;
  --type-soft:-0.018em;
}

html,
body{
  font-family:var(--font-primary);
  -webkit-font-smoothing:antialiased;
  text-rendering:geometricPrecision;
  letter-spacing:-0.01em;
}

h1,h2,h3,
.hero h1,
.page-hero h1,
.watch-hero h1,
.auth-card h1{
  font-family:var(--font-primary);
  font-weight:800;
  letter-spacing:var(--type-tight);
}

.hero h1,
.page-hero h1,
.watch-hero h1{
  font-size:clamp(48px, 7.5vw, 104px);
  line-height:.86;
}

h2,
.section-heading h2,
.hero-panel h2,
.settings-card h2,
.watch-side h2,
.overlay-card h2{
  font-weight:750;
  letter-spacing:-0.04em;
  line-height:.94;
}

h3,
.channel-card h3,
.guide-card h3,
.info-card h3{
  font-weight:720;
  letter-spacing:-0.03em;
  line-height:1;
}

p,
.channel-card p,
.guide-card p,
.info-card p,
.settings-card p,
.watch-side p,
.hero p,
.page-hero p{
  font-weight:450;
  letter-spacing:-0.008em;
}

.main-nav a,
.account-button,
.primary-cta,
.secondary-cta,
.badge,
.eyebrow,
.updated-badge{
  font-family:var(--font-primary);
  font-weight:700;
  letter-spacing:.01em;
}

.eyebrow,
.badge,
.updated-badge{
  letter-spacing:.14em;
  font-size:11px;
}

.main-nav a{
  font-size:14px;
  font-weight:650;
}

.channel-card .primary-cta,
.guide-card .secondary-cta,
.hero-actions a,
.hero-actions button,
.card-actions a,
.card-actions button{
  font-weight:760;
}

.meta-grid strong{
  font-weight:750;
  letter-spacing:.12em;
}

.meta-grid span,
.status-box strong{
  font-weight:720;
}

.inline-message,
.footer-small,
.footer-brand span{
  font-weight:450;
}

/* Slightly softer Sky/NOW-style reading colour */
.hero p,
.page-hero p,
.watch-hero p,
.channel-card p,
.guide-card p,
.info-card p,
.settings-card p,
.legal-section p,
.auth-card p{
  color:rgba(214,222,238,.78);
}

/* Cleaner premium card hierarchy */
.channel-card h3,
.guide-card h3{
  margin-top:12px;
}

.panel-link,
.text-link,
.footer-links a,
.section-heading a{
  font-weight:720;
}

/* RSTV FONT SYSTEM END */


:root{
  --bg:#03050a;
  --card:#0d1322;
  --card-soft:rgba(11,16,28,.86);
  --line:rgba(255,255,255,.12);
  --text:#f7f8ff;
  --muted:rgba(226,233,247,.76);
  --plus:#00e4c7;
  --purple:#8067ff;
  --danger:#ff8aa6;
}

*{box-sizing:border-box}
html{background:var(--bg);color:var(--text)}
body{
  margin:0;
  min-height:100vh;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(0,228,199,.14), transparent 32%),
    radial-gradient(circle at 88% 8%, rgba(135,102,255,.16), transparent 34%),
    linear-gradient(180deg,#060913 0%,#03050a 100%);
  color:var(--text);
}

a{color:inherit}
img{max-width:100%}
button,input,select{font:inherit}

.site-header{
  position:sticky;
  top:0;
  z-index:3000;
  height:74px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:24px;
  padding:0 clamp(18px,4vw,54px);
  border-bottom:1px solid rgba(255,255,255,.08);
  background:rgba(3,5,10,.86);
  backdrop-filter:blur(20px);
}

.brand{display:flex;align-items:center;text-decoration:none;min-width:max-content}
.brand img{height:38px;width:auto;max-width:220px;display:block;object-fit:contain}

.main-nav{display:flex;align-items:center;justify-content:center;gap:28px;min-width:0}
.main-nav a{
  position:relative;
  color:rgba(239,244,255,.72);
  text-decoration:none;
  font-size:14px;
  font-weight:900;
  white-space:nowrap;
}
.main-nav a:hover,.main-nav a.is-active,.main-nav a[aria-current="page"]{color:#fff}
.main-nav a.is-active::after,.main-nav a[aria-current="page"]::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-12px;
  height:3px;
  border-radius:999px;
  background:var(--plus);
}

.header-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px}
.mobile-menu-btn{display:none}

.account-button,.primary-cta,.secondary-cta{
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  font-weight:950;
  text-decoration:none;
  cursor:pointer;
  border:1px solid rgba(255,255,255,.14);
  padding:0 20px;
  white-space:nowrap;
}
.account-button,.secondary-cta{
  background:rgba(255,255,255,.08);
  color:#fff;
}
.primary-cta{background:#fff;color:#03050a;border-color:#fff}
.secondary-cta.danger{border-color:rgba(255,138,166,.4);color:var(--danger);background:rgba(255,138,166,.08)}
.full{width:100%}

.eyebrow,.badge,.updated-badge{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 12px;
  border-radius:999px;
  background:rgba(0,228,199,.10);
  border:1px solid rgba(0,228,199,.24);
  color:var(--plus);
  text-transform:uppercase;
  font-size:11px;
  letter-spacing:.16em;
  font-weight:950;
  margin:0 0 14px;
}

.inline-message{min-height:22px;color:var(--muted);font-weight:800}
.inline-message.ok{color:var(--plus)}
.inline-message.bad{color:var(--danger)}

.site-footer{border-top:1px solid rgba(255,255,255,.08);background:rgba(3,5,10,.65)}
.footer-inner{width:min(1320px, calc(100% - 40px));margin:0 auto;padding:30px 0;display:grid;gap:18px}
.footer-brand{display:grid;gap:4px}
.footer-brand strong{font-size:20px}
.footer-brand span,.footer-small{color:var(--muted)}
.footer-links{display:flex;gap:18px;flex-wrap:wrap}
.footer-links a{color:rgba(239,244,255,.78);font-weight:900;text-decoration:none}

.modal{
  position:fixed;
  inset:0;
  z-index:5000;
  display:grid;
  place-items:center;
  background:rgba(0,0,0,.72);
  backdrop-filter:blur(18px);
  padding:20px;
}
.modal[hidden]{display:none!important}
.modal-card{
  position:relative;
  width:min(520px,100%);
  padding:28px;
  border-radius:30px;
  background:#111723;
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 30px 100px rgba(0,0,0,.58);
}
.modal-close{
  position:absolute;
  right:18px;
  top:16px;
  width:38px;
  height:38px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:24px;
  cursor:pointer;
}
.modal form{display:grid;gap:14px;margin-top:18px}
.modal label{display:grid;gap:8px;color:#fff;font-weight:900}
.modal input{
  width:100%;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.08);
  color:#fff;
  border-radius:18px;
  padding:14px 15px;
  outline:none;
}

@media(max-width:760px){
  .site-header{grid-template-columns:auto auto;padding:0 18px}
  .main-nav{
    position:fixed;
    left:14px;
    right:14px;
    top:82px;
    display:none;
    flex-direction:column;
    align-items:stretch;
    padding:16px;
    border-radius:24px;
    background:#101827;
    border:1px solid var(--line);
    box-shadow:0 24px 80px rgba(0,0,0,.45);
  }
  .main-nav.is-open{display:flex}
  .main-nav a{padding:12px}
  .mobile-menu-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    border-radius:999px;
    border:1px solid var(--line);
    background:rgba(255,255,255,.08);
    color:#fff;
    font-weight:900;
  }
  .header-actions{display:none}
}


/* RSTV FONT SYSTEM FINAL OVERRIDES */
body,
button,
input,
select,
textarea{
  font-family:var(--font-primary)!important;
}


/* Logo (no SVG, strict containment) */
.brand img{
  height:36px!important;
  max-width:160px!important;
  object-fit:contain!important;
}

/* Text fallback */
.brand-fallback{
  display:none;
  font-weight:900;
  color:#fff;
  font-size:18px;
}

/* Stop overflow fully */
.site-header{
  overflow:hidden!important;
  max-width:100vw!important;
}


/* Final logo/header fix */
.site-header{
  overflow:hidden!important;
  max-width:100vw!important;
}

.brand{
  display:flex!important;
  align-items:center!important;
  min-width:0!important;
  width:220px!important;
  max-width:220px!important;
  overflow:hidden!important;
}

.brand img{
  display:block;
  height:38px!important;
  width:auto!important;
  max-width:190px!important;
  object-fit:contain!important;
}

.brand-fallback{
  display:none;
  align-items:center;
  gap:6px;
  height:38px;
  max-width:190px;
  padding:0 10px;
  border-radius:10px;
  background:#05070d;
  color:#fff;
  font-size:18px;
  font-weight:900;
  white-space:nowrap;
  line-height:1;
}

.brand-fallback em{
  font-style:normal;
  padding:5px 8px;
  border-radius:8px;
  background:linear-gradient(135deg,#00e4c7,#8f7cff);
  color:#fff;
}

@media(max-width:760px){
  .brand{
    width:auto!important;
    max-width:180px!important;
  }
  .brand img{
    max-width:170px!important;
  }
}
