.quote, .title_quote, .text_spoiler, .title_spoiler {
font-style: italic;
padding: 12px 16px;
background: var(--bg-secondary);
border-left: 4px solid var(--accent);
margin: 14px 0;
border-radius: 0 var(--radius) var(--radius) 0;
}
.title_quote, .title_spoiler {
background: var(--bg-card);
border-bottom: 0;
font-weight: 800;
font-style: normal;
cursor: pointer;
}
.title_spoiler, .text_spoiler { border-color: var(--error); }
.text_spoiler { border-top: 0; text-align: justify; }
.hide {
background-color: var(--bg-secondary);
padding: 12px 16px;
color: var(--text-secondary);
margin: 14px 0;
border-radius: var(--radius);
border: 1px dashed var(--border-color);
}
.hide a { text-decoration: underline; color: var(--accent); }
.hide a:hover { text-decoration: none; }
.inhide {
border: 1px solid var(--border-color);
padding: 12px;
background-color: var(--bg-card);
margin-bottom: 14px;
border-radius: var(--radius);
}
.scriptcode, pre code {
display: block;
padding: 14px;
background: var(--bg-secondary);
border-left: 4px solid var(--accent);
overflow: auto;
white-space: pre;
font-family: 'Courier New', monospace;
font-size: 13px;
color: var(--text-primary);
margin: 14px 0;
border-radius: 0 var(--radius) var(--radius) 0;
}
.commentsreplyname { padding: 8px; border: 1px solid var(--border-color); width: 100%; max-width: 300px; background: var(--bg-card); border-radius: var(--radius); color: var(--text-primary); }
.rating { width: 85px; height: 20px; font-size: 13px; }
.unit-rating { list-style: none; margin: 0; padding: 0; width: 85px; height: 20px; position: relative; background: var(--bg-secondary); border-radius: 10px; overflow: hidden; }
.unit-rating li { text-indent: -90000px; padding: 0; margin: 0; float: left; }
.unit-rating li a { display: block; width: 17px; height: 20px; text-decoration: none; text-indent: -9000px; z-index: 17; position: absolute; padding: 0; }
.unit-rating li.current-rating { background: var(--accent); position: absolute; height: 20px; display: block; text-indent: -9000px; z-index: 1; }
.ratingzero { color: var(--text-tertiary); }
.ratingtypeplusminus { padding: 0 5px; }
.ratingplus { color: var(--success); }
.ratingminus { color: var(--error); }
.voteprogress, .pollprogress { overflow: hidden; height: 18px; margin-bottom: 8px; background-color: var(--bg-secondary); border-radius: 9px; }
.voteprogress span, .pollprogress span { color: #fff; height: 18px; display: block; overflow: hidden; font-size: 11px; text-align: center; line-height: 18px; background: var(--accent); }
.voteprogress .vote2, .pollprogress .poll2 { background: var(--error); }
.voteprogress .vote3, .pollprogress .poll3 { background: var(--success); }
.voteprogress .vote4, .pollprogress .poll4 { background: #4bb1cf; }
.voteprogress .vote5, .pollprogress .poll5 { background: var(--warning); }
.calendar { width: 100%; border-collapse: collapse; }
.calendar td, .calendar th { padding: 6px 4px; vertical-align: middle; text-align: center; border: 1px solid var(--border-color); }
.calendar tr { background-color: var(--bg-card); }
.calendar th { background-color: var(--bg-secondary); font-weight: 800; }
.calendar tr:hover { background-color: var(--bg-secondary); }
.day-current { background-color: var(--accent) !important; color: #fff; }
.day-current a { color: #fff; }
.weekday { color: var(--error); }
.clouds_xsmall { font-size: 0.9em; }
.clouds_small { font-size: 1em; }
.clouds_medium { font-size: 1.2em; font-weight: 800; }
.clouds_large { font-size: 1.5em; font-weight: 800; }
.clouds_xlarge { font-size: 1.8em; font-weight: 800; }
.attachment { color: var(--text-secondary); padding: 8px 12px; background: var(--bg-secondary); border-radius: var(--radius); display: inline-block; margin: 4px 0; }
.attachment a { color: var(--accent); text-decoration: none; }
.attachment a:hover { text-decoration: underline; }
#searchsuggestions { z-index: 998; border: 1px solid var(--border-color); width: 300px; background-color: var(--bg-card); font-size: 13px; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
#searchsuggestions a, #searchsuggestions span.notfound { padding: 10px 14px; display: block; text-decoration: none; color: var(--text-primary); }
#searchsuggestions a:hover { background-color: var(--bg-secondary); }
#searchsuggestions span.searchheading { display: block; font-weight: 800; color: var(--accent); padding: 8px 14px; background: var(--bg-secondary); }
.selectmass { margin-top: 10px; }
#loading-layer { display: none; font-size: 13px; background: var(--bg-primary); padding: 14px 20px; text-align: center; color: var(--text-primary); border: 1px solid var(--border-color); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.findrelated { width: 99%; background: var(--bg-secondary); border: 1px solid var(--border-color); padding: 12px; margin-top: 10px; border-radius: var(--radius); }

/* Tree list base */
.comments-tree-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Nested tree (тонкая линия + аккуратные отступы) */
.comments-tree-list .comments-tree-list{
  margin: 10px 0 0 14px;
  padding-left: 14px;
  border-left: 1px solid rgba(142,142,147,.35);
}

/* Comment card */
.comment-item{
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 12px;
}

.comment-header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.comment-author{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.comment-avatar img{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  object-fit: cover;
  background: var(--bg-secondary);
}

.comment-author-info{
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.comment-author-name{
  font-weight: 900;
  font-size: 14px;
  line-height: 1.25;
  color: var(--text-primary);
  word-break: break-word;
}

.comment-group{
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 700;
}

.comment-meta{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.comment-content{
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-primary);
}

.comment-content a{
  color: var(--accent);
  text-decoration: underline;
}
.comment-content a:hover{
  text-decoration: none;
}

/* signature */
.comment-signature{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
  color: var(--text-secondary);
  font-size: 13px;
}

/* footer actions */
.comment-footer{
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.comment-link{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.comment-actions,
.comment-admin-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.comment-action-btn{
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}
.comment-action-btn:hover{
  background: var(--border-color);
}

/* Fast reply container */
#dlefastreplycomments{
  margin: 12px 0 0 14px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Mass actions (no floats) */
.selectmass{ margin-top: 10px; }
.selectmass input{ float: none; margin: 0; }

.mass_comments_action{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  text-align: right;
}

.mass_comments_action select{
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 0 10px;
}

.mass_comments_action input.bbcodes{
  height: 34px;
  border-radius: 10px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  padding: 0 12px;
}
