:root{ --tilt-amp-z: 1.6deg;  --tilt-amp-y: 4.5deg;  --tilt-amp-x: 5.5deg;  --tilt-duration: 16s; 
  --accent-grad-from:#2ecbff;
  --accent-grad-to:#ff7a3b;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background: linear-gradient(135deg,#010d1d,#0a0f1c);
  color:#fff;
  font-family:Inter,system-ui,sans-serif;
  line-height:1.5;
}
/* Header */
.header-inner{display:grid;grid-template-columns:1fr auto 1fr;gap:16px;padding:16px clamp(16px,5vw,40px);align-items:center}
.header-inner .left{justify-self:start}.header-inner .center{justify-self:center}.header-inner .right{justify-self:end;display:inline-flex;gap:18px;align-items:center}
.time{font-size:14px;color:#fff;opacity:.95;text-shadow:0 1px 2px rgba(0,0,0,.35)}
.header-link,
.header-divider{height:1px;border:0;margin:0;background:linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.48), rgba(255,255,255,0))}

/* Hero layout */
.hero{
  display:grid;
  grid-template-columns:minmax(360px,1.05fr) minmax(360px,0.95fr);
  grid-template-areas:'content media';
  align-items:center;
  justify-items:start;
  gap: clamp(12px, 2.5vw, 28px);             /* tighter gap */
  padding: clamp(16px, 5vw, 48px) clamp(12px, 4vw, 40px);
  max-width: min(1120px, 92vw);              /* center container width */
  margin: 8px auto 0;                         /* pull up closer to header */
  min-height: 72vh;                           /* reduce height so bottom comes up */
}
.hero-content{ grid-area: content; justify-self:end; }
.hero-media{ grid-area: media; width:100%; max-width: clamp(300px, 34vw, 560px); justify-self:start; position:relative; }

/* Title + gradient word */
.hero-title{font-size:clamp(44px,7.5vw,74px);line-height:1.05;letter-spacing:-.02em;margin:0 0 12px 0;color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.35)}
.gradient-yl{
  background: linear-gradient(90deg, #2ecbff, #6f49ff, #ff4dcb, #ff7a3b);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; color:transparent; text-shadow:none;
}
.hero-subtitle{font-size:clamp(16px,2.1vw,20px);color:rgba(255,255,255,.9);margin:0 0 24px 0;max-width:50ch;text-shadow:0 1px 4px rgba(0,0,0,.35)}

/* CTA */
.btn-primary{display:inline-block;padding:16px 28px;background:#fff;color:#000;border-radius:14px;text-decoration:none;font-weight:700;font-size:16px;transition:transform .08s ease,box-shadow .15s ease;border:1px solid rgba(0,0,0,.2);box-shadow:0 6px 18px rgba(0,0,0,.15)}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,.25)}

/* Video wrapper: tilt + circle mask */
.hero-video-wrap{ position:relative; width:100%; aspect-ratio:16/9; 
  width:100%;
  position:relative;
  aspect-ratio:16/9;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.25);
  box-shadow:0 20px 60px rgba(0,0,0,.35);
  transform-style:preserve-3d;
  animation:tilt 16s ease-in-out infinite;
}
.hero-video-wrap.circle{
  aspect-ratio:1/1;              /* perfect circle */
  border-radius:9999px;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 40px 120px rgba(0,0,0,.45);
  background: radial-gradient(60% 60% at 50% 45%, rgba(255,255,255,0.04), rgba(255,255,255,0) 60%);
}
.hero-video-wrap.circle::before{
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 58%, rgba(0,0,0,0.35) 85%, rgba(0,0,0,0.55) 100%);
}
.hero-video-wrap.circle::after{
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.hero-video{width:100%;height:100%;display:block;object-fit:cover}
{
  0%   { transform: perspective(800px) rotateX(1.0deg) rotateY(-2.0deg) rotateZ(-0.3deg); }
  50%  { transform: perspective(800px) rotateX(-1.3deg) rotateY(2.4deg) rotateZ(0.3deg); }
  100% { transform: perspective(800px) rotateX(1.0deg) rotateY(-2.0deg) rotateZ(-0.3deg); }
}50%{transform:perspective(800px) rotateX(-.7deg) rotateY(1.2deg)}100%{transform:perspective(800px) rotateX(.5deg) rotateY(-1deg)}}

/* Footer */
.footer-nav{display:flex;gap:18px;padding:24px clamp(16px,7vw,84px) 56px}
.footer-link{color:rgba(255,255,255,.9);text-decoration:none}
.gradient-text{background:linear-gradient(90deg,#2ecbff,#6f49ff,#ff4dcb,#ff7a3b);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent}

@media (max-width:900px){
  .hero{
  display:grid;
  grid-template-columns:minmax(360px,1.05fr) minmax(360px,0.95fr);
  grid-template-areas:'content media';
  align-items:center;
  justify-items:start;
  gap: clamp(12px, 2.5vw, 28px);             /* tighter gap */
  padding: clamp(16px, 5vw, 48px) clamp(12px, 4vw, 40px);
  max-width: min(1120px, 92vw);              /* center container width */
  margin: 8px auto 0;                         /* pull up closer to header */
  min-height: 72vh;                           /* reduce height so bottom comes up */
}
  .hero-content{ grid-area: content; justify-self:end; }
}

.features{ padding: 12px clamp(16px, 6vw, 64px) 48px; }
.features-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:12px; }

.card{
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px;
  color: #fff;
  backdrop-filter: blur(6px);
}
.card p{ color: rgba(255,255,255,0.9); }

@media (max-width: 900px){
  .hero{
  display:grid;
  grid-template-columns:minmax(360px,1.05fr) minmax(360px,0.95fr);
  grid-template-areas:'content media';
  align-items:center;
  justify-items:start;
  gap: clamp(12px, 2.5vw, 28px);             /* tighter gap */
  padding: clamp(16px, 5vw, 48px) clamp(12px, 4vw, 40px);
  max-width: min(1120px, 92vw);              /* center container width */
  margin: 8px auto 0;                         /* pull up closer to header */
  min-height: 72vh;                           /* reduce height so bottom comes up */
}
  .hero-content{ grid-area: content; justify-self:end; }
  .features-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:12px; }
}

/* Brand in header before time */
.header-inner .left{ display:inline-flex; align-items:center; gap:10px; }
.brand{ font-weight:800; letter-spacing:0.02em; font-size:20px; line-height:1; text-transform:lowercase; }


@keyframes tilt{
  0%   { transform: perspective(800px) rotateX(1.6deg) rotateY(-3.2deg) rotateZ(-0.45deg); }
  50%  { transform: perspective(800px) rotateX(-1.9deg) rotateY(3.6deg) rotateZ(0.45deg); }
  100% { transform: perspective(800px) rotateX(1.6deg) rotateY(-3.2deg) rotateZ(-0.45deg); }
}


/* Footer layout */
.footer-bar{ display:flex; align-items:center; justify-content:space-between; gap:24px; padding: 0 clamp(16px, 7vw, 84px); }

/* Footer links: larger gap + visible separators */
.footer-nav{
  display:flex;
  align-items:center;
  gap:28px;
  flex-wrap:wrap;
}
.footer-link{
  color: rgba(255,255,255,0.9);
  text-decoration:none;
  position:relative;
}
.footer-link:not(:last-child)::after{
  content:"";
  display:inline-block;
  width:1px;
  height:12px;
  background: rgba(255,255,255,0.28);
  margin-left:14px;
  margin-right:-14px; /* keep visual separation without adding extra gap */
  vertical-align:middle;
}

/* Social icons on the far right */
.footer-social{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:16px;
}
.footer-social .social{ display:inline-flex; width:28px; height:28px; align-items:center; justify-content:center; color:#ffffff; text-decoration:none; border-radius:8px; transition: color .15s ease, background .15s ease, transform .08s ease; }
.footer-social .social:hover{ color:#ffffff; background: rgba(255,255,255,0.12); transform: translateY(-1px); }
.footer-social .social svg{ width:18px; height:18px; display:block; }

/* Accessible, CSS-only helper tooltips for footer icons */
.footer-social .social{ display:inline-flex; width:28px; height:28px; align-items:center; justify-content:center; color:#ffffff; text-decoration:none; border-radius:8px; transition: color .15s ease, background .15s ease, transform .08s ease; }
.footer-social .social::after{
  content: attr(data-tip);
  position:absolute;
  left:50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  background: rgba(15,15,20,0.9);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}
.footer-social .social::before{
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%) translateY(4px);
  width: 8px; height: 8px;
  background: rgba(15,15,20,0.9);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  opacity: 0;
  transition: opacity .15s ease, transform .15s ease;
}
.footer-social .social:hover::after,
.footer-social .social:hover::before{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.site-footer{ padding: 12px 0 20px; }

/* Gradient border ONLY for the Browse card */







/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce){
  .card--gradient, 
}

/* Gradient border ONLY for the Browse card, with visible hover change */



/* Reduced motion users: keep styling without movement */
@media (prefers-reduced-motion: reduce){
  
  
}

/* Browse card: neutral by default */


/* On hover: very visible gradient border (aqua→purple→pink→orange→white), thicker 3px */


/* Reduced motion: keep style change, no movement */
@media (prefers-reduced-motion: reduce){
  
}


/* --- Features grid reset (robust) --- */
.features{ padding: 12px clamp(16px, 6vw, 64px) 48px; }
.features-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.card{ border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08); border-radius: 12px; padding: 20px; color: #fff; backdrop-filter: blur(6px); }
.card p{ color: rgba(255,255,255,0.9); }
@media (max-width: 900px){ .features-grid{ grid-template-columns: 1fr; } }
/* --- Browse card hover gradient (aqua→purple→pink→orange→white) --- */
.features .card--gradient{ border: 1px solid rgba(255,255,255,0.25); }
.features .card--gradient:hover{
  border: 3px solid transparent;
  border-image: linear-gradient(120deg, #2ecbff, #6f49ff, #ff4dcb, #ff7a3b, #ffffff) 1;
  border-image-slice: 1;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}
@media (prefers-reduced-motion: reduce){
  .features .card--gradient:hover{ transform: none; box-shadow: none; }
}


:root{
  --grad-aqua:#2ecbff;
  --grad-purple:#6f49ff;
  --grad-pink:#ff4dcb;
  --grad-orange:#ff7a3b;
  --grad-white:#ffffff;
}

/* === Browse card: gradient hover with outer glow (high specificity) === */
.features .card--gradient{
  position: relative;
  isolation: isolate; /* allow ::before behind without being clipped */
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
}

/* Outer glow layer (hidden by default) */
.features .card--gradient::before{
  content:"";
  position:absolute;
  inset:-6px;                 /* extend beyond edges */
  border-radius: inherit;
  background: linear-gradient(120deg, var(--grad-aqua), var(--grad-purple), var(--grad-pink), var(--grad-orange), var(--grad-white));
  filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, filter .18s ease;
  z-index: -1;
}

/* On hover: gradient border (3px) + visible glow */
.features .card--gradient:hover{
  border: 3px solid transparent !important;
  border-image: linear-gradient(120deg, var(--grad-aqua), var(--grad-purple), var(--grad-pink), var(--grad-orange), var(--grad-white)) 1;
  border-image-slice: 1;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
}
.features .card--gradient:hover::before{
  opacity: .85;
  filter: blur(22px);
}

@media (prefers-reduced-motion: reduce){
  .features .card--gradient:hover{ transform:none; box-shadow:none; }
}


/* === Compact layout tuning v2 (high-specificity overrides) === */
body .hero{
  gap: clamp(8px, 2vw, 20px);
  padding: clamp(8px, 4vw, 32px) clamp(10px, 4vw, 36px);
  max-width: min(1040px, 94vw);
  margin: 4px auto 0;
  min-height: 64vh;
}
body .hero-content{ justify-self:end; }
body .hero-media{ justify-self:start; max-width: clamp(280px, 32vw, 520px); }

/* Features: smaller padding & gaps */
body .features{ padding: 8px clamp(16px, 5vw, 48px) 32px; }
body .features-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: stretch; }
body .card{ padding: 16px; }

/* Footer: tighter spacing */
body .site-footer{ padding: 8px 0 12px; }
body .footer-divider{ margin: 8px 0 12px; }
body .footer-bar{ padding: 0 clamp(16px, 7vw, 84px); }

@media (max-width: 900px){
  body .hero{ grid-template-columns: 1fr; grid-template-areas: "content" "media"; justify-items:center; text-align:center; min-height: auto; margin-top: 4px; }
  body .hero-content{ justify-self:center; text-align:center; }
  body .features{ padding: 8px 16px 24px; }
  body .features-grid{ grid-template-columns: 1fr; gap: 12px; }
}



/* === Compact layout & Features overrides (v3) === */
body .hero{
  gap: clamp(8px, 2vw, 18px);
  padding: clamp(8px, 4vw, 24px) clamp(10px, 4vw, 28px);
  max-width: min(1040px, 94vw);
  margin: 0 auto;
  min-height: 56vh; /* tighter center */
}
body .hero-content{ justify-self:end; }
body .hero-media{ justify-self:start; max-width: clamp(280px, 32vw, 520px); }

/* Features grid */
body .features{ padding: 8px clamp(16px, 5vw, 40px) 24px; }
body .features-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: stretch; }
body .features .card{ border:1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08); border-radius:12px; padding:12px; color:#fff; backdrop-filter: blur(6px); }
body .features .card h3{ margin: 0 0 8px; }
body .features .card p{ margin: 0; color: rgba(255,255,255,0.9); }

@media (max-width: 900px){
  body .hero{ grid-template-columns:1fr; grid-template-areas:"content" "media"; justify-items:center; text-align:center; min-height:auto; }
  body .hero-content{ justify-self:center; text-align:center; }
  body .features-grid{ grid-template-columns: 1fr; }
}

/* Gradient variables (fallback if missing) */
:root{
  --grad-aqua:#2ecbff;
  --grad-purple:#6f49ff;
  --grad-pink:#ff4dcb;
  --grad-orange:#ff7a3b;
  --grad-white:#ffffff;
}

/* Browse card: gradient border on hover + soft outer glow */
.features .card.card--gradient{
  position: relative;
  isolation: isolate; /* allow glow behind */
}

.features .card.card--gradient::before{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius: inherit;
  background: linear-gradient(120deg, var(--grad-aqua), var(--grad-purple), var(--grad-pink), var(--grad-orange), var(--grad-white));
  filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, filter .18s ease;
  z-index: -1;
}

.features .card.card--gradient:hover{
  border: 3px solid transparent !important;
  border-image: linear-gradient(120deg, var(--grad-aqua), var(--grad-purple), var(--grad-pink), var(--grad-orange), var(--grad-white)) 1;
  border-image-slice: 1;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
}



@media (prefers-reduced-motion: reduce){
  .features .card.card--gradient:hover{ transform:none; box-shadow:none; }
}



/* === Feature cards: compact mode (~50% smaller) === */
body .features{
  max-width: min(780px, 92vw);   /* narrower container => smaller column width */
  margin: 0 auto;
  padding: 8px clamp(16px, 5vw, 40px) 24px;
}
body .features-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 22px);   /* tidy spacing */
  align-items: stretch;
}
body .features .card{
  padding: 10px 12px;            /* smaller interior */
  border-radius: 10px;
}
body .features .card h3{
  font-size: clamp(16px, 1.8vw, 18px);
  margin: 0 0 6px;
}
body .features .card p{
  font-size: clamp(13px, 1.6vw, 15px);
  line-height: 1.45;
  margin: 0;
}

@media (max-width: 900px){
  body .features{
    max-width: 100%;
    padding: 8px 16px 20px;
  }
  body .features-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }
  body .features .card{
    padding: 12px 14px;
  }
}



/* === Features width + alignment tweak (cards ~25% wider) === */
:root{
  --page-container-max: min(1040px, 94vw); /* match hero width for edge alignment */
}
body .hero{ max-width: var(--page-container-max); }
body .features{
  max-width: var(--page-container-max);
  margin: 0 auto;
  padding: 8px clamp(10px, 4vw, 28px) 24px; /* match hero horizontal padding */
}
/* Three columns, slightly larger gaps for clean rhythm */
body .features-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 24px);
  align-items: stretch;
}
/* Keep compact interior spacing from previous step */
body .features .card{ padding: 12px; }
body .features .card h3{ margin: 0 0 8px; }
body .features .card p{ margin: 0; }

@media (max-width: 900px){
  body .features{ max-width: 100%; padding: 8px 16px 20px; }
  body .features-grid{ grid-template-columns: 1fr; gap: 14px; }
}


/* === Browse card glow toned down by ~75% === */
.features .card.card--gradient:hover::before{
  opacity: .21 !important;     /* was ~.85 */
  filter: blur(10px) !important; /* softer spread */
}

/* === Non-Browse cards (Share / See): faint bright-white hover glow === */
.features .card:not(.card--gradient){
  transition: border-color .15s ease, box-shadow .2s ease, transform .12s ease;
}
.features .card:not(.card--gradient):hover{
  border-color: rgba(255,255,255,0.9);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.65),   /* crisp white ring */
    0 0 12px rgba(255,255,255,0.25),    /* faint glow */
    0 8px 22px rgba(0,0,0,0.22);        /* depth */
  transform: translateY(-1px);
}
@media (prefers-reduced-motion: reduce){
  .features .card:not(.card--gradient):hover{ transform:none; }
}


/* Outlined pill for "Sign In" */
.sign-in{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 14px;
  height: 34px;
  border-radius: 9999px;
  border: 1.5px solid rgba(255,255,255,0.85);
  background: transparent;
  color:#fff;
  text-decoration:none;
  font-weight: 700;
  letter-spacing: .01em;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .08s ease;
}
.sign-in:hover{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.95);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transform: translateY(-1px);
}
.sign-in:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.24);
}



/* Restore 'Find Your Show' header link size & font (no pill) */
.header-link{
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  padding: 0;
  border: 0;
  background: transparent;
  height: auto;
  display: inline;
  text-decoration: none;
  color: #ffffff;
}
.header-link:hover{
  text-decoration: underline;
  background: transparent;
  box-shadow: none;
  transform: none;
}

