:root {
  --bg: #050505;
  --text: #ffffff;
  --brand: #e1a200;
  --brand-text: #0a0a0a;
  --muted: rgba(255, 255, 255, 0.8);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
}

body {
  overflow-x: hidden;
}

.live-shell {
  min-height: 100vh;
  background: #000;
}

.live-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  padding: 1rem 1rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0));
}

.live-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.live-brand-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.live-back-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
}

.live-back-btn:hover {
  background: #fff;
  color: #000;
}

.live-back-btn i {
  font-size: 1.5rem;
}

.live-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.live-logo {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
}

.live-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.live-brand-main {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.live-brand-sub {
  color: var(--brand);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.live-hero {
  position: relative;
  min-height: 84vh;
  height: 100vh;
  overflow: hidden;
}

.live-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  background: #000;
}

.live-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.12));
  transition: opacity 0.65s ease;
}

.live-left-shade {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 40%, rgba(0, 0, 0, 0) 78%);
  transition: opacity 0.65s ease;
}

.live-content-wrap {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 0 1.6rem 6.2rem;
}

.live-content {
  max-width: 680px;
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

.live-hero.ui-hidden .live-content {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(2px);
  pointer-events: none;
}

.live-hero.ui-hidden .live-overlay,
.live-hero.ui-hidden .live-left-shade {
  opacity: 0;
  pointer-events: none;
}

.quick-action-bar {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  transform: translateX(-50%);
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.show-ui-btn {
  border: 1px solid rgba(225, 162, 0, 0.72);
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.62), rgba(8, 8, 8, 0.42));
  /* background: linear-gradient(180deg, rgb(225 162 0), rgb(225 162 0)); */
  color: #fff;
  border-radius: 999px;
  min-width: 12.2rem;
  height: 2.55rem;
  padding: 0 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.44), 0 0 18px rgba(225, 162, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(10px) saturate(1.15);
  transform: translateY(10px);
}

.show-ui-btn i {
  font-size: 1rem;
  transform: rotate(90deg);
}

.show-ui-btn:hover {
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.8), rgba(8, 8, 8, 0.56));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.52), 0 0 20px rgba(225, 162, 0, 0.48), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.show-ui-btn:active {
  transform: translateY(0) scale(0.985);
}

.live-hero.ui-hidden .show-ui-btn {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  animation: showUiPulse 2s ease-in-out infinite;
}

.show-ui-btn.secondary {
  min-width: 2.55rem;
  width: 2.55rem;
  padding: 0;
  border-color: rgba(255, 255, 255, 0.34);
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.74), rgba(8, 8, 8, 0.58));
  color: #fff;
}

.show-ui-btn.secondary i {
  transform: none;
}

.live-hero.ui-hidden .show-ui-btn:hover,
.live-hero.ui-hidden .show-ui-btn:focus-visible {
  animation: none;
}

@keyframes showUiPulse {
  0%,
  100% {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.44), 0 0 18px rgba(225, 162, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5), 0 0 26px rgba(225, 162, 0, 0.56), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  }
}

.live-pill-row {
  margin-bottom: 0.8rem;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.8rem;
  border-radius: 0.3rem;
  background: var(--brand);
  color: #000;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  font-weight: 900;
}

.live-title {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.35rem, 6.4vw, 5.35rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
}

.live-title span {
  color: var(--brand);
}

.live-subtitle {
  margin: 1rem 0 1.3rem;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.2vw, 1.28rem);
  line-height: 1.45;
}

.live-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-watch-btn {
  border: 0;
  border-radius: 0.45rem;
  background: #fff;
  color: #000;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.25rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  font-size: 1.5rem;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-watch-btn:hover {
  background: var(--brand);
  color: #000;
  transform: translateY(-1px);
}

.hero-watch-btn i {
  font-size: 1.35rem;
}

.hero-action-btn {
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 1rem;
  font-weight: 900;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.hero-action-btn.give {
  background: #e1a20005;
  color: #ffffff;
  border: 2px solid var(--brand);

  /* background: var(--brand);
  color: #000;
  border: 2px solid var(--brand); */
}

.hero-action-btn.pledge {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 2px solid #e1a20096;
  /* background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 2px solid var(--brand); */
}

.hero-action-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.hero-circle-btn {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-circle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.stream-status {
  margin-top: 1rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.featured-section {
  position: relative;
  z-index: 20;
  padding: 2.5rem 0 7rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.78), #000 24%);
}

.featured-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0 1rem;
  margin-bottom: 1rem;
}

.featured-header h2 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 1.35rem;
  font-family: 'Playfair Display', serif;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

.featured-header h2 span {
  color: #fff;
}

.featured-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  width: 100%;
}

.featured-scroller {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0 1rem 0.5rem;
  scroll-behavior: smooth;
}

.featured-scroller::-webkit-scrollbar {
  display: none;
}

.session-card {
  position: relative;
  flex: 0 0 min(74vw, 340px);
  aspect-ratio: 16 / 9;
  border-radius: 0.8rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.session-card.is-active {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

.session-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.session-card:hover img {
  transform: scale(1.08);
}

.session-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.35));
}

.session-card-meta {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.8rem;
  z-index: 3;
}

.session-card-meta span {
  display: inline-block;
  background: var(--brand);
  color: #000;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  padding: 0.25rem 0.5rem;
  border-radius: 0.22rem;
  margin-bottom: 0.5rem;
}

.session-card-meta h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.stream-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}

.stream-modal.open {
  display: block;
}

.stream-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(6px);
}

.stream-modal-dialog {
  position: relative;
  margin: 2.5rem auto;
  width: min(92vw, 760px);
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
  background: #f7f2ea;
  color: #1d1a16;
  border-radius: 1.25rem;
  padding: 1.35rem 1.35rem 1.2rem;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.stream-modal-dialog::-webkit-scrollbar {
  width: 8px;
}

.stream-modal-dialog::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 999px;
}

.stream-modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  color: rgba(29, 26, 22, 0.88);
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.stream-modal-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.35rem 0.15rem 1rem;
}

.stream-modal-icon {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.stream-modal-icon.give,
.stream-modal-icon.pledge {
  background: #f5e7cd;
  color: #d29300;
}

.stream-modal-header h3 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  line-height: 1;
}

.stream-modal-header p {
  margin: 0.2rem 0 0;
  color: rgba(29, 26, 22, 0.82);
  font-size: 0.9rem;
}

.stream-form {
  display: grid;
  gap: 0.78rem;
}

.stream-form label {
  display: grid;
  gap: 0.4rem;
}

.stream-form label > span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(29, 26, 22, 0.67);
}

.stream-form input,
.stream-form select {
  width: 100%;
  height: 3.15rem;
  border: 1px solid rgba(29, 26, 22, 0.16);
  border-radius: 0.9rem;
  background: #f9f7f3;
  color: #302a24;
  font-size: 1rem;
  padding: 0 1rem;
  outline: none;
}

.stream-form input:focus,
.stream-form select:focus {
  border-color: rgba(225, 162, 0, 0.7);
  box-shadow: 0 0 0 3px rgba(225, 162, 0, 0.16);
}

.stream-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
}

.amount-btn {
  height: 2.75rem;
  border: 1px solid rgba(29, 26, 22, 0.18);
  border-radius: 0.8rem;
  background: #f9f7f3;
  color: #4a433d;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.amount-btn.active,
.amount-btn:hover {
  background: #f5e7cd;
  border-color: rgba(225, 162, 0, 0.65);
  color: #1d1a16;
}

.stream-submit {
  height: 3.55rem;
  border: 0;
  border-radius: 0.95rem;
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  margin-top: 0.35rem;
}

.stream-submit.give,
.stream-submit.pledge {
  background: linear-gradient(135deg, #e1a200, #e8bb57);
}

.stream-form-footnote {
  margin: 0.2rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: rgba(29, 26, 22, 0.62);
  text-transform: uppercase;
}

.stream-submit-note {
  min-height: 1.15rem;
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(29, 26, 22, 0.65);
}

.stream-submit-note.ok {
  color: #11855b;
}

.stream-submit-note.error {
  color: #cc2d2d;
}

@media (max-width: 991px) {
  .live-logo {
    width: 2.5rem;
    height: 2.5rem;
  }

  .live-brand-main {
    font-size: 1.45rem;
  }

  .live-brand-sub {
    font-size: 1.2rem;
  }

  .live-content-wrap {
    padding: 0 1rem 5rem;
  }

  .show-ui-btn {
    bottom: 0.8rem;
    height: 2.1rem;
    font-size: 0.67rem;
    letter-spacing: 0.07em;
  }

  .live-subtitle {
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
  }

  .hero-action-btn {
    font-size: 0.7rem;
    padding: 0.62rem 0.9rem;
  }

  .hero-circle-btn {
    width: 2.55rem;
    height: 2.55rem;
    font-size: 1rem;
  }

  .stream-modal-dialog {
    margin: 1.4rem auto;
    width: min(94vw, 700px);
    max-height: calc(100vh - 2.8rem);
  }

  .stream-modal-header h3 {
    font-size: 1.7rem;
  }

  .amount-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .live-hero {
    min-height: 80vh;
    height: 88vh;
  }

  .live-video {
    object-position: center center;
    transform: scale(1.01);
  }

  .live-topbar {
    padding: 0.9rem 0.85rem;
  }

  .live-back-btn {
    width: 2.55rem;
    height: 2.55rem;
  }

  .live-back-btn i {
    font-size: 1.25rem;
  }

  .live-brand-main {
    font-size: 1.05rem;
  }

  .live-brand-sub {
    font-size: 0.92rem;
  }

  .live-title {
    font-size: clamp(1.9rem, 11vw, 3.2rem);
  }

  .live-subtitle {
    font-size: 0.88rem;
    line-height: 1.35;
    max-width: 96%;
  }

  .live-content-wrap {
    padding: 0 0.85rem 4.6rem;
  }

  .live-controls {
    gap: 0.5rem;
  }

  .hero-action-btn {
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    padding: 0.58rem 0.78rem;
  }

  .hero-circle-btn {
    width: 2.38rem;
    height: 2.38rem;
    font-size: 0.95rem;
  }

  .show-ui-btn {
    height: 2rem;
    font-size: 0.62rem;
    padding: 0 0.75rem;
  }

  .featured-header h2 {
    font-size: 1rem;
  }

  .session-card {
    flex-basis: 72vw;
  }

  .live-controls {
    gap: 0.6rem;
  }

  .stream-modal-dialog {
    margin: 1rem auto;
    width: calc(100vw - 1rem);
    max-height: calc(100vh - 2rem);
    padding: 1rem 0.9rem 0.95rem;
    border-radius: 1rem;
  }

  .stream-modal-header {
    padding-top: 0.6rem;
  }

  .stream-modal-header h3 {
    font-size: 1.42rem;
  }

  .stream-modal-header p {
    font-size: 0.84rem;
  }

  .stream-form-row {
    grid-template-columns: 1fr;
    gap: 0.78rem;
  }

  .stream-form input,
  .stream-form select {
    height: 2.95rem;
    font-size: 0.95rem;
  }

  .amount-btn {
    height: 2.5rem;
    font-size: 0.97rem;
  }

  .stream-submit {
    height: 3.2rem;
    font-size: 1.08rem;
  }

  .stream-form-footnote {
    font-size: 0.72rem;
    letter-spacing: 0.09em;
  }
}
