/*
 * Visual fallback for Safari versions that pre-date OKLCH colours and CSS
 * cascade layers. Modern browsers ignore this entire block.
 */
@supports not (color: oklch(50% 0.1 200)) {
  * {
    box-sizing: border-box;
  }

  html,
  body {
    margin: 0;
    min-height: 100%;
    background: #080e19;
    color: #f6f7fb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.45;
  }

  body {
    min-width: 320px;
  }

  a {
    color: #42e8f4;
    text-decoration: none;
  }

  button,
  input,
  select {
    font: inherit;
  }

  button,
  [role="button"] {
    cursor: pointer;
  }

  img,
  svg {
    max-width: 100%;
  }

  svg {
    display: inline-block;
    vertical-align: middle;
  }

  .hidden {
    display: none !important;
  }

  .block {
    display: block;
  }

  .flex {
    display: -webkit-flex;
    display: flex;
  }

  .inline-flex {
    display: -webkit-inline-flex;
    display: inline-flex;
  }

  .grid {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
  }

  .flex-col {
    -webkit-flex-direction: column;
    flex-direction: column;
  }

  .flex-wrap {
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
  }

  .items-center {
    -webkit-align-items: center;
    align-items: center;
  }

  .items-start {
    -webkit-align-items: flex-start;
    align-items: flex-start;
  }

  .justify-center {
    -webkit-justify-content: center;
    justify-content: center;
  }

  .justify-between {
    -webkit-justify-content: space-between;
    justify-content: space-between;
  }

  .flex-1 {
    -webkit-flex: 1 1 0%;
    flex: 1 1 0%;
  }

  .shrink-0 {
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
  }

  .min-w-0 {
    min-width: 0;
  }

  .w-full {
    width: 100%;
  }

  .h-full {
    height: 100%;
  }

  .relative {
    position: relative;
  }

  .absolute {
    position: absolute;
  }

  .fixed {
    position: fixed;
  }

  .sticky {
    position: -webkit-sticky;
    position: sticky;
  }

  .inset-0 {
    inset: 0;
  }

  .top-0 {
    top: 0;
  }

  .left-0 {
    left: 0;
  }

  .right-0 {
    right: 0;
  }

  .overflow-hidden {
    overflow: hidden;
  }

  .overflow-x-auto {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .object-cover {
    object-fit: cover;
  }

  .object-contain {
    object-fit: contain;
  }

  .truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  header {
    top: 0;
    z-index: 40;
    border-bottom: 1px solid #2b3548;
    background: #080e19;
  }

  header > div,
  main {
    width: 100%;
    max-width: 1280px;
    margin-right: auto;
    margin-left: auto;
    padding: 12px 16px;
  }

  header > div > .grid:first-child {
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-align-items: center;
    align-items: center;
    gap: 12px;
  }

  header p {
    margin: 10px 0 0;
    border-top: 1px solid #253044;
    padding-top: 8px;
    text-align: center;
    color: #aab3c5;
    font-size: 12px;
  }

  input,
  button,
  [role="combobox"] {
    min-height: 36px;
    border: 1px solid #303a4d;
    border-radius: 8px;
    background: #111827;
    color: #f6f7fb;
    padding: 7px 12px;
  }

  input {
    width: 100%;
  }

  main > .grid,
  main > .grid > div {
    width: 100%;
  }

  main section {
    margin-bottom: 16px;
  }

  main section:first-child {
    overflow: hidden;
    border: 1px solid #303a4d;
    border-radius: 16px;
    background: #141a29;
    padding: 24px;
  }

  h1,
  h2,
  p {
    margin-top: 0;
  }

  h1 {
    margin-bottom: 10px;
    font-size: 34px;
    line-height: 1.15;
  }

  h2 {
    font-size: 16px;
  }

  main section:first-child > p:first-child {
    color: #42e8f4;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
  }

  main section:first-child > .grid {
    gap: 12px;
  }

  main section:first-child > .grid > div {
    -webkit-flex: 1 1 180px;
    flex: 1 1 180px;
    border: 1px solid #293349;
    border-radius: 12px;
    background: #0d1422;
    padding: 12px;
  }

  main section button,
  main section a[role="button"] {
    margin: 4px;
  }

  main section a[href="/free"],
  main section a[href="/launch"] {
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-align-items: center;
    align-items: center;
    min-height: 42px;
    border: 0;
    border-radius: 22px;
    background: #f42d90;
    color: #ffffff;
    padding: 10px 18px;
    font-weight: 700;
  }

  section[aria-label="Recently joined artists"] > div:last-child,
  section[aria-label="Trending artists this week"] > div:last-child {
    display: -webkit-flex;
    display: flex;
    gap: 8px;
    overflow-x: auto;
  }

  section[aria-label="Recently joined artists"] button,
  section[aria-label="Trending artists this week"] button {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    width: 208px;
    min-width: 208px;
    gap: 10px;
    text-align: left;
  }

  section[aria-label="Recently joined artists"] img,
  section[aria-label="Trending artists this week"] img {
    width: 44px;
    height: 44px;
    border-radius: 9px;
    object-fit: cover;
  }

  #grid > div {
    position: relative;
    width: 100%;
    height: 62vh;
    min-height: 380px;
    overflow: hidden;
    border: 1px solid #303a4d;
    border-radius: 16px;
    background: #080e19;
  }

  #grid > div > div:first-child {
    position: absolute;
    top: 0;
    left: 0;
  }

  #grid img {
    display: block;
  }

  footer {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: center;
    justify-content: center;
    gap: 12px;
    border-top: 1px solid #303a4d;
    padding: 20px;
    color: #aab3c5;
  }

  @media (min-width: 640px) {
    .sm\:flex {
      display: -webkit-flex !important;
      display: flex !important;
    }

    .sm\:inline-flex {
      display: -webkit-inline-flex !important;
      display: inline-flex !important;
    }

    .sm\:block {
      display: block !important;
    }

    .sm\:hidden {
      display: none !important;
    }
  }
}