/* ============================================================
   Mamyan Music — public site
   Direction: "velvet cinema" — deep aubergine-ink, pomegranate
   accent, warm parchment text. Thumbnails are the colour; the
   UI is the dark velvet frame around them.
   ============================================================ */
:root {
  --bg:        #17131c;
  --bg-2:      #110d15;
  --surface:   #211b28;
  --surface-2: #2a2230;
  --line:      rgba(243, 236, 230, .10);
  --line-2:    rgba(243, 236, 230, .16);
  --pom:       #e0314f;
  --pom-deep:  #b81d3e;
  --seed:      #ff5d73;
  --gold:      #d9a64a;
  --text:      #f3ece6;
  --muted:     #a99fab;
  --radius:    16px;
  --radius-sm: 11px;
  --display: 'Noto Serif Armenian', Georgia, 'Times New Roman', serif;
  --body:    'Noto Sans Armenian', 'Noto Sans', system-ui, -apple-system, sans-serif;
  --shadow:  0 24px 60px rgba(0, 0, 0, .5);
  --maxw:    1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
input, button { font: inherit; color: inherit; }

/* ---------- brand ---------- */
.brand { display: flex; align-items: center; gap: 11px; }
.seed {
  width: 15px; height: 15px; border-radius: 50% 50% 50% 3px;
  background: var(--seed); transform: rotate(-20deg);
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .25), 0 0 16px rgba(255, 93, 115, .35);
}
.brand-name { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -.01em; }
.brand-name em { font-style: normal; color: var(--pom); }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(23, 19, 28, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.lang-switch { display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch button {
  border: 0; background: transparent; color: var(--muted);
  padding: 7px 13px; border-radius: 999px; cursor: pointer;
  font-size: 12.5px; font-weight: 600; letter-spacing: .03em; transition: color .15s, background .15s;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.is-active { background: var(--pom); color: #fff; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: clamp(48px, 9vw, 96px) clamp(16px, 4vw, 40px) clamp(28px, 5vw, 48px); overflow: hidden; }
.hero-glow {
  position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(224, 49, 79, .26), transparent 70%);
  filter: blur(8px);
}
.hero-inner { position: relative; max-width: var(--maxw); margin: 0 auto; }
.hero-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.04;
  letter-spacing: -.02em; margin: 0 0 14px; max-width: 16ch;
}
.hero-sub { color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); margin: 0 0 30px; max-width: 46ch; }

/* search */
.search {
  display: flex; align-items: center; gap: 12px;
  max-width: 560px; padding: 4px 6px 4px 18px;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 999px; transition: border-color .18s, box-shadow .18s;
}
.search:focus-within { border-color: var(--pom); box-shadow: 0 0 0 4px rgba(224, 49, 79, .14); }
.search-ico { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search input {
  flex: 1; border: 0; background: transparent; outline: none;
  padding: 14px 0; font-size: 1.02rem;
}
.search input::placeholder { color: var(--muted); }

/* ============================================================
   PLAYLIST CHIPS
   ============================================================ */
.chips-wrap { position: sticky; top: 63px; z-index: 20; background: linear-gradient(var(--bg), rgba(23,19,28,.92)); }
.chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  max-width: var(--maxw); margin: 0 auto;
  padding: 14px clamp(16px, 4vw, 40px);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; cursor: pointer; white-space: nowrap;
  padding: 9px 17px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); font-size: 13.5px; font-weight: 600; transition: all .15s;
}
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }

/* ============================================================
   GRID + CARDS
   ============================================================ */
.container { max-width: var(--maxw); margin: 0 auto; padding: 18px clamp(16px, 4vw, 40px) 60px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 26px 22px;
}

.card { cursor: pointer; }
.card-media {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.card-thumb {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1); will-change: transform;
}
.card-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .45), transparent 55%);
  opacity: .7; transition: opacity .2s;
}
.card:hover .card-thumb { transform: scale(1.06); }
.card:hover .card-media::after { opacity: 1; }

/* signature: pomegranate-seed play button */
.play-seed {
  position: absolute; left: 50%; top: 50%;
  width: 60px; height: 60px; transform: translate(-50%, -50%) scale(.8);
  border-radius: 50% 50% 50% 8px; rotate: -20deg;
  background: radial-gradient(120% 120% at 30% 25%, var(--seed), var(--pom-deep));
  box-shadow: 0 8px 26px rgba(184, 29, 62, .5), inset -3px -3px 6px rgba(0, 0, 0, .25);
  display: grid; place-items: center;
  opacity: 0; transition: opacity .2s, transform .25s cubic-bezier(.2, .7, .2, 1);
}
.play-seed::before {
  content: ''; rotate: 20deg;
  border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent;
  margin-left: 4px;
}
.card:hover .play-seed { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.card-body { padding: 12px 4px 0; }
.card-title {
  font-weight: 600; font-size: 15.5px; line-height: 1.32; margin: 0 0 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; }
.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); flex: none; }
.card-pl { color: var(--gold); font-weight: 600; }

/* entrance animation */
.card { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- states ---------- */
.grid-state { text-align: center; color: var(--muted); padding: 60px 20px; font-size: 15px; }
.more-wrap { display: flex; justify-content: center; margin-top: 36px; }
.btn-more {
  cursor: pointer; padding: 13px 30px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line-2); color: var(--text);
  font-weight: 600; font-size: 14.5px; transition: all .15s;
}
.btn-more:hover { border-color: var(--pom); color: var(--pom); }
.btn-more:disabled { opacity: .5; cursor: default; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line); background: var(--bg-2);
  padding: 34px clamp(16px, 4vw, 40px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand--foot .brand-name { font-size: 18px; }
.foot-note { color: var(--muted); font-size: 13px; margin: 0; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lb { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(8, 6, 10, .82); backdrop-filter: blur(6px); animation: fade .2s ease; }
.lb-dialog {
  position: relative; width: min(880px, 100%);
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  animation: pop .24s cubic-bezier(.2, .7, .2, 1);
}
.lb-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  background: rgba(0, 0, 0, .5); border: 1px solid var(--line-2); color: #fff; font-size: 15px;
  display: grid; place-items: center; transition: background .15s;
}
.lb-close:hover { background: var(--pom); border-color: var(--pom); }
.lb-player { aspect-ratio: 16 / 9; background: #000; }
.lb-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.lb-meta { padding: 20px 24px 26px; }
.lb-title { font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.2; margin: 0 0 10px; }
.lb-info { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 13px; }
.lb-pl { color: var(--gold); font-weight: 600; }
.lb-views { color: var(--muted); }
.lb-desc { color: var(--muted); line-height: 1.65; margin: 0; white-space: pre-wrap; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* ============================================================
   RESPONSIVE / A11Y
   ============================================================ */
@media (max-width: 560px) {
  .brand-name { font-size: 17px; white-space: nowrap; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 14px; }
  .card-title { font-size: 14px; }
  .play-seed { width: 48px; height: 48px; }
  .chips-wrap { top: 59px; }
}

:focus-visible { outline: 2px solid var(--pom); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .card:hover .card-thumb { transform: none; }
}

/* ============================================================
   CARD "open page" link (SEO landing)
   ============================================================ */
.card-open {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 8px;
  color: var(--pom); font-size: 12.5px; font-weight: 600;
  border-bottom: 1px solid transparent; transition: border-color .15s, color .15s;
}
.card-open:hover { color: var(--seed); border-bottom-color: var(--seed); }

/* ============================================================
   SONG PAGE (server-rendered)
   ============================================================ */
.back-link { color: var(--muted); font-size: 14px; font-weight: 500; transition: color .15s; }
.back-link:hover { color: var(--text); }

.song-page { max-width: 860px; margin: 0 auto; padding: clamp(20px, 4vw, 44px) clamp(16px, 4vw, 40px) 72px; }

.song-player {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; background: #000; border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
}
.song-poster { width: 100%; height: 100%; object-fit: cover; }
.song-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.song-play {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px;
  background: none; border: 0; cursor: pointer; display: grid; place-items: center;
}
.song-play-seed {
  width: 84px; height: 84px; border-radius: 50% 50% 50% 12px; rotate: -20deg;
  background: radial-gradient(120% 120% at 30% 25%, var(--seed), var(--pom-deep));
  box-shadow: 0 10px 34px rgba(184, 29, 62, .55), inset -4px -4px 8px rgba(0, 0, 0, .25);
  display: grid; place-items: center; transition: transform .2s;
}
.song-play:hover .song-play-seed { transform: scale(1.06); }
.song-play-seed::before {
  content: ''; rotate: 20deg;
  border-left: 22px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent;
  margin-left: 6px;
}

.song-h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.15; letter-spacing: -.01em;
  margin: 26px 0 12px;
}
.song-info { display: flex; align-items: center; gap: 12px; font-size: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.song-pl { color: var(--gold); font-weight: 600; }
.song-views { color: var(--muted); }
.song-desc { color: #ddd3d8; line-height: 1.75; font-size: 1.04rem; }

.song-missing { text-align: center; padding: 80px 20px; }
.song-missing h1 { font-family: var(--display); font-weight: 600; margin-bottom: 22px; }

/* ---------- topbar sign-in ---------- */
.top-right { display: flex; align-items: center; gap: 14px; }
.top-signin {
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--text); background: var(--pom);
  transition: background .15s;
}
.top-signin:hover { background: var(--pom-deep); }
@media (max-width: 560px) { .top-signin { padding: 7px 13px; font-size: 12.5px; } }

/* ---------- signed-in chip in topbar ---------- */
.top-signin.is-user {
  background: var(--surface); border: 1px solid var(--line-2);
  padding: 5px 14px 5px 5px; gap: 8px; display: inline-flex; align-items: center;
  color: var(--text);
}
.top-signin.is-user:hover { border-color: var(--pom); background: var(--surface-2); }
.acct-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); }
.acct-name { font-size: 13px; font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .acct-name { display: none; } .top-signin.is-user { padding: 4px; } }

/* ============================================================
   COMMENTS (song page)
   ============================================================ */
.comments { max-width: 860px; margin: 0 auto; padding: 8px 0 0; }
.comments-title { font-family: var(--display); font-weight: 600; font-size: 1.4rem; margin: 34px 0 18px; }

.composer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 24px; }
.composer textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); padding: 12px; resize: vertical; min-height: 74px; font: inherit;
}
.composer textarea:focus { outline: none; border-color: var(--pom); box-shadow: 0 0 0 3px rgba(224,49,79,.14); }
.composer-foot { display: flex; justify-content: flex-end; margin-top: 10px; }
.c-btn { cursor: pointer; padding: 10px 22px; border: 0; border-radius: 999px; background: var(--pom); color: #fff; font-weight: 600; font-size: 14px; transition: background .15s; }
.c-btn:hover { background: var(--pom-deep); }
.c-btn:disabled { opacity: .6; cursor: default; }
.c-msg { font-size: 13px; margin: 10px 0 0; padding: 9px 12px; border-radius: var(--radius-sm); }
.c-msg--ok { color: #7fe0a8; background: rgba(31,122,77,.15); border: 1px solid rgba(31,122,77,.35); }
.c-msg--err { color: #ff9fb0; background: rgba(224,49,79,.10); border: 1px solid rgba(224,49,79,.3); }

.composer-signin { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 24px; color: var(--muted); font-size: 14px; }
.c-signin-btn { padding: 9px 18px; border-radius: 999px; background: var(--pom); color: #fff; font-weight: 600; font-size: 13.5px; }
.c-signin-btn:hover { background: var(--pom-deep); }

.c-list { display: flex; flex-direction: column; gap: 18px; padding-bottom: 30px; }
.c-state { color: var(--muted); font-size: 14px; padding: 12px 0; }
.c-item { display: flex; gap: 12px; }
.c-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; font-weight: 700; }
.c-av--ph { background: var(--surface-2); color: var(--muted); }
.c-av--admin { background: radial-gradient(120% 120% at 30% 25%, var(--seed), var(--pom-deep)); color: #fff; }
.c-body, .c-reply-body { flex: 1; min-width: 0; }
.c-name { font-weight: 600; font-size: 14px; }
.c-name--admin { color: var(--pom); }
.c-text { margin: 4px 0 5px; line-height: 1.6; white-space: pre-wrap; word-wrap: break-word; }
.c-date { color: var(--muted); font-size: 12px; }
.c-reply { display: flex; gap: 10px; margin-top: 14px; padding-left: 6px; border-left: 2px solid var(--line-2); padding-top: 2px; }
.c-reply .c-av { width: 30px; height: 30px; font-size: 13px; }

/* ============================================================
   MY PLAYLISTS — header menu, add-to-playlist, player
   ============================================================ */
.top-left { display: flex; align-items: center; gap: 22px; min-width: 0; }

.my-pl { position: relative; }
.my-pl-btn {
  cursor: pointer; background: transparent; border: 1px solid var(--line-2);
  border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--text);
  transition: border-color .15s, color .15s; white-space: nowrap;
}
.my-pl-btn:hover { border-color: var(--pom); color: var(--pom); }
.my-pl-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 40;
  min-width: 240px; max-height: 320px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 6px;
}
.my-pl-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; text-align: left; cursor: pointer;
  background: transparent; border: 0; border-radius: 8px;
  padding: 10px 12px; font-size: 14px; color: var(--text); transition: background .12s;
}
.my-pl-item:hover { background: var(--surface-2); }
.my-pl-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-pl-count {
  flex: none; min-width: 24px; height: 20px; padding: 0 7px;
  display: inline-grid; place-items: center;
  background: rgba(224,49,79,.15); color: var(--seed);
  border-radius: 999px; font-size: 11.5px; font-weight: 700;
}
.my-pl-empty { color: var(--muted); font-size: 13.5px; padding: 12px; margin: 0; text-align: center; }

/* «+» card button — only when signed in */
.card-add {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  background: rgba(8,6,10,.62); border: 1px solid var(--line-2); color: #fff;
  font-size: 17px; line-height: 1; display: none; place-items: center;
  transition: background .15s, transform .15s;
}
body.is-auth .card-add { display: grid; }
.card-add:hover { background: var(--pom); transform: scale(1.08); }

/* add-to-playlist modal */
.atp-dialog {
  position: relative; width: min(400px, calc(100% - 32px));
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px;
  animation: pop .22s cubic-bezier(.2,.7,.2,1);
}
.atp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.atp-head h3 { font-family: var(--display); font-weight: 600; font-size: 1.15rem; margin: 0; }
.atp-close { position: static; }
.atp-list { display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow-y: auto; margin-bottom: 14px; }
.atp-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  cursor: pointer; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 11px 14px; font-size: 14px; color: var(--text);
  transition: border-color .12s;
}
.atp-item:hover { border-color: var(--pom); }
.atp-new { display: flex; gap: 8px; }
.atp-new input {
  flex: 1; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); padding: 10px 12px; font: inherit; min-width: 0;
}
.atp-new input:focus { outline: none; border-color: var(--pom); box-shadow: 0 0 0 3px rgba(224,49,79,.14); }

/* playlist player */
.plp-dialog {
  position: relative; width: min(1000px, 100%);
  display: grid; grid-template-columns: 1fr 300px;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  animation: pop .24s cubic-bezier(.2,.7,.2,1);
  max-height: min(80vh, 640px);
}
.plp-player { aspect-ratio: 16/9; background: #000; align-self: center; }
.plp-player iframe, .plp-player > div { width: 100%; height: 100%; display: block; border: 0; }
.plp-side { display: flex; flex-direction: column; border-left: 1px solid var(--line); min-height: 0; }
.plp-title { font-family: var(--display); font-weight: 600; font-size: 1.1rem; margin: 0; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.plp-list { list-style: none; margin: 0; padding: 8px; overflow-y: auto; flex: 1; }
.plp-item {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 10px 10px; border-radius: 8px; font-size: 13.5px; transition: background .12s;
}
.plp-item:hover { background: var(--surface-2); }
.plp-item.is-current { background: rgba(224,49,79,.14); }
.plp-item.is-current .plp-num { color: var(--seed); }
.plp-num { flex: none; width: 20px; text-align: right; color: var(--muted); font-size: 12px; font-weight: 700; }
.plp-song { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plp-remove {
  flex: none; width: 24px; height: 24px; border-radius: 50%; cursor: pointer;
  background: transparent; border: 0; color: var(--muted); font-size: 12px;
  display: grid; place-items: center; transition: color .12s, background .12s;
}
.plp-remove:hover { color: #fff; background: var(--pom); }

@media (max-width: 760px) {
  .plp-dialog { grid-template-columns: 1fr; max-height: 90vh; }
  .plp-side { border-left: 0; border-top: 1px solid var(--line); max-height: 40vh; }
  .top-left { gap: 10px; }
  .my-pl-btn { padding: 7px 12px; font-size: 12px; }
}

/* ---------- logo mark (favicon-based) ---------- */
.logo-mark { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.brand--foot .logo-mark { width: 26px; height: 26px; }

/* ============================================================
   LIKES
   ============================================================ */
.like-mini {
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent; border: 0; cursor: pointer; padding: 0;
  color: var(--muted); font-size: 12.5px; font-weight: 600; font-family: inherit;
  transition: color .15s;
}
.like-mini .like-heart { font-size: 13px; transition: transform .15s; }
.like-mini:hover { color: var(--seed); }
.like-mini:hover .like-heart { transform: scale(1.15); }
.like-mini.is-liked { color: var(--seed); }
.like-mini.is-liked .like-heart { animation: heart-pop .25s ease; }
@keyframes heart-pop { 0% { transform: scale(1); } 50% { transform: scale(1.45); } 100% { transform: scale(1); } }

/* song page like button */
.like-btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 7px 15px; color: var(--muted); font-size: 13.5px; font-weight: 600; font-family: inherit;
  transition: all .15s;
}
.like-btn:hover:not(:disabled) { border-color: var(--seed); color: var(--seed); }
.like-btn:disabled { opacity: .6; cursor: default; }
.like-btn .like-heart { font-size: 15px; }
.like-btn.is-liked { background: rgba(224,49,79,.14); border-color: var(--pom); color: var(--seed); }
.like-btn.is-liked .like-heart { animation: heart-pop .25s ease; }

/* ---------- top-nav (Most Popular / Most Watched) ---------- */
.top-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.top-nav-btn {
  cursor: pointer; background: transparent; border: 1px solid var(--line-2);
  border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--text);
  transition: border-color .15s, color .15s, background .15s; white-space: nowrap;
}
.top-nav-btn:hover { border-color: var(--pom); color: var(--pom); }
.top-nav-btn.is-active { background: var(--pom); border-color: var(--pom); color: #fff; }

@media (max-width: 860px) {
  .top-nav-btn { padding: 7px 12px; font-size: 12px; }
}
@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; row-gap: 10px; }
  .top-left { flex-wrap: wrap; row-gap: 8px; width: 100%; }
}

/* ============================================================
   SHORTS / REELS
   ============================================================ */
.shorts-body { min-height: 100vh; display: flex; flex-direction: column; }
.shorts-main { flex: 1; display: grid; place-items: center; padding: 24px 16px 40px; }
.shorts-stage { display: flex; align-items: center; gap: 22px; }

.shorts-frame { display: flex; flex-direction: column; gap: 12px; }
.shorts-player {
  width: min(400px, calc(100vw - 130px));
  aspect-ratio: 9 / 16; max-height: calc(100vh - 210px);
  background: #000; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.shorts-player iframe, .shorts-player > div { width: 100%; height: 100%; border: 0; display: block; }

.shorts-meta { display: flex; flex-direction: column; gap: 4px; max-width: min(400px, calc(100vw - 130px)); }
.shorts-title { font-weight: 600; font-size: 15px; margin: 0; }
.shorts-song { color: var(--gold); font-size: 13.5px; font-weight: 600; }
.shorts-song:hover { text-decoration: underline; }
.shorts-counter { color: var(--muted); font-size: 12.5px; }

.shorts-nav {
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer; flex: none;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--text);
  font-size: 22px; display: grid; place-items: center;
  transition: all .15s;
}
.shorts-nav:hover { background: var(--pom); border-color: var(--pom); color: #fff; }

@media (max-width: 560px) {
  .shorts-stage { gap: 10px; }
  .shorts-nav { width: 40px; height: 40px; font-size: 18px; }
}

/* reels strip on song page */
.song-reels { max-width: 860px; margin: 0 auto; }
.reels-strip {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px;
  scrollbar-width: thin;
}
.reel-card {
  position: relative; flex: none; width: 128px; aspect-ratio: 9/16;
  border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-2);
  transition: transform .2s, border-color .2s;
}
.reel-card:hover { transform: translateY(-3px); border-color: var(--pom); }
.reel-card img { width: 100%; height: 100%; object-fit: cover; }
.reel-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent 45%);
}
.reel-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 36px; height: 36px; border-radius: 50%; z-index: 1;
  background: rgba(224,49,79,.9); color: #fff; font-size: 13px;
  display: grid; place-items: center;
}
.reel-title {
  position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 1;
  color: #fff; font-size: 11.5px; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* shorts like row */
.shorts-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ============================================================
   SHARE
   ============================================================ */
.mmshare { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; }
.mmshare-backdrop { position: absolute; inset: 0; background: rgba(10,7,12,.72); backdrop-filter: blur(6px); }
.mmshare-dialog {
  position: relative; width: min(340px, calc(100% - 32px));
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px;
  animation: pop .22s cubic-bezier(.2,.7,.2,1);
}
.mmshare-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mmshare-head h3 { font-family: var(--display); font-weight: 600; font-size: 1.15rem; margin: 0; }
.mmshare-close {
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text);
  display: grid; place-items: center; font-size: 13px; transition: all .15s;
}
.mmshare-close:hover { background: var(--pom); border-color: var(--pom); color: #fff; }
.mmshare-copy {
  width: 100%; cursor: pointer; padding: 12px; margin-bottom: 12px;
  border: 1px dashed var(--line-2); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); font: inherit; font-weight: 600; font-size: 14px;
  transition: border-color .15s, color .15s;
}
.mmshare-copy:hover { border-color: var(--pom); color: var(--pom); }
.mmshare-copy.is-done { border-color: #2e8b57; color: #7fe0a8; }
.mmshare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mmshare-item {
  display: grid; place-items: center; padding: 11px 8px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; color: var(--text);
  transition: border-color .12s, color .12s;
}
.mmshare-item:hover { border-color: var(--pom); color: var(--pom); }

/* share trigger buttons */
.share-mini {
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent; border: 0; cursor: pointer; padding: 0;
  color: var(--muted); font-size: 13px; font-weight: 600; font-family: inherit;
  transition: color .15s;
}
.share-mini:hover { color: var(--gold); }

/* ---------- footer socials ---------- */
.foot-left { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.socials { display: flex; align-items: center; gap: 8px; }
.social-link {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--muted);
  transition: all .15s;
}
.social-link:hover { background: var(--pom); border-color: var(--pom); color: #fff; transform: translateY(-2px); }

/* ============================================================
   MOBILE polish — touch targets & shorts layout
   ============================================================ */
/* Փոքր կոճակների հպման մակերեսը մեծացնում ենք առանց տեսքը փոխելու */
.like-mini { padding: 8px 6px; margin: -8px -6px; }
.share-mini { padding: 8px 11px; margin: -8px -11px; }
.card-open { padding: 8px 0; margin-top: 2px; }
.plp-remove, .upl-song-remove { width: 30px; height: 30px; }

@media (max-width: 560px) {
  /* Shorts. кնопки-ները դնում ենք player-ի ՎՐԱ, player-ը՝ ամբողջ լայնքով */
  .shorts-stage { position: relative; gap: 0; }
  .shorts-player { width: min(400px, calc(100vw - 32px)); }
  .shorts-meta { max-width: min(400px, calc(100vw - 32px)); }
  .shorts-nav {
    position: absolute; top: 42%; z-index: 5;
    background: rgba(23,19,28,.75); backdrop-filter: blur(6px);
    width: 44px; height: 44px;
  }
  .shorts-prev { left: 4px; }
  .shorts-next { right: 4px; }
}
