/* L2OKO server card: banner or avatar head, description, details, features, community, similar servers.
   Reuses the home hero pieces (.hero, .slide-art, .slide-name, .slide-line, .slide-facts) at a smaller size. */

/* ---------- preview note ---------- */
.sv-note { margin-bottom: var(--gap); }
.sv-note .i { width: 20px; height: 20px; flex: none; }
.sv-note-t { display: grid; gap: 4px; min-width: 0; }
.sv-note-t .a { margin-left: 8px; white-space: nowrap; }

/* ---------- head with banner: a full-width scene like the home hero (the header floats over it) ---------- */
.main.has-scene { padding-top: 0; }
.main.has-scene > .crumbs { position: absolute; z-index: 4; top: calc(var(--hdr-h) + 12px); left: 0; right: 0; margin-top: 0; }
.main.has-scene > .sv-note { margin-top: var(--gap); }
.sv-hero { margin: 0; }
/* the name is the h1 itself here, so it takes the gold directly */
.sv-hero .sv-name { background: var(--gold-title); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--gold); filter: drop-shadow(0 2px 0 rgba(60, 35, 0, .8)) drop-shadow(0 6px 18px rgba(0, 0, 0, .6)); }
.sv-body {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: calc(var(--hdr-h) + 34px) max(var(--gutter), calc((100% - var(--wrap)) / 2)) 40px;
}
.sv-body > * { max-width: 640px; }
.sv-tag {
  position: absolute; z-index: 5; top: calc(var(--hdr-h) + 12px); right: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px;
  font: 500 13px/1 var(--f-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--text);
  background: rgba(8, 17, 31, .72); border: 1px solid var(--line-2); border-radius: 14px;
}
.sv-tag .i { width: 16px; height: 16px; color: var(--gold); }
.sv-tag-divine { color: var(--gold); border-color: rgba(242, 200, 91, .6); }
.sv-tag-top .i { color: var(--fire); }
.sv-tag-vip { color: var(--gold); border-color: rgba(242, 200, 91, .6); }

/* fact plates: today and live in the "today" green */
.sv-plates .sv-p-today { color: #fff; background: var(--green-fill); border-color: var(--green-edge); }
.sv-plates .sv-p-live { gap: 9px; color: #fff; background: var(--green-fill); border-color: var(--green-edge); text-transform: uppercase; font-family: var(--f-ui); font-weight: 500; letter-spacing: .04em; }

/* actions */
.sv-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 0; padding-top: 22px; }
.sv-go { padding: 0 30px; }
.sv-like {
  height: 52px; min-width: 92px; padding: 0 18px; gap: 10px;
  font-size: 20px; font-variant-numeric: tabular-nums;
  background: rgba(8, 17, 31, .72); border-color: var(--edge-hi);
}
.sv-like .i { width: 22px; height: 22px; }
.sv-like .sv-heart-on { display: none; color: var(--fire); }
.sv-like:hover .sv-heart { color: var(--fire-1); }
.sv-like[aria-pressed="true"] { border-color: var(--fire); color: #fff; background: rgba(184, 83, 10, .3); }
.sv-like[aria-pressed="true"] .sv-heart { display: none; }
.sv-like[aria-pressed="true"] .sv-heart-on { display: block; }
.sv-like.is-pop .sv-heart-on { animation: sv-pop .32s ease-out; }
.sv-like[disabled] { opacity: .5; }

/* ---------- head without banner ---------- */
.sv-head {
  display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; grid-template-areas: "ava main cta";
  align-items: center; gap: 0 22px;
  padding: 18px 22px;
}
.sv-ava { grid-area: ava; width: 112px; height: 112px; border-radius: var(--r-2); border: 1px solid var(--line-2); }
.sv-main { grid-area: main; min-width: 0; }
.sv-h1 { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sv-h1-t {
  min-width: 0; overflow-wrap: anywhere;
  font: 600 40px/1.05 var(--f-ui); text-transform: uppercase; letter-spacing: .03em; color: var(--text);
}
.sv-h1 .crown { width: 30px; height: 30px; }
.sv-h1 .badge-vip { height: 24px; padding: 0 7px; font-size: 14px; }
.sv-t-vip .sv-h1-t { color: var(--gold); }
.sv-line { margin-top: 8px; font: 500 14px/1.35 var(--f-ui); text-transform: uppercase; letter-spacing: .16em; color: var(--text-2); }
.sv-head .slide-facts { margin-top: 14px; }
.sv-head .slide-facts li { height: 34px; padding: 0 15px; font-size: 16px; background: var(--plate); }
.sv-head .slide-facts .sv-p-today, .sv-head .slide-facts .sv-p-live { background: var(--green-fill); }
.sv-head .sv-cta { grid-area: cta; margin: 0; padding: 0; }
/* paid heads get a thin tier line along the top edge */
.sv-t-top::after, .sv-t-divine::after, .sv-t-vip::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; pointer-events: none;
  border-radius: var(--r-3) var(--r-3) 0 0; background: var(--fire);
}
.sv-t-divine::after, .sv-t-vip::after { background: var(--gold); }

/* ---------- body ---------- */
.sv-layout { margin-top: var(--gap); }
.sv-sec { min-width: 0; }
.sv-desc { padding: 16px 22px 20px; max-width: 86ch; }
.sv-desc p { overflow-wrap: anywhere; }
.sv-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.sv-duo.is-single { grid-template-columns: minmax(0, 1fr); }

/* details: dense rows like the lists */
.sv-dl { display: grid; gap: 3px; margin: 0; padding: 6px; }
.sv-dl > div {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; column-gap: 12px;
  min-height: 40px; padding: 6px 12px;
  background: var(--row); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}
.sv-dl dt { font: 500 13px/1.2 var(--f-ui); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.sv-dl dd { margin: 0; min-width: 0; font: 500 15.5px/1.3 var(--f-ui); color: var(--text); letter-spacing: .02em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.sv-when-today, .sv-when-live { color: var(--green-2); }
.sv-when-open { color: var(--muted); }

/* features */
.sv-feats { list-style: none; display: grid; gap: 3px; padding: 6px; }
.sv-feats li {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-areas: "i t" "i d";
  align-items: center; column-gap: 12px; row-gap: 1px;
  min-height: 48px; padding: 6px 12px 6px 7px;
  background: var(--row); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}
.sv-feat-i { grid-area: i; width: 34px; height: 34px; padding: 7px; color: #e3d2ad; background: var(--plate); border: 1px solid var(--line-2); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .7); }
.sv-feat-t { grid-area: t; align-self: end; font: 500 15px/1.15 var(--f-ui); text-transform: uppercase; letter-spacing: .03em; color: var(--text); }
.sv-feat-d { grid-area: d; align-self: start; font-size: 12.5px; line-height: 1.35; color: var(--muted); }

/* community */
.sv-soc { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px; }
.sv-soc-a {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) 14px; grid-template-areas: "i l x" "i h x";
  align-items: center; column-gap: 11px; row-gap: 2px;
  min-height: 54px; padding: 7px 12px 7px 11px;
  background: linear-gradient(180deg, var(--line), var(--row-alt)); border: 1px solid #33363f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: border-color .15s, background-color .15s, transform .15s;
}
.sv-soc-a:hover { border-color: var(--edge-hi); background: var(--row-hi); transform: translateY(-1px); }
.sv-soc-i { grid-area: i; width: 28px; height: 28px; }
.sv-soc-l { grid-area: l; align-self: end; font: 600 15px/1.1 var(--f-ui); text-transform: uppercase; letter-spacing: .04em; color: var(--text); }
.sv-soc-h { grid-area: h; align-self: start; min-width: 0; font-size: 12px; line-height: 1.3; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-soc-x { grid-area: x; width: 14px; height: 14px; color: var(--dim); }
.sv-soc-a:hover .sv-soc-x { color: var(--fire-1); }
.sv-b-telegram .sv-soc-i { color: #37aee2; }
.sv-b-vk .sv-soc-i { color: #4a8cf0; }
.sv-b-discord .sv-soc-i { color: #7c87f5; }
.sv-b-max .sv-soc-i { color: #9a7cff; }
.sv-b-youtube .sv-soc-i { color: #ff4e45; }
.sv-b-rutube .sv-soc-i { color: #f0476b; }

/* similar servers */
.sv-ph-sub { font: 500 14px/1 var(--f-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
.sv-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; }

.sv-rail { align-content: start; }

@keyframes sv-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .sv-head { grid-template-columns: 96px minmax(0, 1fr) auto; }
  .sv-ava { width: 96px; height: 96px; }
}
@media (max-width: 1100px) {
  .sv-rows { grid-template-columns: minmax(0, 1fr); }
  .sv-head { grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "ava main" "cta cta"; row-gap: 16px; }
  .sv-head .sv-cta { justify-self: start; }
}
@media (max-width: 900px) {
  .sv-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 760px) {
  .sv-body { justify-content: flex-end; padding-bottom: 24px; }
  .sv-hero .slide-line { font-size: 12px; letter-spacing: .14em; }
  .sv-tag { height: 24px; padding: 0 8px; font-size: 11.5px; }
  .sv-cta { width: 100%; gap: 10px; padding-top: 16px; }
  .sv-go { flex: 1; height: 48px; padding: 0 14px; font-size: 18px; }
  .sv-like { height: 48px; min-width: 78px; padding: 0 14px; font-size: 18px; }
  .sv-head { grid-template-columns: 72px minmax(0, 1fr); gap: 14px 14px; padding: 14px; }
  .sv-ava { width: 72px; height: 72px; }
  .sv-h1 { gap: 8px; }
  .sv-h1-t { font-size: 27px; }
  .sv-h1 .crown { width: 22px; height: 22px; }
  .sv-h1 .badge-vip { height: 20px; font-size: 12px; }
  .sv-line { font-size: 12.5px; letter-spacing: .1em; }
  .sv-ava { align-self: start; }
  .sv-head .slide-facts { gap: 6px; margin-top: 10px; }
  .sv-head .sv-cta { justify-self: stretch; }
  .sv-head .slide-facts li { height: 30px; padding: 0 11px; font-size: 14.5px; }
  .sv-duo { grid-template-columns: minmax(0, 1fr); }
  .sv-desc { padding: 14px 16px 16px; }
  .sv-dl > div { grid-template-columns: 96px minmax(0, 1fr); padding: 6px 10px; }
  .sv-soc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sv-soc-a { grid-template-columns: 24px minmax(0, 1fr) 12px; column-gap: 9px; padding: 7px 10px; }
  .sv-soc-i { width: 24px; height: 24px; }
  .sv-rail { grid-template-columns: minmax(0, 1fr); }
  .sv-note-t .a { display: inline-block; margin: 4px 10px 0 0; }
}
