/* ============================================================
   THIRD EYE CINEMA — PREMIUM DESIGN LAYER  (tec-premium.css)
   Loads LAST, after style.css / luxury-ui.css / tec-design-system.css /
   mobile-menu-fix.css, so it wins the cascade and restyles existing markup.
   Nothing here changes HTML structure or JS hooks — it only restyles
   classes the pages already use. Fully removable: delete this <link> to revert.
   Brand: warm luxury gold on cinematic black · Fraunces + Sora.
   ============================================================ */

/* ---- Fonts (self-contained import so pages need only this one link) ---- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Sora:wght@300;400;500;600&display=swap');

/* ---- Canonical tokens (single source of truth) ---- */
:root{
  --tec-gold:#D9A441;
  --tec-gold-2:#E8C06A;
  --tec-gold-bright:#F3DCA0;
  --tec-gold-deep:#9A6E1F;
  --tec-ink-0:#040405;
  --tec-ink-1:#0A0A0E;
  --tec-ink-2:#111219;
  --tec-ink-3:#191B25;
  --tec-text:#F6F4EE;
  --tec-dim:#A8A6B2;
  --tec-mut:#6C6B76;
  --tec-line:rgba(217,164,65,.18);
  --tec-line-soft:rgba(255,255,255,.06);
  --tec-glow:0 0 0 1px rgba(217,164,65,.2), 0 24px 64px -18px rgba(217,164,65,.38);
  --tec-shadow:0 34px 90px -26px rgba(0,0,0,.92);
  --tec-disp:'Fraunces',Georgia,serif;
  --tec-body:'Sora',system-ui,-apple-system,sans-serif;
  --tec-r-sm:12px; --tec-r:18px; --tec-r-lg:26px;
  --tec-ease:cubic-bezier(.22,.61,.36,1);
  --tec-ease-out:cubic-bezier(.16,1,.3,1);

  /* Brand unification: the legacy theme used a Netflix-style red as its accent
     (--red / --tec-red / --brand-red ≈ #e50914). Re-point those variables to gold
     so every element that references them adopts the luxury-gold identity without
     editing the old CSS files. Loaded last, so these win. */
  --red:#D9A441;
  --tec-red:#D9A441;
  --brand-red:#D9A441;
}

/* ---- Base ---- */
body{
  background:var(--tec-ink-0) !important;
  color:var(--tec-text);
  font-family:var(--tec-body);
  font-weight:300;
  -webkit-font-smoothing:antialiased;
}
body::before{ /* animated ambient glow behind everything */
  content:"";position:fixed;inset:0;z-index:0;pointer-events:none;
  background:radial-gradient(52% 42% at 80% -5%,rgba(217,164,65,.10),transparent 70%),
            radial-gradient(44% 38% at 6% 16%,rgba(110,80,190,.07),transparent 70%);
  animation:tec-drift 22s ease-in-out infinite alternate;
}
@keyframes tec-drift{to{transform:translate3d(0,-3%,0) scale(1.06)}}
main, section, header, footer{position:relative;z-index:1}

h1,h2,h3,.page-title{font-family:var(--tec-disp);font-weight:600;letter-spacing:-.5px}

/* ---- Gold text accents the site already uses ---- */
.eyebrow{
  display:inline-flex;align-items:center;gap:9px;
  font-family:var(--tec-body);font-size:12px;letter-spacing:.22em;text-transform:uppercase;
  color:var(--tec-gold);font-weight:500;
}
.eyebrow .emoji-icon{filter:drop-shadow(0 0 6px rgba(217,164,65,.6))}

/* ============================================================
   NAVIGATION  (.navbar)
   ============================================================ */
.navbar{
  position:sticky;top:0;z-index:50;
  background:rgba(8,8,12,.55) !important;
  backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px);
  border-bottom:1px solid transparent;
  transition:background .4s var(--tec-ease), border-color .4s var(--tec-ease), padding .4s var(--tec-ease);
}
.navbar.tec-scrolled{background:rgba(8,8,12,.94) !important;border-bottom-color:var(--tec-line)}
.navbar .logo span{font-family:var(--tec-disp);font-weight:600;letter-spacing:.2px}
.navbar nav a{position:relative;transition:color .3s var(--tec-ease)}
.navbar nav a::after{
  content:"";position:absolute;left:10px;right:10px;bottom:3px;height:1.5px;
  background:var(--tec-gold);transform:scaleX(0);transform-origin:left;
  transition:transform .35s var(--tec-ease-out);
}
.navbar nav a:hover::after,.navbar nav a.active::after{transform:scaleX(1)}
.navbar nav a.active{color:var(--tec-gold)}

/* Open mobile dropdown menu: give it a solid premium backdrop. The open/close
   logic stays owned by mobile-menu-fix.css; we only set its surface so it isn't
   see-through over page content on small screens. */
.navbar > nav#mainNav.open{
  background:rgba(8,8,12,.97) !important;
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  border-bottom:1px solid var(--tec-line) !important;
  box-shadow:var(--tec-shadow);
}
.navbar > nav#mainNav.open a{
  border-bottom:1px solid var(--tec-line-soft);
}

/* Premium gold button (book/cta links already present) */
.nav-ticket-button,.btn.primary,.pay-btn,.booking-submit,.btn-gold,
button.primary,.tec-cta-gold{
  background:linear-gradient(135deg,var(--tec-gold-bright),var(--tec-gold) 55%,var(--tec-gold-deep)) !important;
  color:#1a1206 !important;border:1px solid transparent !important;
  position:relative;overflow:hidden;font-weight:500;
  transition:transform .25s var(--tec-ease),box-shadow .35s var(--tec-ease) !important;
}
.nav-ticket-button::before,.btn.primary::before,.pay-btn::before,.tec-cta-gold::before{
  content:"";position:absolute;inset:0;
  background:linear-gradient(120deg,transparent 30%,rgba(255,255,255,.5) 50%,transparent 70%);
  transform:translateX(-130%);transition:transform .7s var(--tec-ease);
}
.nav-ticket-button:hover,.btn.primary:hover,.pay-btn:hover,.tec-cta-gold:hover{
  transform:translateY(-2px);box-shadow:0 14px 32px -8px var(--tec-gold) !important;
}
.nav-ticket-button:hover::before,.btn.primary:hover::before,.pay-btn:hover::before,.tec-cta-gold:hover::before{transform:translateX(130%)}

.btn.ghost,.btn-ghost{
  background:rgba(255,255,255,.04) !important;color:var(--tec-text) !important;
  border:1px solid var(--tec-line-soft) !important;transition:.3s var(--tec-ease) !important;
}
.btn.ghost:hover,.btn-ghost:hover{border-color:var(--tec-gold) !important;color:var(--tec-gold) !important;transform:translateY(-2px)}

/* Mobile sticky book button */
.mobile-sticky-book{
  background:linear-gradient(135deg,var(--tec-gold-bright),var(--tec-gold) 55%,var(--tec-gold-deep)) !important;
  color:#1a1206 !important;font-weight:500;box-shadow:0 10px 30px -8px rgba(217,164,65,.6) !important;
}

/* Injected mobile quick-book pill (.tec-mobile-quick-book) — desktop hides it,
   mobile shows it as a compact gold pill next to the search toggle. Fixes the
   stray top-left "BOOK" that appeared on desktop. */
.tec-mobile-quick-book{
  display:none;align-items:center;gap:6px;text-decoration:none;
  background:linear-gradient(135deg,var(--tec-gold-bright),var(--tec-gold) 55%,var(--tec-gold-deep));
  color:#1a1206 !important;font-weight:600;font-size:12.5px;font-family:var(--tec-body);
  padding:8px 14px;border-radius:999px;line-height:1;
  box-shadow:0 8px 22px -8px rgba(217,164,65,.6);
}
.tec-mobile-quick-book .tec-ic{width:16px;height:16px;color:#1a1206}
@media (max-width:880px){
  .tec-mobile-quick-book{display:inline-flex}
}
@media (min-width:881px){
  .tec-mobile-quick-book{display:none !important}
}

/* ============================================================
   HERO  (.hero / .hero-video / .hero-overlay / .hero-content)
   Keeps the existing <video> — adds cinematic treatment over it.
   ============================================================ */
.hero{position:relative;overflow:hidden;min-height:min(86vh,640px)}
.hero-video{filter:saturate(1.08) contrast(1.04) brightness(.92)}
/* layered grade + vignette + animated glow OVER the video */
.hero-overlay{
  background:
    linear-gradient(180deg,rgba(4,4,5,.25) 0%,rgba(4,4,5,.4) 45%,rgba(4,4,5,.85) 82%,var(--tec-ink-0) 100%) !important;
}
.hero::after{ /* vignette + breathing gold glow */
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  box-shadow:inset 0 0 220px 50px rgba(0,0,0,.7);
  background:radial-gradient(50% 60% at 28% 72%,rgba(217,164,65,.14),transparent 60%);
  mix-blend-mode:screen;animation:tec-glow 7s var(--tec-ease) infinite alternate;
}
@keyframes tec-glow{to{opacity:.6;transform:scale(1.06)}}
.hero-content{position:relative;z-index:3}
.hero-content .hero-title,.hero .hero-title{
  font-family:var(--tec-disp);font-weight:600;letter-spacing:-1.5px;line-height:1.02;
  font-size:clamp(40px,6vw,78px);
}
.hero-content .hero-text{color:var(--tec-dim);font-size:clamp(15px,2vw,17px)}
/* floating gold particles injected by tec-premium.js into .hero */
.tec-particles{position:absolute;inset:0;z-index:2;overflow:hidden;pointer-events:none}
.tec-particles i{position:absolute;bottom:-10px;width:3px;height:3px;border-radius:50%;
  background:var(--tec-gold-bright);opacity:.5;box-shadow:0 0 8px var(--tec-gold);
  animation:tec-rise linear infinite}
@keyframes tec-rise{to{transform:translateY(-680px);opacity:0}}

/* hero entrance */
.hero-content .eyebrow{opacity:0;animation:tec-reveal .9s var(--tec-ease-out) .1s forwards}
.hero-content .hero-title{opacity:0;animation:tec-reveal .9s var(--tec-ease-out) .25s forwards}
.hero-content .hero-text{opacity:0;animation:tec-reveal .9s var(--tec-ease-out) .4s forwards}
.hero-content .hero-actions{opacity:0;animation:tec-reveal .9s var(--tec-ease-out) .55s forwards}
@keyframes tec-reveal{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}

/* ============================================================
   SECTION HEADS + page titles
   ============================================================ */
.section-head h2,.page-title{font-family:var(--tec-disp);font-weight:600}
.page-title{font-size:clamp(30px,4.5vw,50px);letter-spacing:-1px}
.view-link,.view-link span{color:var(--tec-gold) !important;transition:gap .3s var(--tec-ease)}

/* ============================================================
   POSTER / SHOW CARDS  (.card-grid .show-card)
   ============================================================ */
.show-card{
  position:relative;border-radius:var(--tec-r);overflow:hidden;
  background:var(--tec-ink-2);border:1px solid var(--tec-line-soft);
  transition:transform .55s var(--tec-ease-out),box-shadow .55s var(--tec-ease),border-color .4s;
  will-change:transform;
}
.show-card img{transition:transform .7s var(--tec-ease-out);display:block;width:100%}
.show-card::before{ /* gloss sweep */
  content:"";position:absolute;inset:0;z-index:2;pointer-events:none;
  background:linear-gradient(125deg,transparent 40%,rgba(255,255,255,.13) 48%,transparent 56%);
  transform:translateX(-100%);transition:transform .85s var(--tec-ease);
}
.show-card:hover{transform:translateY(-11px);box-shadow:var(--tec-glow),var(--tec-shadow);border-color:rgba(217,164,65,.4)}
.show-card:hover img{transform:scale(1.08)}
.show-card:hover::before{transform:translateX(100%)}

/* card-grid responsive rhythm (only if base grid is loose) */
.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:20px}
@media (max-width:560px){.card-grid{grid-template-columns:repeat(2,1fr);gap:14px}}

/* scroll-reveal for cards (class added by tec-premium.js) */
.tec-rise{opacity:0;transform:translateY(28px);transition:opacity .7s var(--tec-ease-out),transform .7s var(--tec-ease-out)}
.tec-rise.tec-in{opacity:1;transform:none}

/* ============================================================
   FILTER BAR  (.filter-bar button)
   ============================================================ */
.filter-bar button{
  font-family:var(--tec-body);color:var(--tec-dim);
  background:rgba(255,255,255,.04);border:1px solid var(--tec-line-soft);
  border-radius:999px;transition:.3s var(--tec-ease);
}
.filter-bar button:hover{color:var(--tec-text);border-color:var(--tec-line)}
.filter-bar button.active{
  background:linear-gradient(135deg,var(--tec-gold-bright),var(--tec-gold) 60%,var(--tec-gold-deep));
  color:#1a1206;font-weight:500;border-color:transparent;
}

/* ============================================================
   BOOKING STEPPER  (.tec-booking-progress .is-active)
   Injected by tec-enhancements.js with a red gradient — recolor to gold.
   ============================================================ */
.tec-booking-progress .is-active,
.tec-booking-progress .active,
.tec-booking-progress [class*="active"]{
  background-image:linear-gradient(135deg,var(--tec-gold-bright),var(--tec-gold) 55%,var(--tec-gold-deep)) !important;
  color:#1a1206 !important;border-color:transparent !important;
  box-shadow:0 0 18px -4px var(--tec-gold) !important;
}
.tec-booking-progress span{font-family:var(--tec-body)}

/* ============================================================
   BOOKING  (.booking-box selects/inputs)
   ============================================================ */
.booking-box,.booking-box-center{
  background:linear-gradient(160deg,var(--tec-ink-2),var(--tec-ink-1)) !important;
  border:1px solid var(--tec-line) !important;border-radius:var(--tec-r-lg) !important;
  box-shadow:var(--tec-shadow);position:relative;overflow:hidden;
}
.booking-box h3{font-family:var(--tec-disp);font-weight:600}
.booking-box select,.booking-box input,
.payment-shell select,.payment-shell input,
.donation-form input,.donation-form textarea,
.contact-form input,.contact-form textarea{
  font-family:var(--tec-body);color:var(--tec-text);
  background:rgba(255,255,255,.04) !important;border:1px solid var(--tec-line-soft) !important;
  border-radius:12px !important;transition:.3s var(--tec-ease) !important;
}
.booking-box select:focus,.booking-box input:focus,
.payment-shell select:focus,.payment-shell input:focus,
.donation-form input:focus,.donation-form textarea:focus,
.contact-form input:focus,.contact-form textarea:focus{
  outline:none !important;border-color:var(--tec-gold) !important;
  box-shadow:0 0 0 3px rgba(217,164,65,.14) !important;
}

/* ============================================================
   PAYMENT  (.payment-card / .summary-panel / .payment-methods)
   ============================================================ */
.payment-card,.payment-card-upgraded{
  background:linear-gradient(160deg,var(--tec-ink-2),var(--tec-ink-1)) !important;
  border:1px solid var(--tec-line) !important;border-radius:var(--tec-r-lg) !important;
  box-shadow:var(--tec-shadow);position:relative;overflow:hidden;
}
.payment-kicker{font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--tec-gold)}
.payment-card h1{font-family:var(--tec-disp);font-weight:600}
.summary-panel{
  background:rgba(255,255,255,.03) !important;border:1px solid var(--tec-line-soft) !important;
  border-radius:var(--tec-r) !important;
}
.summary-panel h2{font-family:var(--tec-disp);color:var(--tec-gold)}
.payment-hold-panel{
  background:rgba(217,164,65,.08) !important;border:1px solid var(--tec-line) !important;
  border-radius:12px;color:var(--tec-gold-bright);
}
.payment-methods label,.payment-methods .method,.payment-method{
  border:1px solid var(--tec-line-soft) !important;border-radius:var(--tec-r) !important;
  background:rgba(255,255,255,.04) !important;transition:.3s var(--tec-ease) !important;
}
.payment-methods input:checked + label,
.payment-methods label:hover,.payment-method:hover{
  border-color:var(--tec-gold) !important;box-shadow:0 0 0 3px rgba(217,164,65,.12) !important;
}

/* ============================================================
   DONATIONS  (.donation-grid / .donation-card / .donation-status)
   ============================================================ */
.donation-card{
  position:relative;border-radius:var(--tec-r-lg);overflow:hidden;
  background:var(--tec-ink-2);border:1px solid var(--tec-line-soft);
  transition:transform .5s var(--tec-ease-out),box-shadow .5s var(--tec-ease),border-color .4s;
}
.donation-card:hover{transform:translateY(-8px);box-shadow:var(--tec-shadow);border-color:var(--tec-line)}
.donation-card h2{font-family:var(--tec-disp);font-weight:600}
.donation-status{
  font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;font-weight:600;
  padding:5px 11px;border-radius:999px;
  background:rgba(70,200,140,.16);color:#7ee0b0;border:1px solid rgba(70,200,140,.3);
}
.donation-status.closed,.donation-status.Closed{background:rgba(255,255,255,.08);color:var(--tec-dim);border-color:var(--tec-line-soft)}
.donation-meta b{color:var(--tec-text)}
.donation-disclaimer{
  background:linear-gradient(120deg,rgba(217,164,65,.08),rgba(255,255,255,.02));
  border:1px solid var(--tec-line);border-radius:var(--tec-r);padding:14px 16px;color:var(--tec-dim);
}

/* ============================================================
   CONTACT  (.contact-card-new)
   ============================================================ */
.contact-card-new{
  background:linear-gradient(160deg,var(--tec-ink-2),var(--tec-ink-1)) !important;
  border:1px solid var(--tec-line-soft) !important;border-radius:var(--tec-r-lg) !important;
  transition:.5s var(--tec-ease) !important;position:relative;overflow:hidden;
}
.contact-card-new:hover{transform:translateY(-6px);border-color:var(--tec-line) !important;box-shadow:var(--tec-shadow)}
.contact-card-new h2{font-family:var(--tec-disp);font-weight:600}
.contact-card-new a{color:var(--tec-gold)}

/* ============================================================
   GLASS / DETAILS GLOW (existing .details-glow, .payment-glow)
   ============================================================ */
.details-glow,.payment-glow{
  background:radial-gradient(60% 50% at 50% 0,rgba(217,164,65,.22),transparent 60%) !important;
  animation:tec-glow 6s var(--tec-ease) infinite alternate;
}
.details-hero-frame{border:1px solid var(--tec-line);border-radius:var(--tec-r-lg);background:linear-gradient(160deg,var(--tec-ink-2),var(--tec-ink-1))}

/* ============================================================
   SUCCESS animation (success.html)
   ============================================================ */
.tec-success-ring{
  width:84px;height:84px;border-radius:50%;margin:0 auto 18px;position:relative;
  background:radial-gradient(circle,var(--tec-gold-bright),var(--tec-gold) 60%,var(--tec-gold-deep));
  box-shadow:0 0 40px -6px var(--tec-gold);
  animation:tec-pop .6s var(--tec-ease-out) both;
}
@keyframes tec-pop{0%{transform:scale(.4);opacity:0}60%{transform:scale(1.12)}100%{transform:scale(1);opacity:1}}

/* ============================================================
   LOADING SKELETON (class .tec-skeleton for any placeholder)
   ============================================================ */
.tec-skeleton{
  background:linear-gradient(100deg,#15161f 30%,#1d1f2b 50%,#15161f 70%);
  background-size:200% 100%;animation:tec-sk 1.4s linear infinite;border-radius:var(--tec-r);
}
@keyframes tec-sk{to{background-position:-200% 0}}

/* ============================================================
   ACCESSIBILITY / PERFORMANCE
   ============================================================ */
:focus-visible{outline:2px solid var(--tec-gold);outline-offset:2px;border-radius:4px}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001s !important;animation-iteration-count:1 !important;
    transition-duration:.12s !important;scroll-behavior:auto !important;
  }
  .tec-rise{opacity:1 !important;transform:none !important}
  .hero-content .eyebrow,.hero-content .hero-title,.hero-content .hero-text,.hero-content .hero-actions{opacity:1 !important;animation:none !important}
}

/* ####################################################################
   TEC — AUTHORITATIVE MOVIE CARD MODULE (loaded LAST, overrides all)
   Placed in tec-premium.css because it is the last stylesheet the
   homepage loads, so these rules win over style.css / tec-design-system.css /
   luxury-ui.css / mobile-menu-fix.css. Scoped to .tec-premium-show-card and
   the homepage rail grids so nothing else is affected.
   #################################################################### */

/* =====================================================================
   TEC — MOVIE CARD MODULE (single source of truth)
   Reference screenshot is the source of truth. Equal-height cards,
   identical posters, 3-line clamped synopsis, bottom-aligned buttons.
   Breakpoints (mobile-first priority, desktop must not override mobile):
     base            -> shared card structure
     >=1024px        -> desktop
     768px..1023px   -> tablet
     <=767px         -> MOBILE (written LAST so it always wins)
   ===================================================================== */

/* ---- Grid: every card in a row shares the tallest card's height ---- */
.tec-rail-section .card-grid,
#comingSoonGrid.card-grid,
#featuredGrid.card-grid,
#screenedGrid.card-grid,
#eventsGrid.card-grid,
#listingGrid.card-grid{
  display:grid !important;
  align-items:stretch !important;
  grid-auto-rows:1fr !important;
}

/* ---- Card shell: vertical flex so buttons pin to the bottom ---- */
.show-card.tec-premium-show-card{
  display:flex !important;
  flex-direction:column !important;
  height:100% !important;
  min-height:0 !important;
  min-width:0 !important;
  border-radius:16px !important;
  overflow:hidden !important;
}

/* ---- Poster: identical size + ratio on every card ---- */
.show-card.tec-premium-show-card .tec-poster-wrap{
  width:100% !important;
  flex:0 0 auto !important;
  aspect-ratio:2 / 3 !important;
  padding:0 !important;
  margin:0 !important;
  border-radius:0 !important;
  overflow:hidden !important;
  background:#111 !important;
}
.show-card.tec-premium-show-card .tec-poster-wrap img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;      /* never stretch/squash; fills identically */
  object-position:center top !important;
  aspect-ratio:2 / 3 !important;
  display:block !important;
}

/* ---- Info column grows so actions can pin to the bottom ---- */
.show-card.tec-premium-show-card .show-info{
  display:flex !important;
  flex-direction:column !important;
  flex:1 1 auto !important;
  gap:8px !important;
  padding:14px !important;
  min-width:0 !important;
}
.show-card.tec-premium-show-card .badge.movie-status{ align-self:flex-start !important; }

/* ---- Title: up to 2 lines, identical alignment ---- */
.show-card.tec-premium-show-card .tec-card-title{
  margin:6px 0 2px !important;
  font-weight:600 !important;
  line-height:1.2 !important;
  color:#fff !important;
  display:-webkit-box !important;
  -webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical !important;
  overflow:hidden !important;
}

/* ---- Badges: same styling, wrap cleanly, never overflow ---- */
.show-card.tec-premium-show-card .tec-card-tags{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:6px !important;
  margin:2px 0 !important;
  min-width:0 !important;
}
.show-card.tec-premium-show-card .tec-card-tag{
  display:inline-flex !important;
  align-items:center !important;
  max-width:100% !important;
  padding:4px 10px !important;
  border:1px solid rgba(244,180,62,.45) !important;
  border-radius:999px !important;
  line-height:1.2 !important;
  color:#f4d38b !important;
  background:rgba(244,180,62,.06) !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
}

/* ---- Synopsis: EXACTLY 3 lines with ellipsis, equal across cards ---- */
.show-card.tec-premium-show-card .tec-card-tagline{
  margin:4px 0 2px !important;
  line-height:1.5 !important;
  color:rgba(247,243,234,.72) !important;
  display:-webkit-box !important;
  -webkit-line-clamp:3 !important;
  -webkit-box-orient:vertical !important;
  overflow:hidden !important;
  white-space:normal !important;
}
.show-card.tec-premium-show-card .tec-card-when{
  margin:2px 0 0 !important;
  color:rgba(247,243,234,.82) !important;
}

/* ---- Buttons: identical size, stacked, pinned to the bottom ---- */
.show-card.tec-premium-show-card .show-actions{
  margin-top:auto !important;
  padding-top:12px !important;
  display:flex !important;
  flex-direction:column !important;
  gap:10px !important;
}
.show-card.tec-premium-show-card .show-actions a,
.tec-rail-section .show-card.tec-premium-show-card .show-actions a:first-child{
  display:flex !important;
}
.show-card.tec-premium-show-card .show-actions .tec-action-details{ order:-1 !important; }
.show-card.tec-premium-show-card .show-actions a,
.show-card.tec-premium-show-card .show-actions button{
  width:100% !important;
  min-height:46px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  box-sizing:border-box !important;
}

/* ============================ DESKTOP >=1024px ============================ */
@media (min-width:1024px){
  .tec-rail-section .card-grid,
  #comingSoonGrid.card-grid,
  #featuredGrid.card-grid,
  #screenedGrid.card-grid,
  #eventsGrid.card-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:20px !important;
  }
  .show-card.tec-premium-show-card .tec-card-title{ font-size:18px !important; }
  .show-card.tec-premium-show-card .tec-card-tag{ font-size:12px !important; }
  .show-card.tec-premium-show-card .tec-card-tagline{ font-size:14px !important; }
  .show-card.tec-premium-show-card .tec-card-when{ font-size:13px !important; }
  .show-card.tec-premium-show-card .show-actions a,
  .show-card.tec-premium-show-card .show-actions button{ font-size:14px !important; }
}

/* ============================ TABLET 768-1023px =========================== */
@media (min-width:768px) and (max-width:1023px){
  .tec-rail-section .card-grid,
  #comingSoonGrid.card-grid,
  #featuredGrid.card-grid,
  #screenedGrid.card-grid,
  #eventsGrid.card-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:16px !important;
  }
  .show-card.tec-premium-show-card .tec-card-title{ font-size:17px !important; }
  .show-card.tec-premium-show-card .tec-card-tag{ font-size:12px !important; }
  .show-card.tec-premium-show-card .tec-card-tagline{ font-size:13.5px !important; }
  .show-card.tec-premium-show-card .show-actions a,
  .show-card.tec-premium-show-card .show-actions button{ font-size:13.5px !important; }
}

/* ===================== MOBILE <=767px  (HIGHEST PRIORITY) ================= */
/* Written LAST so nothing above can override the approved mobile design. */
@media (max-width:767px){
  /* Two equal columns, equal gaps, equal heights. */
  .tec-rail-section .card-grid,
  #comingSoonGrid.card-grid,
  #featuredGrid.card-grid,
  #screenedGrid.card-grid,
  #eventsGrid.card-grid,
  #listingGrid.card-grid{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:14px !important;
    align-items:stretch !important;
    grid-auto-rows:1fr !important;
  }
  /* Force vertical card (never the old horizontal 112px split). */
  .show-card.tec-premium-show-card{
    display:flex !important;
    flex-direction:column !important;
    grid-template-columns:none !important;
    height:100% !important;
    border-radius:16px !important;
  }
  /* Identical posters: same 2:3 box, cover-filled, never stretched. */
  .show-card.tec-premium-show-card .tec-poster-wrap,
  .show-card.tec-premium-show-card .tec-poster-wrap img{
    width:100% !important;
    aspect-ratio:2 / 3 !important;
    height:auto !important;
  }
  .show-card.tec-premium-show-card .tec-poster-wrap img{
    height:100% !important;
    object-fit:cover !important;
    object-position:center top !important;
  }
  .show-card.tec-premium-show-card .show-info{ padding:13px !important; gap:7px !important; }
  .show-card.tec-premium-show-card .tec-card-title{ font-size:16px !important; -webkit-line-clamp:2 !important; }
  .show-card.tec-premium-show-card .tec-card-tag{ font-size:11.5px !important; padding:3px 9px !important; }
  .show-card.tec-premium-show-card .tec-card-tagline{ font-size:13px !important; -webkit-line-clamp:3 !important; }
  .show-card.tec-premium-show-card .tec-card-when{ font-size:12px !important; }
  /* Buttons: identical width/height, stacked, bottom-aligned. */
  .show-card.tec-premium-show-card .show-actions{
    display:flex !important;
    flex-direction:column !important;
    gap:9px !important;
    grid-column:auto !important;
  }
  .show-card.tec-premium-show-card .show-actions a,
  .show-card.tec-premium-show-card .show-actions button{
    width:100% !important;
    min-height:44px !important;
    font-size:13px !important;
  }
}
