/*
 * Homepage proportions follow the original Sony Music desktop layout.
 * This file intentionally loads after styles.css to neutralize old experiments.
 */
html body.home-page {
  overflow-x: hidden !important;
  background: #fff !important;
}

html body.home-page::before,
html body.home-page::after {
  content: none !important;
  display: none !important;
}

html body.home-page .home-top-sony {
  position: relative !important;
  inset: auto !important;
  z-index: 100 !important;
  display: block !important;
  width: 100% !important;
  height: 68px !important;
  min-height: 68px !important;
  margin: 0 !important;
  padding: 15px 16px 0 !important;
  box-sizing: border-box !important;
  background: #000 !important;
  color: #fff !important;
  text-align: right !important;
  font-family: Georgia, 'Times New Roman', serif !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 2px !important;
  visibility: visible !important;
  opacity: 1 !important;
}

html body.home-page .home-main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body.home-page .home-hero {
  position: relative !important;
  width: 100% !important;
  height: 442px !important;
  min-height: 442px !important;
  max-height: 442px !important;
  margin: 0 !important;
  overflow: hidden !important;
}

html body.home-page .home-header {
  position: absolute !important;
  top: 70px !important;
  left: 50% !important;
  z-index: 55 !important;
  display: flex !important;
  align-items: flex-start !important;
  width: 960px !important;
  max-width: calc(100vw - 44px) !important;
  min-height: 0 !important;
  gap: 58px !important;
  margin: 0 !important;
  padding: 22px 0 0 !important;
  transform: translateX(-50%) !important;
  background: transparent !important;
  border: 0 !important;
}

html body.home-page .home-logo {
  display: grid !important;
  flex: 0 0 112px !important;
  width: 112px !important;
  justify-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  font-family: Georgia, 'Times New Roman', serif !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 2px !important;
  text-decoration: none !important;
}

html body.home-page .home-logo .dot-mark,
html body.home-page .dot-mark {
  display: block !important;
  width: 82px !important;
  height: 82px !important;
  min-width: 82px !important;
  min-height: 82px !important;
  max-width: 82px !important;
  max-height: 82px !important;
  margin: 0 !important;
  border-radius: 50% !important;
  background-image: radial-gradient(circle, #e51b23 2.4px, transparent 3px) !important;
  background-size: 9px 9px !important;
  clip-path: circle(50%) !important;
}

html body.home-page .home-nav,
html body.home-page .home-header .nav {
  display: flex !important;
  align-items: flex-start !important;
  gap: 44px !important;
  margin: 0 !important;
  padding: 38px 0 0 !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  text-transform: none !important;
}

html body.home-page .home-nav a,
html body.home-page .home-nav button,
html body.home-page .home-header .nav a,
html body.home-page .home-header .nav button {
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  text-transform: none !important;
}

html body.home-page .hero-slide h1,
html body.home-page .home-main h1 {
  top: 193px !important;
  left: max(200px, calc((100vw - 960px) / 2 + 127px)) !important;
  margin: 0 !important;
  font-size: 28px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

html body.home-page .hero-slide img {
  object-fit: cover !important;
  object-position: center center !important;
}

html body.home-page .hero-arrow,
html body.home-page .hero-arrow:hover,
html body.home-page .hero-arrow:active,
html body.home-page .hero-arrow:focus,
html body.home-page .hero-arrow:focus-visible {
  width: 38px !important;
  height: 64px !important;
  min-width: 38px !important;
  min-height: 64px !important;
  padding: 0 !important;
  background: rgba(0, 0, 0, .18) !important;
  outline: 0 !important;
  box-shadow: none !important;
  opacity: .68 !important;
}

html body.home-page .hero-arrow.left {
  left: 18px !important;
}

html body.home-page .hero-arrow.right {
  right: 18px !important;
}

html body.home-page #heroDots,
html body.home-page .slider-dots {
  bottom: 16px !important;
  gap: 12px !important;
  padding: 8px 12px !important;
}

html body.home-page #heroDots button,
html body.home-page .slider-dots button,
html body.home-page #heroDots .is-active,
html body.home-page .slider-dots .is-active {
  width: 11px !important;
  height: 11px !important;
  min-width: 11px !important;
  min-height: 11px !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, .9) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .88) !important;
}

html body.home-page #heroDots .is-active,
html body.home-page .slider-dots .is-active {
  background: #de666a !important;
  transform: scale(1.25) !important;
}

html body.home-page .label-showcase,
html body.home-page .home-section.label-showcase {
  padding-top: 32px !important;
}

/* Phone layout mirrors the compact proportions of the reference homepage. */
@media (max-width: 860px) {
  html body.home-page .home-top-sony {
    height: 58px !important;
    min-height: 58px !important;
    padding: 15px 16px 0 !important;
    font-size: 19px !important;
    letter-spacing: 1px !important;
  }

  html body.home-page .home-hero {
    height: 420px !important;
    min-height: 420px !important;
    max-height: 420px !important;
  }

  html body.home-page .home-header {
    top: 76px !important;
    left: 16px !important;
    right: 16px !important;
    display: grid !important;
    grid-template-columns: 82px 1fr !important;
    align-items: start !important;
    width: auto !important;
    max-width: none !important;
    gap: 12px !important;
    padding: 0 !important;
    transform: none !important;
  }

  html body.home-page .home-logo {
    position: relative !important;
    z-index: 61 !important;
    display: grid !important;
    width: 82px !important;
    min-width: 82px !important;
    flex-basis: 82px !important;
    gap: 5px !important;
    font-size: 9px !important;
    letter-spacing: 1px !important;
  }

  html body.home-page .home-logo .dot-mark,
  html body.home-page .dot-mark {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
    max-width: 58px !important;
    max-height: 58px !important;
    background-image: radial-gradient(circle, #e51b23 1.75px, transparent 2.2px) !important;
    background-size: 6.4px 6.4px !important;
  }

  html body.home-page .menu-toggle {
    position: relative !important;
    z-index: 62 !important;
    display: inline-flex !important;
    justify-self: end !important;
    align-items: center !important;
    justify-content: center !important;
    width: 76px !important;
    min-width: 76px !important;
    min-height: 40px !important;
    margin: 8px 0 0 !important;
    padding: 8px 12px !important;
    border: 1px solid rgba(255, 255, 255, .6) !important;
    background: rgba(0, 0, 0, .72) !important;
    color: #fff !important;
    font-size: 14px !important;
  }

  html body.home-page .home-nav,
  html body.home-page .home-header .nav {
    position: absolute !important;
    top: 58px !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 60 !important;
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-height: calc(100dvh - 150px) !important;
    margin: 0 !important;
    padding: 6px !important;
    gap: 0 !important;
    overflow-y: auto !important;
    border: 1px solid #333 !important;
    background: rgba(0, 0, 0, .98) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .4) !important;
    font-size: 15px !important;
  }

  html body.home-page .home-nav.open,
  html body.home-page .home-header .nav.open {
    display: flex !important;
  }

  html body.home-page .home-nav > a,
  html body.home-page .home-nav .nav-item > button,
  html body.home-page .home-header .nav > a,
  html body.home-page .home-header .nav .nav-item > button {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 42px !important;
    padding: 10px !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    text-align: left !important;
  }

  html body.home-page .home-nav .nav-item > .dropdown,
  html body.home-page .home-nav .nav-item:hover > .dropdown,
  html body.home-page .home-nav .nav-item:focus-within > .dropdown {
    position: static !important;
    display: none !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 4px !important;
    border: 0 !important;
    background: #343434 !important;
    box-shadow: none !important;
  }

  html body.home-page .home-nav .nav-item.submenu-open > .dropdown {
    display: block !important;
  }

  html body.home-page .home-nav .dropdown a {
    min-height: 38px !important;
    padding: 9px 10px !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
  }

  html body.home-page .hero-slide h1,
  html body.home-page .home-main .hero-slide h1 {
    top: 236px !important;
    left: 26px !important;
    right: auto !important;
    max-width: calc(100% - 52px) !important;
    font-size: 25px !important;
    line-height: 1.05 !important;
    white-space: normal !important;
  }

  html body.home-page .hero-slide img {
    object-position: center center !important;
  }

  html body.home-page .hero-arrow,
  html body.home-page .hero-arrow:hover,
  html body.home-page .hero-arrow:active,
  html body.home-page .hero-arrow:focus,
  html body.home-page .hero-arrow:focus-visible {
    width: 28px !important;
    height: 48px !important;
    min-width: 28px !important;
    min-height: 48px !important;
  }

  html body.home-page .hero-arrow.left {
    left: 0 !important;
  }

  html body.home-page .hero-arrow.right {
    right: 0 !important;
  }

  html body.home-page #heroDots,
  html body.home-page .slider-dots {
    right: 12px !important;
    bottom: 12px !important;
    left: 12px !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 6px 8px !important;
  }

  html body.home-page #heroDots button,
  html body.home-page .slider-dots button,
  html body.home-page #heroDots .is-active,
  html body.home-page .slider-dots .is-active {
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    min-height: 8px !important;
  }

  html body.home-page .home-section {
    width: 100% !important;
    padding: 28px 16px !important;
  }

  html body.home-page .home-section > h2,
  html body.home-page .home-news > h2 {
    margin: 0 0 22px !important;
    font-size: 31px !important;
    line-height: 1.05 !important;
  }

  html body.home-page .label-carousel {
    display: grid !important;
    grid-template-columns: 24px minmax(0, 1fr) 24px !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 6px !important;
    overflow: hidden !important;
  }

  html body.home-page .label-arrow {
    width: 24px !important;
    height: 44px !important;
    min-width: 24px !important;
    padding: 0 !important;
  }

  html body.home-page .label-viewport {
    min-width: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  html body.home-page .home-labels {
    gap: 16px !important;
  }

  html body.home-page .home-labels a {
    flex: 0 0 118px !important;
    width: 118px !important;
    min-width: 118px !important;
    height: 86px !important;
    padding: 10px !important;
  }

  html body.home-page .home-labels img {
    max-width: 96px !important;
    max-height: 62px !important;
  }

  html body.home-page .video-strip-wrap,
  html body.home-page .video-strip,
  html body.home-page .home-videos {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 20px !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  html body.home-page .sony-video-tile,
  html body.home-page .sony-video-embed {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
  }

  html body.home-page .sony-video-embed {
    position: relative !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
    background: #000 !important;
  }

  html body.home-page .sony-video-embed iframe {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    border: 0 !important;
  }

  html body.home-page .sony-video-tile strong {
    display: block !important;
    padding: 9px 10px !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
  }

  html body.home-page .home-news-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 32px !important;
  }

  html body.home-page .compact-news article,
  html body.home-page .compact-news .news-item {
    width: 100% !important;
    min-width: 0 !important;
    margin-bottom: 30px !important;
  }

  html body.home-page .compact-news h3,
  html body.home-page .news-list h3 {
    max-width: 100% !important;
    font-size: 21px !important;
    line-height: 1.18 !important;
    overflow-wrap: anywhere !important;
  }

  html body.home-page .compact-news p,
  html body.home-page .news-list p {
    max-width: 100% !important;
    font-size: 15px !important;
    line-height: 1.42 !important;
    overflow-wrap: anywhere !important;
  }
}

@media (max-width: 420px) {
  html body.home-page .home-hero {
    height: 400px !important;
    min-height: 400px !important;
    max-height: 400px !important;
  }

  html body.home-page .hero-slide h1,
  html body.home-page .home-main .hero-slide h1 {
    top: 224px !important;
    font-size: 23px !important;
  }
}

/* Final phone layout: compact, readable, and contained to the viewport. */
@media (max-width: 600px) {
  html body.home-page .home-top-sony {
    height: 54px !important;
    min-height: 54px !important;
    padding: 14px 14px 0 !important;
    font-size: 18px !important;
  }

  html body.home-page .home-hero {
    height: 360px !important;
    min-height: 360px !important;
    max-height: 360px !important;
  }

  html body.home-page .home-header {
    top: 66px !important;
    right: 12px !important;
    left: 12px !important;
    grid-template-columns: 70px minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  html body.home-page .home-logo {
    width: 70px !important;
    min-width: 70px !important;
    flex-basis: 70px !important;
    font-size: 8px !important;
  }

  html body.home-page .home-logo .dot-mark,
  html body.home-page .dot-mark {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
  }

  html body.home-page .menu-toggle {
    min-width: 64px !important;
    min-height: 36px !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
  }

  html body.home-page .home-nav,
  html body.home-page .home-header .nav {
    top: 48px !important;
    right: 0 !important;
    left: 0 !important;
    max-height: calc(100dvh - 122px) !important;
    padding: 5px !important;
  }

  html body.home-page .home-nav > a,
  html body.home-page .home-nav .nav-item > button,
  html body.home-page .home-nav .dropdown a {
    min-height: 38px !important;
    padding: 8px 9px !important;
    font-size: 14px !important;
  }

  html body.home-page .hero-slide h1,
  html body.home-page .home-main .hero-slide h1 {
    top: 190px !important;
    left: 22px !important;
    max-width: calc(100% - 44px) !important;
    font-size: 22px !important;
  }

  html body.home-page .hero-arrow,
  html body.home-page .hero-arrow:hover,
  html body.home-page .hero-arrow:active,
  html body.home-page .hero-arrow:focus,
  html body.home-page .hero-arrow:focus-visible {
    width: 24px !important;
    height: 42px !important;
    min-width: 24px !important;
    min-height: 42px !important;
  }

  html body.home-page #heroDots,
  html body.home-page .slider-dots {
    right: 8px !important;
    bottom: 8px !important;
    left: 8px !important;
    gap: 5px !important;
    padding: 5px 6px !important;
  }

  html body.home-page #heroDots button,
  html body.home-page .slider-dots button,
  html body.home-page #heroDots .is-active,
  html body.home-page .slider-dots .is-active {
    width: 7px !important;
    height: 7px !important;
    min-width: 7px !important;
    min-height: 7px !important;
  }

  html body.home-page .home-section {
    padding: 24px 14px !important;
  }

  html body.home-page .home-section > h2,
  html body.home-page .home-news > h2 {
    margin-bottom: 18px !important;
    font-size: 27px !important;
  }

  html body.home-page .label-carousel {
    grid-template-columns: 20px minmax(0, 1fr) 20px !important;
    gap: 4px !important;
  }

  html body.home-page .label-arrow {
    width: 20px !important;
    height: 38px !important;
    min-width: 20px !important;
  }

  html body.home-page .home-labels {
    gap: 10px !important;
  }

  html body.home-page .home-labels a {
    flex-basis: 96px !important;
    width: 96px !important;
    min-width: 96px !important;
    height: 72px !important;
    padding: 8px !important;
  }

  html body.home-page .home-labels img {
    max-width: 78px !important;
    max-height: 52px !important;
  }

  html body.home-page .video-strip-wrap,
  html body.home-page .video-strip,
  html body.home-page .home-videos {
    gap: 16px !important;
  }

  html body.home-page .sony-video-tile strong {
    padding: 8px 9px !important;
    font-size: 14px !important;
  }

  html body.home-page .compact-news h3,
  html body.home-page .news-list h3 {
    font-size: 19px !important;
    line-height: 1.18 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }
}

/* Final mobile homepage proportions. Keep this block last. */
@media (max-width: 860px) {
  html body.home-page .home-top-sony {
    height: 52px !important;
    min-height: 52px !important;
    padding: 13px 14px 0 !important;
    font-size: 18px !important;
  }

  html body.home-page .home-hero {
    height: clamp(340px, 54vw, 430px) !important;
    min-height: clamp(340px, 54vw, 430px) !important;
    max-height: clamp(340px, 54vw, 430px) !important;
  }

  html body.home-page .home-header {
    top: 64px !important;
    right: 12px !important;
    left: 12px !important;
    grid-template-columns: 70px minmax(0, 1fr) !important;
    width: auto !important;
    gap: 8px !important;
  }

  html body.home-page .home-logo {
    width: 70px !important;
    min-width: 70px !important;
    flex-basis: 70px !important;
    font-size: 8px !important;
  }

  html body.home-page .home-logo .dot-mark,
  html body.home-page .dot-mark {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
  }

  html body.home-page .menu-toggle {
    width: auto !important;
    min-width: 64px !important;
    min-height: 36px !important;
    margin-top: 6px !important;
    padding: 7px 10px !important;
    font-size: 13px !important;
  }

  html body.home-page .home-nav,
  html body.home-page .home-header .nav {
    top: 48px !important;
    right: 0 !important;
    left: auto !important;
    width: min(270px, calc(100vw - 24px)) !important;
    max-height: calc(100dvh - 118px) !important;
    padding: 6px !important;
  }

  html body.home-page .home-nav > a,
  html body.home-page .home-nav .nav-item > button,
  html body.home-page .home-nav .dropdown a {
    min-height: 38px !important;
    padding: 8px 10px !important;
    font-size: 14px !important;
  }

  html body.home-page .hero-slide h1,
  html body.home-page .home-main .hero-slide h1 {
    top: 57% !important;
    left: 22px !important;
    max-width: calc(100% - 44px) !important;
    font-size: clamp(20px, 5.4vw, 24px) !important;
    transform: translateY(-50%) !important;
  }

  html body.home-page .hero-arrow,
  html body.home-page .hero-arrow:hover,
  html body.home-page .hero-arrow:active,
  html body.home-page .hero-arrow:focus,
  html body.home-page .hero-arrow:focus-visible {
    width: 24px !important;
    height: 42px !important;
    min-width: 24px !important;
    min-height: 42px !important;
  }

  html body.home-page #heroDots,
  html body.home-page .slider-dots {
    right: 8px !important;
    bottom: 8px !important;
    left: 8px !important;
    gap: 5px !important;
    padding: 5px !important;
  }

  html body.home-page #heroDots button,
  html body.home-page .slider-dots button,
  html body.home-page #heroDots .is-active,
  html body.home-page .slider-dots .is-active {
    width: 7px !important;
    height: 7px !important;
    min-width: 7px !important;
    min-height: 7px !important;
  }

  html body.home-page .home-section {
    padding: 24px 14px !important;
  }

  html body.home-page .home-section > h2,
  html body.home-page .home-news > h2 {
    margin-bottom: 18px !important;
    font-size: clamp(25px, 7vw, 29px) !important;
  }

  html body.home-page .label-carousel {
    grid-template-columns: 20px minmax(0, 1fr) 20px !important;
    gap: 4px !important;
  }

  html body.home-page .label-arrow {
    width: 20px !important;
    height: 38px !important;
    min-width: 20px !important;
  }

  html body.home-page .home-labels {
    gap: 10px !important;
  }

  html body.home-page .home-labels a {
    flex: 0 0 96px !important;
    width: 96px !important;
    min-width: 96px !important;
    height: 72px !important;
    padding: 8px !important;
  }

  html body.home-page .home-labels img {
    max-width: 78px !important;
    max-height: 52px !important;
  }

  html body.home-page .video-strip-wrap,
  html body.home-page .video-strip,
  html body.home-page .home-videos {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }

  html body.home-page .sony-video-embed {
    aspect-ratio: 16 / 9 !important;
  }

  html body.home-page .sony-video-tile strong {
    padding: 8px 9px !important;
    font-size: 14px !important;
  }

  html body.home-page .compact-news h3,
  html body.home-page .news-list h3 {
    max-width: 100% !important;
    font-size: clamp(18px, 5.4vw, 21px) !important;
    line-height: 1.18 !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }
}

@media (max-width: 430px) {
  html body.home-page .home-hero {
    height: 340px !important;
    min-height: 340px !important;
    max-height: 340px !important;
  }

  html body.home-page .hero-slide img {
    object-position: center center !important;
  }
}
