/* =========================================================
   BITLOOK PADDOCK · MEDIA 2.4
   CLEAN CONSOLIDATED STYLESHEET
   Replaces all Media 2.0–2.3 patches.
========================================================= */

:root {
  --media-bg: #f3f4f6;
  --media-card: #ffffff;
  --media-text: #171717;
  --media-muted: #6f7782;
  --media-line: #e3e6ea;
  --media-black: #111111;

  --media-youtube: #ff0000;
  --media-instagram: #a63cc8;
  --media-tiktok: #25f4ee;
  --media-facebook: #1877f2;
}

/* =========================================================
   PAGE
========================================================= */

.media2-page {
  padding-top: 42px;
  padding-bottom: 70px;
}

.media2-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}

.media2-hero h1 {
  margin: .25rem 0 1rem;
  font-size: clamp(44px, 7vw, 86px);
  line-height: .9;
  font-weight: 800;
  letter-spacing: -.04em;
}

.media2-hero p {
  max-width: 650px;
  margin: 0;
  color: var(--media-muted);
  font-size: 1.08rem;
  line-height: 1.45;
}

.media2-kicker,
.media2-meta {
  color: #69727e;
  font-size: .76rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* =========================================================
   FILTERS
========================================================= */

.media2-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
}

.media2-filters select,
.media2-filters button,
.media2-filters a {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #e1e5e9;
  border-radius: 12px;
  background: #fff;
  color: #1f2328;
  text-decoration: none;
  font: inherit;
}

.media2-filters button {
  border-color: #111;
  background: #111;
  color: #fff;
}

/* =========================================================
   PROVIDER BRANDING
   IMPORTANT: never infer provider styling from href.
========================================================= */

.provider-youtube { --media-provider: var(--media-youtube); }
.provider-instagram { --media-provider: var(--media-instagram); }
.provider-tiktok { --media-provider: var(--media-tiktok); }
.provider-facebook { --media-provider: var(--media-facebook); }
.provider-generic { --media-provider: #111; }

.media-provider-svg {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  flex: 0 0 16px !important;
  line-height: 0 !important;
  overflow: hidden !important;
}

.media-provider-svg svg {
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  fill: currentColor !important;
}

.media-provider-svg svg path {
  fill: currentColor !important;
}

/* =========================================================
   PUBLIC MEDIA GRID
========================================================= */

.media2-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.media2-card {
  --media-provider: #111;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--media-card);
  box-shadow: 0 8px 28px rgba(15, 23, 42, .07);
}

.media2-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e9edf1;
  isolation: isolate;
}

.media2-cover-link,
.media2-visual-link,
.media2-placeholder,
.media2-visual-placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.media2-card-media img,
.media2-cover-link img,
.media2-visual-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media2-placeholder,
.media2-visual-placeholder {
  display: grid;
  place-items: center;
  color: var(--media-provider);
  text-decoration: none;
  background: #edf0f3;
}

.media2-placeholder > *,
.media2-visual-placeholder > * {
  max-width: 42px !important;
  max-height: 42px !important;
}

.media2-visual-frame,
.media2-card-media iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  background: #fff;
}

/*
  Social embeds are cropped inside a fixed media viewport.
  This prevents portrait TikTok/Instagram widgets from changing card height.
*/
.media2-card-media.has-live-embed iframe,
.media2-card-media iframe[src*="instagram.com"],
.media2-card-media iframe[src*="tiktok.com"] {
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
}

/* Provider pill */
.media2-provider {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100% - 28px);
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgba(17, 17, 17, .06);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--media-provider) !important;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .08);
  font-size: .76rem;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.media2-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 5;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--media-provider) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .14);
}

.media2-play svg {
  width: 20px;
  height: 20px;
}

/* Text body */
.media2-card-body {
  flex: 1 1 auto;
  padding: 20px;
}

.media2-card-body h2 {
  margin: .45rem 0;
  font-size: 1.35rem;
  line-height: 1.08;
}

.media2-card-body h2 a {
  color: #111 !important;
  text-decoration: none;
}

.media2-card-body p {
  margin-top: 10px;
  color: #6c7480;
  line-height: 1.45;
}

.media2-author {
  font-weight: 700;
}

.media2-empty {
  padding: 40px;
  border-radius: 20px;
  background: #fff;
  color: #68717d;
}

/* =========================================================
   HOME MEDIA
========================================================= */

.home-media2-section {
  overflow: hidden;
}

.home-media2-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-media2-card {
  --media-provider: #fff;
  position: relative;
  display: block;
  min-width: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 24px;
  background: #0a0a0a;
  color: #fff !important;
  text-decoration: none !important;
  isolation: isolate;
}

.home-media2-bg,
.home-media2-provider-fallback,
.home-media2-embed {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-media2-bg {
  background-size: cover;
  background-position: center;
  transition: transform .35s ease;
}

.home-media2-card:hover .home-media2-bg {
  transform: scale(1.035);
}

.home-media2-embed {
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  border: 0 !important;
  transform: none !important;
  pointer-events: none !important;
  background: #111;
}

.home-media2-provider-fallback {
  display: grid;
  place-items: center;
  color: var(--media-provider);
  background: #0b0b0b;
}

/* absolutely cap fallback icon size */
.home-media2-provider-fallback .media-provider-svg,
.home-media2-provider-fallback .media-provider-svg svg {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  min-height: 54px !important;
  max-width: 54px !important;
  max-height: 54px !important;
}

.home-media2-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,.06) 0%,
      rgba(0,0,0,.14) 45%,
      rgba(0,0,0,.88) 100%);
}

.home-media2-source {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100% - 32px);
  min-height: 36px;
  padding: 8px 11px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(8,8,8,.72);
  color: var(--media-provider) !important;
  font-size: .68rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .04em;
  white-space: nowrap;
  text-overflow: ellipsis;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.home-media2-copy {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 4;
}

.home-media2-copy small {
  display: block;
  color: var(--media-provider) !important;
  font-size: .68rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .09em;
}

.home-media2-copy strong {
  display: block;
  margin-top: 8px;
  color: #fff !important;
  font-size: 1.35rem;
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.02em;
}

/* =========================================================
   EVENT MEDIA
========================================================= */

.event-2-media-panel {
  overflow: hidden;
}

.event-2-kicker {
  margin-bottom: 7px;
  color: #8a9098;
  font-size: .65rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.event-2-media-stack {
  display: grid;
  gap: 14px;
}

.event-2-media-card {
  --media-provider: #111;
  overflow: hidden;
  border: 1px solid #e3e6e9;
  border-radius: 18px;
  background: #fff;
}

.event-2-media-visual,
.media2-event-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e9edf1;
  isolation: isolate;
}

.event-2-media-visual .media2-visual-link,
.event-2-media-visual .media2-visual-placeholder,
.media2-event-visual .media2-visual-link,
.media2-event-visual .media2-visual-placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.event-2-media-visual .media2-visual-link img,
.media2-event-visual .media2-visual-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-2-media-visual .media2-visual-frame,
.media2-event-visual .media2-visual-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  background: #fff;
}

.event-2-media-body,
.media2-event-body {
  padding: 15px 16px 16px;
}

.event-2-media-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  color: #7a828d;
  font-size: .66rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .08em;
}

.event-2-media-body h3 {
  margin: 8px 0 0;
  color: #111;
  font-size: 1.08rem;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.015em;
}

.event-2-media-body p {
  margin: 9px 0 0;
  color: #6a727d;
  font-size: .84rem;
  line-height: 1.4;
}

.event-2-media-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 13px;
  color: #111 !important;
  text-decoration: none;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.event-2-media-open:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.event-2-media-view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  margin-top: 14px;
  border-radius: 14px;
  background: #f5f6f7;
  color: #111 !important;
  text-decoration: none;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.event-2-media-view-all:hover {
  background: #eceeef;
}

.event-2-media-empty {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px dashed #d9dde1;
  border-radius: 16px;
  background: #fafafa;
}

.event-2-media-empty strong {
  display: block;
  max-width: 260px;
  margin-top: 6px;
  font-size: 1rem;
  line-height: 1.2;
}

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

@media (max-width: 991.98px) {
  .media2-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-media2-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .media2-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .media2-grid {
    grid-template-columns: 1fr;
  }

  .media2-card-media,
  .event-2-media-visual,
  .media2-event-visual {
    aspect-ratio: 4 / 3;
  }

  .home-media2-rail {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }

  .home-media2-card {
    min-width: 82vw;
    aspect-ratio: 4 / 3;
    scroll-snap-align: start;
  }
}

@media (max-width: 575.98px) {
  .event-2-media-empty {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* =========================================================
   MEDIA 2.6 · FINAL PAGE LOADING / TEXT FALLBACK
========================================================= */

/* Home/Event use text fallbacks instead of provider SVG logos. */
.home-media2-provider-fallback {
  display: grid;
  place-items: center;
  padding: 24px;
  color: #fff;
  text-align: center;
}

.home-media2-provider-fallback > span {
  display: inline-block;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.media2-text-fallback {
  display: grid !important;
  place-items: center !important;
  padding: 24px;
  background: #111;
  color: #fff !important;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.event-2-media-provider {
  display: inline-flex;
  align-items: center;
  color: var(--media-provider);
  font-weight: 800;
}

/* Explicitly suppress all legacy floating provider badges/play buttons. */
.media2-card .media2-provider,
.media2-card .media2-play {
  display: none !important;
}

/* SERIES · Media provider label */
.series-2-media-provider{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.series-2-media-provider .media-provider-svg,
.series-2-media-provider .media-provider-svg svg{
  width:14px!important;
  height:14px!important;
  min-width:14px!important;
  min-height:14px!important;
  max-width:14px!important;
  max-height:14px!important;
}
