/* ==========================================================================
   CCU — Cashify Comedy Universe
   Desktop reference: 1920 canvas, 1280 content column, 4-column grid
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg-dark: #000205;          /* black sections + hero */
  --bg-teal: #012923;          /* dark teal sections + shows strip */
  --teal: #75eedd;             /* card border (Cashify cyan) */
  --teal-brand: #5fbfab;       /* header Login / chat card */
  --teal-brand-dark: #4aa896;
  --yellow: #ffe234;           /* CTA yellow seen in banners */
  --white: #ffffff;
  --text-muted: rgba(255, 255, 255, .72);

  --footer-bg: #f7f7f7;
  --footer-heading: #6b6b6b;
  --footer-link: #222222;
  --footer-line: #e3e3e3;

  --font-display: "Mickies", "Luckiest Guy", "Impact", "Arial Black", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1280px;
  --gutter: 16px;              /* grid gap */
  --row-gap: 48px;             /* space between rows/banners */
  --radius-card: 14px;
  --radius-banner: 16px;
  --header-h: 100px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@font-face {
  font-family: "Mickies";
  src: url("assets/fonts/Mickies.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--white);
  background: var(--bg-dark);
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 1321px) { .container { padding: 0; } }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  color: #111;
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 2px 14px rgba(0, 0, 0, .18); }
.header-inner {
/*  max-width: 1600px;*/
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo img { width: 168px; height: auto; }
.header-nav { display: flex; align-items: center; gap: 28px; }

.location-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: #111;
  min-height: 44px;
}
.location-btn .chev { opacity: .7; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 26px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  transition: background .15s;
}
.btn-login { background: var(--teal-brand); color: var(--white); min-width: 120px; }
.btn-login:hover { background: var(--teal-brand-dark); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { background: var(--bg-dark); }
/*
.hero-img {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  aspect-ratio: 1920 / 691;
  object-fit: cover;
  object-position: center;
}
*/
.hero-video {
  display: block;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  aspect-ratio: 1920 / 691;
  object-fit: cover;
  object-position: center;
  background: var(--bg-dark);
}

/* ==========================================================================
   SHOW BADGES — rotating bulb ring + logo disc + wiggling host face
   ========================================================================== */
.shows { background: var(--bg-teal); padding: 40px 0 60px; }
.shows-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 56px 44px;
}
.shows-grid li { flex: 0 0 auto; }

.show-badge {
  --badge: 240px;
  position: relative;
  display: block;
  width: var(--badge);
  height: var(--badge);
  margin-top: calc(var(--badge) * .32);   /* room for the face above the ring */
  border-radius: 50%;
}
.badge-ring {
  position: absolute; inset: 0;
  animation: ring-spin 28s linear infinite;
  will-change: transform;
}
.badge-ring svg { width: 100%; height: 100%; }
.badge-disc {
  position: absolute; inset: 15%;
  border-radius: 50%;
  background: var(--white);
  overflow: hidden;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 4px #062a25;
}
.badge-disc img { width: 100%; height: 100%; object-fit: cover; }
.badge-name {
  padding: 12px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  color: #062a25;
}
.badge-face {
  position: absolute;
  left: 50%;
  bottom: 75%;
  width: 50%;
  height: auto;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  animation: face-wiggle 2.6s ease-in-out infinite;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45));
  pointer-events: none;
}
.show-badge:hover .badge-ring { animation-duration: 6s; }
.show-badge:hover .badge-face { animation-duration: 1s; }

@keyframes ring-spin { to { transform: rotate(360deg); } }
@keyframes face-wiggle {
  0%, 100% { transform: translateX(-50%) rotate(-7deg); }
  50%      { transform: translateX(-50%) rotate(7deg); }
}

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--teal-brand);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .2s, transform .2s, visibility .2s, background .15s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--teal-brand-dark); }
body.modal-open .back-to-top { opacity: 0; visibility: hidden; }

/* ==========================================================================
   SHOW SECTIONS
   ========================================================================== */
.show-section { padding: 96px 0 104px; }
.show-section.theme-dark { background: var(--bg-dark); }
.show-section.theme-teal { background: var(--bg-teal); }

.show-header { margin-bottom: 48px; }
.show-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 1px 1px 0 rgba(53, 250, 222, 1), 6px 6px 18px rgba(0, 0, 0, .6);
}
.show-host {
  margin-top: 14px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.show-host span { font-weight: 300; margin-right: 6px; }

/* ---------- Rows & grid ---------- */
.row { display: grid; gap: var(--gutter); margin-bottom: var(--row-gap); }
.row:last-child { margin-bottom: 0; }
.row-small { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row-large {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.row-large .video-card { flex: 0 0 calc((100% - var(--gutter)) / 2); }

/* ---------- Video card ---------- */
.video-card {
  display: block;
  width: 100%;
  text-align: left;
  border-radius: var(--radius-card);
}
.video-card .thumb {
  position: relative;
  display: block;
  aspect-ratio: var(--ratio, 16 / 9);
  border-radius: var(--radius-card);
  border: 1px solid var(--teal);
  overflow: hidden;
  background: #0b1a18;
  transition: transform .18s ease, box-shadow .18s ease;
}
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-card:hover .thumb,
.video-card:focus-visible .thumb {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(117, 238, 221, .18);
}
.play {
  position: absolute;
  left: 50%; top: 50%;
  width: 22%;
  max-width: 72px;
  min-width: 40px;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .18s;
  pointer-events: none;
}
.video-card:hover .play,
.video-card:focus-visible .play,
.video-card[data-play="always"] .play { opacity: 1; }
.card-title {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

/* ---------- Banner ---------- */
.banner {
  display: block;
  margin-bottom: var(--row-gap);
  border-radius: var(--radius-banner);
  overflow: hidden;
  aspect-ratio: var(--ratio, 1280 / 230);
  background: #0b1a18;
  transition: transform .18s ease;
}
.banner:last-child { margin-bottom: 0; }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner:hover { transform: translateY(-2px); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--footer-bg); color: var(--footer-link); font-size: 14px; }
.footer-top {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  padding: 88px 0 56px;
}
.footer-brand img { width: 220px; }
.follow-label { margin: 40px 0 14px 24px; font-weight: 600; color: #444; font-size: 15px; }
.social { display: flex; gap: 12px; margin-left: 24px; }
.social a {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #4a4a4a;
  color: var(--white);
}
.social svg { width: 22px; height: 22px; fill: currentColor; }
.social a:hover { background: var(--teal-brand); }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}
.footer-col h3 { font-size: 16px; font-weight: 600; color: var(--footer-heading); margin-bottom: 26px; }
.footer-col ul { display: grid; gap: 12px; padding-left: 12px; }
.footer-col a { display: inline-block; padding: 3px 0; line-height: 1.4; }
.footer-col a:hover { color: var(--teal-brand-dark); text-decoration: underline; }

.chat-card {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #6fd0bb;
  color: var(--white);
  max-width: 300px;
}
.chat-icon svg { width: 34px; height: 34px; }
.chat-text { display: grid; line-height: 1.3; }
.chat-text strong { font-size: 16px; }
.chat-text small { font-size: 13px; opacity: .95; }

.footer-legal { border-top: 1px solid var(--footer-line); }
.footer-legal-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
  padding: 32px 0 36px;
}
.legal-text { font-size: 12.5px; line-height: 1.55; color: #333; max-width: 760px; }
.legal-text p + p { margin-top: 10px; }
.legal-label { color: #555; margin-bottom: 20px !important; }

.guarantee-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: var(--white);
}
.guarantee-seal { flex: 0 0 76px; width: 76px; color: #222; }
.guarantee-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: #111; }
.guarantee-card p { font-size: 12.5px; color: #444; line-height: 1.45; }

.copyright { border-top: 1px solid var(--footer-line); padding: 20px 0 22px; font-size: 13px; color: #333; }

/* ==========================================================================
   VIDEO MODAL
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  transition: opacity .2s;
}
.modal.is-open { opacity: 1; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .86); }
.modal-dialog {
  position: relative;
  width: min(100%, 1100px);
  transform: translateY(12px) scale(.98);
  transition: transform .2s;
}
.modal.is-open .modal-dialog { transform: none; }
.modal-player {
  aspect-ratio: 16 / 9;
  max-height: calc(100dvh - 140px);
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(117, 238, 221, .5);
}
.modal-player iframe, .modal-player video { width: 100%; height: 100%; border: 0; }
.modal-title { margin-top: 14px; text-align: center; font-size: 16px; color: var(--text-muted); }
.modal-close {
  position: absolute;
  right: 0;
  top: -54px;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .12);
  color: var(--white);
}
.modal-close:hover { background: rgba(255, 255, 255, .24); }
.modal-placeholder {
  height: 100%;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
}
.modal-placeholder strong { color: var(--white); font-size: 20px; }
.modal-placeholder code { color: var(--teal); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
  :root { --header-h: 76px; --row-gap: 36px; }
  .show-section { padding: 72px 0 80px; }
  .show-title { font-size: 46px; }
  .show-host { font-size: 18px; }
  .shows { padding: 72px 0 60px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; padding: 56px 0 40px; }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
  .footer-legal-inner { grid-template-columns: 1fr; gap: 28px; align-items: start; }
}

/* Mobile / M-Site */
@media (max-width: 768px) {
  :root {
    --header-h: 60px;
    --gutter: 12px;
    --row-gap: 24px;
    --radius-card: 10px;
    --radius-banner: 12px;
  }
  .container { padding: 0 16px; }

  /* Header: logo + Login; location collapses to icon only */
  .logo img { width: 120px; }
  .header-nav { gap: 10px; }
  .location-name, .location-btn .chev { display: none; }
  .location-btn { width: 44px; justify-content: center; }
  .btn-login { min-width: 0; padding: 0 18px; min-height: 38px; font-size: 14px; }

  /* Hero: crop to the CCU logo so it fills the screen */
/*  .hero-img { aspect-ratio: auto; height: clamp(190px, 56vw, 300px); }*/
	.hero-video { aspect-ratio: auto; height: clamp(190px, 56vw, 300px); }

  /* Show badges: 2 per row, smaller */
  .shows { padding: 40px 0 36px; }
  .shows-grid { gap: 28px 20px; }
  .show-badge { --badge: min(150px, calc(50vw - 36px)); }
  .badge-name { font-size: 15px; }

  /* Back to top */
  .back-to-top { right: 14px; bottom: 14px; width: 46px; height: 46px; }

  /* Sections */
  .show-section { padding: 44px 0 52px; }
  .show-header { margin-bottom: 22px; }
  .show-title {
    font-size: 34px;
    text-shadow: 2px 2px 0 rgba(117, 238, 221, .55), 4px 4px 12px rgba(0, 0, 0, .6);
  }
  .show-host { font-size: 14px; margin-top: 8px; }

  /* Cards: 2-up small, 1-up featured; banners full width */
  .row-small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row-large .video-card { flex: 0 0 100%; }
  .row-large .video-card + .video-card { margin-top: var(--gutter); }
  .video-card[data-play="always"] .play { opacity: .9; }
  .card-title { font-size: 13px; margin-top: 8px; }

  /* Footer */
  .footer-top { padding: 40px 0 24px; }
  .footer-brand img { width: 160px; }
  .follow-label, .social { margin-left: 0; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .footer-col h3 { margin-bottom: 14px; }
  .footer-col ul { padding-left: 0; gap: 8px; }
  .footer-col a { min-height: 32px; display: flex; align-items: center; }
  .chat-card { max-width: none; }
  .legal-text { font-size: 12px; }
  .footer-legal-inner { padding: 24px 0 28px; }
  .copyright { text-align: center; }

  /* Modal fits the screen */
  .modal { padding: 12px; align-items: center; }
  .modal-close { top: auto; bottom: calc(100% + 10px); right: 0; }
  .modal-player { max-height: calc(100dvh - 120px); border-radius: 10px; }
  .modal-title { font-size: 14px; }
}

/* Very small phones */
@media (max-width: 360px) {
  .show-title { font-size: 30px; }
  .footer-cols { grid-template-columns: 1fr; }
}

/* Users who prefer no motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
