.yk-discovery-entry,
.yk-discovery {
  display: none;
}

@media (max-width: 820px) {
  .yk-discovery-entry {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    width: 100%;
    margin: 12px 0 2px;
    padding: 12px;
    border: 1px solid rgba(168, 85, 247, .68);
    border-radius: 8px;
    background: #170d20;
    color: #fff;
    text-align: left;
    cursor: pointer;
  }

  .yk-discovery-entry__mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: #9b4dff;
    font-size: 15px;
  }

  .yk-discovery-entry strong,
  .yk-discovery-entry small {
    display: block;
  }

  .yk-discovery-entry strong {
    font-size: 15px;
  }

  .yk-discovery-entry small {
    margin-top: 2px;
    color: #c8bdd4;
    font-size: 11px;
  }

  .yk-discovery-entry > b {
    color: #c084fc;
    font-size: 26px;
  }

  .yk-discovery:not([hidden]) {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: block;
    background: #050609;
    color: #fff;
  }

  .yk-discovery-is-open,
  .yk-discovery-is-open body {
    overflow: hidden;
    overscroll-behavior: none;
  }

  .yk-discovery__header {
    position: fixed;
    z-index: 5;
    top: 0;
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 42px;
    align-items: center;
    height: calc(56px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    background: rgba(5, 6, 9, .96);
    backdrop-filter: blur(14px);
  }

  .yk-discovery__header > button {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 29px;
    line-height: 1;
  }

  .yk-discovery__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    white-space: nowrap;
  }

  .yk-discovery__brand strong {
    font-size: 17px;
  }

  .yk-discovery__brand strong span {
    color: #a855f7;
  }

  .yk-discovery__brand i {
    width: 1px;
    height: 18px;
    margin: 0 9px;
    background: rgba(255, 255, 255, .22);
  }

  .yk-discovery__brand b {
    overflow: hidden;
    color: #d9dce3;
    font-size: 12px;
    text-overflow: ellipsis;
  }

  .yk-discovery__header > span {
    justify-self: end;
    color: #aab0bc;
    font-size: 10px;
    font-weight: 800;
  }

  .yk-discovery__feed {
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    touch-action: none;
  }

  .yk-discovery__feed::-webkit-scrollbar,
  .yk-discovery__lyrics::-webkit-scrollbar {
    display: none;
  }

  .yk-discovery__slide {
    display: grid;
    min-height: 100dvh;
    padding: calc(62px + env(safe-area-inset-top)) 12px calc(18px + env(safe-area-inset-bottom));
    align-content: start;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background:
      linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
      #050609;
    background-size: 22px 22px;
  }

  .yk-discovery__card {
    width: min(100%, 520px);
    margin: 0 auto;
  }

  .yk-discovery__media {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 8px;
    background: #000;
  }

  .yk-discovery__media > button,
  .yk-discovery__media iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }

  .yk-discovery__media > button {
    padding: 0;
    background: #000;
    color: #fff;
    cursor: pointer;
  }

  .yk-discovery__media > button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .82;
  }

  .yk-discovery__media > button > span {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    padding-left: 4px;
    border-radius: 50%;
    background: #a855f7;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
    transform: translate(-50%, -50%);
    font-size: 20px;
  }

  .yk-discovery__media > button > small {
    position: absolute;
    right: 10px;
    bottom: 9px;
    padding: 5px 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, .74);
    font-size: 9px;
    font-weight: 800;
  }

  .yk-discovery__content {
    padding: 12px 2px 0;
  }

  .yk-discovery__content h2 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #fff;
    font-size: clamp(22px, 5vw, 30px);
    line-height: 1.08;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .yk-discovery__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    margin-top: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 6px;
    background: #101218;
  }

  .yk-discovery__stats > span {
    display: grid;
    gap: 2px;
    padding: 9px 11px;
  }

  .yk-discovery__stats > span + span {
    border-left: 1px solid rgba(255, 255, 255, .1);
  }

  .yk-discovery__stats small {
    color: #969daa;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .yk-discovery__stats strong {
    color: #fff;
    font-size: 17px;
  }

  .yk-discovery__lower {
    position: relative;
    overflow: hidden;
    min-height: clamp(210px, 44dvh, 400px);
  }

  .yk-discovery__points {
    position: absolute;
    z-index: 3;
    top: 10px;
    right: 0;
    display: grid;
    width: 100%;
    align-content: start;
    padding: 13px 12px;
    border: 1px solid rgba(168, 85, 247, .72);
    border-radius: 7px;
    background: rgba(23, 13, 32, .82);
    box-shadow: -12px 12px 34px rgba(0, 0, 0, .46);
    opacity: 0;
    pointer-events: none;
    transform: translateX(105%);
    transition: transform .24s ease, opacity .2s ease;
    backdrop-filter: blur(14px);
  }

  .yk-discovery__slide.is-active .yk-discovery__points.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .yk-discovery__points > header {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }

  .yk-discovery__points > header span {
    color: #c084fc;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .yk-discovery__points > header h3 {
    margin: 4px 0 0;
    color: #fff;
    font-size: 15px;
    line-height: 1.2;
  }

  .yk-discovery__points-body {
    display: grid;
    gap: 8px;
    padding-top: 10px;
  }

  .yk-discovery__points-body p,
  .yk-discovery__points-body > strong {
    margin: 0;
    color: #c9bfd0;
    font-size: 10px;
    line-height: 1.35;
  }

  .yk-discovery__points-body > strong {
    color: #fff;
  }

  .yk-discovery__points-controls {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 7px;
  }

  .yk-discovery__points-controls > div {
    display: grid;
    grid-template-columns: 32px 1fr 32px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 5px;
  }

  .yk-discovery__points-controls button,
  .yk-discovery__points-controls input {
    min-height: 38px;
    border: 0;
    background: #100b17;
    color: #fff;
    text-align: center;
  }

  .yk-discovery__points-controls input {
    width: 100%;
    font-weight: 900;
    appearance: textfield;
  }

  .yk-discovery__points-controls > button {
    border-radius: 5px;
    background: #a855f7;
    font-size: 11px;
    font-weight: 900;
  }

  .yk-discovery__points-controls button:disabled,
  .yk-discovery__points-controls input:disabled {
    opacity: .55;
  }

  .yk-discovery__tabs {
    margin-top: 11px;
    border-top: 1px solid rgba(255, 255, 255, .12);
  }

  .yk-discovery__tabs > [role="tablist"] {
    display: flex;
    gap: 24px;
    min-height: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }

  .yk-discovery__tabs [role="tab"] {
    position: relative;
    border: 0;
    background: transparent;
    color: #8f95a0;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .yk-discovery__tabs [role="tab"][aria-selected="true"] {
    color: #fff;
  }

  .yk-discovery__tabs [role="tab"][aria-selected="true"]::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: #a855f7;
    content: "";
  }

  .yk-discovery__tabs [role="tabpanel"] {
    min-height: clamp(170px, 38dvh, 360px);
    padding: 10px 2px 4px;
  }

  .yk-discovery__lyrics,
  .yk-discovery__credits {
    max-height: clamp(170px, 38dvh, 360px);
    overflow-y: auto;
    scrollbar-width: none;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }

  .yk-discovery__lyrics {
    color: #d7dae0;
    font-size: 12px;
    line-height: 1.55;
  }

  .yk-discovery__credits {
    display: grid;
    gap: 7px;
    margin: 0;
  }

  .yk-discovery__credits div {
    display: grid;
    grid-template-columns: minmax(105px, .8fr) 1fr;
    gap: 10px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .yk-discovery__credits dt {
    color: #969daa;
    font-size: 10px;
    font-weight: 800;
  }

  .yk-discovery__credits dd,
  .yk-discovery__empty {
    margin: 0;
    color: #e3e5e9;
    font-size: 11px;
  }

  .yk-discovery__artist-profile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 54px;
    margin-top: 10px;
    padding: 8px 9px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 7px;
    background: #0e0f14;
  }

  .yk-discovery__artist-link {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    gap: 9px;
    color: #fff;
  }

  .yk-discovery__artist-profile img,
  .yk-discovery__artist-link > span {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    background: #2a1838;
    object-fit: cover;
    color: #fff;
    font-weight: 900;
  }

  .yk-discovery__artist-link strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .yk-discovery__artist-menu {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(168, 85, 247, .62);
    border-radius: 5px;
    background: #1b1024;
    color: #fff;
  }

  .yk-discovery__artist-menu span {
    font-size: 24px;
    line-height: 1;
  }

  .yk-discovery__artist-menu.is-active span {
    font-size: 22px;
  }

  .yk-discovery__hint {
    justify-self: center;
    margin-top: 10px;
    color: #7f8591;
    font-size: 9px;
    font-weight: 700;
  }
}

@media (max-width: 380px) {
  .yk-discovery__brand strong {
    font-size: 15px;
  }

  .yk-discovery__brand i {
    margin: 0 7px;
  }

  .yk-discovery__brand b {
    font-size: 10px;
  }

  .yk-discovery__slide {
    padding-right: 9px;
    padding-left: 9px;
  }

  .yk-discovery__content h2 {
    font-size: 22px;
  }
}
