/* Restored page rules from site_v13.css; intentionally excludes global navigation and resets. */
.ks-fhero, .ks-film-page, .ks-cat-page, .ks-prof {
  /* Палитра (раскрашена под малиново-фиолетовую киноафишу) */
  --bg0:        #0a0c11;
  --bg1:        #11141c;
  --bg2:        #181c26;
  --bg3:        #232836;
  --line:       rgba(255, 255, 255, 0.06);
  --line-2:     rgba(255, 255, 255, 0.10);

  --tx:         #f1f2f5;
  --tx-dim:     #a8abb6;
  --tx-mute:    #6b7080;

  --acc:        #e0457b;
  --acc-2:      #b9408c;
  --acc-3:      #ff5a8e;
  --gold:       #ffd24a;
  --green:      #4be87a;
  --red:        #ff5d5d;
  --blue:       #4b9aff;
  --tg:         #29a8e0;

  --grad:       linear-gradient(135deg, #ff5a8e 0%, #b9408c 100%);
  --grad-soft:  linear-gradient(135deg, rgba(255, 90, 142, 0.22), rgba(185, 64, 140, 0.10));
  --grad-tg:    linear-gradient(135deg, #29a8e0 0%, #1e7eb3 100%);

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --r-xl: 24px;

  --sh:    0 4px 16px rgba(0, 0, 0, 0.32);
  --sh-hi: 0 12px 40px rgba(224, 69, 123, 0.28);

  --ff-h:  system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --ff-b:  system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --hdr-h: 64px;
  --max-w: 1320px;
}
.ks-cat-page {
  display: grid; grid-template-columns: 1fr 280px; gap: 28px;
  align-items: flex-start;
}
.ks-cat-page .ks-main-list { min-width: 0; order: 1; }
.ks-cat-page .ks-side { order: 2; position: sticky; top: 76px; align-self: flex-start; }
.ks-fbox {
  display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005));
  border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 18px;
  box-shadow: var(--sh);
}
.ks-side-h {
  font-family: var(--ff-h); font-weight: 700; font-size: 15px;
  margin-bottom: 6px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  display: flex; align-items: center; gap: 6px;
}
.ks-side-h::before { content: '🎛'; font-size: 16px; -webkit-text-fill-color: initial; }
.ks-flbl {
  display: block; font-size: 11px; font-weight: 700;
  color: var(--tx-dim); text-transform: uppercase; letter-spacing: 0.5px;
  margin: 4px 0 2px;
}
.ks-frow-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ks-fbtn { width: 100%; justify-content: center; margin-top: 4px; }
.ks-list-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.ks-list-head h1 { font-size: 26px; margin: 0; }
.ks-list-meta { color: var(--tx-dim); font-size: 13px; }

.ks-fhero {
  position: relative; min-height: 480px;
  overflow: hidden; padding: 36px 22px 30px;
  margin-bottom: 24px;
}
.ks-fhero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: blur(1px); transform: scale(1.04);
  opacity: 0.55;
}
.ks-fhero-fade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,12,17,0.4) 0%, rgba(10,12,17,0.85) 60%, var(--bg) 100%),
    linear-gradient(90deg,  rgba(10,12,17,0.6) 0%, rgba(10,12,17,0.2) 50%, rgba(10,12,17,0.6) 100%);
}
.ks-fhero-inner {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 280px 1fr; gap: 36px;
  align-items: flex-start;
}
.ks-fhero-poster {
  width: 100%; aspect-ratio: 2/3;
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  background: var(--bg2);
}
.ks-fhero-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ks-fhero-poster-empty {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 80px; opacity: 0.3;
}
.ks-fhero-info { padding-top: 8px; }
.ks-fhero-title {
  font-family: var(--ff-h); font-size: 42px; font-weight: 800;
  margin: 0 0 8px; line-height: 1.05;
  text-shadow: 0 2px 18px rgba(0,0,0,0.5);
}
.ks-fhero-orig {
  font-size: 15px; color: var(--tx-dim); margin-bottom: 18px;
  font-style: italic;
}
.ks-fhero-meta {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px;
}
.ks-fhero-pill {
  padding: 5px 12px; border-radius: 999px; font-size: 12.5px;
  background: rgba(255,255,255,0.08); color: var(--tx-dim); font-weight: 600;
  backdrop-filter: blur(8px);
}
.ks-fhero-pill.ks-age { background: rgba(255, 145, 60, 0.18); color: #ffb072; }
.ks-fhero-rk {
  padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: rgba(255, 195, 64, 0.18); color: var(--gold);
}
.ks-fhero-rk small { font-weight: 500; opacity: 0.7; }
.ks-fhero-rim {
  padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: rgba(245, 197, 24, 0.14); color: #f5c518;
}
.ks-fhero-genres { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ks-fhero-cols {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin-bottom: 22px;
}
.ks-fhero-cols-h {
  font-size: 12px; color: var(--tx-mute);
  text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700;
  margin-right: 4px;
}
.ks-fhero-col {
  padding: 5px 12px; border-radius: 999px;
  background: rgba(120,60,180,0.14); color: #c5a4ff;
  font-size: 12.5px; font-weight: 600;
  border: 1px solid rgba(120,60,180,0.32);
  transition: background 0.15s;
}
.ks-fhero-col:hover { background: rgba(120,60,180,0.28); color: #fff; }
.ks-fhero-genre {
  padding: 5px 12px; border-radius: 999px;
  background: rgba(224,69,123,0.12); color: var(--acc-3);
  font-size: 12.5px; font-weight: 600;
  border: 1px solid rgba(224,69,123,0.22);
  transition: background 0.15s;
}
.ks-fhero-genre:hover { background: rgba(224,69,123,0.24); color: #fff; }
.ks-fhero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ks-fhero-btn-watch { font-size: 15px; padding: 12px 24px; }
.ks-fhero-edit { background: rgba(120,60,180,0.18) !important; border-color: rgba(120,60,180,0.35) !important; color: #c5a4ff !important; }

/* ───────── Плеер с табами ───────── */
.ks-player-section { margin: 0 0 28px; }
.ks-player-lazy {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg1);
  border: 1px solid var(--line);
}
.ks-player-launch {
  position: relative;
  min-height: 360px;
  border-radius: inherit;
  overflow: hidden;
  background: #08090d;
}
.ks-player-lazy.is-loaded .ks-player-launch { display: none; }
.ks-player-launch-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .42;
  filter: blur(1px);
  transform: scale(1.03);
}
.ks-player-launch-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,12,17,.95), rgba(10,12,17,.72), rgba(10,12,17,.88)),
    linear-gradient(180deg, rgba(10,12,17,.24), #08090d);
}
.ks-player-launch-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  align-items: center;
  min-height: 360px;
  padding: 28px;
}
.ks-player-launch-poster {
  width: 170px;
  aspect-ratio: 2/3;
  border-radius: var(--r);
  object-fit: cover;
  box-shadow: 0 18px 42px rgba(0,0,0,.48);
  background: var(--bg2);
}
.ks-player-launch-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
}
.ks-player-launch-kicker {
  color: var(--acc-3);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .7px;
  font-weight: 800;
  margin-bottom: 8px;
}
.ks-player-launch-title {
  margin: 0 0 10px;
  font-family: var(--ff-h);
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.05;
}
.ks-player-launch-note {
  max-width: 620px;
  margin: 0 0 18px;
  color: var(--tx-dim);
  line-height: 1.6;
}
.ks-watch-progress {
  margin-top: 14px;
  color: var(--tx-mute);
  font-size: 12px;
}
.ks-watch-progress span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 16px rgba(224,69,123,.65);
}
.ks-player-loaded[hidden] { display: none; }
.ks-player-box {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}
.ks-player-tabs {
  display: flex; gap: 4px; padding: 8px 10px;
  background: var(--bg1); border-bottom: 1px solid var(--line);
  flex-wrap: wrap; align-items: center;
}
.ks-player-tab {
  padding: 8px 14px; border-radius: 8px;
  background: transparent; border: 1px solid transparent;
  color: var(--tx-dim); font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: var(--ff-b);
  transition: background 0.15s, color 0.15s;
}
.ks-player-tab:hover { background: var(--bg2); color: var(--tx); }
.ks-player-tab.is-active {
  background: var(--grad); color: #fff;
  box-shadow: 0 4px 14px rgba(224,69,123,0.32);
}
.ks-player-tabs-hint {
  margin-left: auto; padding: 4px 10px; font-size: 12px;
  color: var(--tx-mute); cursor: help;
  border: 1px solid var(--line); border-radius: 999px;
}
.ks-player-pane { display: none; }
.ks-player-pane.is-active { display: block; }

/* Vibix / любой HTML-плеер — оборачиваем в 16:9 контейнер */
.ks-pane-html {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
}
.ks-pane-html ins,
.ks-pane-html iframe,
.ks-pane-html > div,
.ks-pane-html > video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  display: block;
}
@media (max-width: 760px) {
  .ks-pane-html { border-radius: 10px; }
  .ks-player-launch-inner { grid-template-columns: 1fr; min-height: auto; padding: 22px; }
  .ks-player-launch-poster { width: 132px; }
  .ks-player-launch { min-height: auto; }
}

.ks-player-empty {
  padding: 64px 24px; text-align: center;
  background: var(--bg1); border: 1px dashed var(--line);
  border-radius: var(--r-lg);
}
.ks-player-empty-icon { font-size: 64px; margin-bottom: 12px; opacity: 0.5; }
.ks-player-empty h3 { margin: 0 0 8px; }
.ks-player-empty p { color: var(--tx-dim); max-width: 480px; margin: 0 auto; }

/* О фильме */
.ks-film-page { padding: 0 22px 60px; }
.ks-film-about, .ks-film-trailer, .ks-film-comments, .ks-film-related, .ks-film-rating {
  background: var(--bg1); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px;
  margin-bottom: 22px;
}
.ks-film-about h2, .ks-film-trailer h2, .ks-film-comments h2, .ks-film-related h2, .ks-film-rating h2 {
  font-family: var(--ff-h); font-size: 22px; margin: 0 0 16px;
  font-weight: 700;
}
.ks-film-rating-head {
  display: flex; justify-content: space-between; gap: 18px; align-items: center;
}
.ks-film-rating-head h2 { margin-bottom: 4px; }
.ks-film-rating-head p { margin: 0; color: var(--tx-mute); font-size: 13px; }
.ks-rating-score {
  min-width: 118px; text-align: center; padding: 12px 16px;
  border-radius: var(--r); background: rgba(255, 207, 77, 0.10);
  border: 1px solid rgba(255, 207, 77, 0.22);
}
.ks-rating-score strong { display: block; font-size: 28px; color: #ffd35d; line-height: 1; }
.ks-rating-score span { display: block; margin-top: 5px; font-size: 12px; color: var(--tx-mute); }
.ks-rating-form {
  display: grid; grid-template-columns: repeat(10, minmax(34px, 1fr));
  gap: 8px; margin-top: 18px;
}
.ks-rating-btn {
  min-height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg2); color: var(--tx-dim); font-weight: 800;
  cursor: pointer;
}
.ks-rating-btn:hover, .ks-rating-btn.is-active {
  color: #121016; border-color: rgba(255, 211, 93, 0.75);
  background: linear-gradient(135deg, #ffe07a, #ffcf4d);
}
.ks-rating-note { margin-top: 12px; color: var(--tx-dim); font-size: 13px; }
.ks-rating-note code {
  padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,0.06);
}
.ks-film-about p { color: var(--tx-dim); line-height: 1.7; margin-bottom: 18px; }
.ks-film-info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px; margin-bottom: 18px;
}
.ks-film-info-grid > div {
  background: var(--bg2); border-radius: 10px; padding: 12px 14px;
}
.ks-film-info-grid span {
  display: block; font-size: 11px; color: var(--tx-mute);
  text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600;
  margin-bottom: 4px;
}
.ks-film-info-grid b { font-weight: 600; color: var(--tx); }
.ks-film-info-grid a { color: var(--acc-3); }
.ks-film-actors {
  padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--tx-dim);
}
.ks-film-actors-h { color: var(--tx); font-weight: 700; margin-right: 8px; }

/* Watch Party banner */
.ks-wp-banner {
  background: linear-gradient(90deg, rgba(224,69,123,0.18), rgba(120,60,180,0.18));
  border: 1px solid rgba(224,69,123,0.32);
  padding: 12px 18px; border-radius: var(--r);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 18px;
}

/* Трейлер */
.ks-yt-wrap {
  position: relative; aspect-ratio: 16/9;
  border-radius: var(--r); overflow: hidden;
}
.ks-yt-wrap iframe { width: 100%; height: 100%; border: 0; }

/* Комментарии */
.ks-cform { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.ks-cform .ks-btn { align-self: flex-start; }
.ks-clist { display: flex; flex-direction: column; gap: 14px; }
.ks-citem {
  background: var(--bg2); border-radius: 10px; padding: 14px 16px;
}
.ks-cmeta {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
  font-size: 13px;
}
.ks-cmeta strong { color: var(--tx); }
.ks-cdate { color: var(--tx-mute); margin-left: auto; font-size: 12px; }
.ks-cbody { color: var(--tx-dim); line-height: 1.6; }

@media (max-width: 900px) {
  .ks-fhero { padding: 28px 16px 22px; min-height: auto; }
  .ks-fhero-inner { grid-template-columns: 1fr; gap: 22px; }
  .ks-fhero-poster { max-width: 220px; margin: 0 auto; }
  .ks-fhero-info { text-align: center; padding-top: 0; }
  .ks-fhero-title { font-size: 28px; }
  .ks-fhero-meta, .ks-fhero-genres, .ks-fhero-actions { justify-content: center; }
  .ks-film-page { padding: 0 14px 60px; }
  .ks-film-about, .ks-film-trailer, .ks-film-comments, .ks-film-related, .ks-film-rating { padding: 20px; }
  .ks-film-rating-head { align-items: flex-start; flex-direction: column; }
  .ks-rating-form { grid-template-columns: repeat(5, minmax(40px, 1fr)); }
  .ks-player-tabs-hint { display: none; }
}

.ks-catalog { display: grid; grid-template-columns: 1fr 280px; gap: 28px; }
.ks-filter-row {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px;
}
.ks-ftab {
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg1);
  color: var(--tx-dim); font-size: 12.5px; font-weight: 600;
  white-space: nowrap; transition: all 0.15s;
}
.ks-ftab:hover { border-color: var(--acc); color: var(--tx); }
.ks-ftab.is-active {
  background: var(--grad-soft); border-color: var(--acc);
  color: var(--acc-3);
}
.ks-sidebar { display: flex; flex-direction: column; gap: 14px; }
.ks-side-card {
  background: var(--bg1); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px;
}
.ks-side-card h3 {
  font-family: var(--ff-h); font-size: 15px; margin-bottom: 12px; color: var(--tx);
}
.ks-genre-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ks-gchip {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 11px; font-size: 12px; color: var(--tx-dim); font-weight: 500;
  transition: all 0.15s;
}
.ks-gchip:hover, .ks-gchip.is-active {
  border-color: var(--acc); color: var(--acc-3); background: var(--grad-soft);
}
.ks-gchip-cnt { color: var(--tx-mute); font-size: 11px; margin-left: 4px; }

/* ───────── Пагинация ───────── */
.ks-pagination {
  display: flex; gap: 6px; justify-content: center; flex-wrap: wrap;
  margin-top: 32px;
}
.ks-pag {
  padding: 8px 14px; border-radius: 9px;
  background: var(--bg1); border: 1px solid var(--line);
  color: var(--tx-dim); font-size: 13px; font-weight: 600;
  transition: all 0.15s;
}
.ks-pag:hover { border-color: var(--acc); color: var(--tx); }
.ks-pag.is-active {
  background: var(--grad); border-color: transparent; color: #fff;
}
.ks-pag-dots { padding: 8px 6px; color: var(--tx-mute); font-size: 14px; }


@media (max-width: 1100px) {
  .ks-cat-page { grid-template-columns: minmax(0, 1fr); }
  .ks-cat-page .ks-side { position: static; order: 0; }
}
.ks-fhero-info { min-width: 0; }
.ks-film-page, .ks-cat-page { overflow-wrap: anywhere; }
.ks-film-page .ks-film-info-grid { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.ks-prof { padding: 22px 22px 60px; }
.ks-prof-hero {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  margin-bottom: 22px; padding: 36px;
  background: linear-gradient(135deg, rgba(224,69,123,0.18), rgba(120,60,180,0.18) 60%, rgba(20,23,32,0.5));
  border: 1px solid var(--line);
}
.ks-prof-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(224,69,123,0.20), transparent 60%),
              radial-gradient(circle at 80% 100%, rgba(120,60,180,0.20), transparent 60%);
  pointer-events: none;
}
.ks-prof-hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 110px 1fr; gap: 22px; align-items: center;
}
.ks-prof-avatar {
  width: 110px; height: 110px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-h); font-weight: 800; font-size: 48px;
  box-shadow: 0 8px 32px rgba(224,69,123,0.4);
  overflow: hidden;
}
.ks-prof-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ks-prof-name {
  font-family: var(--ff-h); font-size: 28px; margin: 0 0 8px;
  font-weight: 800;
}
.ks-prof-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  color: var(--tx-dim); font-size: 13.5px;
  margin-bottom: 16px;
}
.ks-prof-badge {
  padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.4px; text-transform: uppercase;
}
.ks-prof-badge-admin { background: var(--grad); color: #fff !important; }
.ks-prof-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ks-avatar-form { display: inline-flex; }
.ks-avatar-form input { display: none; }

.ks-prof-stats {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  margin-bottom: 12px;
}
.ks-prof-stat {
  background: var(--bg1); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px;
  text-align: center; position: relative; overflow: hidden;
  transition: transform 0.15s, border-color 0.15s;
}
.ks-prof-stat:hover { transform: translateY(-2px); border-color: var(--acc); }
.ks-prof-stat-num {
  font-family: var(--ff-h); font-weight: 800; font-size: 36px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1;
}
.ks-prof-stat-lbl {
  margin-top: 8px; color: var(--tx-dim); font-size: 12.5px;
  text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600;
}
.ks-prof-section { margin-bottom: 32px; }
.ks-prof-note {
  margin: 0 0 28px;
  padding: 12px 16px;
  border: 1px solid rgba(224,69,123,0.22);
  background: rgba(224,69,123,0.08);
  color: var(--tx-dim);
  border-radius: var(--r);
  font-size: 13px;
}
.ks-ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.ks-ach-card {
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
}
.ks-ach-card.is-active {
  border-color: rgba(255, 211, 93, 0.42);
  background: linear-gradient(135deg, rgba(255,211,93,0.08), rgba(224,69,123,0.08));
}
.ks-ach-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ks-ach-top strong { font-family: var(--ff-h); font-size: 15px; }
.ks-ach-top span { color: var(--gold); font-weight: 800; }
.ks-ach-card p { margin: 8px 0 12px; color: var(--tx-dim); font-size: 13px; line-height: 1.45; }
.ks-ach-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
}
.ks-ach-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--grad);
}
.ks-prof-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.ks-prof-panel {
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
}
.ks-prof-panel h2 { margin: 0 0 12px; font-family: var(--ff-h); font-size: 19px; }
.ks-profile-list { display: flex; flex-direction: column; gap: 8px; }
.ks-mini-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg2);
}
.ks-mini-row strong { color: var(--tx); font-size: 13px; }
.ks-mini-row span { color: var(--tx-dim); font-size: 12.5px; line-height: 1.45; }
.ks-mini-row:hover { border-color: var(--acc); }

@media (max-width: 760px) {
  .ks-prof-hero { padding: 24px; }
  .ks-prof-hero-inner { grid-template-columns: 80px 1fr; gap: 16px; }
  .ks-prof-avatar { width: 80px; height: 80px; font-size: 34px; }
  .ks-prof-name { font-size: 22px; }
  .ks-prof-stats { grid-template-columns: repeat(2, 1fr); }
  .ks-prof-panels { grid-template-columns: 1fr; }
}
.ks-prof-info, .ks-prof-panel { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .ks-prof .ks-prof-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .ks-prof .ks-prof-actions { margin-left: 0; }
}
@media (max-width: 600px) {
  .ks-fhero-inner { padding-top: 12px; }
  .ks-fhero-poster { max-width: 150px; }
  .ks-fhero-actions { order: 1; }
  .ks-fhero-cols { order: 2; justify-content: center; }
}
