.magii-forum{ display:grid; gap:18px; color:#e7e8ee; }
.magii-forum a{ color:#f0b35f; text-decoration:none; }
.magii-forum a:hover{ color:#ffd08b; text-decoration:underline; }
.magii-forum__hero,
.magii-forum__panel,
.magii-forum__post{ border:1px solid #2f3545; border-radius:16px; background:#171c26; box-shadow:0 10px 26px rgba(0,0,0,0.24); }
.magii-forum__hero{ padding:18px 20px; }
.magii-forum__hero-text{ margin:10px 0 0; color:#bcc2d3; line-height:1.6; }
.magii-forum__hero-meta{ display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }
.magii-forum__meta-chip,
.magii-forum__badge,
.magii-forum__subforums a{ display:inline-flex; align-items:center; gap:8px; min-height:32px; padding:0 12px; border-radius:999px; border:1px solid #4e4368; background:#262033; font-size:12px; color:#f1d7a3; }
.magii-forum__panel{ overflow:hidden; }
.magii-forum__panel-header{ display:flex; justify-content:space-between; gap:16px; align-items:center; padding:13px 16px; background:#242b39; border-bottom:1px solid #343d4f; color:#ffffff; }
.magii-forum__panel-title{ margin:0; font-size:18px; font-weight:700; color:inherit; }
.magii-forum__panel-subtitle{ margin-top:6px; font-size:13px; line-height:1.55; color:#c8cddd; }
.magii-forum__panel-counts{ display:grid; gap:4px; white-space:nowrap; text-align:right; font-size:12px; color:#d8dceb; }
.magii-forum__table-head,
.magii-forum__row{ display:grid; grid-template-columns:minmax(0, 1fr) 110px 210px; gap:16px; align-items:center; }
.magii-forum__table-head{ padding:11px 16px; background:#1f2430; border-bottom:1px solid #31394a; font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:#9da5b8; }
.magii-forum__list{ display:grid; }
.magii-forum__row{ padding:16px; border-bottom:1px solid #2a3140; background:#171c26; }
.magii-forum__row:hover{ background:#1b2130; }
.magii-forum__row:last-child{ border-bottom:0; }
.magii-forum__main{ min-width:0; display:grid; grid-template-columns:42px minmax(0, 1fr); gap:14px; align-items:start; }
.magii-forum__icon{ width:42px; height:42px; border-radius:12px; background:#302740; border:1px solid #5c477f; position:relative; }
.magii-forum__icon::before,
.magii-forum__icon::after{ content:""; position:absolute; left:50%; transform:translateX(-50%); background:#f0b35f; border-radius:2px; }
.magii-forum__icon::before{ top:10px; width:20px; height:4px; }
.magii-forum__icon::after{ top:19px; width:14px; height:4px; }
.magii-forum__title-line{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.magii-forum__title{ font-size:18px; font-weight:700; color:#ffffff; }
.magii-forum__desc{ margin-top:6px; line-height:1.55; color:#bcc2d3; }
.magii-forum__meta-line{ margin-top:9px; display:flex; flex-wrap:wrap; gap:8px 12px; font-size:13px; color:#a7aec0; }
.magii-forum__stats,
.magii-forum__last{ display:grid; gap:6px; align-content:center; font-size:13px; color:#c8cddd; }
.magii-forum__stats{ justify-items:end; text-align:right; }
.magii-forum__last{ min-width:0; }
.magii-forum__last-title{ font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:#9199ac; }
.magii-forum__last-date{ font-weight:700; color:#ffffff; }
.magii-forum__empty{ padding:18px; color:#c8cddd; }
.magii-forum__actions{ display:flex; justify-content:space-between; gap:14px; align-items:center; flex-wrap:wrap; margin-top:14px; }
.magii-forum__results{ font-size:13px; color:#a8b0c2; }
.magii-forum__compose{ padding:18px; }
.magii-forum__compose .form-group{ margin-bottom:14px; }
.magii-forum__compose label{ display:block; margin-bottom:6px; font-weight:700; color:#f4f5f8; }
.magii-forum .form-control{ display:block; width:100%; min-height:44px; border-radius:14px; padding:10px 12px; border:1px solid #353e50; background:#10151d; color:#edf0f6; }
.magii-forum .form-control:focus{ outline:none; border-color:#cf9653; box-shadow:0 0 0 3px rgba(207,150,83,0.16); }
.magii-forum textarea.form-control{ min-height:160px; resize:vertical; }
.magii-forum .btn,
.magii-forum__topic-moderation a,
.magii-forum__post-tools a{ display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:40px; padding:9px 16px; border-radius:999px; border:1px solid #5a4b74; background:#2d243c; color:#f0f2f8; text-decoration:none; cursor:pointer; }
.magii-forum .btn:hover,
.magii-forum__topic-moderation a:hover,
.magii-forum__post-tools a:hover{ background:#382c4b; border-color:#cf9653; color:#ffffff; text-decoration:none; }
.magii-forum .btn-primary{ background:#7e4ad4; border-color:#cf9653; color:#ffffff; }
.magii-forum .btn-primary:hover{ background:#915be9; border-color:#efb56d; }
.magii-forum .text-danger{ margin-top:6px; color:#ff9b8f; }
.magii-forum .alert{ border-radius:14px; padding:12px 14px; margin:0; border:1px solid #6f2f36; background:#34191d; color:#ffd9d4; }
.magii-forum__topic-hero{ display:flex; justify-content:space-between; gap:16px; align-items:flex-start; flex-wrap:wrap; }
.magii-forum__topic-moderation{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.magii-forum__posts{ display:grid; gap:16px; }
.magii-forum__post{ display:grid; grid-template-columns:210px minmax(0, 1fr); overflow:hidden; }
.magii-forum__post-side{ padding:18px 16px; background:#1e2532; border-right:1px solid #30394a; }
.magii-forum__author{ font-size:18px; font-weight:700; color:#ffffff; }
.magii-forum__author-badge{ margin-top:10px; }
.magii-forum__author-meta{ margin-top:14px; display:grid; gap:8px; font-size:13px; color:#a7aec0; }
.magii-forum__post-body{ min-width:0; display:grid; }
.magii-forum__post-head{ display:flex; justify-content:space-between; gap:14px; align-items:center; flex-wrap:wrap; padding:14px 18px; background:#202734; border-bottom:1px solid #31394a; }
.magii-forum__post-no{ font-size:13px; font-weight:700; color:#f2d7a0; }
.magii-forum__post-date{ font-size:13px; color:#c0c6d6; }
.magii-forum__post-tools{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.magii-forum__post-message{ padding:18px; line-height:1.75; color:#edf0f6; word-break:break-word; }
.magii-forum__subforums{ margin-top:10px; display:flex; flex-wrap:wrap; gap:8px; }
@media (max-width: 980px){
.magii-forum__table-head,
  .magii-forum__row{ grid-template-columns:minmax(0, 1fr); }
.magii-forum__stats{ justify-items:start; text-align:left; grid-auto-flow:column; justify-content:start; gap:14px; }
.magii-forum__last{ padding-top:4px; border-top:1px dashed #394254; }
.magii-forum__table-head{ display:none; }
}
@media (max-width: 760px){
.magii-forum__main{ grid-template-columns:34px minmax(0, 1fr); gap:10px; }
.magii-forum__icon{ width:34px; height:34px; border-radius:10px; }
.magii-forum__title{ font-size:16px; }
.magii-forum__post{ grid-template-columns:minmax(0, 1fr); }
.magii-forum__post-side{ border-right:0; border-bottom:1px solid #30394a; }
}
