@font-face{
  font-family:"SF Pro Display Local";
  src:url("assets/fonts/SFPRODISPLAYREGULAR.OTF") format("opentype");
  font-style:normal;
  font-weight:400;
  font-display:swap;
}
@font-face{
  font-family:"SF Pro Display Local";
  src:url("assets/fonts/SFPRODISPLAYMEDIUM.OTF") format("opentype");
  font-style:normal;
  font-weight:500;
  font-display:swap;
}
@font-face{
  font-family:"SF Pro Display Local";
  src:url("assets/fonts/SFPRODISPLAYBOLD.OTF") format("opentype");
  font-style:normal;
  font-weight:700;
  font-display:swap;
}

:root{
  color-scheme:dark;
  font-family:"SF Pro Display Local","SF Pro Display","SF Pro",-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
  --bg:#111214;
  --surface:#17191c;
  --surface-hover:#1b1d21;
  --text:#f3f3f4;
  --muted:#8d9198;
  --edge:rgba(255,255,255,.065);
  --edge-strong:rgba(255,255,255,.11);
  --pad:clamp(22px,3.8vw,64px);
  --gap-x:clamp(24px,2.5vw,40px);
  --gap-y:clamp(36px,3.2vw,50px);
  background:var(--bg);
  color:var(--text);
}

*{box-sizing:border-box}

html{
  background:var(--bg);
  scrollbar-width:none;
  scroll-behavior:smooth;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar{display:none}

body{
  margin:0;
  min-width:320px;
  min-height:100vh;
  background:
    radial-gradient(circle at 50% -14rem,rgba(255,255,255,.03),transparent 34rem),
    var(--bg);
  color:var(--text);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}

button,input,textarea{font:inherit}

.catalog{
  width:100%;
  min-height:100vh;
  padding:calc(var(--pad) + 76px) var(--pad) var(--pad);
}

.search-wrap{
  position:fixed;
  z-index:70;
  top:18px;
  left:18px;
  width:min(620px,calc(100vw - 360px));
  min-width:300px;
  height:56px;
  margin:0;
  padding:6px;
  border:1px solid var(--edge);
  border-radius:15px;
  background:rgba(19,20,23,.88);
  box-shadow:0 8px 24px rgba(0,0,0,.16);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

.album-search{
  width:100%;
  height:42px;
  border:0;
  outline:0;
  border-radius:11px;
  padding:0 44px 0 15px;
  background:#17191c;
  color:var(--text);
  font-size:15px;
  font-weight:500;
  letter-spacing:-.015em;
  caret-color:#fff;
  appearance:none;
}

.album-search::-webkit-search-cancel-button{display:none}

.album-search::placeholder{
  color:#6f737a;
}

.album-search:focus{
  background:#1a1c20;
  box-shadow:inset 0 0 0 1px var(--edge-strong);
}

.search-state{
  position:absolute;
  right:24px;
  top:50%;
  transform:translateY(-50%);
  color:#777b82;
  font-size:12px;
  pointer-events:none;
}

.album-grid{
  width:100%;
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(190px,1fr));
  column-gap:var(--gap-x);
  row-gap:var(--gap-y);
  align-content:start;
}

.album{
  min-width:0;
  color:inherit;
  text-decoration:none;
  contain:layout paint style;
  content-visibility:auto;
  contain-intrinsic-size:280px 352px;
  outline:none;
}

.cover-shell{
  position:relative;
  width:100%;
  aspect-ratio:1;
  overflow:hidden;
  border-radius:17px;
  background:
    linear-gradient(135deg,#202328,#17191d);
  outline:1px solid var(--edge);
  outline-offset:-1px;
  box-shadow:
    0 7px 16px rgba(0,0,0,.20),
    0 2px 5px rgba(0,0,0,.15);
  transform:translateZ(0);
  transition:
    transform 170ms cubic-bezier(.2,.72,.2,1),
    box-shadow 170ms ease,
    outline-color 170ms ease;
}

.cover{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transform:scale(1.01);
  transition:opacity 180ms ease,filter 170ms ease;
}

.cover.loaded{opacity:1}

.album:hover .cover-shell,
.album:focus-visible .cover-shell{
  transform:translate3d(0,-3px,0) scale(1.008);
  outline-color:rgba(255,255,255,.095);
  box-shadow:
    0 11px 23px rgba(0,0,0,.27),
    0 3px 7px rgba(0,0,0,.18);
}

.album:hover .cover{filter:brightness(1.035)}

.info{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  gap:14px;
  padding:13px 2px 0;
}

.text{min-width:0}
.name,.artist,.rating{margin:0}

.name{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--text);
  font-size:clamp(16px,1vw,19px);
  font-weight:600;
  line-height:1.08;
  letter-spacing:-.028em;
}

.artist{
  margin-top:5px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--muted);
  font-size:clamp(13px,.84vw,15px);
  font-weight:400;
  line-height:1.15;
  letter-spacing:-.012em;
}

.rating{
  min-width:2.45ch;
  text-align:right;
  color:rgb(var(--score,110 110 110));
  font-size:clamp(20px,1.28vw,25px);
  font-weight:700;
  line-height:.88;
  letter-spacing:-.04em;
  font-variant-numeric:tabular-nums;
  padding-bottom:1px;
}

.empty-state{
  width:100%;
  padding:80px 20px;
  text-align:center;
  color:#73777e;
  font-size:15px;
}

.empty-state p{margin:0}

.skeleton{
  pointer-events:none;
}
.skeleton .cover-shell,
.skeleton .sk-line{
  background:linear-gradient(90deg,#181a1e 0%,#21242a 50%,#181a1e 100%);
  background-size:220% 100%;
  animation:shimmer 1.2s linear infinite;
}
.skeleton .sk-line{
  height:14px;
  border-radius:7px;
}
.skeleton .sk-title{width:72%}
.skeleton .sk-artist{width:46%;margin-top:8px;height:11px}

@keyframes shimmer{
  from{background-position:100% 0}
  to{background-position:-100% 0}
}

@media (min-width:1500px){.album-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media (min-width:1900px){.album-grid{grid-template-columns:repeat(7,minmax(0,1fr))}}
@media (max-width:1200px){.album-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}

@media (max-width:900px){
  :root{--pad:22px;--gap-x:22px;--gap-y:38px}
  .album-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media (max-width:620px){
  :root{--pad:16px;--gap-x:14px;--gap-y:28px}
  .album-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cover-shell{border-radius:15px}
  .info{padding-top:10px;gap:10px}
  .rating{font-size:21px}
  .search-wrap{
    height:50px;
    padding:5px;
    border-radius:13px;
  }
  .album-search{
    height:38px;
    border-radius:10px;
    font-size:14px;
  }
}

@media (hover:none){
  .cover-shell{will-change:auto}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .cover-shell,.cover{transition:none}
  .skeleton .cover-shell,.skeleton .sk-line{animation:none}
}

.cover-shell.cover-missing::after{
  content:"no cover";
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:#656970;
  font-size:12px;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.rating.no-ratings{
  color:#676b72;
  text-shadow:none;
}

@media(max-width:760px){
  .catalog{
    padding-top:128px;
  }

  .search-wrap{
    top:58px;
    left:10px;
    width:calc(100vw - 20px);
    min-width:0;
  }
}

.album-cover-link,
.album-title-link,
.artist-link{
  color:inherit;
  text-decoration:none;
}

.album-cover-link{
  display:block;
}

.album-title-link:hover{
  color:#fff;
}

.artist-link{
  color:var(--muted);
  transition:color 120ms ease;
}

.artist-link:hover{
  color:#c9cbd0;
}

.popular-reviews-section{
  margin:0 0 48px;
}

.popular-reviews-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.popular-reviews-head p{
  margin:0;
  color:#747880;
  font-size:11px;
  font-weight:650;
  letter-spacing:.09em;
  text-transform:uppercase;
}

.popular-reviews-head h2{
  margin:6px 0 0;
  font-size:27px;
  line-height:1;
  letter-spacing:-.04em;
}

.popular-reviews-head > span{
  color:#666a71;
  font-size:12px;
}

.popular-review-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.popular-review-card{
  min-width:0;
  padding:17px;
  border:1px solid var(--edge);
  border-radius:17px;
  background:rgba(255,255,255,.018);
}

.popular-review-user-row,
.popular-review-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.popular-review-user{
  min-width:0;
  display:flex;
  align-items:center;
  gap:9px;
  color:#cfd1d4;
  text-decoration:none;
  font-size:12px;
  font-weight:600;
}

.popular-review-user img,
.popular-review-avatar-fallback{
  width:28px;
  height:28px;
  flex:0 0 auto;
  border-radius:50%;
  object-fit:cover;
  background:#25282d;
}

.popular-review-user > span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.popular-review-score{
  color:rgb(var(--score,110 110 110));
  font-size:22px;
  font-weight:700;
  line-height:1;
}

.popular-review-album{
  display:grid;
  grid-template-columns:54px minmax(0,1fr);
  gap:11px;
  align-items:center;
  margin-top:15px;
  color:inherit;
  text-decoration:none;
}

.popular-review-album img{
  width:54px;
  height:54px;
  border-radius:10px;
  object-fit:cover;
  background:#1b1d21;
}

.popular-review-album strong,
.popular-review-album span{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.popular-review-album strong{
  color:#ececee;
  font-size:13px;
}

.popular-review-album span{
  margin-top:4px;
  color:#73777e;
  font-size:11px;
}

.popular-review-body{
  display:-webkit-box;
  min-height:66px;
  margin:15px 0 16px;
  overflow:hidden;
  color:#aeb1b6;
  font-size:13px;
  line-height:1.42;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
}

.popular-review-foot > span{
  color:#60646b;
  font-size:11px;
}

@media(max-width:900px){
  .popular-review-grid{
    grid-template-columns:1fr;
  }
}
