/* Everprods Global Shell v0.1: hard full-bleed override for the home/player pages. */
html,
body.evprd-shell-active {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  background: #030303 !important;
  color: rgba(255,255,255,.94) !important;
}
body.evprd-shell-active * { box-sizing: border-box; }
body.evprd-shell-active a { text-decoration: none; }

/* Kill the default/block/Breakdance wrapper gaps that create the white top and bottom bands. */
body.evprd-shell-active #page,
body.evprd-shell-active .site,
body.evprd-shell-active .site-content,
body.evprd-shell-active .content-area,
body.evprd-shell-active #content,
body.evprd-shell-active #primary,
body.evprd-shell-active .wp-site-blocks,
body.evprd-shell-active main,
body.evprd-shell-active article,
body.evprd-shell-active .entry,
body.evprd-shell-active .entry-content,
body.evprd-shell-active .wp-block-post-content,
body.evprd-shell-active .wp-block-group,
body.evprd-shell-active .wp-block-shortcode,
body.evprd-shell-active .ep-site,
body.evprd-shell-active .ep-site-main,
body.evprd-shell-active .ep-page,
body.evprd-shell-active .ep-page-inner {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #030303 !important;
  overflow-x: clip !important;
}
body.evprd-shell-active .entry-header,
body.evprd-shell-active .page-header,
body.evprd-shell-active .wp-block-post-title,
body.evprd-shell-active .entry-title,
body.evprd-shell-active .site-title,
body.evprd-shell-active .site-description,
body.evprd-shell-active header.wp-block-template-part,
body.evprd-shell-active .wp-site-blocks > header,
body.evprd-shell-active .site-header,
body.evprd-shell-active .breakdance-header,
body.evprd-shell-active footer.wp-block-template-part,
body.evprd-shell-active .wp-site-blocks > footer,
body.evprd-shell-active .site-footer:not(.ep-site-footer):not(.evprd-global-footer),
body.evprd-shell-active .breakdance-footer {
  display: none !important;
}
body.evprd-shell-active .wp-block-post-content > :where(*),
body.evprd-shell-active .entry-content > :where(*) {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Hide the older in-plugin nav/footer so there is one stable global shell. */
body.evprd-shell-active .ever-home-nav,
body.evprd-shell-active .ever-md-nav,
body.evprd-shell-active .ep-site-nav,
body.evprd-shell-active .ep-site-footer {
  display: none !important;
}

/* Full-viewport plugin sections. */
body.evprd-shell-home .ever-home-shell,
body.evprd-shell-player .ever-md-shell,
body.evprd-shell-player .ever-queue-shell {
  width: 100vw !important;
  max-width: none !important;
  margin: 0 !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  background: #030303 !important;
}
body.evprd-shell-home .ever-home-shell {
  height: 100svh !important;
  min-height: 100svh !important;
  overflow: hidden !important;
  padding: 0 !important;
}
body.evprd-shell-home .ever-home-stage {
  min-height: 100svh !important;
  padding-top: clamp(108px, 13vh, 150px) !important;
  padding-bottom: clamp(86px, 10vh, 120px) !important;
}
body.evprd-shell-home .ever-home-cards {
  height: clamp(440px, 62vh, 760px) !important;
}
body.evprd-shell-home .ever-home-card {
  width: clamp(330px, 35vw, 620px) !important;
}
body.evprd-shell-home .ever-home-copy {
  top: clamp(54px, 8vh, 88px) !important;
}
body.evprd-shell-home .ever-home-current {
  bottom: clamp(72px, 8.8vh, 98px) !important;
}
body.evprd-shell-home .ever-home-arrow-prev { left: clamp(16px, 2.6vw, 48px) !important; }
body.evprd-shell-home .ever-home-arrow-next { right: clamp(16px, 2.6vw, 48px) !important; }

/* Global fixed header. */
.evprd-global-header {
  position: fixed;
  z-index: 99990;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: minmax(80px, 1fr) auto minmax(80px, 1fr);
  align-items: center;
  gap: 20px;
  height: clamp(64px, 8vh, 92px);
  padding: 0 clamp(20px, 3.2vw, 52px);
  background: linear-gradient(180deg, rgba(3,3,3,.84), rgba(3,3,3,.30) 72%, transparent);
  pointer-events: none;
}
body.admin-bar .evprd-global-header { top: 32px; }
.evprd-global-header a,
.evprd-global-theme-toggle {
  pointer-events: auto;
  color: rgba(255,255,255,.82);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(10px, .72vw, 12px);
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-shadow: 0 2px 20px rgba(0,0,0,.84);
}
.evprd-global-header a:hover { color: #fff; }
.evprd-global-logo { justify-self: start; display: inline-flex; align-items: center; justify-content: center; }
.evprd-global-logo img { width: clamp(34px, 3vw, 50px); height: clamp(34px, 3vw, 50px); object-fit: contain; }
.evprd-global-player { justify-self: center; }
.evprd-global-right { justify-self: end; display: inline-flex; align-items: center; gap: clamp(12px, 1.6vw, 24px); }
.evprd-global-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  min-width: 58px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  cursor: pointer;
}

/* Disclosure-style fixed footer. */
.evprd-global-footer {
  position: fixed;
  z-index: 99990;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: end;
  gap: 18px;
  padding: 12px clamp(24px, 3vw, 54px) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.70));
  pointer-events: none;
}
.evprd-global-footer-left,
.evprd-global-footer-right,
.evprd-global-footer-centre {
  display: flex;
  align-items: center;
  min-width: 0;
  pointer-events: auto;
}
.evprd-global-footer-left { justify-content: flex-start; gap: clamp(12px, 1.35vw, 20px); }
.evprd-global-footer-right { justify-content: flex-end; gap: clamp(12px, 1.35vw, 20px); }
.evprd-global-footer-centre { justify-content: center; gap: 10px; white-space: nowrap; }
.evprd-global-footer-centre a,
.evprd-global-footer-centre span {
  color: rgba(255,255,255,.62);
  font-size: 10px;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.evprd-footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(26px, 2.2vw, 34px);
  height: clamp(26px, 2.2vw, 34px);
  line-height: 1;
  opacity: .88;
  transition: transform .22s cubic-bezier(.2,.7,.2,1), opacity .22s ease, filter .22s ease;
}
.evprd-footer-icon:hover { transform: translateY(-2px); opacity: 1; filter: drop-shadow(0 0 12px rgba(255,255,255,.22)); }
.evprd-footer-icon.is-disabled { opacity: .20; pointer-events: none; }
.evprd-footer-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.evprd-footer-icon-spotify { width: clamp(31px, 2.75vw, 44px); }
.evprd-footer-icon-soundcloud { width: clamp(48px, 4.6vw, 68px); }
.evprd-footer-icon-apple-music,
.evprd-footer-icon-youtube,
.evprd-footer-icon-facebook,
.evprd-footer-icon-instagram,
.evprd-footer-icon-tiktok { transform: scale(.90); }
.evprd-footer-icon-apple-music:hover,
.evprd-footer-icon-youtube:hover,
.evprd-footer-icon-facebook:hover,
.evprd-footer-icon-instagram:hover,
.evprd-footer-icon-tiktok:hover { transform: translateY(-2px) scale(.90); }

/* Light mode. */
html.evprd-light-theme,
body.evprd-light-theme.evprd-shell-active {
  background: #f3efe6 !important;
  color: rgba(18,18,18,.92) !important;
}
body.evprd-light-theme.evprd-shell-active #page,
body.evprd-light-theme.evprd-shell-active .site,
body.evprd-light-theme.evprd-shell-active .site-content,
body.evprd-light-theme.evprd-shell-active #content,
body.evprd-light-theme.evprd-shell-active #primary,
body.evprd-light-theme.evprd-shell-active .wp-site-blocks,
body.evprd-light-theme.evprd-shell-active main,
body.evprd-light-theme.evprd-shell-active article,
body.evprd-light-theme.evprd-shell-active .entry-content,
body.evprd-light-theme.evprd-shell-active .wp-block-post-content,
body.evprd-light-theme.evprd-shell-active .wp-block-group,
body.evprd-light-theme.evprd-shell-active .wp-block-shortcode,
body.evprd-light-theme.evprd-shell-active .ep-site,
body.evprd-light-theme.evprd-shell-active .ep-site-main,
body.evprd-light-theme.evprd-shell-active .ep-page,
body.evprd-light-theme.evprd-shell-active .ep-page-inner,
body.evprd-light-theme.evprd-shell-home .ever-home-shell,
body.evprd-light-theme.evprd-shell-player .ever-md-shell,
body.evprd-light-theme.evprd-shell-player .ever-queue-shell {
  background: #f3efe6 !important;
}
body.evprd-light-theme .evprd-global-header { background: linear-gradient(180deg, rgba(243,239,230,.88), rgba(243,239,230,.35) 72%, transparent); }
body.evprd-light-theme .evprd-global-header a,
body.evprd-light-theme .evprd-global-theme-toggle { color: rgba(18,18,18,.70); text-shadow: none; }
body.evprd-light-theme .evprd-global-header a:hover { color: #111; }
body.evprd-light-theme .evprd-global-theme-toggle { border-color: rgba(0,0,0,.14); background: rgba(0,0,0,.035); }
body.evprd-light-theme .evprd-global-footer { background: linear-gradient(180deg, transparent, rgba(243,239,230,.86)); }
body.evprd-light-theme .evprd-global-footer-centre a,
body.evprd-light-theme .evprd-global-footer-centre span { color: rgba(18,18,18,.58); }
body.evprd-light-theme.evprd-shell-home .ever-home-shell,
body.evprd-light-theme.evprd-shell-player .ever-md-shell { color: rgba(18,18,18,.92) !important; }

@media (max-width: 760px) {
  body.admin-bar .evprd-global-header { top: 46px; }
  .evprd-global-header {
    height: 58px;
    padding: 0 14px;
    grid-template-columns: 1fr auto 1fr;
  }
  .evprd-global-logo img { width: 32px; height: 32px; }
  .evprd-global-header a,
  .evprd-global-theme-toggle { font-size: 9px; letter-spacing: .16em; }
  .evprd-global-theme-toggle { height: 26px; min-width: 52px; padding: 0 8px; }
  .evprd-global-right { gap: 9px; }
  body.evprd-shell-home .ever-home-stage { padding-top: 104px !important; padding-bottom: 92px !important; }
  body.evprd-shell-home .ever-home-copy { top: 58px !important; }
  body.evprd-shell-home .ever-home-card { width: min(86vw, 420px) !important; }
  body.evprd-shell-home .ever-home-cards { height: min(61vh, 560px) !important; min-height: 360px !important; }
  .evprd-global-footer {
    grid-template-columns: 1fr;
    align-items: center;
    gap: 7px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  }
  .evprd-global-footer-left,
  .evprd-global-footer-right,
  .evprd-global-footer-centre { justify-content: center; }
  .evprd-global-footer-centre { display: none; }
  .evprd-footer-icon { width: 28px; height: 28px; }
  .evprd-footer-icon-soundcloud { width: 52px; }
}


/* v0.2 readability + layout hardening */
body.evprd-shell-active {
  --evprd-page-bg: #030303;
  --evprd-text: rgba(255,255,255,.94);
  --evprd-muted: rgba(255,255,255,.68);
  --evprd-soft: rgba(255,255,255,.10);
  --evprd-line: rgba(255,255,255,.18);
}
body.evprd-light-theme.evprd-shell-active {
  --evprd-page-bg: #f3efe6;
  --evprd-text: rgba(18,18,18,.94);
  --evprd-muted: rgba(18,18,18,.70);
  --evprd-soft: rgba(0,0,0,.07);
  --evprd-line: rgba(0,0,0,.18);
}
body.evprd-shell-active,
body.evprd-shell-active #page,
body.evprd-shell-active .site,
body.evprd-shell-active .site-content,
body.evprd-shell-active .content-area,
body.evprd-shell-active #content,
body.evprd-shell-active #primary,
body.evprd-shell-active .wp-site-blocks,
body.evprd-shell-active main,
body.evprd-shell-active article,
body.evprd-shell-active .entry,
body.evprd-shell-active .entry-content,
body.evprd-shell-active .wp-block-post-content,
body.evprd-shell-active .wp-block-group,
body.evprd-shell-active .wp-block-shortcode,
body.evprd-shell-active .ep-site,
body.evprd-shell-active .ep-site-main,
body.evprd-shell-active .ep-page,
body.evprd-shell-active .ep-page-inner {
  background: var(--evprd-page-bg) !important;
  color: var(--evprd-text) !important;
}
body.evprd-shell-active .ever-home-copy,
body.evprd-shell-active .ever-home-current {
  display: none !important;
}
body.evprd-shell-active .evprd-global-header a,
body.evprd-shell-active .evprd-global-theme-toggle,
body.evprd-shell-active .evprd-global-footer-centre a,
body.evprd-shell-active .evprd-global-footer-centre span {
  color: var(--evprd-muted) !important;
}
body.evprd-shell-active .evprd-global-header a:hover,
body.evprd-shell-active .evprd-global-footer-centre a:hover { color: var(--evprd-text) !important; }
body.evprd-light-theme .evprd-global-header {
  background: linear-gradient(180deg, rgba(243,239,230,.94), rgba(243,239,230,.54) 70%, transparent) !important;
}
body.evprd-shell-active .evprd-global-theme-toggle {
  border-color: var(--evprd-line) !important;
  background: var(--evprd-soft) !important;
}
body.evprd-light-theme .evprd-global-footer { background: linear-gradient(180deg, transparent, rgba(243,239,230,.92)) !important; }
body.evprd-shell-active .evprd-footer-icon { opacity: .96; }
body.evprd-light-theme .evprd-footer-icon { filter: drop-shadow(0 1px 3px rgba(0,0,0,.10)); }
body.evprd-shell-home .ever-home-stage {
  padding-top: clamp(78px, 10vh, 120px) !important;
  padding-bottom: clamp(82px, 10vh, 118px) !important;
}
body.evprd-shell-home .ever-home-cards {
  height: clamp(500px, 70vh, 860px) !important;
}
@media (max-width: 760px) {
  body.evprd-shell-home .ever-home-stage { padding-top: 80px !important; padding-bottom: 88px !important; }
}


/* v0.2b: include Stuff page in the same readable global shell */
body.evprd-shell-stuff .ep-page,
body.evprd-shell-stuff .ep-page-inner,
body.evprd-shell-stuff .ep-plain-content,
body.evprd-shell-stuff .entry-content {
  color: var(--evprd-text) !important;
}
body.evprd-shell-stuff .ep-plain-content p,
body.evprd-shell-stuff .ep-plain-content li { color: var(--evprd-muted) !important; }


/* v0.3: equalise Spotify footer icon and add same-page one-click player handoff */
.evprd-footer-icon-spotify {
  width: clamp(30px, 2.45vw, 38px) !important;
  height: clamp(30px, 2.45vw, 38px) !important;
}
.evprd-footer-icon-spotify img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}
.evprd-inline-player {
  position: fixed;
  inset: 0;
  z-index: 99980;
  display: none;
  overflow: auto;
  background: var(--evprd-page-bg, #030303);
  color: var(--evprd-text, #fff);
  -webkit-overflow-scrolling: touch;
}
.evprd-inline-player.is-open { display: block; }
body.evprd-inline-player-open { overflow: hidden !important; }
.evprd-inline-player-scroll { min-height: 100svh; }
.evprd-inline-player-close {
  position: fixed;
  right: clamp(14px, 2.8vw, 42px);
  top: clamp(72px, 9vh, 104px);
  z-index: 100000;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--evprd-line, rgba(255,255,255,.18));
  background: color-mix(in srgb, var(--evprd-page-bg, #030303) 82%, transparent);
  color: var(--evprd-text, #fff);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 760px) {
  .evprd-footer-icon-spotify {
    width: 30px !important;
    height: 30px !important;
  }
  .evprd-inline-player-close {
    top: 64px;
    right: 12px;
    width: 34px;
    height: 34px;
    font-size: 21px;
  }
}


/* v0.4: Spotify footer replacement asset uses the supplied square transparent icon. */
.evprd-footer-icon-spotify {
  width: clamp(28px, 2.2vw, 34px) !important;
  height: clamp(28px, 2.2vw, 34px) !important;
}
.evprd-footer-icon-spotify img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}
@media (max-width: 760px) {
  .evprd-footer-icon-spotify { width: 28px !important; height: 28px !important; }
}
