html.theme-aek .media-attachments {
  max-width: 520px;
  margin: 10px 0 0;
}
html.theme-aek ul.media-attachments > li.media-attachment {
  padding: 0;
  border: 1px solid rgba(255, 204, 0, 0.25);
  border-radius: 12px;
  background: rgba(25, 30, 32, 0.8);
}
html.theme-aek .media-attachment-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  color: #ffcc00;
  text-decoration: none;
}
html.theme-aek .media-attachment-link:hover,
html.theme-aek .media-attachment-link:focus {
  color: #ffe27a;
  text-decoration: none;
}
html.theme-aek .media-attachment-link:focus-visible {
  outline: 2px solid #ffcc00;
  outline-offset: -2px;
  border-radius: 12px;
}
html.theme-aek .media-attachment-image,
html.theme-aek .media-attachment-icon {
  flex: none;
  width: 96px;
  height: 64px;
  border-radius: 8px;
  background: #303638;
}
html.theme-aek .media-attachment-image {
  display: block;
  object-fit: cover;
}
html.theme-aek .media-attachment-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffcc00;
  font-size: 24px;
}
html.theme-aek .media-attachment-title {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
  line-height: 1.4;
}
html.theme-aek .media-attachment-external {
  flex: none;
  margin-right: 4px;
  opacity: .7;
}
@media (max-width: 480px) {
  html.theme-aek .media-attachment-image,
  html.theme-aek .media-attachment-icon {
    width: 72px;
    height: 54px;
  }
}
html.theme-aek.admin .admin-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
html.theme-aek.admin .admin-media-grid .medium-tile {
  float: none;
  width: auto;
  min-width: 0;
  padding: 0;
}
html.theme-aek.admin .admin-media-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 204, 0, 0.25);
  border-radius: 12px;
  background: rgba(25, 30, 32, 0.8);
}
html.theme-aek.admin .admin-media-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  color: #f5f5f5;
  text-decoration: none;
}
html.theme-aek.admin .admin-media-link:hover,
html.theme-aek.admin .admin-media-link:focus {
  color: #ffcc00;
  text-decoration: none;
}
html.theme-aek.admin .admin-media-link:focus-visible {
  outline: 2px solid #ffcc00;
  outline-offset: -2px;
  border-radius: 12px;
}
html.theme-aek.admin .admin-media-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  border-radius: 11px 11px 0 0;
  background: #10191c;
  color: #ffcc00;
  font-size: 36px;
}
html.theme-aek.admin .admin-media-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}
html.theme-aek.admin .admin-media-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px;
}
html.theme-aek.admin .admin-media-type {
  color: #d3b73c;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}
html.theme-aek.admin .admin-media-title {
  overflow-wrap: anywhere;
  font-weight: 600;
  line-height: 1.4;
}
html.theme-aek.admin .admin-media-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 204, 0, 0.15);
}
html.theme-aek.admin .admin-media-modal .modal-content,
html.theme-aek.admin .match-create-modal .modal-content,
html.theme-aek.admin .file-zoom-dialog .modal-content {
  border: 1px solid rgba(255, 204, 0, 0.55);
  border-radius: 16px;
  background: #141c1f;
  color: #f5f5f5;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}
html.theme-aek.admin .admin-media-modal .modal-header,
html.theme-aek.admin .match-create-modal .modal-header,
html.theme-aek.admin .file-zoom-dialog .modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 204, 0, 0.2);
  border-radius: 15px 15px 0 0;
  background: linear-gradient(140deg, #1d1800, #514300);
}
html.theme-aek.admin .admin-media-modal-title,
html.theme-aek.admin .match-create-modal .modal-header h4,
html.theme-aek.admin .file-zoom-dialog .modal-title {
  margin: 0;
  padding-right: 32px;
  color: #f5f5f5;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
html.theme-aek.admin .admin-media-modal .modal-header .close,
html.theme-aek.admin .match-create-modal .modal-header .close {
  color: #f5f5f5;
  opacity: .8;
  text-shadow: none;
}
html.theme-aek.admin .admin-media-modal .modal-header .close:hover,
html.theme-aek.admin .admin-media-modal .modal-header .close:focus,
html.theme-aek.admin .match-create-modal .modal-header .close:hover,
html.theme-aek.admin .match-create-modal .modal-header .close:focus {
  color: #ffcc00;
  opacity: 1;
}
html.theme-aek.admin .admin-media-modal .modal-header .close:focus-visible,
html.theme-aek.admin .match-create-modal .modal-header .close:focus-visible {
  outline: 2px solid #ffcc00;
  outline-offset: 3px;
}
html.theme-aek.admin .admin-media-modal .modal-body,
html.theme-aek.admin .match-create-modal .modal-body {
  padding: 20px;
}
html.theme-aek.admin .match-create-modal .modal-header h4 {
  padding-right: 32px !important;
}
html.theme-aek.admin .match-create-modal .modal-body > .row > .col-md-6 {
  width: 100%;
}
html.theme-aek.admin .file-zoom-dialog .modal-header {
  gap: 12px;
}
html.theme-aek.admin .file-zoom-dialog .modal-title {
  min-width: 0;
  padding-right: 0;
}
html.theme-aek.admin .file-zoom-dialog .kv-zoom-actions,
html.theme-aek.admin .file-zoom-dialog .floating-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}
html.theme-aek.admin .file-zoom-dialog .kv-zoom-actions .btn-kv,
html.theme-aek.admin .file-zoom-dialog .floating-buttons .btn-kv {
  margin: 0;
  min-width: 36px;
  min-height: 36px;
}
html.theme-aek.admin .file-zoom-dialog .kv-zoom-body {
  padding: 20px;
}
html.theme-aek.admin .file-zoom-dialog .kv-zoom-body > img {
  float: none;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  padding: 0;
  object-fit: contain;
}
html.theme-aek.admin .file-zoom-dialog.file-zoom-fullscreen .modal-content {
  border-radius: 0;
}
html.theme-aek.admin .admin-media-metadata {
  margin: 0;
}
html.theme-aek.admin .admin-media-metadata-row {
  display: grid;
  grid-template-columns: minmax(100px, 160px) minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
html.theme-aek.admin .admin-media-metadata-row:last-child {
  border-bottom: 0;
}
html.theme-aek.admin .admin-media-metadata dt {
  color: #d3b73c;
  overflow-wrap: anywhere;
}
html.theme-aek.admin .admin-media-metadata dd {
  min-width: 0;
  color: #e4e9e8;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
@media (max-width: 991px) {
  html.theme-aek.admin .admin-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 575px) {
  html.theme-aek.admin .admin-media-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  html.theme-aek.admin .admin-media-metadata-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }
  html.theme-aek.admin .file-zoom-dialog .modal-header {
    align-items: stretch;
  }
  html.theme-aek.admin .file-zoom-dialog .kv-zoom-body {
    padding: 12px;
  }
}
