/* ==========================================================================
   Aniradichita Theatre & Films Association — Events pages
   Used by: events.html, event.html  (loaded after style.css)

   Builds on the shared tokens in style.css (--red, --gold, --card, --border…)
   and adds the cinematic accents taken from the Sunday Decodes artwork:
   warm marquee bulbs, neon red, cream marquee-board panels.
   ========================================================================== */

.ev-page{
  --neon:#ff5348;
  --cream:#f6ecd6;
  --ink:#1a1210;
  --gold-soft:rgba(242,169,59,.28);
  --red-soft:rgba(230,57,70,.28);
  --red-text:#ff6b63;      /* red for small text on dark: 5.9:1 (brand --red is ~4:1) */
  --red-solid:#c8202f;     /* red behind white text: 5.3:1 */
}
.ev-page .sec-label{color:var(--red-text);}
:where(.ev-page) section{padding:0;}         /* neutralise the global 80px section rule (zero specificity); spacing is set per block */
.ev-page [hidden]{display:none !important;}
.ev-page .ev-block{padding:72px 0 8px;}
.ev-page :focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:4px;}

@media (min-width:1600px){
  .ev-page .container{max-width:1440px;}
}

/* ══ PAGE HERO ══ */
.ev-hero{
  position:relative;padding:150px 0 78px;overflow:hidden;border-bottom:1px solid var(--border);
  background:
    radial-gradient(60% 90% at 82% -10%,var(--red-soft),transparent 62%),
    radial-gradient(45% 70% at 8% 110%,rgba(242,169,59,.13),transparent 62%),
    linear-gradient(180deg,#09090a,var(--blk));
}
.ev-hero::after{                                /* row of marquee bulbs */
  content:'';position:absolute;left:0;right:0;bottom:22px;height:12px;pointer-events:none;
  background:radial-gradient(circle,#ffd27a 0 3px,rgba(242,169,59,.0) 4.5px) 0 50%/30px 12px repeat-x;
  filter:drop-shadow(0 0 5px rgba(242,169,59,.85));opacity:.9;
  animation:ev-bulbs 2.6s steps(1) infinite;
}
@keyframes ev-bulbs{0%,100%{opacity:.95;}50%{opacity:.6;}}
.ev-hero .sec-label{display:inline-flex;align-items:center;gap:10px;}
.ev-hero .sec-label::before{content:'';width:28px;height:2px;background:var(--red);box-shadow:0 0 10px var(--red);}
.ev-hero h1{
  font-size:clamp(3rem,10vw,6.4rem);font-weight:900;line-height:.95;letter-spacing:.02em;text-transform:uppercase;margin:14px 0 20px;
  color:#ffe6df;text-shadow:0 0 6px rgba(255,83,72,.95),0 0 26px rgba(230,57,70,.65),0 0 60px rgba(230,57,70,.35);
}
.ev-hero p{color:#c9c9c9;max-width:640px;font-size:1.05rem;}
.ev-hero-links{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px;}

/* ══ SECTION HEADERS ══ */
.ev-block-hd{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:28px;}
.ev-block-hd h2{font-size:clamp(1.6rem,4vw,2.3rem);font-weight:900;text-transform:uppercase;letter-spacing:.02em;}
.ev-block-hd h2 em{font-style:normal;color:var(--red);}
.ev-block-count{color:#aaa;font-size:.85rem;}
.ev-block-hd .sec-label{margin-bottom:6px;}

/* ══ STATUS PILL / TYPE ══ */
.ev-status-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:14px;}
.ev-status{display:inline-flex;align-items:center;gap:8px;padding:6px 13px;border-radius:999px;font-size:.72rem;font-weight:800;letter-spacing:.9px;text-transform:uppercase;border:1px solid;}
.ev-status-dot{width:8px;height:8px;border-radius:50%;background:currentColor;display:inline-block;}
.ev-status.is-upcoming{color:var(--gold);border-color:rgba(242,169,59,.55);background:rgba(242,169,59,.1);}
.ev-status.is-live{color:#fff;border-color:var(--red-solid);background:var(--red-solid);}
.ev-status.is-past{color:#b9b9b9;border-color:var(--border);background:rgba(255,255,255,.05);}
.ev-status.is-upcoming .ev-status-dot,.ev-status.is-live .ev-status-dot{animation:ev-pulse 1.5s infinite;}
@keyframes ev-pulse{0%,100%{opacity:1;box-shadow:0 0 0 0 currentColor;}50%{opacity:.45;}}
.ev-type{font-size:.74rem;font-weight:700;letter-spacing:.8px;text-transform:uppercase;color:#cfcfcf;}

/* ══ FEATURED EVENT ══ */
.ev-feature-wrap{margin-bottom:28px;}
.ev-feature{
  position:relative;display:grid;grid-template-columns:minmax(0,430px) minmax(0,1fr);gap:clamp(24px,4.5vw,64px);align-items:center;
  padding:clamp(18px,3.2vw,40px);border-radius:22px;border:1px solid rgba(242,169,59,.28);overflow:hidden;
  background:
    radial-gradient(70% 90% at 100% 0%,rgba(230,57,70,.22),transparent 60%),
    linear-gradient(160deg,#1d1314,#141414 62%);
  box-shadow:0 40px 90px -40px rgba(230,57,70,.55),inset 0 0 0 1px rgba(255,255,255,.03);
}
.ev-poster{display:block;position:relative;border-radius:14px;overflow:hidden;aspect-ratio:2/3;background:#000;
  box-shadow:0 0 0 1px rgba(242,169,59,.4),0 0 0 6px rgba(0,0,0,.35),0 0 46px rgba(230,57,70,.4);transition:transform .35s,box-shadow .35s;}
a.ev-poster:hover{transform:translateY(-4px) scale(1.01);box-shadow:0 0 0 1px rgba(242,169,59,.7),0 0 0 6px rgba(0,0,0,.35),0 0 64px rgba(230,57,70,.55);}
.ev-poster img{width:100%;height:100%;object-fit:cover;}
.ev-feature-title{font-size:clamp(2.3rem,6vw,4.2rem);font-weight:900;line-height:1;text-transform:uppercase;letter-spacing:.01em;margin-bottom:10px;}
.ev-tagline{font-size:clamp(1.05rem,2vw,1.3rem);color:var(--cream);font-style:italic;margin-bottom:22px;max-width:34ch;}
.ev-feature-desc{color:#c7c7c7;max-width:58ch;margin:0 0 26px;}

/* date "ticket" */
.ev-datebox{display:flex;align-items:center;gap:18px;margin-bottom:22px;flex-wrap:wrap;}
.ev-datebox-cal{width:88px;flex-shrink:0;text-align:center;background:var(--cream);color:var(--ink);border-radius:10px;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.5);}
.ev-datebox-cal span:first-child{display:block;background:#b3202d;color:#fff;font-size:.72rem;font-weight:800;letter-spacing:1.4px;text-transform:uppercase;padding:5px 0;}
.ev-datebox-cal b{display:block;font-size:2.4rem;line-height:1.05;font-weight:900;padding-top:4px;}
.ev-datebox-cal span:last-child{display:block;font-size:.72rem;font-weight:700;padding-bottom:6px;color:#5a4a44;}
.ev-datebox-text{display:flex;flex-direction:column;gap:2px;}
.ev-datebox-long{font-size:1.15rem;font-weight:700;}
.ev-datebox-short{font-size:1.9rem;font-weight:900;letter-spacing:.14em;color:var(--gold);text-shadow:0 0 18px rgba(242,169,59,.35);}
.ev-datebox-time{color:#bbb;font-size:.9rem;}

/* countdown */
.ev-countdown{display:flex;align-items:stretch;gap:10px;flex-wrap:wrap;margin-bottom:24px;}
.ev-cd-unit{min-width:74px;text-align:center;background:rgba(0,0,0,.45);border:1px solid var(--border);border-radius:10px;padding:10px 12px;}
.ev-cd-num{display:block;font-size:1.9rem;font-weight:900;color:var(--gold);font-variant-numeric:tabular-nums;line-height:1.1;}
.ev-cd-lbl{display:block;font-size:.66rem;letter-spacing:1.2px;text-transform:uppercase;color:#aaa;margin-top:2px;}
.ev-cd-note{align-self:center;color:#aaa;font-size:.85rem;margin:0 0 0 4px;}
.ev-countdown[hidden]{display:none;}

/* CTAs */
.ev-cta-row{display:flex;flex-wrap:wrap;gap:12px;}
.ev-ticket-btn{font-size:.95rem;padding:15px 26px;background:var(--red-solid);box-shadow:0 10px 30px -8px rgba(230,57,70,.7);}
.ev-ticket-btn:hover{background:#ad1a27;}
.ev-ticket-btn[aria-disabled="true"]{background:transparent;color:var(--gold);border:1px dashed rgba(242,169,59,.7);box-shadow:none;cursor:not-allowed;}
.ev-ticket-btn[aria-disabled="true"]:hover{transform:none;background:rgba(242,169,59,.06);}
.ev-share-status{min-height:1.4em;margin-top:10px;font-size:.85rem;color:var(--gold);}
.ev-follow{display:inline-block;margin-top:10px;color:#d9d9d9;font-size:.9rem;border-bottom:1px solid var(--gold-soft);}
.ev-follow:hover{color:var(--gold);border-color:var(--gold);}

/* ══ PANELS (ticket info / details) ══ */
.ev-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:20px;}
.ev-panel{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:26px;}
.ev-ticket-panel{background:linear-gradient(160deg,rgba(242,169,59,.09),var(--card) 55%);border-color:rgba(242,169,59,.3);}
.ev-panel h2,.ev-panel h3{font-size:.8rem;font-weight:800;letter-spacing:1.6px;text-transform:uppercase;color:var(--gold);margin-bottom:14px;}
.ev-panel-cta{margin-top:20px;}
.ev-note{color:#bbb;font-size:.88rem;margin-top:12px;}
.ev-dl{margin:0;}
.ev-dl-row{display:grid;grid-template-columns:132px minmax(0,1fr);gap:14px;padding:11px 0;border-bottom:1px solid var(--border);}
.ev-dl-row:last-child{border-bottom:0;padding-bottom:0;}
.ev-dl dt{color:#9a9a9a;font-size:.78rem;font-weight:700;letter-spacing:.5px;text-transform:uppercase;padding-top:2px;}
.ev-dl dd{margin:0;color:#eee;font-size:.94rem;overflow-wrap:anywhere;}
.ev-tba{color:#bdbdbd;font-style:italic;}
.ev-dim{color:#9a9a9a;}
.ev-fine{display:block;margin-top:4px;color:#9a9a9a;font-size:.78rem;line-height:1.4;}
.ev-people{list-style:none;display:grid;gap:8px;}
.ev-people b{display:block;}
.ev-people span{display:block;color:#a9a9a9;font-size:.84rem;}

/* ══ EVENT GRID + CARDS ══ */
.ev-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:22px;}
.ev-card{position:relative;display:flex;flex-direction:column;background:var(--card);border:1px solid var(--border);border-radius:14px;overflow:hidden;transition:transform .25s,border-color .25s,box-shadow .25s;}
.ev-card:hover{transform:translateY(-4px);border-color:var(--red);box-shadow:0 18px 40px -22px rgba(230,57,70,.7);}
.ev-card.is-live-card{border-color:rgba(242,169,59,.35);}
.ev-card-media{position:relative;aspect-ratio:16/10;background:#0c0c0c;overflow:hidden;}
.ev-card-media::after{content:'';position:absolute;inset:auto 0 0 0;height:45%;background:linear-gradient(to top,rgba(20,20,20,.85),transparent);pointer-events:none;}
.ev-card-media img{width:100%;height:100%;object-fit:cover;transition:transform .4s;}
.ev-card:hover .ev-card-media img{transform:scale(1.05);}
.ev-card-badge{position:absolute;top:12px;left:12px;z-index:2;}
.ev-card-fallback{display:grid;place-items:center;width:100%;height:100%;min-height:120px;font-size:3rem;background:radial-gradient(circle at 50% 40%,rgba(230,57,70,.35),#141414 70%);}
.ev-card-body{display:flex;flex-direction:column;gap:8px;padding:18px 18px 20px;flex:1;}
.ev-card-meta{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:6px 12px;}
.ev-card-meta .ev-type{color:var(--red-text);}
.ev-date{font-size:.8rem;color:#b5b5b5;}
.ev-card-title{font-size:1.08rem;line-height:1.3;font-weight:800;}
.ev-card-link{color:#fff;}
.ev-card-link::after{content:'';position:absolute;inset:0;z-index:1;border-radius:14px;}   /* whole card is the click target */
.ev-card-link:focus-visible{outline:none;}
.ev-card-link:focus-visible::after{outline:2px solid var(--gold);outline-offset:-2px;}
.ev-card-desc{color:#a9a9a9;font-size:.88rem;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.ev-card-more{margin-top:auto;padding-top:6px;color:var(--gold);font-size:.82rem;font-weight:800;letter-spacing:.4px;}
.ev-card-more i{font-style:normal;display:inline-block;transition:transform .2s;}
.ev-card:hover .ev-card-more i{transform:translateX(4px);}

/* ══ FILTER CHIPS ══ */
.ev-filters{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px;}
.ev-chip{background:var(--card);border:1px solid var(--border);border-radius:999px;padding:9px 16px;font-size:.82rem;color:#ddd;transition:background .2s,border-color .2s;}
.ev-chip:hover{border-color:#555;}
.ev-chip[aria-pressed="true"]{background:var(--red-solid);border-color:var(--red-solid);color:#fff;}
.ev-chip-n{opacity:.7;font-size:.74rem;margin-left:4px;}
.ev-past-status{color:#9a9a9a;font-size:.85rem;margin-bottom:22px;}
.ev-more-wrap{text-align:center;margin-top:34px;}

/* ══ EMPTY STATE ══ */
.ev-empty{text-align:center;padding:56px 24px;border:1px dashed #3a3a3a;border-radius:18px;background:rgba(255,255,255,.02);}
.ev-empty h1,.ev-empty h3{font-size:1.5rem;margin-bottom:8px;}
.ev-empty p{color:#aaa;max-width:520px;margin:0 auto 14px;}
.ev-empty a:not(.btn){color:var(--gold);border-bottom:1px solid var(--gold-soft);}
.ev-empty-marquee{display:flex;justify-content:center;gap:16px;margin-bottom:20px;}
.ev-empty-marquee span{width:10px;height:10px;border-radius:50%;background:#3b3020;box-shadow:inset 0 0 0 1px #4a3d28;}

/* ══ DETAIL PAGE ══ */
.ev-detail-page{padding-top:110px;padding-bottom:40px;}
.ev-page nav.ev-crumbs{position:static;width:auto;padding:0;background:none;z-index:auto;margin-bottom:22px;}   /* undo the global fixed site-nav rule */
.ev-crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:8px;font-size:.85rem;color:#9a9a9a;}
.ev-crumbs li+li::before{content:'/';margin-right:8px;color:#555;}
.ev-crumbs a{color:#ccc;border-bottom:1px solid transparent;}
.ev-crumbs a:hover{color:var(--gold);border-color:var(--gold);}
.ev-crumbs li[aria-current]{color:#eee;overflow-wrap:anywhere;}
.ev-detail-hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:clamp(22px,4vw,56px);align-items:center;margin-bottom:44px;}
.ev-detail-cover{margin:0;border-radius:16px;overflow:hidden;border:1px solid var(--border);background:#0b0b0b;box-shadow:0 30px 70px -40px rgba(230,57,70,.5);}
.ev-detail-cover img{width:100%;max-height:560px;aspect-ratio:4/3;object-fit:contain;background:#0b0b0b;}
.ev-detail-head .ev-feature-title{font-size:clamp(1.9rem,4.5vw,3rem);text-transform:none;line-height:1.08;}
.ev-detail-when{font-size:1.05rem;margin-bottom:6px;}
.ev-date-lg{font-weight:800;color:var(--gold);}
.ev-detail-where{color:#ccc;margin-bottom:14px;}
.ev-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:clamp(24px,4vw,56px);align-items:start;margin-top:36px;}
.ev-detail-aside{display:grid;gap:20px;position:sticky;top:90px;}
.ev-detail-aside .ev-info-grid{grid-template-columns:1fr;margin-top:0;}
.ev-section{margin-bottom:40px;}
.ev-section h2{font-size:1.35rem;font-weight:800;margin-bottom:16px;}
.ev-section p{color:#cfcfcf;margin-bottom:14px;max-width:72ch;}
.ev-source p{color:#aaa;font-size:.88rem;margin-bottom:10px;}
.ev-source a{color:var(--gold);border-bottom:1px solid var(--gold-soft);}
.ev-source ul{list-style:none;display:grid;gap:6px;}
.ev-related{padding-top:56px;margin-top:20px;border-top:1px solid var(--border);}
.ev-related h2{font-size:1.4rem;font-weight:800;margin-bottom:22px;}

/* gallery */
.ev-gallery{list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;}
.ev-thumb{display:block;width:100%;aspect-ratio:1/1;border-radius:10px;overflow:hidden;background:#0c0c0c;border:1px solid var(--border);}
.ev-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .3s;}
.ev-thumb:hover img{transform:scale(1.07);}

/* video (click-to-load) */
.ev-videos{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:14px;}
.ev-video,.ev-video-frame{position:relative;display:block;width:100%;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:radial-gradient(circle,#2a1416,#0b0b0b);border:1px solid var(--border);}
.ev-video img{width:100%;height:100%;object-fit:cover;opacity:.75;}
.ev-video-play{position:absolute;inset:0;display:grid;place-items:center;font-size:2.4rem;color:#fff;text-shadow:0 0 20px rgba(0,0,0,.8);}
.ev-video-play::before{content:'';position:absolute;width:72px;height:72px;border-radius:50%;background:rgba(230,57,70,.9);z-index:-1;box-shadow:0 0 30px rgba(230,57,70,.6);}
.ev-video:hover .ev-video-play::before{background:var(--red);}

/* lightbox */
.ev-lightbox{border:0;padding:0;background:transparent;max-width:100vw;max-height:100vh;width:100vw;height:100vh;color:#fff;}
.ev-lightbox[open]{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:56px 12px 20px;}
.ev-lightbox::backdrop{background:rgba(0,0,0,.9);}
.ev-lightbox figure{margin:0;text-align:center;min-width:0;}
.ev-lightbox img{max-width:100%;max-height:78vh;margin:0 auto;object-fit:contain;border-radius:8px;}
.ev-lightbox figcaption{margin-top:10px;color:#bbb;font-size:.85rem;}
.ev-lb-close{position:absolute;top:14px;right:16px;width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.12);font-size:1.1rem;}
.ev-lb-nav{width:48px;height:48px;border-radius:50%;background:rgba(255,255,255,.12);font-size:1.8rem;line-height:1;}
.ev-lb-close:hover,.ev-lb-nav:hover{background:rgba(255,255,255,.24);}

/* ══ RESPONSIVE ══ */
@media (max-width:1024px){
  .ev-detail-grid{grid-template-columns:1fr;}
  .ev-detail-aside{position:static;}
  .ev-detail-aside .ev-info-grid{grid-template-columns:1fr;}
}
@media (max-width:900px){
  .ev-feature{grid-template-columns:1fr;}
  .ev-poster{max-width:400px;width:100%;margin:0 auto;}
  .ev-info-grid{grid-template-columns:1fr;}
  .ev-detail-hero{grid-template-columns:1fr;}
}
@media (max-width:640px){
  .ev-hero{padding:120px 0 64px;}
  .ev-page .ev-block{padding-top:52px;}
  .ev-dl-row{grid-template-columns:1fr;gap:2px;}
  .ev-cta-row .btn{flex:1 1 100%;justify-content:center;}
  .ev-cd-unit{min-width:0;flex:1;}
  .ev-datebox-cal{width:78px;}
  .ev-lightbox[open]{grid-template-columns:1fr;grid-template-rows:1fr auto;}
  .ev-lb-prev,.ev-lb-next{position:absolute;bottom:18px;}
  .ev-lb-prev{left:16px;}
  .ev-lb-next{right:16px;}
}

/* ══ REDUCED MOTION ══ */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  .ev-hero::after,.ev-status-dot{animation:none;}
  .ev-card,.ev-card-media img,.ev-poster,.ev-thumb img,.ev-card-more i{transition:none;}
  .ev-card:hover,a.ev-poster:hover{transform:none;}
  .ev-card:hover .ev-card-media img,.ev-thumb:hover img{transform:none;}
}
