/* CSS Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Text Selection */
::selection {
  background-color: #000;
  color: #ffef78;
}

::-moz-selection {
  background-color: #000;
  color: #ffef78;
}

html {
  font-size: 1rem; /* 16px base */
  scroll-behavior: smooth;
}

body {
  font-family:
    "Akzidenz Grotesk",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  line-height: 1.6;
  color: #000;
  background-color: #ffef78;
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh; /* Fallback for older browsers */
  overflow-y: hidden; /* Default: hide body scroll, enable only when needed */
  height: 100dvh; /* Dynamic viewport height for mobile */
  overflow: hidden;
  position: relative;
}

/* Font Face Declarations */
@font-face {
  font-family: "Akzidenz Grotesk";
  src:
    url("./assets/fonts/AkzidenzGroteskBE-Ex.woff2") format("woff2"),
    url("./assets/fonts/AkzidenzGroteskBE-Ex.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Akzidenz Grotesk";
  src:
    url("./assets/fonts/AkzidenzGroteskBE-BoldEx.woff2") format("woff2"),
    url("./assets/fonts/AkzidenzGroteskBE-BoldEx.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Video Background */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  mix-blend-mode: lighten;
}

.video-background__video {
  width: 95%;
  height: 95%;
  object-fit: contain;
  object-position: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
}

.video-background__fallback {
  width: 95%;
  height: 95%;
  background-image: url("./assets/medias/gracefortheworld-dove-poster.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
}

/* Main Content */
.main-content {
  position: relative;
  z-index: 1;
  width: 100vw;
  min-height: 100vh; /* Changed from fixed height to min-height */
  min-height: 100dvh; /* Dynamic viewport height for mobile */
  padding: 0 1rem 2rem 1rem;
  margin: 0;
  box-sizing: border-box;
  overflow-y: auto; /* Enable scroll when needed */
}

/* JavaScript-controlled layout modes */

/* Flexbox layout mode - space-between to prevent overlaps */
.main-content.flex-layout {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: center !important;
  height: 100vh !important;
  height: 100dvh !important;
  text-align: center !important;
}

.main-content.flex-layout .top-section {
  position: static !important;
  flex-shrink: 0;
  width: 100%;
  max-width: 50rem;
  left: auto !important;
  transform: none !important;
}

.main-content.flex-layout .center-group {
  position: static !important;
  margin: 0 !important;
  transform: none !important;
  top: auto !important;
  left: auto !important;
  flex-shrink: 0;
  width: 100%;
  max-width: 50rem;
}

.main-content.flex-layout .streaming-section {
  position: static !important;
  flex-shrink: 0;
  width: 100%;
  max-width: 50rem;
  left: auto !important;
  transform: none !important;
  margin-top: auto !important; /* Push to bottom */
}

/* Scroll layout mode - when even flexbox isn't enough */
.main-content.scroll-layout {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: center !important;
  height: auto !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  gap: 1.5rem !important;
  overflow-y: auto !important;
  text-align: center !important;
  padding-bottom: 2rem !important; /* Ensure space at bottom */
}

/* Override padding for YouTube active mode - footer will handle its own spacing */
.main-content.scroll-layout.youtube-active {
  gap: 1rem !important; /* Reduce gap slightly */
}

.main-content.scroll-layout .top-section {
  position: static !important;
  flex-shrink: 0;
  width: 100%;
  max-width: 50rem;
  left: auto !important;
  transform: none !important;
}

.main-content.scroll-layout .center-group {
  position: static !important;
  margin: 0 !important;
  transform: none !important;
  top: auto !important;
  left: auto !important;
  flex-shrink: 0;
  width: 100%;
  max-width: 50rem;
}

.main-content.scroll-layout .streaming-section {
  position: static !important;
  flex-shrink: 0;
  width: 100%;
  max-width: 50rem;
  left: auto !important;
  transform: none !important;
  margin-top: auto !important; /* Push to bottom */
}

/* Ensure streaming section stays at bottom when YouTube is active */
.main-content.scroll-layout.youtube-active {
  min-height: 100vh !important;
  min-height: 100dvh !important;
  padding-bottom: 0 !important; /* Remove bottom padding */
}

.main-content.flex-layout.youtube-active {
  height: 100vh !important;
  height: 100dvh !important;
  padding-bottom: 0 !important; /* Remove bottom padding */
}

/* Override streaming section positioning for YouTube mode */
.main-content.scroll-layout.youtube-active .streaming-section,
.main-content.flex-layout.youtube-active .streaming-section {
  position: static !important;
  margin-top: auto !important;
  margin-bottom: 0 !important;
  padding-bottom: 1rem !important; /* Internal padding only */
  flex-shrink: 0 !important; /* Prevent shrinking */
}

/* Ensure the streaming section truly sticks to bottom in YouTube mode */
.main-content.youtube-active {
  position: relative !important;
}

.main-content.youtube-active .streaming-section {
  position: relative !important;
  bottom: 0 !important;
}

/* Top Section - header and event description fixed at top */
.top-section {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 50rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1rem;
  z-index: 10;
}

/* Center Group - countdown and CTAs adaptively positioned */
.center-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
  width: 100%;
  max-width: 50rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Header Typography */
.header {
  position: static;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
}

.header__container {
  max-width: 36.1875rem; /* 579px */
  width: 100%;
}

.header__subtitle {
  margin-bottom: clamp(0.5rem, 2vw, 0.5rem);
}

.header__subtitle-text {
  font-family: "Akzidenz Grotesk", sans-serif;
  font-weight: 300;
  font-size: clamp(0.65rem, 1.2vw, 0.7rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: justify;
  text-align-last: justify;
  display: block;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.header__title {
  font-family: "Akzidenz Grotesk", sans-serif;
  font-weight: 800;
  /* Fallback for browsers without clamp() support */
  font-size: 4.3rem;
  font-size: clamp(1.5rem, 6vw, 4.3rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 0.85;
  text-align: justify;
  text-align-last: justify;
  width: 100%;
  max-width: 39.3125rem; /* 629px */
}

.header__title-line {
  display: block;
  text-align: left;
  margin-bottom: 0.1em;
}

.header__description {
  font-family: "Akzidenz Grotesk", sans-serif;
  font-weight: 300;
  font-size: clamp(0.65rem, 1.8vw, 1rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  hyphens: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(0.3rem, 1vw, 0.8rem);
}

.header__description-group {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: inherit;
  transition: all 0.3s ease;
}

/* Event Description Section */
.event-description {
  position: static;
  text-align: center;
  z-index: 2;
  width: 100%;
  max-width: 36.1875rem; /* Same as header container */
  flex-shrink: 0;
  margin-top: 1.5rem;
}

.event-description__heading {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.event-description__content {
  width: 100%;
}

.event-description__text {
  font-family: "Akzidenz Grotesk", sans-serif;
  font-weight: 300;
  font-size: clamp(0.8rem, 3.2vw, 0.9rem); /* Increased for better legibility */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
  color: #000;
  text-align: center;
  margin: 0;
  padding: 0 1rem;
}

.event-description__text-highlight {
  font-weight: 800;
}

/* Countdown and CTA Section */
.countdown-cta {
  position: static;
  text-align: center;
  z-index: 2;
  width: 100%;
  flex-shrink: 0;
}

.countdown-cta__heading {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Countdown Section */
.countdown {
  position: static;
  text-align: center;
  margin-bottom: 1rem;
}

.countdown__heading {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.countdown__container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.countdown__timer {
  display: flex;
  gap: 0rem;
  align-items: baseline;
  font-family: "Akzidenz Grotesk", sans-serif;
  font-weight: 800;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.75rem; /* 60px */
}

.countdown__number {
  font-size: clamp(1.5rem, 6vw, 4.3rem);
  font-weight: 800;
  line-height: 0.6;
  display: block;
}

.countdown__label {
  font-size: clamp(0.65rem, 1.2vw, 0.7rem);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

.countdown__separator {
  font-size: clamp(1.5rem, 6vw, 4.3rem);
  line-height: 0.6;
  font-weight: 300;
  color: #000;
  display: flex;
  align-items: center;
  margin: 0 0.5rem;
}

/* YouTube Player */
.youtube-player {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 90vh * 16 / 9);
  height: min(50vh, 90vw * 9 / 16);
  max-width: 90vw;
  max-height: 60vh;
}

/* YouTube Player in iframe mode - takes more space */
.youtube-player.youtube-player--active {
  position: fixed;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 60vh * 16 / 9);
  height: min(60vh, 90vw * 9 / 16);
  max-width: 90vw;
  max-height: 60vh;
  z-index: 10;
}

/* Hide sections when iframe or thank you is active */
.main-content.youtube-active .event-description,
.main-content.youtube-active .countdown-cta .countdown .countdown__container,
.main-content.youtube-active .countdown-cta .cta,
.main-content.thankyou-active .event-description,
.main-content.thankyou-active .countdown-cta .countdown .countdown__container,
.main-content.thankyou-active .countdown-cta .cta {
  display: none;
}

/* Streaming text variants */
.streaming__text {
  display: inline;
}

/* Show "stream again" in thank you mode */
.main-content.thankyou-active .streaming__text--live {
  display: none;
}

.main-content.thankyou-active .streaming__text--again {
  display: inline !important;
}

/* YouTube Consent Message */
.youtube-consent-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 0.5rem;
  /* Fallback for browsers without backdrop-filter */
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(0.625rem);
}

.youtube-consent-message__content {
  text-align: center;
  padding: 2rem;
  max-width: 35rem;
  width: 90%;
}

.youtube-consent-message__title {
  font-family: "Akzidenz Grotesk", sans-serif;
  font-size: 1.5rem;
  color: #ffef78;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.youtube-consent-message__text {
  color: #fff;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.youtube-consent-message__button {
  background: #ffef78;
  color: #000;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.25rem;
  font-family: "Akzidenz Grotesk", sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.youtube-consent-message__button:hover {
  background: #fff;
  transform: translateY(-0.0625rem);
}

/* Thank You Message */
.thank-you-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  width: max-content;
}

.thank-you-message__title {
  font-family: "Akzidenz Grotesk", Arial, sans-serif;
  font-size: clamp(0.75rem, 3vw, 2.15rem);
  font-weight: 800;
  line-height: 1.05;
  color: #000;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
}

.youtube-player__heading {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.youtube-player__iframe {
  width: 100%;
  height: 100%;
  border-radius: 0.5rem; /* 8px */
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.2);
}

/* Streaming Section */
.streaming-section {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  width: 100%;
  max-width: 50rem;
  padding: 2rem 1rem;
  background: rgba(255, 239, 120, 0.95); /* Semi-transparent background */
  /* Fallback for browsers without backdrop-filter */
  background: rgba(255, 239, 120, 0.98);
  backdrop-filter: blur(10px);
}

/* Streaming Section */
.streaming {
  text-align: center;
}

.streaming__heading {
  font-family: "Akzidenz Grotesk", sans-serif;
  font-weight: 800;
  font-size: clamp(0.7rem, 3vw, 0.8rem);
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 1rem;
  color: #000;
  text-align: center;
  line-height: 0.6rem;
}

.streaming__platforms {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.streaming__platform {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem; /* 60px */
  height: 3.75rem; /* 60px */
  background-color: #000;
  border: 1px solid #000;
  border-radius: 3.125rem; /* 50px */
  text-decoration: none;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
  padding: 0.25rem 0;
  box-sizing: border-box;
}

.streaming__platform--disney {
  width: clamp(4rem, 8vw, 5.9rem);
  height: auto;
  border-radius: clamp(1.5rem, 3vw, 2.5rem);
}
.streaming__platform--disney img {
  width: clamp(2.5rem, 5vw, 3.8rem);
}

.streaming__platform--hulu {
  width: clamp(3.5rem, 7vw, 4.9rem);
  height: auto;
  border-radius: clamp(1.2rem, 2.5vw, 2rem);
}

.streaming__platform--hulu img {
  width: clamp(2rem, 4vw, 2.7rem);
}

.streaming__platform--newslive {
  width: clamp(6rem, 12vw, 12rem);
  height: auto;
  border-radius: clamp(2rem, 4vw, 3rem);
}

.streaming__platform--newslive img {
  width: clamp(4rem, 9vw, 9.8rem);
}

.streaming__platform:hover {
  background-color: #ffef78;
  border-top: 1px solid #000;
  border-right: 3px solid #000;
  border-bottom: 1px solid #000;
  border-left: 3px solid #000;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.streaming__platform:hover .streaming__logo {
  filter: brightness(0);
}

.streaming__platform:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.streaming__logo {
  width: 32px;
  height: auto;
  object-fit: contain;
}

/* Call to Action Buttons */
.cta {
  text-align: center;
  display: flex;
  justify-content: center;
  width: auto;
}

.cta__heading {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cta__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: max-content;
}

.cta__button {
  display: inline-block;
  background-color: transparent;
  border: 2px solid #000;
  color: #000;
  text-decoration: none;
  font-family: "Akzidenz Grotesk", sans-serif;
  font-weight: 300;
  font-size: clamp(0.8rem, 3.2vw, 0.9rem); /* Increased to fill larger button */
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  white-space: nowrap; /* Prevent text wrapping */
  text-align: center;
  border-radius: 6.66667rem;
  border-top: 1px solid #000;
  border-right: 3px solid #000;
  border-bottom: 1px solid #000;
  border-left: 3px solid #000;
  line-height: 0.7rem;
  padding: 1.1rem 1.6rem 0.85rem; /* Slightly reduced padding */
}

.cta__button:hover,
.cta__button:focus {
  background-color: #000;
  color: #ffef78;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  outline: none;
}

.cta__button:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.cta__button--rome {
  background-color: #000;
  color: #ffef78;
  width: 100%;
}

.cta__button--rome:hover,
.cta__button--rome:focus {
  background-color: transparent;
  color: #000;
}

/* Responsive Design */
/* Tablet and smaller desktop */
@media (max-width: 1024px) {
  .main-content {
    padding: 0 1rem 1.5rem 1rem;
  }

  .top-section {
    padding: 1.5rem 1rem;
    gap: 0.8rem;
  }

  .center-group {
    gap: 1.8rem;
  }

  .header__title {
    font-size: 4.2rem;
  }

  .header__subtitle-text {
    font-size: clamp(0.65rem, 1.2vw, 0.7rem);
  }

  .header__subtitle {
    margin-bottom: clamp(0.6rem, 1.8vw, 1.2rem);
  }

  .header__description {
    font-size: clamp(0.7rem, 1.6vw, 0.9rem);
    gap: clamp(0.5rem, 1.2vw, 0.7rem);
  }

  .event-description {
    max-width: 36.1875rem; /* Same as header container */
    margin-top: 1.2rem;
  }

  .event-description__text {
    font-size: clamp(0.75rem, 2.8vw, 0.85rem); /* Increased for better legibility */
    padding: 0 0.5rem;
  }

  .countdown__number {
    font-size: 4.2rem;
  }

  .countdown__separator {
    font-size: 4.2rem;
    margin: 0 0.3rem;
  }

  .youtube-player {
    width: min(85vw, 85vh * 16 / 9);
    height: min(45vh, 85vw * 9 / 16);
    max-width: 85vw;
    max-height: 55vh;
  }

  .youtube-player.youtube-player--active {
    position: fixed;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(85vw, 55vh * 16 / 9);
    height: min(55vh, 85vw * 9 / 16);
    max-width: 85vw;
    max-height: 55vh;
    z-index: 10;
  }

  .thank-you-message__title {
    font-size: 2.1rem;
  }

  .streaming-section {
    padding: 1.5rem 1rem;
  }

  .streaming__platforms {
    gap: 0.8rem;
  }

  .streaming__logo {
    width: 1.875rem; /* 30px */
    height: auto;
  }

  /* Newslive button specific scaling for 1024px */
  .streaming__platform--newslive {
    width: clamp(5.5rem, 11vw, 10rem);
  }

  .streaming__platform--newslive img {
    width: clamp(3.5rem, 7.5vw, 8rem);
  }

  .cta__buttons {
    gap: 0.8rem;
  }

  .cta__button {
    font-size: clamp(0.75rem, 2.8vw, 0.85rem); /* Increased to fill larger button */
    min-width: 12.5rem; /* Reduced proportionally */
    padding: 1rem 1.5rem 0.75rem; /* Reduced proportionally */
    white-space: nowrap;
  }
}

/* Tablet */
@media (max-width: 768px) {
  .main-content {
    padding: 0 1rem 1rem 1rem;
  }

  .top-section {
    padding: 1rem 1rem;
    gap: 0.6rem;
  }

  .center-group {
    gap: 1.5rem;
  }

  .header {
    /* padding: 0 1rem; */
  }

  .header__title {
    font-size: clamp(1.5rem, 11vw, 4.2rem);
  }

  .header__subtitle-text {
    font-size: clamp(0.65rem, 1.2vw, 0.7rem);
  }

  .header__subtitle {
    margin-bottom: clamp(0.5rem, 1.5vw, 1rem);
  }

  .header__description {
    justify-content: space-between;
    gap: clamp(0.8rem, 2vw, 1.2rem);
    font-size: clamp(0.6rem, 1.4vw, 0.8rem);
    flex-wrap: wrap;
  }

  .event-description {
    max-width: 36.1875rem; /* Same as header container */
    margin-top: 1rem;
  }

  .event-description__text {
    font-size: clamp(0.7rem, 2.5vw, 0.8rem); /* Increased for better legibility */
    line-height: 1.3;
    padding: 0 1rem;
  }

  .countdown {
    width: 100%;
    padding: 0 1rem;
  }

  .countdown__timer {
    display: flex;
    gap: 0rem;
    justify-content: space-between;
    width: 100%;
    max-width: 555px;
  }

  .countdown__number {
    font-size: clamp(1.5rem, 11vw, 4.2rem);
  }

  .countdown__separator {
    font-size: clamp(1.5rem, 11vw, 4.2rem);
    margin: 0 0.25rem;
  }

  .youtube-player {
    width: min(95vw, 95vh * 16 / 9);
    height: min(40vh, 95vw * 9 / 16);
    max-width: 95vw;
    max-height: 50vh;
  }

  .youtube-player.youtube-player--active {
    position: fixed;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90vw, 50vh * 16 / 9);
    height: min(50vh, 90vw * 9 / 16);
    max-width: 90vw;
    max-height: 50vh;
    z-index: 10;
  }

  .thank-you-message__title {
    font-size: clamp(0.75rem, 5.5vw, 2.1rem);
  }

  .streaming-section {
    padding: 1rem 1rem;
  }

  .streaming__platforms {
    gap: 0.8rem;
  }

  .streaming__logo {
    width: 1.75rem; /* 28px */
    height: auto;
  }

  /* Newslive button specific scaling for 768px */
  .streaming__platform--newslive {
    width: clamp(8rem, 10vw, 10rem);
  }

  .streaming__platform--newslive img {
    width: clamp(6rem, 7vw, 6.5rem);
  }

  .cta__buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  .cta__button {
    font-size: clamp(0.7rem, 2.5vw, 0.8rem); /* Increased to fill larger button */
    padding: 0.9rem 1.4rem 0.65rem; /* Reduced proportionally */
    white-space: nowrap;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .main-content {
    padding: 0 1rem 0.8rem 1rem;
  }

  .top-section {
    padding: 0.8rem 1rem;
    gap: 0.5rem;
  }

  .center-group {
    gap: 1.2rem;
  }

  .header__title {
    font-size: clamp(1.2rem, 10.9vw, 3.2rem);
  }

  .header__subtitle-text {
    font-size: clamp(0.6rem, 1.8vw, 0.8rem);
  }

  .header__subtitle {
    margin-bottom: clamp(0.4rem, 1.2vw, 0.8rem);
  }

  .header__description {
    flex-direction: row;
    justify-content: space-between;
    gap: clamp(0.2rem, 1vw, 0.4rem);
    align-items: center;
    font-size: clamp(0.55rem, 1.2vw, 0.7rem);
    flex-wrap: wrap;
  }

  .event-description {
    width: 100%; /* 100% width on mobile */
    max-width: none; /* Remove max-width constraint */
    margin-top: 0.8rem;
  }

  .event-description__text {
    font-size: clamp(0.75rem, 2.5vw, 0.85rem); /* Slightly bigger on mobile */
    line-height: 1.25;
    padding: 0; /* No padding on mobile */
  }

  .header__description-group {
    font-size: inherit;
  }

  .countdown__timer {
    gap: 0rem;
  }

  .countdown__unit {
    min-width: 2.8125rem; /* 45px */
  }

  .countdown__number {
    font-size: clamp(1.2rem, 10.9vw, 3.2rem);
  }

  .countdown__separator {
    font-size: clamp(1.2rem, 10.9vw, 3.2rem);
    margin: 0 0.2rem;
  }

  .countdown__label {
    font-size: clamp(0.6rem, 1.8vw, 0.8rem);
  }

  .youtube-player {
    width: min(95vw, 95vh * 16 / 9);
    height: min(35vh, 95vw * 9 / 16);
    max-width: 95vw;
    max-height: 45vh;
  }

  .youtube-player.youtube-player--active {
    position: fixed;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90vw, 45vh * 16 / 9);
    height: min(45vh, 90vw * 9 / 16);
    max-width: 90vw;
    max-height: 45vh;
    z-index: 10;
  }

  .thank-you-message__title {
    font-size: clamp(0.6rem, 5.45vw, 1.6rem);
  }

  .streaming-section {
    padding: 0.8rem 1rem;
  }

  .streaming__heading {
    font-size: clamp(0.8rem, 2.5vw, 1.2rem);
    margin-bottom: 1rem;
  }

  .streaming__platforms {
    gap: 0.8rem;
  }

  .streaming__logo {
    width: 1.5rem; /* 24px */
    height: auto;
  }

  /* Newslive button specific scaling for 480px */
  .streaming__platform--newslive {
    width: clamp(4.5rem, 9vw, 6.5rem);
  }

  .streaming__platform--newslive img {
    width: clamp(2.8rem, 6vw, 5rem);
  }

  .cta__buttons {
    gap: 0.8rem;
  }

  .cta__button {
    font-size: clamp(0.65rem, 2.3vw, 0.75rem); /* Increased to fill larger button */
    min-width: 14rem; /* Match reduced desktop width */
    padding: 0.75rem 1.25rem 0.5rem; /* Reduced proportionally */
    box-sizing: border-box;
    white-space: nowrap;
  }
}

/* Small mobile */
@media (max-width: 360px) {
  .main-content {
    padding: 0 0.5rem 0.5rem 0.5rem;
  }

  .top-section {
    padding: 0.5rem 0.5rem;
    gap: 0.4rem;
  }

  .center-group {
    gap: 1rem;
  }

  .header__title {
    font-size: clamp(1.2rem, 10.9vw, 3.2rem);
  }

  .header__subtitle-text {
    font-size: clamp(0.55rem, 1.5vw, 0.7rem);
  }

  .header__subtitle {
    margin-bottom: clamp(0.3rem, 1vw, 0.6rem);
  }

  .header__description {
    justify-content: space-between;
    font-size: clamp(0.5rem, 1.1vw, 0.65rem);
    gap: clamp(0.15rem, 0.8vw, 0.3rem);
    flex-wrap: wrap;
  }

  .event-description {
    width: 100%; /* 100% width on mobile */
    max-width: none; /* Remove max-width constraint */
    margin-top: 0.6rem;
  }

  .event-description__text {
    font-size: clamp(0.7rem, 2.3vw, 0.8rem); /* Slightly bigger on mobile */
    line-height: 1.2;
    padding: 0; /* No padding on mobile */
  }

  .header__description-group {
    font-size: inherit;
    letter-spacing: 0.02em;
  }

  .countdown__timer {
    gap: 0;
  }

  .countdown__number {
    font-size: clamp(1.2rem, 10.9vw, 3.2rem);
  }

  .countdown__separator {
    font-size: clamp(1.2rem, 10.9vw, 3.2rem);
    margin: 0 0.15rem;
  }

  .countdown__label {
    font-size: clamp(0.55rem, 1.5vw, 0.7rem);
  }

  .youtube-player {
    width: min(95vw, 95vh * 16 / 9);
    height: min(30vh, 95vw * 9 / 16);
    max-width: 95vw;
    max-height: 40vh;
  }

  .youtube-player.youtube-player--active {
    position: fixed;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(85vw, 40vh * 16 / 9);
    height: min(40vh, 85vw * 9 / 16);
    max-width: 85vw;
    max-height: 40vh;
    z-index: 10;
  }

  .thank-you-message__title {
    font-size: clamp(0.6rem, 5.45vw, 1.6rem);
  }

  .streaming-section {
    padding: 0.5rem 0.5rem;
  }

  .streaming__heading {
    font-size: clamp(0.7rem, 2.2vw, 1rem);
    margin-bottom: 0.8rem;
  }

  .streaming__platforms {
    gap: 0.6rem;
  }

  .streaming__logo {
    width: 1.25rem; /* 20px */
    height: auto;
  }

  /* Newslive button specific scaling for 360px */
  .streaming__platform--newslive {
    width: clamp(4rem, 8.5vw, 5.5rem);
  }

  .streaming__platform--newslive img {
    width: clamp(2.5rem, 5.5vw, 4rem);
  }

  .cta__buttons {
    gap: 0.6rem;
  }

  .cta__button {
    font-size: clamp(0.6rem, 2.1vw, 0.7rem); /* Increased to fill larger button */
    min-width: 14rem; /* Match reduced desktop width */
    padding: 0.65rem 1rem 0.4rem; /* Reduced proportionally */
    box-sizing: border-box;
    white-space: nowrap;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .streaming__platform {
    border: 3px solid #000;
  }

  .streaming__platform:hover {
    border: 3px solid #000;
  }

  .cta__button {
    border-width: 3px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Keep video visible but pause it instead of hiding */
  .video-background__video {
    animation-play-state: paused !important;
  }

  .video-background__fallback {
    display: none;
  }
}

/* Height-based responsive design for preventing overlaps */

/* Critical breakpoint: when content starts overlapping - switch to flex column space-between */
@media (max-height: 850px) {
  .main-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    height: 100dvh;
    padding: 0;
  }
  
  .top-section {
    position: relative;
    padding: 1rem;
    gap: 0.8rem;
    flex-shrink: 0;
    width: 100%;
  }
  
  .center-group {
    position: static;
    margin: 0 auto;
    transform: none;
    top: auto;
    left: auto;
    flex-shrink: 0;
    gap: 1.5rem;
  }
  
  .streaming-section {
    position: relative;
    padding: 1rem;
    flex-shrink: 0;
  }
}

/* Very short viewports - enable scroll when space-between isn't enough */
@media (max-height: 650px) {
  .main-content {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    justify-content: space-between;
    gap: 1.5rem;
    overflow-y: auto;
  }
  
  .top-section {
    padding: 1rem;
    gap: 0.5rem;
  }
  
  .center-group {
    gap: 1rem;
  }
  
  .streaming-section {
    padding: 1rem;
  }
}

/* Ultra-short viewports - minimal spacing with scroll on body */
@media (max-height: 600px) {
  body {
    overflow-y: auto !important;
  }
  
  .main-content {
    gap: 1rem;
    height: auto !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    overflow-y: visible !important;
  }
  
  .top-section {
    padding: 0.5rem;
    gap: 0.3rem;
  }
  
  .center-group {
    gap: 0.8rem;
  }
  
  .streaming-section {
    padding: 0.5rem;
  }
}

/* Cookie Consent Banner Styles */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgb(0 0 0 / 73%);
  backdrop-filter: blur(10px);
  border-top: 2px solid #ffef78;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

.cookie-consent.cookie-consent--visible {
  transform: translateY(0);
}

.cookie-consent__container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.cookie-consent__content {
  flex: 1;
}

.cookie-consent__title {
  font-family: "Akzidenz Grotesk", sans-serif;
  font-size: 1.25rem;
  color: #ffef78;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.cookie-consent__text {
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.cookie-consent__buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-consent__button {
  padding: 0.5rem 1rem 0.4rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: "Akzidenz Grotesk", sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.cookie-consent__button--accept {
  background: #ffef78;
  color: #000;
  border-color: #ffef78;
}

.cookie-consent__button--accept:hover {
  background: #fff;
  transform: translateY(-1px);
}

.cookie-consent__button--manage,
.cookie-consent__button--reject {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.cookie-consent__button--manage:hover,
.cookie-consent__button--reject:hover {
  background: #fff;
  color: #000;
  transform: translateY(-1px);
}

.cookie-consent__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.cookie-consent__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffef78;
}

/* Cookie Preferences Modal Styles */
.cookie-preferences {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  display: none;
}

.cookie-preferences.cookie-preferences--visible {
  display: block;
}

.cookie-preferences__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.cookie-preferences__modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 0.5rem; /* 8px */
  width: 90%;
  max-width: 37.5rem; /* 600px */
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.3);
}

/* Mobile First Approach for Cookie Modal */
@media (max-width: 767px) {
  .cookie-preferences.cookie-preferences--visible {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cookie-preferences__modal {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: none;
    max-height: 90vh;
    margin: 0;
    border-radius: 0.75rem;
  }
}

.cookie-preferences__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #eee;
}

.cookie-preferences__title {
  font-family: "Akzidenz Grotesk", sans-serif;
  font-size: 1.5rem;
  color: #000;
  font-weight: 700;
}

.cookie-preferences__close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.cookie-preferences__close:hover {
  background: #f0f0f0;
}

.cookie-preferences__content {
  padding: 1.25rem 1.5rem;
}

.cookie-preferences__category {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.cookie-preferences__category:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cookie-preferences__category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.cookie-preferences__category-title {
  font-family: "Akzidenz Grotesk", sans-serif;
  font-size: 1.1rem;
  color: #000;
  font-weight: 700;
}

.cookie-preferences__category-status {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
}

.cookie-preferences__category-description {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-preferences__toggle {
  position: relative;
  display: inline-block;
  width: 3.125rem; /* 50px */
  height: 1.5rem; /* 24px */
}

.cookie-preferences__checkbox {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-preferences__slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 1.5rem; /* 24px */
  transition: 0.3s;
}

.cookie-preferences__slider:before {
  position: absolute;
  content: "";
  height: 1.125rem; /* 18px */
  width: 1.125rem; /* 18px */
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

.cookie-preferences__checkbox:checked + .cookie-preferences__slider {
  background-color: #ffef78;
}

.cookie-preferences__checkbox:checked + .cookie-preferences__slider:before {
  transform: translateX(1.625rem); /* 26px */
}

.cookie-preferences__footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid #eee;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.cookie-preferences__button {
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: "Akzidenz Grotesk", sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.cookie-preferences__button--save {
  background: #ffef78;
  color: #000;
  border-color: #ffef78;
}

.cookie-preferences__button--save:hover {
  background: #000;
  color: #ffef78;
  transform: translateY(-1px);
}

.cookie-preferences__button--cancel {
  background: transparent;
  color: #666;
  border-color: #ccc;
}

.cookie-preferences__button--cancel:hover {
  background: #f0f0f0;
  color: #000;
  transform: translateY(-1px);
}

/* Responsive Design for Cookie Components */

/* Tablet and smaller desktop */
@media (max-width: 1024px) {
  .cookie-consent__container {
    max-width: 90%;
    padding: 1.25rem;
    gap: 1.5rem;
  }

  .cookie-consent__title {
    font-size: 1.125rem;
  }

  .cookie-consent__text {
    font-size: 0.85rem;
  }

  .cookie-preferences__modal {
    width: 100%;
    max-width: 32rem;
  }
}

/* Tablet */
@media (max-width: 768px) and (min-width: 481px) {
  .cookie-consent__container {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
    text-align: center;
  }

  .cookie-consent__title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .cookie-consent__text {
    font-size: 0.8rem;
    margin-bottom: 1.25rem;
  }

  .cookie-consent__buttons {
    justify-content: center;
    gap: 0.5rem;
  }

  .cookie-consent__button {
    flex: 1;
    min-width: 0;
    padding: 0.625rem 0.75rem 0.5rem;
    font-size: 0.75rem;
  }

  .cookie-consent__close {
    top: 0.75rem;
    right: 0.75rem;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 1.25rem;
  }

  .cookie-preferences__header,
  .cookie-preferences__content,
  .cookie-preferences__footer {
    padding: 1rem;
  }

  .cookie-preferences__title {
    font-size: 1.25rem;
  }

  .cookie-preferences__category {
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
  }

  .cookie-preferences__category-title {
    font-size: 1rem;
  }

  .cookie-preferences__category-description {
    font-size: 0.85rem;
  }

  .cookie-preferences__footer {
    flex-direction: column;
    gap: 0.75rem;
  }

  .cookie-preferences__button {
    width: 100%;
    padding: 0.875rem 1.25rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .cookie-consent__container {
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .cookie-consent__title {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .cookie-consent__text {
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 1rem;
  }

  .cookie-consent__buttons {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cookie-consent__button {
    width: 100%;
    padding: 0.75rem 1rem 0.625rem;
    font-size: 0.75rem;
    text-align: center;
  }

  .cookie-consent__close {
    top: 0.5rem;
    right: 0.5rem;
    width: 1.25rem;
    height: 1.25rem;
    font-size: 1rem;
  }

  .cookie-preferences__header {
    padding: 1rem 0.75rem 0.75rem;
  }

  .cookie-preferences__content {
    padding: 0.75rem;
  }

  .cookie-preferences__footer {
    padding: 0.75rem;
  }

  .cookie-preferences__title {
    font-size: 1.125rem;
  }

  .cookie-preferences__close {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 1.125rem;
  }

  .cookie-preferences__category {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
  }

  .cookie-preferences__category-header {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
  }

  .cookie-preferences__category-title {
    font-size: 0.9rem;
    flex: 1;
  }

  .cookie-preferences__category-description {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .cookie-preferences__toggle {
    flex-shrink: 0;
  }

  .cookie-preferences__button {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
  }

  /* YouTube consent message mobile adjustments */
  .youtube-consent-message__content {
    padding: 1.5rem 1rem;
    max-width: 28rem;
    width: 95%;
  }

  .youtube-consent-message__title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.1;
  }

  .youtube-consent-message__text {
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
  }

  .youtube-consent-message__button {
    padding: 0.625rem 1.25rem;
    font-size: 0.8rem;
  }
}

/* Small mobile */
@media (max-width: 360px) {
  .cookie-consent__container {
    padding: 0.5rem;
  }

  .cookie-consent__title {
    font-size: 0.85rem;
  }

  .cookie-consent__text {
    font-size: 0.7rem;
  }

  .cookie-consent__button {
    padding: 0.625rem 0.75rem 0.5rem;
    font-size: 0.7rem;
  }

  .cookie-preferences {
    padding: 0;
  }

  .cookie-preferences__modal {
    border-radius: 0;
    max-height: 100vh;
  }

  .cookie-preferences__header,
  .cookie-preferences__content,
  .cookie-preferences__footer {
    padding: 0.75rem 0.5rem;
  }

  .cookie-preferences__title {
    font-size: 1rem;
  }

  .cookie-preferences__category-header {
    gap: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .cookie-preferences__category-title {
    font-size: 0.85rem;
  }

  .cookie-preferences__category-description {
    font-size: 0.75rem;
  }

  .cookie-preferences__toggle {
    width: 2.5rem;
    height: 1.25rem;
  }

  .cookie-preferences__slider:before {
    height: 0.875rem;
    width: 0.875rem;
    left: 0.1875rem;
    bottom: 0.1875rem;
  }

  .cookie-preferences__checkbox:checked + .cookie-preferences__slider:before {
    transform: translateX(1.25rem);
  }

  .youtube-consent-message__content {
    padding: 1rem 0.75rem;
    max-width: 24rem;
    width: 95%;
  }

  .youtube-consent-message__title {
    font-size: 1.125rem;
    line-height: 1.1;
  }

  .youtube-consent-message__text {
    font-size: 0.8rem;
  }

  .youtube-consent-message__button {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
}

/* YouTube player responsive override - only when layout classes are applied */
.main-content.scroll-layout .youtube-player.youtube-player--active,
.main-content.flex-layout .youtube-player.youtube-player--active {
  position: relative !important;
  transform: none !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  max-width: min(90vw, 50vh * 16 / 9) !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  margin: 1rem auto !important;
  z-index: 1 !important;
  display: block !important;
}

/* Responsive adjustments for YouTube in constrained layouts */
@media (max-width: 1024px) {
  .main-content.scroll-layout .youtube-player.youtube-player--active,
  .main-content.flex-layout .youtube-player.youtube-player--active {
    max-width: min(95vw, 45vh * 16 / 9) !important;
  }
}

@media (max-width: 768px) {
  .main-content.scroll-layout .youtube-player.youtube-player--active,
  .main-content.flex-layout .youtube-player.youtube-player--active {
    max-width: min(95vw, 40vh * 16 / 9) !important;
  }
}

@media (max-width: 480px) {
  .main-content.scroll-layout .youtube-player.youtube-player--active,
  .main-content.flex-layout .youtube-player.youtube-player--active {
    max-width: min(95vw, 35vh * 16 / 9) !important;
  }
}

/* Print styles */
@media print {
  .video-background {
    display: none;
  }

  .main-content {
    background-color: #fff;
    color: #000;
  }

  .streaming__platform,
  .cta__button {
    border: 1px solid #000;
  }

  .cookie-consent,
  .cookie-preferences {
    display: none !important;
  }
}

