/* Natural scrolling: all public sections remain visible. Mobile menu and original photography are preserved. */
html.p-home-nav body[data-visual="home"] header nav a[aria-current="location"] {
  color: #ff8798;
  text-decoration: underline;
  text-underline-offset: 7px;
}

/* The home view is a single screen, but the design and legal credits must remain visible. */
html.p-home-nav body[data-visual="home"] > footer {
  grid-row: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 9px 5%;
  padding-left: max(165px, 5%); /* room for the privacy button */
  background: #100b0d;
  border-top: 1px solid #7b2735;
  color: #d3a5ad;
  font-size: 12px;
  line-height: 1.35;
  position: relative;
  z-index: 1;
}
html.p-home-nav body[data-visual="home"] > footer > p { margin: 0; }
html.p-home-nav body[data-visual="home"] > footer > p:first-child { display: none; }
html.p-home-nav body[data-visual="home"] > footer > p:nth-of-type(2) {
  order: 2;
  color: #e4ced2;
  white-space: nowrap;
}
html.p-home-nav body[data-visual="home"] > footer > p:nth-of-type(2) a {
  color: #dc9fa9;
  text-decoration: underline;
  text-underline-offset: 3px;
}
html.p-home-nav body[data-visual="home"] > footer > nav {
  order: 1;
  gap: 7px 15px !important;
}
html.p-home-nav body[data-visual="home"] > footer > nav a {
  color: #d3a5ad;
  text-decoration: none;
  font-size: 12px;
}
html.p-home-nav body[data-visual="home"] > footer > nav a:hover,
html.p-home-nav body[data-visual="home"] > footer > nav a:focus-visible {
  color: #dc9fa9;
}
@media (max-width: 720px) {
  html.p-home-nav body[data-visual="home"] > footer {
    padding: 7px 5%;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }
  html.p-home-nav body[data-visual="home"] > footer > nav {
    justify-content: center !important;
    gap: 4px 12px !important;
  }
  html.p-home-nav body[data-visual="home"] > footer > nav a { font-size: 10px; }
  html.p-home-nav body[data-visual="home"] > footer > p:nth-of-type(2) {
    align-self: flex-end;
    margin-right: 2px;
  }
}
html.p-home-nav body[data-visual="home"] .p-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #da3450;
  border-radius: 4px;
  background: #211519;
  color: #f8f3f4;
  font: 700 14px/1.3 Arial,sans-serif;
}
@media (max-width: 720px) {
  html.p-home-nav body[data-visual="home"] > header {
    align-items: center;
    min-height: 65px;
    gap: 12px;
  }
  html.p-home-nav body[data-visual="home"] .p-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  html.p-home-nav body[data-visual="home"] > header nav {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    max-height: calc(100dvh - 65px);
    padding: 14px 6% 24px;
    overflow-y: auto;
    background: rgba(13,8,11,.98);
    border-bottom: 1px solid #852a39;
    box-shadow: 0 14px 38px #0009;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  html.p-home-nav body[data-visual="home"] > header[data-menu-open="true"] nav {
    display: flex !important;
  }
  html.p-home-nav body[data-visual="home"] > header nav a {
    min-height: 44px;
    padding: 12px 0;
    font-size: 15px;
    border-bottom: 1px solid #7a273555;
  }
  html.p-home-nav body[data-visual="home"] > .hero {
    padding: clamp(28px,7vh,65px) 6%;
  }
}

@media(max-width: 768px) {
  html.p-home-nav body[data-visual="home"][data-p-view="home"] > .hero {
    min-height: calc(100dvh - 110px);
  }
}

/* Exactly two hero actions on the homepage, matching the music catalog. */
body[data-visual="home"] .p-hero-actions{display:flex;flex-wrap:wrap;gap:14px}
body[data-visual="home"] .p-hero-actions .btn{background:#d23f60;color:#fff;border:1px solid #e45d79;min-width:160px;text-align:center}
body[data-visual="home"] .p-hero-actions .btn.alt{background:#0c090eae;border-color:#d23f60;color:#fff}
@media(min-width:769px){body[data-visual="home"] .p-hero-actions{flex-wrap:nowrap}}
@media(max-width:480px){body[data-visual="home"] .p-hero-actions .btn{flex:1 1 100%}}

/* 2026-11-07: portrait home view keeps the approved video still fully visible,
   with its own blurred edge-to-edge background and legible lower content. */
@media (max-width: 720px) {
  html.p-home-nav body[data-visual="home"] > .hero {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 12px 6% 20px;
  }
  html.p-home-nav body[data-visual="home"] > .hero::before {
    background-position: center top;
    filter: blur(28px) brightness(.46) saturate(1.08);
  }
  html.p-home-nav body[data-visual="home"] > .hero::after {
    background-image:
      linear-gradient(0deg, rgba(8,5,8,.98) 0%, rgba(8,5,8,.90) 22%, rgba(8,5,8,.60) 43%, rgba(8,5,8,.06) 76%),
      var(--p-hero-photo);
    background-size: cover, contain;
    background-position: center, center top;
    background-repeat: no-repeat;
  }
  html.p-home-nav body[data-visual="home"] > .hero > div {
    align-self: flex-end;
    max-width: 100%;
    width: 100%;
    margin-top: auto;
  }
  html.p-home-nav body[data-visual="home"] > .hero h1 {
    font-size: clamp(38px, 10vw, 57px);
    margin: 8px 0;
  }
  html.p-home-nav body[data-visual="home"] > .hero .eyebrow { font-size: 10px; }
  html.p-home-nav body[data-visual="home"] > .hero .lead {
    font-size: clamp(14px, 3.7vw, 17px);
    line-height: 1.37;
    margin: 10px 0;
  }
  html.p-home-nav body[data-visual="home"] > .hero .buttons {
    flex-wrap: nowrap;
    margin-top: 12px;
    gap: 9px;
  }
  html.p-home-nav body[data-visual="home"] .p-hero-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    font-size: clamp(12px, 3.2vw, 15px);
    padding: 10px 8px;
    justify-content: center;
    white-space: nowrap;
  }

  /* Keep cookies, GDPR, legal links, credits and WEBU below the photograph. */
  html.p-home-nav body[data-visual="home"] > footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px max(9px, env(safe-area-inset-bottom));
    width: 100%;
    text-align: center;
  }
  html.p-home-nav body[data-visual="home"] > footer > nav {
    order: 1;
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 10px !important;
    justify-content: stretch !important;
  }
  html.p-home-nav body[data-visual="home"] > footer > nav a {
    display: block;
    padding: 2px 0;
    font-size: clamp(10px, 2.8vw, 12px);
    line-height: 1.25;
    white-space: normal;
  }
  html.p-home-nav body[data-visual="home"] > footer #p-privacy-reopen {
    order: 0;
    position: static;
    align-self: center;
    margin: 0;
    padding: 5px 8px;
    border-radius: 7px;
    font-size: 11px;
    line-height: 1.2;
  }
  html.p-home-nav body[data-visual="home"] > footer > p:nth-of-type(2) {
    order: 2;
    align-self: center;
    font-size: 11px;
  }
  html.p-home-nav body[data-visual="home"] > footer > p:first-child {
    order: 3;
    display: block;
    align-self: center;
    font-size: 10px;
    line-height: 1.35;
    color: #bd9ea5;
    text-align: center;
  }
}

/* Narrow phone correction: keep headline and actions above the footer, and
   prevent legal/WEBU credits from dropping under the Android navigation bar. */
@media (max-width: 720px) {
  html.p-home-nav body[data-visual="home"] > header {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 62px !important;
    padding: 10px 5% !important;
  }
  html.p-home-nav body[data-visual="home"] > header .logo {
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
    font-size: clamp(17px, 5vw, 22px);
    letter-spacing: .13em;
  }
  html.p-home-nav body[data-visual="home"] > header .p-menu-toggle {
    flex: 0 0 auto;
    margin: 0 0 0 auto !important;
    white-space: nowrap;
    padding: 9px 12px;
  }
  html.p-home-nav body[data-visual="home"] > header nav {
    position: absolute;
    top: 100%;
  }
  html.p-home-nav body[data-visual="home"] > .hero > div {
    transform: translateY(-clamp(48px, 9dvh, 90px));
  }
  html.p-home-nav body[data-visual="home"] > footer {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center !important;
    align-items: center !important;
    gap: 3px !important;
    padding: 7px 10px max(8px, env(safe-area-inset-bottom)) !important;
    min-height: 0;
    max-height: 32dvh;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    text-align: center;
  }
  html.p-home-nav body[data-visual="home"] > footer #p-privacy-reopen {
    grid-column: 1;
    order: 0 !important;
    justify-self: center;
    font-size: 10px;
    padding: 4px 8px;
  }
  html.p-home-nav body[data-visual="home"] > footer > p:nth-of-type(2) {
    grid-column: 1;
    order: 1 !important;
    display: block !important;
    justify-self: center;
    font-size: 12px;
    font-weight: 700;
    margin: 0 !important;
  }
  html.p-home-nav body[data-visual="home"] > footer > p:nth-of-type(2) a {
    font-weight: 800;
    color: #ffa6b7;
  }
  html.p-home-nav body[data-visual="home"] > footer > nav {
    grid-column: 1;
    order: 2 !important;
    display: grid !important;
    width: min(100%, 520px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 3px 8px !important;
  }
  html.p-home-nav body[data-visual="home"] > footer > nav a {
    font-size: clamp(10px, 2.65vw, 12px) !important;
    line-height: 1.2;
  }
  html.p-home-nav body[data-visual="home"] > footer > p:first-child {
    grid-column: 1;
    order: 3 !important;
    display: block !important;
    justify-self: center;
    margin: 0 !important;
    font-size: 9px;
    line-height: 1.25;
    max-width: 100%;
  }
}

/* Portrait composition: reproduce the desktop's photo-and-type overlay on phones.
   The authentic wide still stays sharp, fades into its blurred full-height copy,
   and never becomes a disconnected photo strip above an empty dark panel. */
@media (max-width: 720px) {
  html.p-home-nav body[data-visual="home"] > .hero {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0 6% !important;
  }
  html.p-home-nav body[data-visual="home"] > .hero::before {
    inset: -28px;
    background-size: cover;
    background-position: center;
    filter: blur(30px) brightness(.55) saturate(1.13);
    transform: scale(1.02);
  }
  html.p-home-nav body[data-visual="home"] > .hero::after {
    background-image:
      linear-gradient(180deg, rgba(8,5,8,.09) 0%, rgba(8,5,8,.12) 31%, rgba(8,5,8,.54) 55%, rgba(8,5,8,.87) 100%),
      var(--p-hero-photo);
    background-size: cover, 100% auto;
    background-position: center, center top;
    background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 23vw, transparent 65vw);
    mask-image: linear-gradient(to bottom, #000 0, #000 23vw, transparent 65vw);
  }
  html.p-home-nav body[data-visual="home"] > .hero > div {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    width: 100%;
    min-height: 100%;
    max-width: 100%;
    margin: 0;
    padding: clamp(132px, 36vw, 185px) 0 14px;
    transform: none;
  }
  html.p-home-nav body[data-visual="home"] > .hero h1,
  html.p-home-nav body[data-visual="home"] > .hero .lead {
    text-shadow: 0 3px 18px #050304, 0 1px 4px #050304;
  }
  html.p-home-nav body[data-visual="home"] > .hero .buttons {
    width: 100%;
  }
}
