/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.tv-episode-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  background: #f7f9fc;
  border: 1px solid #e3e7f0;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  margin: 0.6rem 0 1rem;
}

.tv-episode-nav__side {
  min-width: 0;
}

.tv-episode-nav__side--right {
  text-align: right;
}

.tv-episode-nav__link {
  color: #1a2744;
  text-decoration: none;
  font-weight: 600;
}

.tv-episode-nav__meta {
  color: #7b849a;
  font-weight: 500;
}

.tv-episode-nav__title {
  font-weight: 500;
}

.content-meta {
  font-size: 0.78rem;
  color: #777;
  margin: 0.1rem 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.content-meta__author {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #555;
}

.content-meta__draft {
  margin-left: 0.4em;
  color: #cc6600;
  font-weight: 600;
}

.cover-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.content-body {
  margin-bottom: 1rem;
}

.content-body::after {
  content: "";
  display: table;
  clear: both;
}

.content-body .content-image {
  margin: 0.5rem 0;
}

.content-body .content-image--center {
  margin-left: auto;
  margin-right: auto;
}

.content-body .content-image--left {
  margin: 0.35rem 0.9rem 0.35rem 0;
}

.content-body .content-image--right {
  margin: 0.35rem 0 0.35rem 0.9rem;
}

.content-body .content-image--wrap.content-image--left {
  float: left;
}

.content-body .content-image--wrap.content-image--right {
  float: right;
}

.content-body .content-image--wrap img {
  display: block;
}

.content-body .content-image img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

.content-body .content-image figcaption {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.35rem;
  text-align: center;
}

.content-body .content-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.6rem;
  margin: 0.6rem 0;
}

.content-body .content-gallery .content-image {
  float: none;
  margin: 0;
  width: 100% !important;
}

.content-body .content-gallery .content-image img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Gallery sizes - centered */
.content-body .content-gallery--s {
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  max-width: 400px;
  margin: 0.6rem auto !important;
}

.content-body .content-gallery--m {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  max-width: 600px;
  margin: 0.6rem auto !important;
}

.content-body .content-gallery--l {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  max-width: 900px;
  margin: 0.6rem auto !important;
}

.content-body blockquote {
  margin: 0.6rem 0;
  padding: 0.4rem 0.8rem;
  border-left: 3px solid #cc0000;
  background: #f7f9fc;
  color: #445066;
}

.tiptap-wrap {
  border: 1px solid #d4dae8;
  border-radius: 4px;
  background: #fff;
}

.tiptap-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.4rem 0.5rem;
  background: #f5f7fb;
  border-bottom: 1px solid #d4dae8;
}

.tiptap-toolbar button {
  border: 1px solid #c7cfdf;
  background: #fff;
  color: #1a2744;
  font-size: 0.78rem;
  padding: 0.25rem 0.45rem;
  border-radius: 3px;
  cursor: pointer;
}

.tiptap-toolbar button.is-active {
  background: #1a2744;
  color: #fff;
  border-color: #1a2744;
}

.tiptap-editor .ProseMirror {
  min-height: 240px;
  padding: 0.6rem;
  outline: none;
}

.tiptap-editor .content-image figcaption {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #666;
  text-align: center;
  outline: none;
}

.tiptap-editor .content-image figcaption[data-caption][contenteditable="true"]:empty::before {
  content: "Добавить подпись…";
  color: #aaa;
}

.tiptap-editor .content-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.6rem;
  margin: 0.6rem 0;
}

.tiptap-editor .content-gallery .content-image {
  float: none;
  margin: 0;
  width: 100% !important;
}

.tiptap-editor .content-gallery .content-image img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Gallery sizes in editor */
.tiptap-editor .content-gallery {
  border-radius: 0 4px 4px 4px;
}

.tiptap-editor .content-gallery--s {
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  max-width: 400px;
  margin: 0 auto;
}

.tiptap-editor .content-gallery--m {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  max-width: 600px;
  margin: 0 auto;
}

.tiptap-editor .content-gallery--l {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  max-width: 900px;
  margin: 0 auto;
}

/* Gallery wrapper and controls */
.tiptap-editor .gallery-wrapper {
  margin: 0.6rem 0;
}

.tiptap-editor .gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.3rem 0.5rem;
  background: #f0f3fa;
  border: 1px solid #d4dae8;
  border-radius: 4px 4px 0 0;
  border-bottom: none;
  font-size: 0.8rem;
  width: fit-content;
  margin: 0 auto;
}

.tiptap-editor .gallery-controls__label {
  color: #666;
  margin-right: 0.3rem;
}

.tiptap-editor .gallery-controls__btn {
  padding: 0.15rem 0.5rem;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.75rem;
}

.tiptap-editor .gallery-controls__btn:hover {
  background: #e8ecf4;
}

.tiptap-editor .gallery-controls__btn.is-active {
  background: #3a5fcd;
  color: #fff;
  border-color: #3a5fcd;
}

.tiptap-editor .ProseMirror blockquote {
  margin: 0.6rem 0;
  padding: 0.4rem 0.8rem;
  border-left: 3px solid #cc0000;
  background: #f7f9fc;
  color: #445066;
}

.tiptap-editor .content-image {
  position: relative;
}

.tiptap-editor .content-image--left {
  margin: 0.35rem 0.9rem 0.35rem 0;
}

.tiptap-editor .content-image--right {
  margin: 0.35rem 0 0.35rem 0.9rem;
}

.tiptap-editor .content-image--wrap.content-image--left {
  float: left;
}

.tiptap-editor .content-image--wrap.content-image--right {
  float: right;
}

.tiptap-editor .content-image--center {
  margin-left: auto;
  margin-right: auto;
}

.tiptap-editor .ProseMirror::after {
  content: "";
  display: table;
  clear: both;
}

.tiptap-editor .content-image__resize {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 10px;
  height: 10px;
  border-right: 2px solid #cc0000;
  border-bottom: 2px solid #cc0000;
  cursor: se-resize;
  background: rgba(255, 255, 255, 0.7);
}

.tiptap-editor .ProseMirror-selectednode {
  outline: 2px solid #cc0000;
  border-radius: 2px;
}

.index-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #dde3ef;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.index-card:hover {
  box-shadow: 0 4px 12px rgba(26, 39, 68, 0.15);
  transform: translateY(-2px);
  text-decoration: none;
}

.cb .index-card:hover {
  text-decoration: none;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-title {
  margin: 0;
}

.admin-subtitle {
  color: #666;
  font-size: 0.85rem;
}

.admin-alert {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.admin-alert__title {
  font-weight: 700;
}

.admin-alert__list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.admin-section-title {
  margin: 1.2rem 0 0.75rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.admin-card {
  background: #fff;
  border: 1px solid #d4dae8;
  border-radius: 4px;
  padding: 0.75rem 1rem;
}

.admin-card__label {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.admin-card__counts {
  color: #555;
  font-size: 0.9em;
}

.admin-card__warn {
  color: #c0392b;
  font-weight: 700;
}

.admin-card__actions {
  margin-top: 0.5rem;
  font-size: 0.85em;
}

.admin-users {
  background: #fff;
  border: 1px solid #d4dae8;
  border-radius: 4px;
  padding: 0.75rem 1rem 1rem;
}

.admin-users__toolbar {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.admin-users__toolbar form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-users__toolbar form + form {
  margin-left: auto;
}

.admin-users__label {
  font-size: 0.8rem;
  color: #666;
  margin-right: 0.35rem;
}

.admin-users__input {
  font-size: 0.85rem;
  padding: 4px 8px;
  border: 1px solid #d4dae8;
  border-radius: 3px;
}

.admin-users__submit {
  font-size: 0.8rem;
  padding: 4px 10px;
}

.admin-users__select {
  font-size: 0.8rem;
  padding: 4px 8px;
  border: 1px solid #d4dae8;
  border-radius: 3px;
}

.admin-users__table {
  display: grid;
  gap: 0.4rem;
}

.bulk-picture-tools {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0.5rem 0 0.75rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #d9e1ef;
  border-radius: 4px;
  background: #f9fbff;
}

.showcase-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.showcase-head h1 {
  margin: 0;
}

.showcase-head__actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.bulk-picture-tools__toggle {
  font-size: 0.8rem;
  color: #4b556b;
}

.bulk-picture-tools__select {
  font-size: 0.8rem;
  padding: 4px 8px;
  border: 1px solid #cfd7e6;
  border-radius: 3px;
  background: #fff;
}

.bulk-picture-tools__submit {
  font-size: 0.8rem;
  padding: 4px 10px;
}

.showcase-picture {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid #e8ecf4;
}

.showcase-picture__check {
  flex: 0 0 auto;
  padding-top: 0.2rem;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.75rem;
}

.showcase-grid__item {
  border: 1px solid #dde3ef;
  background: #fff;
  position: relative;
}

.showcase-grid__check {
  position: absolute;
  z-index: 1;
  top: 6px;
  left: 6px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #d0d8e7;
  border-radius: 2px;
  padding: 1px 3px;
}

.showcase-grid__thumb {
  display: block;
  aspect-ratio: 4 / 3;
  background: #f2f6fd;
}

.showcase-grid__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showcase-grid__meta {
  padding: 0.45rem 0.55rem 0.55rem;
}

.gallery-pictures {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.8rem;
}

.gallery-pictures__item {
  border: 1px solid #dde3ef;
  background: #fff;
}

.gallery-pictures__thumb {
  display: block;
  aspect-ratio: 4 / 3;
  background: #f4f7fb;
}

.gallery-pictures__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-pictures__placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #7d879d;
  font-size: 0.82rem;
}

.gallery-pictures__meta {
  padding: 0.5rem 0.6rem 0.6rem;
}

.gallery-pictures__title {
  color: #1a2744;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.25;
}

.gallery-pictures__sub {
  margin-top: 0.2rem;
  color: #6f778a;
  font-size: 0.75rem;
}

.gallery-pictures__actions {
  margin-top: 0.35rem;
  font-size: 0.78rem;
}

.gallery-parent-link {
  margin: 0.25rem 0 0.6rem;
  font-size: 0.82rem;
  color: #5f6880;
}

.picture-galleries-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.picture-galleries-tabs {
  margin: 0.4rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.picture-galleries-section {
  border-top: 1px solid #e5eaf3;
  padding-top: 0.9rem;
  margin-top: 0.9rem;
}

.picture-galleries-section__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.picture-galleries-section__head h2 {
  margin: 0;
  font-size: 1.03rem;
}

.picture-galleries-section__head h2 a {
  color: #1a2744;
  text-decoration: none;
}

.picture-galleries-section__meta {
  color: #6c768d;
  font-size: 0.78rem;
}

.picture-galleries-section__desc {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.82rem;
  color: #5f6880;
}

.picture-galleries-section__more {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
}

.picture-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.picture-gallery-card {
  border: 1px solid #dde3ef;
  background: #fff;
}

.picture-gallery-card__thumb {
  display: block;
  aspect-ratio: 4 / 3;
  background: #f2f6fd;
}

.picture-gallery-card__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.picture-gallery-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7d879d;
  font-size: 0.78rem;
}

.picture-gallery-card__body {
  padding: 0.45rem 0.55rem 0.55rem;
}

.picture-gallery-card__body h3 {
  margin: 0;
  line-height: 1.25;
  font-size: 0.86rem;
}

.picture-gallery-card__title {
  color: #1a2744;
  text-decoration: none;
  font-weight: 700;
}

.picture-gallery-card__meta {
  margin-top: 0.2rem;
  color: #6f778a;
  font-size: 0.75rem;
}

.picture-show__head {
  border: 1px solid #dce3f0;
  background: #f8fafd;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.85rem;
}

.picture-show__back {
  font-size: 0.8rem;
  text-decoration: none;
}

.picture-show__head h1 {
  margin: 0.25rem 0 0.45rem;
  font-size: 1.06rem;
  color: #1a2744;
  border: none;
  padding: 0;
}

.picture-show__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  font-size: 0.76rem;
  color: #5a6377;
}

.picture-show__frame {
  border: 1px solid #dde3ef;
  background: #fff;
  padding: 0.5rem;
}

.picture-show__image {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  display: block;
  background: #f7f9fd;
}

.picture-show__empty {
  color: #667085;
  font-size: 0.84rem;
}

.picture-system-author {
  color: #7d879d;
  font-style: italic;
  border-bottom: 1px dotted #9aa4ba;
  cursor: help;
}

.picture-form__current {
  margin-bottom: 0.7rem;
}

.picture-form__current-label {
  font-size: 0.78rem;
  color: #5f6880;
  margin-bottom: 0.25rem;
}

.picture-form__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #2a3a5c;
  margin-bottom: 0.2rem;
}

.picture-form__preview {
  max-width: 220px;
  max-height: 160px;
  border: 1px solid #dde3ef;
  display: block;
  object-fit: cover;
}

/* ─── Generic forms ─────────────────────────────────────── */
.form {
  max-width: 760px;
}

.form__field {
  margin-bottom: 0.85rem;
}

.form__field--row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.form__field--inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #2a3a5c;
  margin-bottom: 0.22rem;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid #d4dae8;
  border-radius: 3px;
  padding: 0.34rem 0.52rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: #1b2438;
  background: #fff;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: #7d93c2;
  box-shadow: 0 0 0 2px rgba(51, 102, 204, 0.12);
}

.form__textarea {
  resize: vertical;
  min-height: 90px;
}

.form__textarea--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.82rem;
  line-height: 1.42;
}

.form__input--short { max-width: 140px; }
.form__input--mid { max-width: 360px; }
.form__input--long { max-width: 520px; }
.form__select--short { max-width: 220px; }

.form__hint {
  margin: 0 0 0.3rem;
  color: #666;
  font-size: 0.78rem;
  line-height: 1.5;
}

.form__media-preview {
  max-width: 300px;
  max-height: 180px;
  border: 1px solid #dde3ef;
  display: block;
  object-fit: contain;
  margin-bottom: 0.4rem;
  background: #fff;
}

.form__media-preview--logo {
  max-height: 80px;
}

.form__media-preview-wrap {
  display: inline-block;
  margin-bottom: 0.35rem;
  border: 1px solid #333;
  background: #111;
  padding: 0;
}

.form__check {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: #555;
  font-size: 0.82rem;
  cursor: pointer;
}

.form__check--muted {
  color: #888;
  font-size: 0.78rem;
}

.form__actions {
  margin-top: 1.1rem;
}

.form-page__title {
  margin: 0 0 0.4rem;
}

.form-page__intro {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.form__submit {
  background: #1a2744;
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 0.34rem 0.9rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.form__submit:hover {
  background: #2a3d6e;
}

.form-thumbsize {
  display: inline-flex;
  gap: 4px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.form-thumbsize__option {
  position: relative;
  cursor: pointer;
  margin: 0;
}

.form-thumbsize__radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.form-thumbsize__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 4px 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 0.85em;
  background: #fff;
  color: #555;
}

.form-thumbsize__hint {
  font-size: 0.7em;
  opacity: 0.7;
}

.form-thumbsize__radio:checked + .form-thumbsize__inner {
  background: #1a2744;
  color: #fff;
  border-color: #1a2744;
}

.form-nav-back {
  margin-top: 0.5rem;
  font-size: 0.82rem;
}

.u-hidden { display: none !important; }

@media (max-width: 700px) {
  .form__field--row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
}

.file-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.file-input__native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.file-input__btn {
  border: 1px solid #ccd6e6;
  background: #eef2f9;
  color: #1a2744;
  border-radius: 3px;
  padding: 0.22rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.file-input__btn:hover {
  background: #dce5f4;
}

.file-input__name {
  font-size: 0.78rem;
  color: #5f6880;
}

.user-picker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.user-picker__input {
  min-width: 320px;
  max-width: 100%;
  border: 1px solid #d4dae8;
  border-radius: 3px;
  padding: 4px 8px;
  font-size: 0.82rem;
}

.user-picker--compact {
  gap: 0.35rem;
}

.user-picker__input--compact {
  min-width: 220px;
  width: 220px;
  font-size: 0.78rem;
  padding: 3px 7px;
}

.admin-users__row {
  display: grid;
  grid-template-columns: 70px 1.5fr 120px 2fr;
  gap: 0.75rem;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #eef0f5;
}

.admin-users__row--link {
  text-decoration: none;
  color: inherit;
}

.admin-users__row--link:hover {
  background: #f6f8fd;
  text-decoration: none;
}

.cb .admin-users__row--link:hover {
  text-decoration: none;
}

.admin-users__row--head {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #666;
  font-weight: 700;
}

.admin-users__row--head a {
  color: inherit;
  text-decoration: none;
}

.admin-users__row--head a:hover {
  text-decoration: none;
}

.admin-users__sort {
  margin-left: 0.25rem;
  color: #444;
  font-size: 0.75rem;
}

.admin-users__id {
  font-family: monospace;
  color: #666;
}

.admin-users__user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.admin-users__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #d4dae8;
}

.admin-users__avatar--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef1f8;
  color: #1a2744;
  font-size: 0.7rem;
  font-weight: 700;
}

.admin-users__name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-users__role {
  font-size: 0.8rem;
  color: #555;
}

.admin-users__email {
  font-size: 0.8rem;
  color: #555;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.index-grid {
  display: grid;
  gap: 12px;
}

.index-grid--tv {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.index-grid--toy {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.index-grid--game {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.index-card__media--game {
  background: #111827;
  height: 110px;
}

.index-grid--film {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.index-card__media--film {
  background: #0d1117;
  height: 120px;
}

.index-grid--warehouse {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.index-card__media--warehouse {
  background: #1a1a2e;
  height: 110px;
}

.index-grid--music {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.index-card__media--music {
  background: #111;
  height: 130px;
}

.index-grid--comics {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.index-card__media--comics {
  background: #0d1117;
  height: 140px;
}

.index-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  overflow: hidden;
}

.index-card__media--tv {
  background: #1a2744;
}

.index-card__media--toy {
  background: #111;
}

.index-card__img {
  max-width: 100%;
  max-height: 88px;
  object-fit: contain;
  display: block;
  padding: 4px;
}

.index-card__img--toy {
  max-height: 86px;
}

.index-card__info {
  padding: 6px 8px;
}

.index-card__title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1a2744;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.index-card__subtitle {
  font-size: 0.68rem;
  color: #888;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.index-filter {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.index-filter__label {
  font-size: 0.75rem;
  color: #666;
  margin-right: 0.35rem;
}

.index-filter__select {
  font-size: 0.75rem;
  padding: 2px 6px;
}

.index-filter__submit {
  font-size: 0.75rem;
  padding: 2px 8px;
  margin-left: 0.4rem;
}

.index-header {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.index-header__title {
  margin: 0;
}

.index-header__add {
  font-size: 0.8rem;
  margin-left: auto;
}

.index-header__suggest {
  font-size: 0.8rem;
  color: #3366cc;
  margin-left: auto;
}

.index-header__suggest ~ .index-header__add {
  margin-left: 0;
}

.post-list__item {
  display: flex;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid #e8ecf4;
}

.post-list__thumb {
  flex-shrink: 0;
}

.post-list__img {
  width: 90px;
  height: 68px;
  object-fit: cover;
  border: 1px solid #dde3ef;
  border-radius: 4px;
  display: block;
}

.post-list__body {
  flex: 1;
  min-width: 0;
}

.post-list__meta {
  font-size: 0.72rem;
  color: #999;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.post-list__meta-author {
  margin-left: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #777;
}

.user-avatar {
  width: var(--avatar-size, 20px);
  height: var(--avatar-size, 20px);
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #d4dae8;
  flex-shrink: 0;
}

.user-avatar--placeholder {
  background: #eef1f8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: calc(var(--avatar-size, 20px) * 0.45);
  line-height: 1;
  font-weight: 700;
  color: #1a2744;
  text-transform: uppercase;
}

.post-list__meta-draft {
  margin-left: 0.4em;
  color: #cc6600;
  font-weight: 600;
}

.post-list__title {
  margin: 0 0 0.3rem;
  font-size: 0.975rem;
  font-weight: 700;
  line-height: 1.3;
}

.post-list__title a {
  color: #1a2744;
  text-decoration: none;
}

.post-list__preview {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  color: #555;
  line-height: 1.55;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post-list__read {
  font-size: 0.75rem;
  color: #3366cc;
}

.post-list__comments {
  font-size: 0.75rem;
  color: #888;
  margin-left: 0.3em;
}

.index-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.index-card:hover .index-card__media::after {
  opacity: 1;
}

.index-card__placeholder {
  color: #8899bb;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.index-card__badges {
  margin-top: 4px;
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.index-card__badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 5px;
  background: #eef1f8;
  color: #1a2744;
  border-radius: 2px;
}

.index-card__badge--region {
  background: #003580;
  color: #fff;
}

.index-card__badge--region-jp {
  background: #c8202a;
}

.action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.8rem;
  margin: 0 0 1.2rem;
}

.action-links__link,
.action-links__link:visited {
  display: inline-block;
  padding: 0.22rem 0.55rem;
  border: 1px solid #d4dae8;
  border-radius: 3px;
  background: #eef1f8;
  color: #1a2744;
  text-decoration: none;
  font-weight: 600;
}

.action-links__link:hover {
  background: #d4dae8;
  text-decoration: none;
}

.action-links__link--danger,
.action-links__link--danger:visited {
  border-color: #d4dae8;
  background: #eef1f8;
  color: #1a2744;
}

.action-links__link--danger:hover {
  border-color: #990000;
  background: #cc0000;
  color: #fff;
  text-decoration: none;
}

.action-links__link--active,
.action-links__link--active:visited {
  background: #d4dae8;
  border-color: #b5c0d5;
}

/* override .cb a styles from layout */
.cb .action-links__link,
.cb .action-links__link:visited {
  color: #1a2744;
}

.cb .action-links__link:hover {
  text-decoration: none;
}

.cb .action-links__link--danger:hover {
  color: #fff;
}

.action-links--spaced {
  margin-top: 1rem;
}

.gallery-actions--admin {
  margin-top: 0.75rem;
  margin-bottom: 1.1rem;
}

.gallery-actions--upload {
  margin-top: 0.25rem;
  margin-bottom: 0.9rem;
}

/* ─── Detail pages (films/games/comics) ─────────────────── */
.detail-hero {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.detail-hero__media {
  flex: 0 0 auto;
  padding: 8px;
  border: 1px solid #dde3ef;
  border-radius: 3px;
  text-align: center;
}
.detail-hero__media--film,
.detail-hero__media--comic { background: #0d1117; }
.detail-hero__media--game { background: #111827; }
.detail-hero__img {
  display: block;
  object-fit: contain;
}
.detail-hero__img--film {
  max-width: 180px;
  max-height: 240px;
}
.detail-hero__img--game {
  max-width: 180px;
  max-height: 180px;
}
.detail-hero__img--comic-series {
  max-width: 160px;
  max-height: 220px;
}
.detail-hero__img--comic-issue {
  max-width: 150px;
  max-height: 220px;
}
.detail-hero__main {
  flex: 1;
  min-width: 200px;
}
.detail-hero__title {
  margin: 0 0 0.2rem;
}
.detail-hero__title--spaced {
  margin-bottom: 0.6rem;
}
.detail-hero__subtitle {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}
.detail-meta {
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}
.detail-meta--spaced-top { margin-top: 0.5rem; }
.detail-meta__label {
  color: #666;
  padding: 3px 12px 3px 0;
  white-space: nowrap;
}
.detail-body {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #333;
  margin-bottom: 1.5rem;
}
.detail-body--compact {
  font-size: 0.85rem;
  color: #444;
}
.detail-badge {
  display: inline-block;
  vertical-align: middle;
  border-radius: 2px;
  font-weight: 700;
}
.detail-badge--region {
  margin-left: 0.4em;
  font-size: 0.55em;
  padding: 2px 6px;
  background: #333;
  color: #fff;
}
.detail-badge--number {
  margin-right: 0.4em;
  font-size: 0.7em;
  padding: 2px 6px;
  background: #333;
  color: #fff;
  font-family: monospace;
}
.detail-status--draft { color: #cc6600; }
.detail-backlink {
  margin: 0 0 0.8rem;
  font-size: 0.85rem;
}
.detail-link-muted,
.detail-link-muted:link,
.detail-link-muted:visited {
  color: inherit;
}
.detail-link-muted--plain {
  color: #1a2744 !important;
  text-decoration: none;
}

/* ─── Comic issue list ───────────────────────────────────── */
.issue-list__title {
  font-size: 1rem;
  border-bottom: 2px solid #333;
  padding-bottom: 0.3rem;
  margin-bottom: 0.8rem;
}
.issue-list--wide {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 1.5rem;
}
.issue-item,
.issue-item:link,
.issue-item:visited {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 5px 4px;
  border-bottom: 1px solid #eef0f5;
  text-decoration: none;
  color: inherit;
}
.issue-item:hover { background: #f0f3fa; text-decoration: none; }
.issue-item__number {
  flex: 0 0 auto;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: #333;
  border-radius: 2px;
  padding: 1px 5px;
  font-family: monospace;
  letter-spacing: 0.02em;
}
.issue-item__name {
  flex: 1;
  font-size: 0.86rem;
  color: #1a2744;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.issue-item__year {
  flex: 0 0 auto;
  font-size: 0.78rem;
  color: #aaa;
  white-space: nowrap;
}
.issue-item__draft {
  flex: 0 0 auto;
  font-size: 0.7rem;
  color: #cc6600;
}

@media (max-width: 640px) {
  .issue-list--wide {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.gallery-destroy-warning {
  border: 1px solid #efc2b8;
  background: #fff6f4;
  padding: 0.75rem 0.85rem;
  margin: 0.7rem 0 1rem;
}

.gallery-destroy-warning p {
  margin: 0 0 0.45rem;
}

.gallery-destroy-warning__note {
  margin: 0;
  color: #a33b2f;
  font-weight: 600;
}

.bbcode-quote {
  border-left: 3px solid #b8c4e0;
  background: #f0f3fa;
  padding: 0.2rem 0.55rem;
  margin: 0.15rem 0;
  font-size: 0.85em;
  color: #555;
  border-radius: 0 3px 3px 0;
}
.bbcode-quote cite {
  display: block;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 600;
  color: #7a8ab0;
  margin-bottom: 0.1rem;
}

.bbcode-offtopic {
  font-size: 0.85em;
  color: #6a748d;
}

.char-count {
  margin-bottom: 0.4rem;
  text-align: right;
  font-size: 0.72rem;
  color: #7b8499;
}

.comment-form-errors {
  margin: 0 0 0.5rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid #f0c7c2;
  background: #fff4f2;
  border-radius: 4px;
  color: #8f2f25;
  font-size: 0.78rem;
}

.comment-form-errors ul {
  margin: 0;
  padding-left: 1rem;
}

.comment-form-errors li + li {
  margin-top: 0.2rem;
}

.empty-state {
  padding: 2rem 0;
  color: #999;
  font-size: 0.9rem;
}

.form-errors {
  margin: 0 0 1rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid #f0c7c2;
  background: #fff4f2;
  border-radius: 4px;
  color: #8f2f25;
  font-size: 0.85rem;
}

.form-errors ul {
  margin: 0;
  padding-left: 1.2rem;
}

.form-errors li + li {
  margin-top: 0.2rem;
}

.honeypot-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ─── Comments ──────────────────────────────────────────── */
.comment { margin-bottom: 0.75rem; }
.comment--reply { margin-bottom: 0.4rem; }

.comment__box {
  border: 1px solid #e4e9f4;
  border-radius: 4px;
  padding: 0.6rem 0.75rem;
  background: #fff;
}
.comment__box--own    { background: #f0f4ff; }
.comment__box--reply  { background: #f5f7fc; }

.comment__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}
.comment__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.comment__avatar-init {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eef1f8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #1a2744;
  flex-shrink: 0;
}
.comment__author { font-size: 0.78rem; font-weight: 700; color: #1a2744; }
.comment__reply-to { font-size: 0.7rem; color: #aaa; }
.comment__time,
.comment__time:link,
.comment__time:visited {
  font-size: 0.72rem;
  color: #aaa;
  text-decoration: none;
}
.comment__time:hover { color: #666; text-decoration: underline; }
.comment__edited { font-size: 0.72rem; color: #aaa; font-style: italic; }
.comment__spacer { flex: 1; }

.comment__btn {
  font-size: 0.7rem;
  color: #666;
  background: none !important;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.comment__btn:hover { color: #333; }
.comment__btn--danger { color: #cc0000; }
.comment__btn--danger:hover { color: #990000; }
.comment__btn--action { color: #3366cc; line-height: 1.4; font-size: 0.72rem; }
.comment__btn--action:hover { color: #1a2744; }

.comment__body {
  font-size: 0.875rem;
  color: #333;
  line-height: 1.65;
}

.comment__edit-actions {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}
.comment__footer {
  margin-top: 0.4rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.comment__replies {
  margin-top: 0.3rem;
  margin-left: 1.1rem;
  padding-left: 0.85rem;
  border-left: 2px solid #d6ddf0;
}

/* ─── Comments block ─────────────────────────────────────── */
.comment-thread {
  margin-top: 2rem;
  border-top: 2px solid #eef0f5;
  padding-top: 1rem;
}
.comment-thread__title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a2744;
  margin: 0 0 1rem;
}
.comment-thread__count {
  font-weight: 400;
  color: #888;
  font-size: 0.85rem;
}
.comment-thread__list { margin-bottom: 1.5rem; }
.comment-thread__list--empty { margin-bottom: 1rem; }
.comment-thread__empty {
  color: #999;
  font-size: 0.85rem;
  margin: 0;
}
.comment-thread__login-hint {
  font-size: 0.85rem;
  color: #666;
}
.comment-thread__login-link,
.comment-thread__login-link:link,
.comment-thread__login-link:visited {
  color: #3366cc;
}

/* ─── Comment forms (new + reply) ───────────────────────── */
.comment-form {
  border: 1px solid #dde3ef;
  border-radius: 3px;
  padding: 0.8rem;
  background: #fafafa;
}
.comment-form--reply { margin-top: 0.5rem; }
.comment-form__title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #2a3a5c;
  margin: 0 0 0.5rem;
}
.comment-form__textarea {
  width: 100%;
  border: 1px solid #d4dae8;
  border-radius: 3px;
  padding: 0.35rem 0.5rem;
  font-size: 0.875rem;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 0.2rem;
}
.comment-form__textarea--sm { font-size: 0.82rem; }
.comment-form__row {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}
.comment-form__submit {
  background: #1a2744 !important;
  color: #fff !important;
  border: none;
  border-radius: 3px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  cursor: pointer;
}
.comment-form__submit:hover { background: #2a3d6e !important; }
.comment-form__cancel,
.comment-form__submit--inline {
  font-size: 0.75rem;
  background: none !important;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1.4;
}
.comment-form__cancel { color: #666; }
.comment-form__cancel:hover { color: #333; }
.comment-form__submit--inline { color: #1a2744 !important; font-weight: 600; }
.comment-form__submit--inline:hover { color: #cc0000 !important; }
.comment-form__suppress {
  font-size: 0.72rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}
.comment-edit-page__title { margin-bottom: 1rem; }
.comment-edit-page__actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.comment-edit-page__cancel,
.comment-edit-page__cancel:link,
.comment-edit-page__cancel:visited {
  font-size: 0.8rem;
  color: #3366cc;
}

/* ─── Search page ───────────────────────────────────────── */
.search-form { margin-bottom: 1.25rem; }
.search-form__row { display: flex; gap: 0.5rem; }
.search-form__input {
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  padding: 5px 8px;
  border: 1px solid #c8cfe0;
  border-radius: 2px;
}
.search-form__btn {
  flex-shrink: 0;
  font-size: 0.85rem;
  padding: 4px 14px;
  background: #1a2744;
  color: #fff;
  border: none;
  border-radius: 2px;
  cursor: pointer;
}
.search-form__btn:hover { background: #2a3d6e; }

.search-summary {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 1rem;
}

.search-group { margin-bottom: 1.5rem; }
.search-group__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2a3a5c;
  color: #fff;
  padding: 4px 10px;
  margin-bottom: 0.25rem;
  border-radius: 2px;
}
.search-group__label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.search-group__all {
  font-size: 0.75rem;
  color: #a8b4cc;
  text-decoration: none;
}
.search-group__all:hover { color: #fff; text-decoration: none; }

.search-group__list { list-style: none; margin: 0; padding: 0; }
.search-group__item { border-bottom: 1px solid #eef0f5; }
.search-group__item:last-child { border-bottom: none; }

.search-result {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 6px;
  border-radius: 2px;
  text-decoration: none;
}
.search-result:hover { background: #f0f2f8; text-decoration: none; }
.search-result__name {
  flex: 1;
  font-size: 0.88rem;
  color: #1a2744;
  line-height: 1.3;
}
.search-result:hover .search-result__name { color: #cc0000; }
.search-result__year {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: #999;
}

/* ─── Characters table ───────────────────────────────────── */
.char-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
}
.char-table thead tr {
  background: #eee;
  text-align: left;
}
.char-table th { padding: 4px 6px; }
.char-table td { padding: 2px 6px; }
.char-table__icon { text-align: center; padding: 2px 4px; width: 36px; }
.char-table__group td {
  padding: 6px 4px 2px;
  font-weight: bold;
  border-top: 2px solid #ccc;
  color: #555;
}
.char-table__secondary { color: #555; }

/* ─── Status / type badges ───────────────────────────────── */
.status-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 2px;
  white-space: nowrap;
}
.status-badge--pending  { background: #fff3cd; color: #856404; }
.status-badge--approved { background: #d4edda; color: #155724; }
.status-badge--rejected { background: #f8d7da; color: #721c24; }
.type-badge {
  display: inline-block;
  font-size: 0.72rem;
  padding: 1px 7px;
  border-radius: 2px;
  background: #eef0f5;
  color: #444;
  white-space: nowrap;
}

/* ─── Submission list ────────────────────────────────────── */
.submission-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }
.submission-list__item {
  border: 1px solid #dde3ef;
  border-left-width: 4px;
  border-radius: 3px;
  padding: 0.6rem 0.8rem;
  background: #fafafa;
}
.submission-list__item--pending  { border-left-color: #ffc107; }
.submission-list__item--approved { border-left-color: #28a745; }
.submission-list__item--rejected { border-left-color: #dc3545; }
.submission-list__row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.submission-list__title {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a2744;
  min-width: 0;
}
.submission-list__meta {
  flex: 0 0 auto;
  font-size: 0.75rem;
  color: #888;
  white-space: nowrap;
}
.submission-list__actions { margin-top: 0.4rem; display: flex; gap: 0.4rem; }
.btn-approve, .btn-reject {
  font-size: 0.72rem;
  padding: 2px 10px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
}
.btn-approve { background: #28a745; color: #fff; }
.btn-reject  { background: #dc3545; color: #fff; }

/* ─── Index filter tabs (warehouse etc.) ─────────────────── */
.index-tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-bottom: 1rem; }
.index-tabs__tab,
.index-tabs__tab:link,
.index-tabs__tab:visited {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 2px;
  border: 1px solid #c8cfe0;
  text-decoration: none;
  color: #444;
  background: #fff;
  -webkit-tap-highlight-color: transparent;
}
.index-tabs__tab--active,
.index-tabs__tab--active:link,
.index-tabs__tab--active:visited {
  background: #d4dae8;
  color: #1a2744;
  border-color: #b0b8cc;
  font-weight: 600;
  border-bottom: 2px solid #cc0000;
}
.index-tabs__tab:hover:not(.index-tabs__tab--active) {
  background: #f0f2f8;
  color: #1a2744;
  text-decoration: none;
}
.index-tabs__tab:active {
  background: #dde3ef !important;
  color: #1a2744 !important;
  border-color: #a0aac4 !important;
}

/* ── Tags ── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0;
}

.tag-link,
.tag-link:link,
.tag-link:visited {
  font-size: 0.75rem;
  color: #8090a8;
  text-decoration: none !important;
}

.tag-link:hover {
  color: #1a2744;
}

.tag-section {
  margin-bottom: 1.2rem;
}

.tag-section__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a2744;
  margin: 0 0 0.4rem;
}

.tag-section__count {
  font-size: 0.8rem;
  font-weight: 400;
  color: #8090a8;
}

.tag-section__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag-section__item {
  padding: 0.25rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid #eef1f8;
}

.tag-section__item a,
.tag-section__item a:link,
.tag-section__item a:visited,
.tag-section__item a:hover,
.tag-section__item a:active {
  color: #3366cc;
  text-decoration: none;
}

.tag-section__item a:hover {
  color: #1a2744;
}

.tag-section__date {
  font-size: 0.72rem;
  color: #8090a8;
  margin-left: 0.5rem;
}
