:root{color-scheme:dark;--bg:#090f1d;--panel:#101c32;--line:#273958;--text:#f1f6ff;--muted:#b0bfd6;--blue:#8fc5ff}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font:1rem/1.5 system-ui,sans-serif}
a{color:inherit;text-decoration:none}
a:focus-visible,input:focus-visible{outline:2px solid var(--blue);outline-offset:4px}
.shell{width:min(1200px,calc(100% - 3rem));margin-inline:auto}
.top{background:#0b1428;border-bottom:1px solid var(--line)}
.bar,.section-head,.utility-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.bar{min-height:78px}
.brand,nav{display:flex;align-items:center;gap:1rem}
.brand img{object-fit:contain}
.brand strong{letter-spacing:.065em}
nav{gap:clamp(1rem,3vw,2.4rem);font-weight:650}
nav a[aria-current],a:hover{color:var(--blue)}
.channel,.button{display:inline-block;border:1px solid #41618f;border-radius:6px;padding:.55rem .9rem;font-weight:700}
.showcase{background:radial-gradient(ellipse at 74% 0,#1a3464,transparent 67%),linear-gradient(125deg,#10203a,#0b1428);padding:1.6rem 0 2rem}
h1,h2,p{margin:0}
h1,h2{font-size:clamp(1.35rem,3vw,2rem);line-height:1.18}
.section-head{margin-bottom:1rem}
.section-head a,.aside a{color:var(--blue);font-weight:650}
.section-head a:hover,.aside a:hover{text-decoration:underline}
.tiles{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.85rem}
.tile{display:block;min-width:0;overflow:hidden;padding-bottom:.65rem;border:1px solid #2c4164;border-radius:8px;background:#0c172b}
.tile:hover,.mix:hover{border-color:var(--blue)}
.cover{position:relative;display:grid;place-items:center;aspect-ratio:16/9;overflow:hidden}
.cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.c1{background:linear-gradient(135deg,#234780,#111c34)}
.c2{background:linear-gradient(135deg,#15335f,#25436b)}
.c3{background:linear-gradient(135deg,#342f63,#14284a)}
.word{color:#e4efff;text-align:center;font-size:clamp(1rem,2vw,1.4rem);font-weight:800;line-height:1.1}
.play{position:relative;width:34px;height:34px;border-radius:50%;background:#091222d9;display:grid;place-items:center}
.play::after{content:"";border-left:10px solid white;border-top:6px solid transparent;border-bottom:6px solid transparent;margin-left:2px}
.tile strong,.tile small{display:block;margin-inline:.65rem;overflow-wrap:anywhere}
.tile strong{margin-top:.55rem;line-height:1.25}
.tile small,.mix small{color:var(--muted);font-size:.875rem}
.tile small{margin-top:.25rem}
#empty{padding-block:1rem;color:var(--muted)}
.utility{background:#111e34;border-block:1px solid var(--line)}
.utility-inner{min-height:66px;flex-wrap:wrap;padding-block:.6rem}
.button{background:#a1ccff;color:#0a1730}
.button:hover{background:#c1dfff;color:#0a1730}
form{display:flex;align-items:center;gap:.7rem}
label{font-size:.875rem;color:var(--muted)}
input{min-width:0;background:#0a1427;border:1px solid #456086;border-radius:5px;color:var(--text);padding:.55rem .7rem;font:inherit}
.content{display:grid;grid-template-columns:minmax(0,3fr) minmax(220px,1fr);align-items:start;gap:1.2rem;padding-block:2rem}
.mixes{display:grid;gap:.7rem}
.mix{display:grid;grid-template-columns:minmax(95px,28%) 1fr;align-items:center;gap:.85rem;border:1px solid var(--line);border-radius:8px;padding:.65rem;background:var(--panel)}
.mix img{width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;border-radius:4px;background:#172949}
.mix small{display:block;margin-top:.25rem}
.aside{padding:1.1rem;border:1px solid var(--line);border-radius:8px;background:var(--panel)}
.aside img{object-fit:contain}
.aside h2{font-size:1.15rem}
.aside p{color:var(--muted);margin:.45rem 0 .75rem}
.footer{border-top:1px solid var(--line);padding-block:1.3rem;color:var(--muted);font-size:.875rem}
@media(max-width:980px){.tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.shell{width:calc(100% - 1.5rem)}.bar{flex-wrap:wrap;justify-content:space-between;padding-block:.5rem;gap:.4rem}.brand{gap:.4rem}.brand img{width:52px;height:36px}.brand strong{font-size:.85rem}.channel{font-size:.875rem;padding:.35rem .55rem}nav{order:3;width:100%;padding-block:.35rem}.tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.content{grid-template-columns:1fr}.section-head{align-items:flex-start}.section-head a{text-align:right;font-size:.875rem}form{width:100%}input{flex:1}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.top nav{justify-content:center;flex-wrap:wrap;gap:.45rem clamp(.8rem,2vw,1.7rem)}
.channel{white-space:nowrap}
.extra{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;padding-bottom:2rem}
.info{padding:1.2rem;border:1px solid var(--line);border-radius:8px;background:var(--panel);scroll-margin-top:1rem}
.info h2{margin-bottom:.65rem}
.info h3{margin:.2rem 0;font-size:1.1rem}
.info p{color:var(--muted);margin-bottom:.65rem}
.info a{color:var(--blue);font-weight:650}
.info a:hover{text-decoration:underline}
.about{display:flex;align-items:flex-start;gap:.75rem}
.about img{object-fit:contain}
.ad-label{font-size:.875rem;font-weight:650}
.ad-slot{display:grid;place-items:center;min-height:180px;border:1px dashed #456086;border-radius:6px;color:var(--muted);text-align:center;padding:.75rem}
@media(max-width:850px){.top .bar{flex-wrap:wrap}.top nav{order:3;width:100%;justify-content:flex-start;padding-bottom:.5rem}}
@media(max-width:640px){.extra{grid-template-columns:1fr}.ad-slot{min-height:110px}}

.admin{max-width:760px;padding-block:2rem}
.admin form{display:grid;gap:.55rem;margin-bottom:1rem}
.admin form button{justify-self:start}
.admin form label{display:block}
.admin textarea,.admin select,.admin input{width:100%;background:#0a1427;border:1px solid #456086;border-radius:5px;color:var(--text);padding:.55rem .7rem;font:inherit}
.admin button{cursor:pointer}
.admin button:disabled{opacity:.55;cursor:wait}
.admin #status{margin-block:.8rem;color:var(--blue)}
.admin ul{padding:0;list-style:none}
.admin li{display:flex;justify-content:space-between;gap:.75rem;padding-block:.65rem;border-bottom:1px solid var(--line)}
.published:not(:empty){display:grid;gap:.65rem;margin-block:.8rem}
.published article{padding:.85rem;border:1px solid var(--line);border-radius:6px;background:var(--panel);overflow-wrap:anywhere}
.published h3{margin:0}
.published time{color:var(--muted);font-size:.875rem}
.published p{white-space:pre-wrap}
.published iframe,.published video,.published audio{display:block;width:100%;margin-block:.5rem}
.published iframe,.published video{aspect-ratio:16/9;border:0;max-width:640px}
.section-image{display:block;width:100%;height:auto;max-height:65vh;object-fit:contain;object-position:center;background:#0c172b;border-radius:6px;margin-bottom:.8rem}
.about > div{min-width:0}
.featured-fields{display:grid;grid-template-columns:1fr 1fr;gap:.55rem;margin-bottom:.55rem}
.image-fields{margin-bottom:.8rem}
.image-fields img{display:block;max-width:120px;margin-top:.4rem;border-radius:4px}
.image-fields input[type=checkbox]{width:auto;margin-left:.5rem}
@media(max-width:520px){.featured-fields{grid-template-columns:1fr}}

.news-first{padding-block:1.25rem}

.section-page,.home-ad{padding-block:1.4rem}
.section-page h1{margin-bottom:.75rem}
.section-more{display:inline-block;margin-top:.8rem}
#qoshiqlar ~ .content{grid-template-columns:1fr}

.published .download-media{margin-top:.4rem;margin-inline-end:.7rem;color:#0a1730;text-decoration:none}

.song-page{padding-top:1.5rem}
.song-page form{margin-top:1rem}
#no-songs{color:var(--muted);margin-top:1rem}
.song-mixes .mix{grid-template-columns:minmax(85px,150px) 1fr}
@media(max-width:560px){.song-mixes .mix{grid-template-columns:minmax(75px,32%) 1fr}}

.featured-frame{overflow:hidden;border:1px solid var(--line);border-radius:8px;background:var(--panel)}
.featured-frame .showcase{padding:1.2rem}
.featured-frame .shell{width:auto;margin:0}
.featured-frame .utility{border-bottom:0}
.featured-frame .utility-inner{padding-inline:1.2rem}
@media(max-width:640px){.featured-frame .showcase,.featured-frame .utility-inner{padding-inline:.85rem}}

.home-sections{display:grid;gap:1rem;padding-block:1.25rem}
.home-sections .published:not(:empty){grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}
.song-page{padding-bottom:1.5rem}
.song-cover{display:block;width:100%;max-width:320px;max-height:230px;object-fit:contain;object-position:left;border-radius:6px;margin-bottom:.65rem}

.song-detail{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1rem;align-items:start}
.song-detail .song-cover{grid-column:2;grid-row:1;width:clamp(10rem,24vw,20rem);max-height:320px;object-position:right top;margin:0}
.song-detail-text{grid-column:1;grid-row:1;min-width:0}
.song-detail-actions,.song-detail-notice{grid-column:1/-1}
.song-detail-actions{border-top:1px solid var(--line);padding-top:.8rem}
.song-detail-actions audio{max-width:36rem}
@media(max-width:560px){
  .song-detail{grid-template-columns:minmax(0,1fr)}
  .song-detail .song-cover{grid-column:1;grid-row:auto;width:min(100%,16rem);object-position:left top}
  .song-detail-text{grid-row:auto}
}

#song-credits{display:grid;gap:.4rem}
.song-credits{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.25rem .6rem;margin:.8rem 0}
.song-credits dt{font-weight:650}
.song-credits dd{margin:0}
.admin li:has(.edit-credits){flex-wrap:wrap}
.edit-credits{flex-basis:100%}
.edit-credits summary{cursor:pointer}
.edit-credits form{margin-top:.6rem}

.release-form {
  display: grid;
  gap: .85rem;
  max-width: 42rem;
}
.release-form label {
  display: grid;
  gap: .35rem;
}
.release-form .button {
  justify-self: start;
}
#releases article {
  border-top: 1px solid currentColor;
  margin-top: 1rem;
  padding-top: .75rem;
  overflow-wrap: anywhere;
}
#releases .button {
  margin: .25rem .5rem .25rem 0;
}
.release-form select {
  min-width: 0;
  background: #0a1427;
  border: 1px solid #456086;
  border-radius: 5px;
  color: var(--text);
  padding: .55rem .7rem;
  font: inherit;
}
.release-form[hidden], #account-name[hidden] { display: none; }
.distribution-platforms { margin-top: 2rem; }
.distribution-platforms ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
}
.distribution-platforms li { display: flex; align-items: center; gap: .4rem; }
.distribution-platforms img { width: 1.25rem; height: 1.25rem; }

.footer:has(.footer-social) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem clamp(1rem, 3vw, 2.25rem);
}
.footer-copyright { white-space: nowrap; }
.footer-social { display: flex; flex-wrap: wrap; gap: .4rem; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .65rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: var(--panel);
  color: var(--text);
  font-weight: 600;
}
.footer-social a:hover, .footer-social a:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
}
.footer-social svg { width: 1.15rem; height: 1.15rem; flex: none; }
.footer-social .social-instagram svg { color: #f472b6; }
@media (max-width: 550px) {
  .footer-social a { padding: .45rem; }
  .footer-social a span {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
  }
}

.news-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(.2rem, 2.3vw, 1.75rem);
  padding: clamp(.65rem, 2vw, 1.4rem) clamp(.5rem, 4vw, 3rem);
  margin-block: .55rem .85rem;
  border: 1px solid #283c5e;
  border-radius: .55rem;
  background: radial-gradient(ellipse at center, #15396c 0%, #0b162c 50%, #070c16 88%);
  overflow: hidden;
}
.banner-brand {
  display: grid;
  justify-items: center;
  text-align: center;
}
.banner-brand img { width: clamp(5.2rem, 17vw, 12.5rem); height: auto; }
.banner-brand strong {
  color: #f0f5ff;
  font-size: clamp(.8rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: .12em;
  white-space: nowrap;
}
.banner-brand strong span { color: #65b8ff; }
.banner-brand small {
  color: #bdcee5;
  font-size: clamp(.52rem, 1.2vw, .75rem);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.banner-equalizer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, .5vw, 7px);
  height: clamp(2rem, 8vw, 6.25rem);
}
.banner-equalizer span {
  width: clamp(2px, .58vw, 7px);
  height: var(--level);
  border-radius: 999px;
  background: linear-gradient(#135ebd, #83d6ff 50%, #135ebd);
  box-shadow: 0 0 .7rem #168dff70;
  animation: banner-pulse 1.3s ease-in-out infinite alternate;
  animation-delay: var(--delay);
}
@keyframes banner-pulse {
  from { transform: scaleY(.45); opacity: .65; }
  to { transform: scaleY(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .banner-equalizer span { animation: none; }
}

.banner-logo {
  position: relative;
  display: block;
  line-height: 0;
}
.banner-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  mask: url("/rm.webp?v=27") center / contain no-repeat;
  background: linear-gradient(115deg, transparent 36%, #8aceff80 44%, #fff 50%, #8aceff80 56%, transparent 64%) 100% 50% / 300% 100%;
  animation: banner-logo-shine 4s ease-in-out infinite;
}
@keyframes banner-logo-shine {
  0%, 12% { background-position: 100% 50%; opacity: 0; }
  24% { opacity: .8; }
  43%, 100% { background-position: 0% 50%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .banner-logo::after { animation: none; opacity: 0; }
}

.chat-messages {
  min-height: 10rem;
  max-height: 25rem;
  overflow: auto;
  padding: .7rem 1rem;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--bg);
}
.chat-messages li { padding-block: .5rem; overflow-wrap: anywhere; }
.chat-messages li + li { border-top: 1px solid var(--line); }
.chat-messages p { margin: .2rem 0 0; white-space: pre-wrap; }
.chat-messages time { margin-inline-start: .5rem; font-size: .8rem; color: var(--muted); }
.chat-form, .chat-form label { display: grid; gap: .35rem; }
.chat-form { gap: .8rem; max-width: 42rem; }
.chat-form textarea {
  width: 100%; resize: vertical; padding: .6rem .7rem; font: inherit;
  color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: .35rem;
}
.chat-form .button { justify-self: start; }
#chat-admin-messages li { overflow-wrap: anywhere; }

.chat-emojis { display: flex; flex-wrap: wrap; gap: .4rem; }
.chat-emojis button {
  border: 1px solid var(--line); border-radius: .35rem;
  background: var(--bg); font-size: 1.1rem; padding: .15rem .45rem; cursor: pointer;
}
.chat-profile { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-bottom: .6rem; }
.chat-author, .chat-message-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; }
.chat-author img { object-fit: cover; border-radius: 50%; }
.chat-message-actions { margin-top: .35rem; }
#chat-admin-messages li, #chat-moderators li { margin-block: .45rem; }

#chat-connection:empty { display: none; }
#chat-inline-admin { margin-block: .75rem; }

.chat-badge {
  position: relative;
  display: inline-block;
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  vertical-align: -.2em;
}
.chat-badge::before, .chat-badge::after { content: ""; position: absolute; }
.chat-badge::before {
  inset: 0;
  background: #2779e9;
  clip-path: polygon(50% 0%, 64% 9%, 81% 8%, 89% 23%, 100% 35%, 96% 50%, 100% 65%, 89% 77%, 81% 92%, 64% 91%, 50% 100%, 36% 91%, 19% 92%, 11% 77%, 0% 65%, 4% 50%, 0% 35%, 11% 23%, 19% 8%, 36% 9%);
}
.chat-badge::after {
  width: 48%;
  height: 30%;
  top: 30%;
  left: 26%;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
