.cselect { position: relative; margin-bottom: 12px; }
.cselect-btn { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer; margin-bottom: 0 !important; }
.cselect-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cselect-caret { display: flex; color: var(--faint); }
.cselect-caret svg { width: 16px; height: 16px; }
.cselect-flag { display: inline-flex; align-items: center; }
.cselect-flag svg { width: 17px; height: 17px; color: var(--faint); }
.cselect-panel {
  position: absolute; z-index: 90; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg); overflow: hidden; animation: qDrop 0.18s var(--ease);
}
.cselect-panel.up { top: auto; bottom: calc(100% + 6px); }
.cselect-search {
  width: 100%; border: 0; outline: none; background: var(--bg-elev); color: var(--text);
  padding: 12px 14px; font-size: 14px; border-bottom: 1px solid var(--border-soft);
}
.cselect-list { max-height: 240px; overflow-y: auto; overscroll-behavior: contain; padding: 6px; }
.cselect-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font-size: 14px;
}
.cselect-item:hover { background: var(--surface-2); }
.cselect-item.sel { background: var(--accent-soft); }
.cselect-item .flag { width: 20px; height: 14px; }

/*  Auth popup + users search + hero rating + HUD lock */
/* Auth popup: scrollable for tall forms (e.g. register with the country picker). */
.auth-overlay { display: block; overflow-y: auto; padding: 40px 16px; }
.auth-pop { max-width: min(94vw, 400px); margin: 0 auto; }
.auth-pop .auth-card { width: 100%; }

.users-searchbar { max-width: 420px; margin: 0 0 18px; }
.users-searchbar .field { margin-bottom: 0; }

.hero-rating { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; min-height: 34px; }
.hero-rating .star { width: 30px; height: 30px; padding: 3px; }

.series-desc { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 16px 18px; }

.hud-lock {
  position: absolute; top: 10px; right: 10px; z-index: 40;
  width: 40px; height: 40px; padding: 10px; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10, 10, 16, 0.55); backdrop-filter: blur(6px); color: #fff;
  opacity: 0.4; transition: opacity 0.2s, background 0.2s, transform 0.15s;
}
.hud-lock:hover { opacity: 1; background: var(--accent); transform: scale(1.06); }
.hud-lock svg { width: 100%; height: 100%; }

/* Popup scroll areas never scroll the page behind them */
.avatar-body, .modal-scroll { overscroll-behavior: contain; }

.social-body { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 20px; }
.rating-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.stars { display: flex; gap: 2px; }
.star { width: 34px; height: 34px; padding: 4px; border: 0; background: none; color: var(--faint); transition: color 0.12s, transform 0.12s; }
.star svg { width: 100%; height: 100%; }
.star:hover { transform: scale(1.15); }
.star.filled { color: #fbbf24; }
.star.filled svg { fill: #fbbf24; }
.rating-info { color: var(--muted); font-size: 14px; }
.star-mini { display: inline-flex; width: 13px; height: 13px; color: #fbbf24; vertical-align: -2px; margin-right: 2px; }
.star-mini svg { fill: #fbbf24; }

.comment-form { margin-bottom: 20px; }
.comment-input {
  width: 100%; padding: 13px 16px; margin-bottom: 10px; resize: none; min-height: 84px;
  background: rgba(9,9,15,0.6); border: 1px solid var(--border); border-radius: 14px;
  color: var(--text); font: inherit; font-size: 14.5px; line-height: 1.5; outline: none;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.25); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
textarea { resize: none; }
.comment-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.comment-list { display: flex; flex-direction: column; gap: 14px; }
.comment { display: flex; gap: 12px; padding: 13px 14px; background: var(--bg-elev); border: 1px solid var(--border-soft); border-radius: 12px; animation: sectionIn 0.3s var(--ease); }
.comment-main { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.comment-name { font-weight: 700; font-size: 14px; }
.comment-time { color: var(--faint); font-size: 12px; }
.comment-del { margin-left: auto; width: 28px; height: 28px; padding: 5px; border: 0; border-radius: 8px; background: none; color: var(--faint); transition: 0.15s; }
.comment-del svg { width: 100%; height: 100%; }
.comment-del:hover { background: rgba(220,38,38,0.15); color: #fca5a5; }
.comment-body { font-size: 14.5px; line-height: 1.6; color: #c9cad8; white-space: pre-wrap; word-break: break-word; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
* { -webkit-tap-highlight-color: transparent; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible), input:focus:not(:focus-visible) { outline: none; }

.field:focus-visible, #search-input:focus-visible, .comment-input:focus-visible, .ch-search input:focus-visible { outline: none; }


html { scrollbar-gutter: stable; }
input[type='range'] { accent-color: var(--accent); }
button:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }
button svg { flex-shrink: 0; }
.series-actions .btn { max-width: 100%; min-width: 0; }
.series-actions .btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes qDrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

