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

.playlists-page-body {
  --playlists-bg: #060708;
  --playlists-line: rgba(255, 255, 255, 0.12);
  --playlists-line-soft: rgba(255, 255, 255, 0.075);
  --playlists-text: #f4f1ec;
  --playlists-accent: #c9ff00;

  background: #111211;
  color: var(--playlists-text);
}

.playlists-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #050505 0%, #080909 48%, #111211 100%);
}

.playlists-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--playlists-text);
  background: var(--playlists-bg);
  border-bottom: 1px solid var(--playlists-line-soft);
}

.playlists-hero__background,
.playlists-hero__glow,
.playlists-hero__noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.playlists-hero__background {
  z-index: -4;
  background-image: url("../assets/img/artists-bg.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  transform: scale(1.02);
  transform-origin: center top;
  will-change: opacity, transform;
}

.playlists-hero__glow {
  z-index: -3;
  opacity: 1;
  background:
    linear-gradient(90deg,
      rgba(4, 5, 6, 0.48) 0%,
      rgba(4, 5, 6, 0.08) 38%,
      rgba(4, 5, 6, 0.16) 68%,
      rgba(4, 5, 6, 0.48) 100%),
    linear-gradient(180deg,
      rgba(4, 5, 6, 0.1) 0%,
      rgba(4, 5, 6, 0.02) 58%,
      rgba(4, 5, 6, 0.42) 100%);
}

.playlists-hero__noise {
  z-index: -2;
  opacity: 0.055;
  background-image: url("../assets/img/noise.png");
  background-size: 280px 280px;
  mix-blend-mode: screen;
}

/* HEADER — DARK VARIANT */

.playlists-header {
  color: var(--playlists-text);
}

.playlists-header .logo__image {
  filter: none;
}

.playlists-header .nav__link,
.playlists-header .join-link,
.playlists-header .language-btn {
  color: var(--playlists-text);
}

.playlists-header .nav__link::after {
  bottom: 9px;
  background: var(--playlists-accent);
}

.playlists-header .menu-btn {
  border-color: rgba(255, 255, 255, 0.34);
}

.playlists-header .menu-btn span {
  background: var(--playlists-text);
}

.playlists-header .menu-btn:hover {
  border-color: var(--playlists-accent);
  box-shadow: 0 0 26px rgba(201, 255, 0, 0.1);
}

.playlists-page-body .mobile-menu {
  background: rgba(5, 6, 7, 0.94);
}

.playlists-page-body .mobile-menu a[aria-current="page"] {
  color: var(--playlists-accent);
}

/* LEFT SOCIAL RAIL */

/* MAIN HERO LAYOUT */

.playlists-hero__main {
  position: relative;
  z-index: 10;
  min-height: calc(100% - var(--header-height));
  margin-left: var(--side-width);
  padding: clamp(48px, 5.8vh, 72px) clamp(48px, 5.3vw, 92px) 42px clamp(54px, 4.4vw, 78px);
  display: grid;
  grid-template-columns: minmax(430px, 1.08fr) minmax(320px, 0.9fr) minmax(250px, 0.58fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: clamp(24px, 3.2vw, 58px);
  row-gap: 42px;
}

.playlists-hero__intro {
  align-self: center;
  min-width: 0;
}

.playlists-hero__title {
  display: flex;
  align-items: baseline;
  gap: 20px;
  width: max-content;
  max-width: 100%;
  font-family: var(--font-display);
  font-size: clamp(72px, 7.2vw, 120px);
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--playlists-text);
}

.playlists-hero__title-outline {
  color: transparent;
  -webkit-text-stroke: 1.25px rgba(244, 241, 236, 0.76);
  opacity: 0.9;
}

.playlists-hero__lead {
  margin-top: 25px;
  max-width: 620px;
  color: rgba(244, 241, 236, 0.86);
  font-size: clamp(18px, 1.34vw, 23px);
  line-height: 1.35;
  font-weight: 500;
}

/* central neon artwork */
.playlists-hero__visual {
  position: relative;
  min-height: 290px;
  pointer-events: none;
}

/* STATISTICS */

.playlists-hero__stats {
  align-self: stretch;
  min-height: 290px;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  border-left: 1px solid var(--playlists-line-soft);
  border-right: 1px solid rgba(255, 255, 255, 0.035);
}

.playlists-hero__stat {
  min-height: 92px;
  padding: 18px 16px 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--playlists-line-soft);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.012), transparent 75%);
}

.playlists-hero__stat:last-child {
  border-bottom: 1px solid var(--playlists-line-soft);
}

.playlists-hero__stat > div {
  min-width: 0;
}

.playlists-hero__stat span {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: rgba(244, 241, 236, 0.62);
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.playlists-hero__stat span i {
  color: var(--playlists-accent);
  font-size: 9px;
  font-style: normal;
}

.playlists-hero__stat strong {
  display: block;
  color: var(--playlists-text);
  font-size: clamp(31px, 2.65vw, 43px);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.playlists-hero__stat > i {
  flex: 0 0 auto;
  width: auto;
  margin-right: 3px;
  color: rgba(244, 241, 236, 0.58);
  font-size: 18px;
  line-height: 1;
  transition: color 0.3s ease, transform 0.3s ease;
}

.playlists-hero__stat:hover > i {
  color: var(--playlists-accent);
  transform: translateX(-2px);
}

/* CATEGORY BUTTONS */

.playlists-hero__filters {
  grid-column: 1 / 3;
  align-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.playlists-filter {
  position: relative;
  min-height: 45px;
  padding: 0 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: rgba(244, 241, 236, 0.9);
  background: rgba(255, 255, 255, 0.008);
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  transition:
    color 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.playlists-filter:hover,
.playlists-filter:focus-visible {
  color: var(--playlists-accent);
  border-color: rgba(201, 255, 0, 0.5);
  transform: translateY(-2px);
}

.playlists-filter:focus-visible {
  outline: 2px solid var(--playlists-accent);
  outline-offset: 3px;
}

.playlists-filter.is-active {
  color: #080908;
  background: var(--playlists-accent);
  border-color: var(--playlists-accent);
  box-shadow: 0 0 25px rgba(201, 255, 0, 0.23);
}

/* INTRO + COUNTERS */

html.playlists-page-animations-ready .playlists-hero__intro,
html.playlists-page-animations-ready .playlists-hero__visual,
html.playlists-page-animations-ready .playlists-hero__stats,
html.playlists-page-animations-ready .playlists-hero__filters {
  opacity: 0;
}

.playlists-hero__stat strong[data-playlists-count] {
  display: inline-block;
  min-width: 4.6ch;
  transform-origin: left center;
  backface-visibility: hidden;
}

.playlists-hero__stats.is-counting
  .playlists-hero__stat strong[data-playlists-count] {
  will-change: contents, opacity, filter;
}

.playlists-hero__stat strong[data-playlists-count].is-count-complete {
  animation: playlistsHeroStatComplete 0.46s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes playlistsHeroStatComplete {
  0% {
    filter: brightness(1);
    transform: translateY(0) scale(1);
  }

  42% {
    filter: brightness(1.15);
    transform: translateY(-1px) scale(1.025);
  }

  100% {
    filter: brightness(1);
    transform: translateY(0) scale(1);
  }
}

/* RESPONSIVE */

@media (max-width: 1320px) {
  .playlists-hero__main {
    grid-template-columns: minmax(390px, 1fr) minmax(270px, 0.76fr) minmax(235px, 0.56fr);
    padding-right: 42px;
    column-gap: 26px;
  }

  .playlists-hero__title {
    gap: 15px;
    font-size: clamp(68px, 6.7vw, 92px);
  }

  .playlists-filter {
    padding-inline: 18px;
  }
}

@media (max-width: 1120px) {
  .playlists-hero {
    min-height: 760px;
  }

  .playlists-hero__main {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.62fr);
    grid-template-rows: auto auto auto;
    padding-top: 42px;
  }

  .playlists-hero__intro {
    grid-column: 1;
  }

  .playlists-hero__visual {
    grid-column: 1;
    grid-row: 2;
    min-height: 220px;
  }

  .playlists-hero__stats {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .playlists-hero__filters {
    grid-column: 1 / 3;
    grid-row: 3;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .playlists-hero__filters::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 820px) {
  .playlists-hero {
    min-height: auto;
  }

  .playlists-hero__background {
    background-position: 48% top;
  }

  .playlists-hero__main {
    margin-left: 0;
    padding: 54px 24px 38px;
    display: block;
  }

  .playlists-hero__title {
    flex-wrap: wrap;
    white-space: normal;
    font-size: clamp(58px, 15vw, 88px);
  }

  .playlists-hero__lead br {
    display: none;
  }

  .playlists-hero__visual {
    min-height: 250px;
    margin: 20px 0;
  }

  .playlists-hero__stats {
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    border: 1px solid var(--playlists-line-soft);
  }

  .playlists-hero__stat {
    border-top: 0;
  }

  .playlists-hero__stat:nth-child(2) {
    border-left: 1px solid var(--playlists-line-soft);
  }

  .playlists-hero__stat--streams {
    grid-column: 1 / 3;
    border-top: 1px solid var(--playlists-line-soft);
  }

  .playlists-hero__filters {
    margin-top: 30px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .playlists-hero__filters::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 560px) {
  .playlists-hero__main {
    padding-inline: 18px;
  }

  .playlists-hero__title {
    gap: 10px;
    font-size: clamp(54px, 17vw, 74px);
  }

  .playlists-hero__lead {
    font-size: 17px;
  }

  .playlists-hero__visual {
    min-height: 210px;
  }

  .playlists-hero__stats {
    display: block;
  }

  .playlists-hero__stat:nth-child(2) {
    border-left: 0;
    border-top: 1px solid var(--playlists-line-soft);
  }

  .playlists-hero__stat--streams {
    border-top: 1px solid var(--playlists-line-soft);
  }

  .playlists-filter {
    min-height: 42px;
    padding-inline: 17px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .playlists-filter,
  .playlists-hero__stat > i {
    transition: none;
  }

  .playlists-hero__stat strong[data-playlists-count].is-count-complete {
    animation: none;
  }
}

/* =========================================================
   PLAYLISTS CATALOG
========================================================= */

.playlists-page-body .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.playlists-catalog {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 100vh;
  color: var(--playlists-text);
  background:
    radial-gradient(circle at 16% 8%, rgba(201, 255, 0, 0.025), transparent 27%),
    linear-gradient(180deg, #050505 0%, #080909 48%, #111211 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.playlists-catalog::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.009) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 68%);
  opacity: 0.32;
}

.playlists-catalog__noise {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("../assets/img/noise.png");
  background-size: 280px 280px;
  mix-blend-mode: screen;
}

.playlists-catalog__shell {
  width: 100%;
  padding: 34px clamp(32px, 4.1vw, 76px) 70px
    calc(var(--side-width) + clamp(32px, 3.25vw, 62px));
}

/* TOOLBAR */

.playlists-catalog__toolbar {
  position: relative;
  z-index: 120;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.62fr);
  align-items: end;
  gap: clamp(22px, 2.6vw, 48px);
  margin-bottom: 34px;
}

.playlists-catalog__toolbar.is-select-open {
  margin-bottom: 34px;
}

.playlists-catalog__filters {
  display: grid;
  grid-template-columns: minmax(220px, 320px);
  align-items: end;
  justify-content: start;
  gap: 16px;
}

.playlist-select {
  min-width: 0;
  min-height: 0;
}

.playlist-select__label {
  display: block;
  margin: 0 0 8px 2px;
  color: rgba(244, 241, 236, 0.54);
  font-size: 10px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.playlist-select__control {
  position: relative;
  z-index: 210;
  min-width: 0;
}

.playlist-select__control.is-open {
  z-index: 280;
}

.playlist-select__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.playlist-select__trigger {
  position: relative;
  width: 100%;
  min-height: 48px;
  padding: 0 43px 0 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--playlists-text);
  background:
    linear-gradient(90deg, rgba(201, 255, 0, 0.035), transparent 45%),
    rgba(255, 255, 255, 0.014);
  font-family: var(--font-main);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease;
}

.playlist-select__trigger::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 2px;
  border-radius: 99px;
  background: var(--playlists-accent);
  box-shadow: 0 0 9px rgba(201, 255, 0, 0.34);
  opacity: 0.72;
}

.playlist-select__trigger > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist-select__trigger > i {
  position: absolute;
  top: 50%;
  right: 15px;
  color: var(--playlists-accent);
  font-size: 9px;
  transform: translateY(-50%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.playlist-select__trigger:hover,
.playlist-select__trigger:focus-visible,
.playlist-select__control.is-open .playlist-select__trigger {
  border-color: rgba(201, 255, 0, 0.42);
  background:
    linear-gradient(90deg, rgba(201, 255, 0, 0.045), transparent 48%),
    rgba(255, 255, 255, 0.018);
  box-shadow:
    0 0 0 1px rgba(201, 255, 0, 0.025),
    0 8px 18px rgba(0, 0, 0, 0.13),
    0 0 12px rgba(201, 255, 0, 0.045);
  outline: none;
}

.playlist-select__control.is-open .playlist-select__trigger > i {
  transform: translateY(-50%) rotate(180deg);
}

.playlist-select__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 300;
  width: 100%;
  min-width: 190px;
  max-height: 292px;
  padding: 6px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid rgba(201, 255, 0, 0.22);
  border-radius: 9px;
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 255, 0, 0.08), transparent 38%),
    rgba(7, 8, 9, 0.98);
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(16px);
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 255, 0, 0.45) rgba(255, 255, 255, 0.025);
}

.playlist-select__menu[hidden] {
  display: none;
}

.playlist-select__menu::-webkit-scrollbar {
  width: 5px;
}

.playlist-select__menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.025);
}

.playlist-select__menu::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(201, 255, 0, 0.45);
}

.playlist-select__menu button {
  position: relative;
  width: 100%;
  min-height: 39px;
  padding: 0 34px 0 12px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  color: rgba(244, 241, 236, 0.58);
  font-family: var(--font-main);
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  transition:
    color 0.22s ease,
    background 0.22s ease,
    transform 0.22s ease;
}

.playlist-select__menu button:hover,
.playlist-select__menu button:focus-visible {
  color: var(--playlists-text);
  background: rgba(255, 255, 255, 0.045);
  transform: translateX(2px);
  outline: none;
}

.playlist-select__menu button.is-selected {
  color: var(--playlists-accent);
  background: rgba(201, 255, 0, 0.06);
}

.playlist-select__menu button > i {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(244, 241, 236, 0.24);
  transform: translateY(-50%) rotate(45deg);
}

.playlist-select__menu button.is-selected > i {
  border-color: var(--playlists-accent);
  background: var(--playlists-accent);
  box-shadow: 0 0 10px rgba(201, 255, 0, 0.32);
}

.playlists-catalog__tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 112px;
  align-items: end;
  gap: 16px;
}

.playlist-search {
  position: relative;
  min-width: 0;
  min-height: 48px;
  height: 48px;
  align-self: end;
}

.playlist-search input {
  width: 100%;
  height: 48px;
  padding: 0 96px 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9px;
  outline: none;
  color: var(--playlists-text);
  background:
    linear-gradient(90deg, rgba(201, 255, 0, 0.025), transparent 34%),
    rgba(255, 255, 255, 0.018);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.playlist-search input::-webkit-search-cancel-button,
.playlist-search input::-webkit-search-decoration {
  appearance: none;
  display: none;
}

.playlist-search input::-ms-clear,
.playlist-search input::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}

.playlist-search input::placeholder {
  color: rgba(244, 241, 236, 0.42);
  opacity: 1;
}

.playlist-search input:focus {
  border-color: rgba(201, 255, 0, 0.5);
  background:
    linear-gradient(90deg, rgba(201, 255, 0, 0.045), transparent 38%),
    rgba(255, 255, 255, 0.027);
  box-shadow:
    0 0 0 3px rgba(201, 255, 0, 0.045),
    inset 0 0 18px rgba(201, 255, 0, 0.018);
}

.playlist-search__icon {
  position: absolute;
  top: 50%;
  right: 19px;
  color: rgba(244, 241, 236, 0.72);
  font-size: 16px;
  transform: translateY(-50%);
  transition:
    opacity 0.22s ease,
    transform 0.3s ease,
    color 0.25s ease;
  pointer-events: none;
}

.playlist-search.has-value .playlist-search__icon {
  opacity: 0;
  transform: translateY(-50%) scale(0.7);
}

.playlist-search__clear {
  position: absolute;
  top: 50%;
  right: 10px;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 241, 236, 0.2);
  border-radius: 50%;
  color: var(--playlists-text);
  background: rgba(5, 6, 7, 0.74);
  transform: translateY(-50%);
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s ease;
}

.playlist-search__clear[hidden] {
  display: none;
}

.playlist-search__clear span {
  position: absolute;
  width: 10px;
  height: 1px;
  border-radius: 99px;
  background: currentColor;
}

.playlist-search__clear span:first-child { transform: rotate(45deg); }
.playlist-search__clear span:last-child { transform: rotate(-45deg); }

.playlist-search__clear:hover,
.playlist-search__clear:focus-visible {
  color: #080908;
  border-color: var(--playlists-accent);
  background: var(--playlists-accent);
  box-shadow: 0 0 18px rgba(201, 255, 0, 0.22);
  transform: translateY(-50%) rotate(90deg);
  outline: none;
}

.playlist-view {
  width: max-content;
  min-height: 0;
  height: auto;
  display: flex;
  align-items: center;
  justify-self: end;
  align-self: end;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: transparent;
}

.playlist-view button {
  width: 45px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: rgba(244, 241, 236, 0.48);
  background: transparent;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  transition:
    color 0.25s ease,
    background 0.25s ease;
}

.playlist-view button:last-child {
  border-right: 0;
}

.playlist-view button:hover,
.playlist-view button.is-active,
.playlist-view button:focus-visible {
  color: var(--playlists-accent);
  background: rgba(201, 255, 0, 0.045);
}

.playlist-view button:focus-visible {
  outline: 2px solid var(--playlists-accent);
  outline-offset: -3px;
}

/* GRID + CARDS */

.playlists-catalog__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px 18px;
}

.playlist-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 8px;
  color: var(--playlists-text);
  background: linear-gradient(180deg, #0a0b0c 0%, #070808 100%);
  isolation: isolate;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.13);
  transition:
    border-color 0.34s ease,
    box-shadow 0.34s ease,
    opacity 0.22s ease,
    filter 0.22s ease;
}

.playlist-card:hover {
  z-index: 4;
  border-color: rgba(201, 255, 0, 0.36);
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.32),
    0 0 30px rgba(201, 255, 0, 0.11),
    inset 0 0 0 1px rgba(201, 255, 0, 0.025);
}

.playlist-card[hidden] {
  display: none !important;
}

.playlist-card__media {
  position: relative;
  aspect-ratio: 1.26 / 1;
  overflow: hidden;
  background: #090a0a;
}

.playlist-card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(5, 6, 7, 0.18));
}

.playlist-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.96) contrast(1.02);
  transform: scale(1.002);
  transition: filter 0.38s ease;
}

.playlist-card:hover .playlist-card__media img {
  filter: saturate(1.02) contrast(1.04) brightness(1.02);
}

.playlist-card__play-hit {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.playlist-card__play-hit:focus-visible {
  outline: 2px solid var(--playlists-accent);
  outline-offset: -4px;
}

.playlist-card.is-playing {
  border-color: rgba(201, 255, 0, 0.58);
  box-shadow: 0 0 28px rgba(201, 255, 0, 0.11);
}

.playlist-card__body {
  min-height: clamp(82px, 8.8vw, 158px);
  padding:
    clamp(12px, 1.25vw, 22px)
    clamp(13px, 1.4vw, 25px)
    clamp(13px, 1.35vw, 24px);
  display: flex;
  flex-direction: column;
}

.playlist-card__body h3 {
  overflow: hidden;
  color: var(--playlists-text);
  font-size: clamp(14px, 1.33vw, 24px);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: 0.025em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.playlist-card__body > p {
  margin-top: clamp(6px, 0.55vw, 10px);
  color: rgba(244, 241, 236, 0.55);
  font-size: clamp(9px, 0.72vw, 13px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.playlist-card__platforms {
  width: min(100%, clamp(112px, 11.8vw, 205px));
  margin-top: auto;
  padding-top: clamp(11px, 1.2vw, 22px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.playlist-card__platforms a {
  width: clamp(19px, 1.55vw, 27px);
  height: clamp(19px, 1.55vw, 27px);
  display: grid;
  place-items: center;
  color: rgba(244, 241, 236, 0.84);
  font-size: clamp(12px, 1vw, 18px);
  transition: color 0.22s ease, transform 0.22s ease;
}

.playlist-card__platforms a:hover,
.playlist-card__platforms a:focus-visible {
  color: var(--playlists-accent);
  transform: translateY(-2px);
  outline: none;
}

/* LIST VIEW */

.playlists-catalog__grid[data-view="list"] {
  grid-template-columns: 1fr;
  gap: 12px;
}

.playlists-catalog__grid[data-view="list"] .playlist-card {
  min-height: 190px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
}

.playlists-catalog__grid[data-view="list"] .playlist-card__media {
  aspect-ratio: auto;
  min-height: 188px;
}

.playlists-catalog__grid[data-view="list"] .playlist-card__body {
  min-height: 188px;
  padding: 25px 26px 22px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(130px, 0.5fr) minmax(150px, 0.6fr);
  align-items: center;
  gap: 26px;
  background: linear-gradient(90deg, rgba(6, 7, 8, 0.9), rgba(6, 7, 8, 0.99) 28%);
}

.playlists-catalog__grid[data-view="list"] .playlist-card__body h3,
.playlists-catalog__grid[data-view="list"] .playlist-card__body > p,
.playlists-catalog__grid[data-view="list"] .playlist-card__platforms {
  margin: 0;
  padding: 0;
}

/* EMPTY STATE + PAGINATION */

.playlists-catalog__empty {
  margin: 64px auto 0;
  padding: 28px;
  max-width: 560px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(244, 241, 236, 0.58);
  background: rgba(255, 255, 255, 0.012);
  font-size: 14px;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.playlists-catalog__pagination {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.playlists-catalog__pagination button,
.playlists-catalog__pagination span {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(244, 241, 236, 0.76);
  font-size: 13px;
  font-weight: 600;
}

.playlists-catalog__pagination button {
  border: 1px solid transparent;
  border-radius: 50%;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.playlists-catalog__pagination button:hover,
.playlists-catalog__pagination button.is-active,
.playlists-catalog__pagination button:focus-visible {
  color: var(--playlists-accent);
  border-color: rgba(201, 255, 0, 0.72);
  background: rgba(201, 255, 0, 0.025);
  outline: none;
}

.playlists-catalog__pagination button[disabled] {
  color: rgba(244, 241, 236, 0.24);
  cursor: not-allowed;
}

/* RESPONSIVE */

@media (max-width: 1500px) {
  .playlists-catalog__shell {
    padding-left: calc(var(--side-width) + 38px);
    padding-right: 38px;
  }

  .playlists-catalog__toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.54fr);
    gap: 22px;
  }

  .playlists-catalog__filters {
    grid-template-columns: minmax(220px, 320px);
    gap: 12px;
  }

  .playlists-catalog__tools {
    grid-template-columns: minmax(220px, 1fr) 104px;
    gap: 12px;
  }

  .playlists-catalog__grid {
    gap: 17px 14px;
  }
}

@media (max-width: 1250px) {
  .playlists-catalog__toolbar {
    grid-template-columns: 1fr;
  }

  .playlists-catalog__tools {
    grid-template-columns: minmax(260px, 1fr) 112px;
  }

  .playlists-catalog__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .playlists-catalog__shell {
    padding: 30px 24px 60px;
  }

  .playlists-catalog__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .playlists-catalog__filters {
    grid-template-columns: minmax(220px, 320px);
  }

  .playlists-catalog__tools {
    grid-template-columns: minmax(0, 1fr) 104px;
  }

  .playlists-catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .playlists-catalog__grid[data-view="list"] .playlist-card {
    grid-template-columns: 160px 1fr;
  }

  .playlists-catalog__grid[data-view="list"] .playlist-card__body {
    grid-template-columns: 1fr;
    gap: 9px;
  }
}

@media (max-width: 560px) {
  .playlists-catalog__shell {
    padding-inline: 18px;
  }

  .playlists-catalog__filters,
  .playlists-catalog__tools {
    display: block;
  }

  .playlist-select + .playlist-select,
  .playlist-search + .playlist-view {
    margin-top: 12px;
  }

  .playlist-view {
    width: 100%;
    height: auto;
  }

  .playlist-view button {
    width: 50%;
    height: 38px;
  }

  .playlist-select__menu {
    max-height: 240px;
  }

  .playlists-catalog__grid {
    grid-template-columns: 1fr;
  }

  .playlists-catalog__grid[data-view="list"] .playlist-card {
    min-height: 0;
    display: block;
  }

  .playlists-catalog__grid[data-view="list"] .playlist-card__media {
    min-height: 230px;
  }

  .playlists-catalog__grid[data-view="list"] .playlist-card__body {
    min-height: 0;
    padding: 20px;
  }

  .playlists-catalog__pagination {
    gap: 5px;
  }

  .playlists-catalog__pagination button,
  .playlists-catalog__pagination span {
    min-width: 34px;
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .playlist-card__media img,
  .playlist-card__platforms a,
  .playlist-select__trigger,
  .playlist-search input,
  .playlist-search__clear,
  .playlist-view button,
  .playlists-catalog__pagination button {
    transition: none !important;
  }
}
