.root-header .publish-button {
  display: none;
}

.show-publish-button .root-header .publish-button {
  display: inline-block;
}
/* VAST PLUGIN STYLES */
.vjs-ad-playing.vjs-ad-playing .vjs-progress-control {
  pointer-events:none
}
.vjs-ad-playing.vjs-ad-playing .vjs-play-progress {
  background-color:#ffe400
}
.vjs-ad-loading .vjs-loading-spinner {
  display:block;
  visibility:visible
}
.vjs-ad-playing .vjs-captions-button {
  display:none
}
.vjs-ad-playing .vjs-audio-button {
  display:none
}
.vjs-ad-loading .vjs-loading-spinner:before {
  border-top-color:#fff
}
.vjs-ad-loading .vjs-loading-spinner:after {
  border-top-color:#fff;
  -webkit-animation-delay:0.44s;
  animation-delay:0.44s
}
.vjs-ad-loading .vjs-big-play-button,
.vjs-ad-loading .vjs-poster,
.vjs-ad-content-resuming .vjs-big-play-button,
.vjs-ad-content-resuming .vjs-poster {
  display:none
}

/*
Original @ https://github.com/theonion/videojs-vast-plugin (commit bf6ce85fa763299739f6a7c801b5be4b90b3b363)
*/

.vast-skip-button {
  display: block;
  position: absolute;
  top: 5px;
  right: 0;
  width: auto;
  background-color: #000;
  color: #AAA;
  font-size: 12px;
  font-style: italic;
  line-height: 12px;
  padding: 10px;
  z-index: 2;
}

.vast-skip-button.enabled {
  cursor: pointer;
  color: #fff;
}

.vast-skip-button.enabled:hover {
  cursor: pointer;
  background: #333;
}

.vast-remaining-time {
  display: block;
  position: absolute;
  bottom: 35px;
  left: 75px;
  width: auto;
  color: #aaa;
  font-size: 12px;
  font-style: italic;
  line-height: 12px;
  z-index: 2;
}

.vast-remaining-time-icon {
  position: absolute;
  bottom: 30px;
  color: #aaa !important;
  font-size: 20px !important;
  z-index: 2;
}

.vast-remaining-time-icon:focus {
  text-shadow: 0 0 1em #fff;
}

.vast-remaining-time-icon-play {
  left: 15px;
}

.vast-remaining-time-icon-mute {
  left: 40px;
}

.vjs-controls-enabled .vast-remaining-time {
  bottom: 55px;
}

.vjs-controls-enabled .vast-remaining-time-icon {
  bottom: 50px;
}

.vast-blocker {
  display: block;
  position: absolute;
  z-index: 2;
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* ADMIN TABLE STYLES */
.armanet-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 16px;
  text-align: left;
}

.armanet-table th, .armanet-table td {
  border: 1px solid #ddd;
  padding: 8px;
}

.armanet-table thead th {
  font-weight: bold;
}

.armanet-table tbody tr {
  background-color: inherit;
}
.armanet-table tbody tr:nth-child(even) {
  background-color: var(--mainColorLighter, var(--greyBackgroundColor, inherit));
}

.armanet-table tbody tr:hover {
  background-color: var(--mainHoverColor, var(--bg-secondary-400, inherit));
}

.armanet-table th, .armanet-table td {
  text-align: center;
}

.armanet-table {
  border: 1px solid #ddd;
}

.armanet-button {
  display: inline-block;
  padding: 4px 13px;
  background-color: var(--primary, var(--mainColor, hsl(24, 90%, 45%)));
  font-size: 15px;
  font-weight: 600;
  line-height: 23px;
  text-align: center;
  cursor: pointer;
  border-radius: 3px;
}

.armanet-p-paginator {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.armanet-p-paginator {
  background-color: var(--bg) !important;
  position: relative;
  border: none;
  border-top: 1px solid !important;
  border-color: var(--bg-secondary-400) !important;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.p-paginator-page,
.p-paginator-next,
.p-paginator-last,
.p-paginator-first,
.p-paginator-prev,
.p-paginator-current {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  -webkit-user-select: none;
  user-select: none;
  overflow: hidden;
  position: relative;
}

.armanet-p-paginator-current {
  color: var(--fg-300);
  overflow: visible;
}

.armanet-p-paginator .p-paginator-first .p-paginator-icon,
.armanet-p-paginator .p-paginator-prev .p-paginator-icon,
.armanet-p-paginator .p-paginator-next .p-paginator-icon,
.armanet-p-paginator .p-paginator-last .p-paginator-icon {
  width: 18px;
  height: 18px;
}

.armanet-p-paginator .p-paginator-first.p-paginator-prev,
.armanet-p-paginator .p-paginator-prev.p-paginator-prev,
.armanet-p-paginator .p-paginator-next.p-paginator-prev,
.armanet-p-paginator .p-paginator-last.p-paginator-prev {
  margin-inline-end: .625rem;
}

body .armanet-p-paginator .p-paginator-first,
body .armanet-p-paginator .p-paginator-prev,
body .armanet-p-paginator .p-paginator-next,
body .armanet-p-paginator .p-paginator-last {
  color: var(--fg-300);
  height: 2.286em;
  min-width: 2.286em;
  border: 0 none;
  line-height: 2.286em;
  padding: 0;
  margin: 0;
  vertical-align: top;
  transition: box-shadow .2s;
  border-radius: 0;
}

.armanet-p-paginator .p-paginator-first {
  margin-left: auto !important;
}

.armanet-p-paginator .p-paginator-last {
  margin-right: auto !important;
}

.armanet-p-paginator .p-paginator-first,
.armanet-p-paginator .p-paginator-prev,
.armanet-p-paginator .p-paginator-next,
.armanet-p-paginator .p-paginator-last {
  padding: 5px 2px;
  height: 100%;
  outline: none;
  color: var(--fg);
}

.armanet-p-paginator .p-paginator-first:disabled,
.armanet-p-paginator .p-paginator-prev:disabled,
.armanet-p-paginator .p-paginator-next:disabled,
.armanet-p-paginator .p-paginator-last:disabled {
  opacity: .5;
}

body .armanet-p-paginator .p-paginator-pages {
  vertical-align: top;
  display: inline-block;
  padding: 0;
}

.armanet-p-paginator .p-paginator-pages {
  height: auto!important;
}

body .armanet-p-paginator .p-paginator-pages .p-paginator-page {
  color: var(--fg-300);
  height: 2.286em;
  min-width: 2.286em;
  border: 0 none;
  line-height: 2.286em;
  padding: 0;
  margin: 0;
  vertical-align: top;
  transition: box-shadow .2s;
  border-radius: 0;
}

.armanet-p-paginator .p-paginator-pages .p-paginator-page {
  color: var(--fg)!important;
  font-weight: 600!important;
  margin: 0 5px!important;
  outline: 0!important;
  border-radius: 3px!important;
  padding: 5px 2px!important;
  height: auto!important;
  line-height: initial!important;
}

.armanet-p-paginator .p-paginator-pages .p-paginator-page.p-highlight,
.armanet-p-paginator .p-paginator-pages .p-paginator-page.p-highlight:hover,
.armanet-p-paginator .p-paginator-pages .p-paginator-page.p-highlight:active,
.armanet-p-paginator .p-paginator-pages .p-paginator-page.p-highlight:focus {
  color: var(--fg)!important;
  background-color: var(--bg-secondary-500)!important;
}

.armanet-p-paginator .p-dropdown,
.armanet-p-paginator .p-dropdown-trigger {
  color: var(--fg);
  background-color: var(--bg);
}

.armanet-p-paginator .p-dropdown,
.armanet-p-paginator p-dropdown .p-dropdown {
  padding-inline-start: .5rem;
  align-items: center;
}

body .p-paginator .p-dropdown .p-dropdown-trigger,
body .p-paginator .p-dropdown .p-dropdown-label {
  color: var(--fg-300);
}

/* COMPANION STYLES */
.companion-video-holder iframe {
  max-width: 100% !important;
}

.companion-sidebar-holder iframe {
  max-width: 100% !important;
}

/* MULTI SELECT */
.armanet-multi-select {
  display: inline-block;
  position: relative;
  width: 340px;
  max-width: 340px;
  padding: 5px 20px;
}

.select-header {
  cursor: pointer;
  min-height: 25px;
}

.select-options {
  display: none;
  position: absolute;
  top: 100%;
  max-height: 50vh;
  overflow: auto;
  left: 0;
  width: 100%;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.select-options label {
  display: block;
  padding: 8px 10px;
  cursor: pointer;
  margin-bottom: 0;
  font-size: inherit;
  font-weight: inherit;
}

.select-options label:hover {
  background-color: #f1f1f1;
}

.select-options input[type="checkbox"] {
  margin-right: 10px;
}/* Hide My Library menu by default */
.is-logged-in .top-menu .logged-in-menu a[href="/my-library"] {
    display: none;
}
/* Hide My Library menu by default */
.is-logged-in .top-menu .logged-in-menu a[href="/my-library"] {
    display: none;
}

/* Show My Library menu when `show-my-library` class is added */
.show-my-library .is-logged-in .top-menu .logged-in-menu a[href="/my-library"] {
    display: flex !important;
}

/* Hide video channels, videos, and playlists by default */
.in-my-library a[href="/my-library/video-channels"],
.in-my-library a[href="/my-library/videos"],
.in-my-library a[href="/my-library/video-playlists"] {
    display: none;
}

/* Show specific sections when respective classes are added */
.show-channels-in-my-library a[href="/my-library/video-channels"] {
    display: flex;
}

.show-videos-in-my-library a[href="/my-library/videos"] {
    display: flex;
}

.show-playlists-in-my-library a[href="/my-library/video-playlists"] {
    display: flex;
}

/* Hide sub-menu by default */
.root .sub-menu a[href="/my-library/video-channels"],
.root .sub-menu a[href="/my-library/videos"],
.root .sub-menu a[href="/my-library/video-playlists"] {
    display: none;
}

/* Show sub-menu when `show-root` class is added */
.show-root .sub-menu a[href="/my-library/video-channels"],
.show-root .sub-menu a[href="/my-library/videos"],
.show-root .sub-menu a[href="/my-library/video-playlists"] {

    display: flex;
}

.footer-copyleft {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  line-height: 1.2;
}

.footer-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-links li {
  display: inline-block;
  margin-right: 0;
}

.footer-links a {
  color: var(--mainForegroundColor);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Adjusted styles for copyright text */
.footer-copyleft li {
  margin: 5px 0;
  padding: 0;
  white-space: nowrap;
}

.footer-copyleft span {
  display: inline-block;
  padding: 3px 0;
  font-size: 11px;
  color: var(--mainForegroundColor);
}

.footer-block {
  display: none;
}


/* Hide any button containing "Interface: English" */
button:contains("Interface:") {
  display: none !important;
}/* Plugin Scoped Styles */
.peertube-plugin-page-all-channels-container {
  width: 100%;
  background: var(--mainBackgroundColor);
  padding: 2rem 1rem;
}

.peertube-plugin-page-all-channels-content {
  width: 100%;
  max-width: 95%;
  margin: 0 auto;
  transition: max-width 0.3s ease;
}

/* Header */
.peertube-plugin-page-all-channels-header {
  margin-bottom: 2rem;
  text-align: center;
}

.peertube-plugin-page-all-channels-header h1 {
  color: var(--mainForegroundColor);
  font-size: 2.5rem;
  margin: 0;
  font-weight: 700;
}

/* Grid Layout */
.peertube-plugin-page-all-channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
  justify-content: center;
}

/* Channel Card */
.peertube-plugin-page-all-channels-card {
  display: flex;
  flex-direction: column;
  background: var(--menuBackgroundColor);
  border: 1px solid var(--inputBorderColor);
  border-radius: 8px;
  overflow: hidden;
  padding: 10px;
  height: auto;
  box-sizing: border-box;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.peertube-plugin-page-all-channels-card-content {
  display: flex;
  margin-top: 10px;
}

.peertube-plugin-page-all-channels-card:hover {
  transform: translateY(-4px);
  border-color: var(--mainColor);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Card Image */
.peertube-plugin-page-all-channels-card-image {
  flex: 0 0 120px;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.peertube-plugin-page-all-channels-avatar {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--inputBorderColor);
  transition: transform 0.3s ease;
}

.peertube-plugin-page-all-channels-card:hover .peertube-plugin-page-all-channels-avatar {
  transform: scale(1.05);
}

/* Card Info */
.peertube-plugin-page-all-channels-card-content {
  display: flex;
  margin-top: 10px;
}

.peertube-plugin-page-all-channels-section-label {
  display: none;
}

.peertube-plugin-page-all-channels-card-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.peertube-plugin-page-all-channels-actor-display-name {
  width: 100%;
  text-align: center;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.peertube-plugin-page-all-channels-actor-handle {
  display: none;
}

/* Only target links within our plugin's cards */
.peertube-plugin-page-all-channels-card .peertube-plugin-page-all-channels-name-link {
  color: var(--mainForegroundColor);
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
}

.peertube-plugin-page-all-channels-card .peertube-plugin-page-all-channels-name-link:hover {
  color: var(--mainHoverColor);
}

/* Stats */
.peertube-plugin-page-all-channels-actor-counters {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: var(--mainForegroundColor);
  margin-bottom: 5px;
  justify-content: flex-start;
}

.peertube-plugin-page-all-channels-channel-buttons {
  display: flex;
  justify-content: flex-start;
}

/* Subscribe Button */
.peertube-plugin-page-all-channels-subscribe-btn {
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid var(--mainColor);
  background-color: var(--mainColor);
  color: white;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
  max-width: 120px;
}

.peertube-plugin-page-all-channels-subscribe-btn:hover {
  background-color: transparent;
  color: var(--mainColor);
}

.peertube-plugin-page-all-channels-subscribe-btn.subscribed {
  background-color: transparent;
  color: var(--mainColor);
}

.peertube-plugin-page-all-channels-subscribe-btn.subscribed:hover {
  background-color: var(--mainColor);
  color: white;
}

/* Bold Header Template Styles */
.peertube-plugin-page-all-channels-card.bold-header {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--mainColor);
}

.peertube-plugin-page-all-channels-card.bold-header:hover {
  transform: translateY(-4px);
  border-color: var(--mainColor);
  border-width: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.peertube-plugin-page-all-channels-card.bold-header .card-header {
  background: var(--menuBackgroundColor);
  padding: 10px 15px;
  width: 100%;
  border-bottom: 1px solid var(--mainColor);
}

.peertube-plugin-page-all-channels-card.bold-header .card-header h3 {
  color: var(--bs-heading-color);
  text-align: center;
  width: 100%;
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.peertube-plugin-page-all-channels-card.bold-header .card-header a {
  color: var(--bs-heading-color);
  text-decoration: none;
}

.peertube-plugin-page-all-channels-card.bold-header .card-body {
  padding: 5px;
  padding-bottom: 5px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.peertube-plugin-page-all-channels-card.bold-header .card-layout {
  display: flex;
  margin-bottom: 0;
  padding: 10px;
}

.peertube-plugin-page-all-channels-card.bold-header .peertube-plugin-page-all-channels-card-image {
  flex: 0 0 120px;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.peertube-plugin-page-all-channels-card.bold-header .card-details {
  flex: 1;
  margin-left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 5px 0;
}

.peertube-plugin-page-all-channels-card.bold-header .peertube-plugin-page-all-channels-actor-counters {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  gap: 3px;
  padding-left: 0;
  height: 100%;
  justify-content: space-between;
}

.peertube-plugin-page-all-channels-card.bold-header .stat-line {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
  margin-bottom: 0;
  padding-left: 10%;
}

.peertube-plugin-page-all-channels-card.bold-header .stat-value {
  font-weight: 600;
  font-size: 15px;
  color: var(--mainForegroundColor);
  display: inline-block;
  min-width: 30px;
  width: 30px;
  text-align: right;
  margin-left: 10%;
  margin-right: 0;
}

.peertube-plugin-page-all-channels-card.bold-header .stat-label {
  font-size: 14px;
  color: var(--mainForegroundColor);
  text-align: left;
  padding-left: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.peertube-plugin-page-all-channels-card.bold-header .peertube-plugin-page-all-channels-channel-buttons {
  display: flex;
  justify-content: flex-start;
  margin-top: 0;
  width: 100%;
  padding-left: 10%;
}

.peertube-plugin-page-all-channels-card.bold-header .peertube-plugin-page-all-channels-subscribe-btn {
  width: 80%;
  max-width: none;
  display: block;
  text-align: center;
}

.peertube-plugin-page-all-channels-card.bold-header .peertube-plugin-page-all-channels-avatar {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

/* Processing state for subscription button */
.peertube-plugin-page-all-channels-subscribe-btn.processing {
  position: relative;
  overflow: hidden;
}

.peertube-plugin-page-all-channels-subscribe-btn.processing::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: processing-animation 1.5s infinite;
}

@keyframes processing-animation {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

/* Responsive Design */
@media screen and (min-width: 1800px) {
  .peertube-plugin-page-all-channels-content {
    max-width: 98%;
  }
  
  .peertube-plugin-page-all-channels-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media screen and (max-width: 1800px) and (min-width: 1400px) {
  .peertube-plugin-page-all-channels-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

@media screen and (max-width: 1400px) and (min-width: 1200px) {
  .peertube-plugin-page-all-channels-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

@media screen and (max-width: 1200px) and (min-width: 800px) {
  .peertube-plugin-page-all-channels-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

@media screen and (max-width: 800px) {
  .peertube-plugin-page-all-channels-container {
    padding: 1.5rem var(--horizontalMarginContent);
  }

  .peertube-plugin-page-all-channels-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .peertube-plugin-page-all-channels-card {
    flex-direction: column;
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
    padding: 10px;
  }
  
  .peertube-plugin-page-all-channels-card-image {
    margin-right: 0;
    margin-bottom: 10px;
    justify-content: center;
  }
  
  .peertube-plugin-page-all-channels-card-info {
    height: auto;
    max-height: none;
  }
  
  .peertube-plugin-page-all-channels-header h1 {
    font-size: 2rem;
  }
  
  /* Bold Header mobile styles */
  .peertube-plugin-page-all-channels-card.bold-header {
    padding: 0;
  }
  
  .peertube-plugin-page-all-channels-card.bold-header .card-layout {
    flex-direction: column;
    align-items: center;
  }
  
  .peertube-plugin-page-all-channels-card.bold-header .peertube-plugin-page-all-channels-card-image {
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .peertube-plugin-page-all-channels-card.bold-header .card-details {
    margin-left: 0;
    width: 100%;
    padding: 5px;
  }
  
  /* Reduced spacing in card details for mobile only */
  .peertube-plugin-page-all-channels-card.bold-header .peertube-plugin-page-all-channels-actor-counters {
    width: 100%;
    margin-bottom: 0;
    flex-direction: column;
    gap: 6px;
    padding-left: 0;
    align-items: center;
  }
  
  .peertube-plugin-page-all-channels-card.bold-header .stat-line,
  .peertube-plugin-page-all-channels-card.bold-header .date-line,
  .peertube-plugin-page-all-channels-card.bold-header .peertube-plugin-page-all-channels-channel-buttons {
    width: 80%;
    padding-left: 0;
    justify-content: center;
    margin: 0;
  }
  
  .peertube-plugin-page-all-channels-card.bold-header .date-label {
    font-size: 13px;
    text-align: center;
  }
}

@media screen and (max-width: 500px) {
  .peertube-plugin-page-all-channels-grid {
    grid-template-columns: 1fr;
  }
  
  .peertube-plugin-page-all-channels-card {
    flex-direction: column;
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
  }
  
  .peertube-plugin-page-all-channels-card-image {
    margin-right: 0;
    margin-bottom: 10px;
    justify-content: center;
  }
  
  .peertube-plugin-page-all-channels-card-info {
    height: auto;
    max-height: none;
  }
}

/* Add new styles for pagination, loading, search, and responsive layout */

/* Loading state */
.loading-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  width: 100%;
}

.loader {
  border: 5px solid var(--inputBorderColor);
  border-top: 5px solid var(--mainColor);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-size: 18px;
  color: var(--mainForegroundColor);
}

/* Error state */
.error-page {
  text-align: center;
  padding: 50px 20px;
}

.retry-button {
  background-color: var(--mainColor);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 20px;
}

.retry-button:hover {
  background-color: var(--mainHoverColor);
}

/* Filters and search */
.peertube-plugin-page-all-channels-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
  background: var(--submenuBackgroundColor);
  padding: 15px;
  border-radius: 8px;
}

.peertube-plugin-page-all-channels-search {
  flex: 1;
  min-width: 200px;
}

.peertube-plugin-page-all-channels-search input {
  padding: 8px 12px;
  border: 1px solid var(--inputBorderColor);
  border-radius: 4px;
  font-size: 14px;
  width: 100%;
  max-width: 300px;
  background-color: var(--inputBackgroundColor);
  color: var(--inputForegroundColor);
}

.peertube-plugin-page-all-channels-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.peertube-plugin-page-all-channels-sort label {
  font-size: 14px;
  color: var(--mainForegroundColor);
  font-weight: 500;
}

.peertube-plugin-page-all-channels-sort select {
  padding: 8px 12px;
  border: 1px solid var(--inputBorderColor);
  border-radius: 4px;
  font-size: 14px;
  background-color: var(--inputBackgroundColor);
  color: var(--inputForegroundColor);
  min-width: 150px;
}

/* Enhanced sorting UI */
.sort-options-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.sort-option {
  display: flex;
  align-items: center;
  gap: 5px;
}

.sort-direction {
  margin-left: 10px;
}

/* Pagination */
.peertube-plugin-page-all-channels-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0;
  gap: 10px;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pagination-button {
  background-color: var(--mainBackgroundColor);
  color: var(--mainForegroundColor);
  border: 1px solid var(--inputBorderColor);
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  min-width: 40px;
  text-align: center;
}

.pagination-button.page-number.active {
  background-color: var(--mainColor);
  color: white;
  border-color: var(--mainColor);
}

.pagination-button:hover:not(.disabled):not(.active) {
  background-color: var(--inputBorderColor);
}

.pagination-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-ellipsis {
  padding: 0 5px;
}

.channels-count {
  margin-bottom: 15px;
  font-size: 14px;
  color: var(--greyForegroundColor);
}

/* Improved responsive layout */
@media (max-width: 1200px) {
  .peertube-plugin-page-all-channels-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

@media (max-width: 768px) {
  .peertube-plugin-page-all-channels-grid {
    grid-template-columns: 1fr;
  }
  
  .peertube-plugin-page-all-channels-filters {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .peertube-plugin-page-all-channels-search input {
    width: 100%;
    max-width: none;
  }
  
  .peertube-plugin-page-all-channels-sort {
    width: 100%;
  }
  
  .sort-options-container {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .sort-option {
    width: 100%;
  }
}

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  text-align: center;
}

/* Existing style improvements */
.peertube-plugin-page-all-channels-container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 20px 1rem;
}

.peertube-plugin-page-all-channels-title {
  font-size: 24px;
  margin-bottom: 25px;
  color: var(--mainForegroundColor);
}

/* Fix for the channel card stats with the new styles */
.peertube-plugin-page-all-channels-card.bold-header .stat-line {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
  padding-left: 0;
  gap: 2px;

}

.peertube-plugin-page-all-channels-card.bold-header .stat-value {
  font-weight: 600;
  font-size: 15px;
  color: var(--mainForegroundColor);
  display: inline-block;
  min-width: 30px;
  width: 30px;
  text-align: right;
  margin-left: 10%;
  margin-right: 0;
}

.peertube-plugin-page-all-channels-card.bold-header .stat-label {
  font-size: 14px;
  color: var(--mainForegroundColor);
  text-align: left;
  padding-left: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.peertube-plugin-page-all-channels-card.bold-header .peertube-plugin-page-all-channels-actor-counters {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  margin: 0;
  gap: 6px;
}

/* Mobile view adjustments */
@media screen and (max-width: 800px) {
  .peertube-plugin-page-all-channels-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .peertube-plugin-page-all-channels-card.bold-header {
    max-width: 100%;
  }
  
  .peertube-plugin-page-all-channels-card.bold-header .card-layout {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }
  
  .peertube-plugin-page-all-channels-card.bold-header .peertube-plugin-page-all-channels-card-image {
    margin-right: 0;
    margin-bottom: 10px;
    width: 120px;
  }
  
  .peertube-plugin-page-all-channels-card.bold-header .card-details {
    width: 100%;
    align-items: center;
    padding: 0;
  }
  
  .peertube-plugin-page-all-channels-card.bold-header .peertube-plugin-page-all-channels-actor-counters {
    align-items: flex-start;
    width: 100%;
    padding: 0;
    gap: 6px;
  }
  
  .peertube-plugin-page-all-channels-card.bold-header .stat-line,
  .peertube-plugin-page-all-channels-card.bold-header .date-line,
  .peertube-plugin-page-all-channels-card.bold-header .peertube-plugin-page-all-channels-channel-buttons {
    width: 80%;
    padding-left: 0;
    justify-content: center;
    margin: 0;
  }
  
  .peertube-plugin-page-all-channels-card.bold-header .date-label {
    font-size: 13px;
  }
}

/* Add styles for button and RSS icon */
.peertube-plugin-page-all-channels-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.peertube-plugin-page-all-channels-button.primary {
  background-color: var(--mainColor);
  color: white;
  border: 1px solid var(--mainColor);
  min-width: 100px;
}

.peertube-plugin-page-all-channels-button.primary:hover {
  background-color: var(--mainHoverColor);
  border-color: var(--mainHoverColor);
}

.peertube-plugin-page-all-channels-button.secondary {
  background-color: transparent;
  color: var(--mainForegroundColor);
  border: 1px solid var(--inputBorderColor);
  margin-left: 8px;
  padding: 8px;
}

.peertube-plugin-page-all-channels-button.secondary:hover {
  background-color: var(--inputBorderColor);
}

/* Add styles for date statistics */
.peertube-plugin-page-all-channels-card.bold-header .date-line {
  margin-top: 0;
  margin-bottom: 0;
  width: 100%;
  justify-content: flex-start;
  padding-left: 10%;
}

.peertube-plugin-page-all-channels-card.bold-header .date-label {
  font-size: 14px;
  color: var(--mainForegroundColor);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: 0;
  padding-left: 8px;
}

/* Mobile view adjustments for date elements */
@media screen and (max-width: 800px) {
  .peertube-plugin-page-all-channels-card.bold-header .date-line {
    margin-top: 1px;
    margin-bottom: 0;
    padding-left: 0;
    justify-content: center;
    width: 80%;
  }
  
  .peertube-plugin-page-all-channels-card.bold-header .date-label {
    font-size: 13px;
  }
}

/* Go To Channel button - similar styling to subscribe button */
.peertube-plugin-page-all-channels-goto-btn {
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid var(--mainColor);
  background-color: transparent;
  color: var(--mainColor);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
  display: block;
  text-align: center;
  text-decoration: none;
  width: 80%;
  max-width: none;
}

.peertube-plugin-page-all-channels-goto-btn:hover {
  background-color: var(--mainColor);
  color: white;
}

/* Bold Header Template Styles - Actor counters */
.peertube-plugin-page-all-channels-card.bold-header .peertube-plugin-page-all-channels-actor-counters {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  gap: 10px; /* Slightly increased gap for better spacing */
  padding-left: 0;
  height: 100%;
  justify-content: center; /* Center vertically */
  align-items: center; /* Center horizontally */
}

.peertube-plugin-page-all-channels-card.bold-header .stat-line {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  margin-bottom: 0;
  padding-left: 0;
}

.peertube-plugin-page-all-channels-card.bold-header .stat-value {
  font-weight: 600;
  font-size: 15px;
  color: var(--mainForegroundColor);
  display: inline-block;
  min-width: 30px;
  width: 30px;
  text-align: right;
  margin-right: 8px;
}

.peertube-plugin-page-all-channels-card.bold-header .stat-label {
  font-size: 14px;
  color: var(--mainForegroundColor);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Standardize spacing for buttons */
.peertube-plugin-page-all-channels-card.bold-header .peertube-plugin-page-all-channels-channel-buttons {
  display: flex;
  justify-content: center;
  margin: 0;
  width: 100%;
  padding: 0;
}

.peertube-plugin-page-all-channels-card.bold-header .peertube-plugin-page-all-channels-subscribe-btn {
  width: 80%;
  max-width: none;
  display: block;
  text-align: center;
}

/* Mobile view adjustments */
@media screen and (max-width: 800px) {
  .peertube-plugin-page-all-channels-card.bold-header .peertube-plugin-page-all-channels-actor-counters {
    gap: 8px;
    align-items: center;
    justify-content: center;
  }
  
  .peertube-plugin-page-all-channels-card.bold-header .stat-line,
  .peertube-plugin-page-all-channels-card.bold-header .peertube-plugin-page-all-channels-channel-buttons {
    width: 80%;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
  }
  
  .peertube-plugin-page-all-channels-card.bold-header .card-details {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  
  .peertube-plugin-page-all-channels-goto-btn,
  .peertube-plugin-page-all-channels-card.bold-header .peertube-plugin-page-all-channels-subscribe-btn {
    width: 100%;
  }
}

/* Centered videos stat */
.peertube-plugin-page-all-channels-card.bold-header .centered-stat {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 5px;
}

.peertube-plugin-page-all-channels-card.bold-header .centered-stat .stat-value {
  font-weight: 600;
  font-size: 16px;
  color: var(--mainForegroundColor);
  display: inline-block;
  margin: 0;
  margin-right: 4px; /* Reduced space between number and text */
}

.peertube-plugin-page-all-channels-card.bold-header .centered-stat .stat-label {
  font-size: 14px;
  color: var(--mainForegroundColor);
  white-space: nowrap;
  margin-left: 0px;
  padding-left: 0px;
} /* Reorder main tabs - pure CSS, no JS, no API calls */
/* Edit order values below to customize. Paths: /home, /videos/overview, /videos/subscriptions, /videos/browse */

/* Scope to home menu tabs only */
my-home-menu my-list-overflow .root {
  overflow: visible;
  max-width: none;
}

my-home-menu my-list-overflow .list-overflow-parent {
  overflow: visible;
}

/* Show all tabs always - no visibility:hidden, no overflow dropdown/modal */
my-home-menu my-list-overflow .list-overflow-parent li {
  visibility: visible !important;
}

my-home-menu my-list-overflow .list-overflow-parent ul.d-flex {
  flex-wrap: wrap;
}

/* Hide overflow button - all tabs visible so no need for dropdown/modal */
my-home-menu my-list-overflow .list-overflow-menu {
  display: none !important;
}

/* Ensure modal/dropdown uls are flex so order works (main ul has d-flex) */
ul.ul-unstyle:has(> li:has(a[href^="/videos/browse"])):not(.d-flex) {
  display: flex;
  flex-direction: column;
}

/* Tab order: 1=first, 2=second, etc. */
ul.ul-unstyle > li:has(a[href^="/videos/browse"]) { order: 1; }
ul.ul-unstyle > li:has(a[href^="/home"]) { order: 2; }
ul.ul-unstyle > li:has(a[href^="/videos/overview"]) { order: 3; }
ul.ul-unstyle > li:has(a[href^="/videos/subscriptions"]) { order: 4; }
.shop-button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  cursor: pointer !important;
  color: var(--mainColor, #bba777) !important;
  font-weight: 500 !important;
  padding: 0 6px !important;
  border-radius: 4px !important;
  transition: opacity 0.2s ease !important;
  vertical-align: middle !important;
  line-height: 1 !important;
}

.shop-button:hover {
  opacity: 0.8 !important;
}

.shop-button svg {
  width: 14px !important;
  height: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  top: -1px !important;
}

.shop-button .shop-text {
  position: relative !important;
  top: -1px !important;
}

.mobile-products-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: rgba(0,0,0,0.7) !important;
  z-index: 19000 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding-top: 60px !important;
}

.mobile-products-container {
  width: 95% !important;
  max-width: 600px !important;
  max-height: 80vh !important;
  background-color: var(--mainBackgroundColor, #121212) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  margin-top: 10px !important;
}

/* Desktop shop modal: fixed position from top (doesn't shift with content) */
.desktop-shop-modal {
  align-items: flex-start !important;
  justify-content: center !important;
  padding-top: 4vh !important;
}

.desktop-shop-modal .mobile-products-container {
  width: 50vw !important;
  max-width: 600px !important;
  max-height: 80vh !important;
  margin-top: 0 !important;
  overflow: hidden !important;
}

.desktop-shop-modal .mobile-products-body {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  max-height: calc(80vh - 60px) !important;
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 16px !important;
}

.desktop-shop-modal .mobile-product-card {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Desktop shop button - match action button hover */
.desktop-shop-button:hover {
  opacity: 0.7 !important;
}

.mobile-products-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 12px 16px !important;
  border-bottom: 1px solid var(--mainColorLighter, #52525b) !important;
}

.mobile-products-title {
  margin: 0 !important;
  font-size: 18px !important;
}

.mobile-products-close {
  border: none !important;
  background: none !important;
  font-size: 24px !important;
  cursor: pointer !important;
  color: var(--mainForegroundColor, #ffffff) !important;
}

@media screen and (max-width: 768px) {
  .mobile-products-modal {
    z-index: 2147483647 !important;
  }
}

.mobile-products-body {
  padding: 16px !important;
  overflow-y: auto !important;
  max-height: calc(90vh - 60px) !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
}

.mobile-product-card {
  display: flex !important;
  width: 100% !important;
  border: 1px solid var(--mainColorLighter, #52525b) !important;
  border-radius: 8px !important;
  padding: 8px !important;
  text-decoration: none !important;
  color: inherit !important;
  background-color: var(--mainBackgroundColor, #121212) !important;
  transition: transform 0.2s !important;
}

.mobile-product-card:hover {
  transform: translateY(-2px) !important;
}

.mobile-product-image {
  width: 80px !important;
  height: 80px !important;
  object-fit: cover !important;
  border-radius: 4px !important;
  margin-right: 12px !important;
}

.mobile-product-info {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.mobile-product-title {
  font-weight: 500 !important;
  font-size: 15px !important;
  margin-bottom: 4px !important;
  line-height: 1.2 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.mobile-product-price {
  font-weight: bold !important;
  color: var(--mainColor, #bba777) !important;
  font-size: 16px !important;
}

.mobile-product-site {
  font-size: 12px !important;
  color: var(--greyForegroundColor, #52525b) !important;
}

.mobile-auto-ads-container {
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background-color: var(--mainBackgroundColor, #121212) !important;
  margin-top: 10px !important;
  margin-bottom: 30px !important;
  border-radius: 4px !important;
  padding-top: 10px !important;
  box-sizing: border-box !important;
  display: block !important;
  position: relative !important;
  z-index: 10 !important;
  height: auto !important;
  min-height: 190px !important;
  overflow: visible !important;
}

.rotating-product-card {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 600px !important;
  border: 1px solid var(--mainColorLighter, #52525b) !important;
  border-radius: 8px !important;
  padding: 0 !important;
  text-decoration: none !important;
  color: inherit !important;
  background-color: var(--mainBackgroundColor, #121212) !important;
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  height: 110px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  will-change: transform, opacity !important;
  transition: opacity 0.3s ease, transform 0.3s ease !important;
}

.rotating-product-container {
  position: relative !important;
  height: 110px !important;
  overflow: visible !important;
  width: 100% !important;
  display: block !important;
}

.product-indicator-dots {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 15px !important;
  padding: 5px 0 !important;
  position: relative !important;
  bottom: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  z-index: 9999 !important;
}

.carousel-pagination {
  display: flex !important;
  justify-content: center !important;
  gap: 12px !important;
  margin: 0 auto !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
  width: 90% !important;
  z-index: 99999 !important;
  position: relative !important;
  padding: 5px 0 !important;
  pointer-events: auto !important;
  background-color: rgba(0, 0, 0, 0.2) !important;
  border-radius: 10px !important;
  height: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Make pagination dots extremely visible */
.pagination-dot {
  width: 12px !important;
  height: 12px !important;
  min-width: 12px !important;
  min-height: 12px !important;
  border-radius: 50% !important;
  background-color: #888 !important;
  transition: all 0.3s ease !important;
  display: block !important;
  border: 2px solid white !important;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5) !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  margin: 0 4px !important;
}

.pagination-dot.active {
  background-color: #bba777 !important; /* Changed to gold theme color */
  transform: scale(1.3) !important;
  opacity: 1 !important;
  border-color: white !important;
  box-shadow: 0 0 8px rgba(187, 167, 119, 0.8) !important; /* Updated glow to match gold color */
}

/* Keyframe animations for modal */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes slideIn {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideOut {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(50px); opacity: 0; }
}

/* Mobile button styles */
.mobile-shop-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #bba777 !important;
  color: white !important;
  border: none !important;
  border-radius: 20px !important;
  padding: 6px 12px !important;
  margin-left: 10px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  z-index: 99999 !important;
  font-family: 'Lato', sans-serif !important;
  line-height: 1.2 !important;
  height: auto !important;
  max-height: none !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  width: auto !important;
  min-width: 70px !important;
  position: relative !important;
}

/* Auto-ads indicator dots */
.rotating-product-indicator-dots {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 110px !important;
  margin-bottom: 10px !important;
  padding: 10px 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  position: relative !important;
  z-index: 9999 !important;
  background-color: transparent !important;
}

.rotating-dot {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background-color: var(--greyForegroundColor, #52525b) !important;
  opacity: 0.5 !important;
  transition: all 0.2s ease !important;
  min-width: 10px !important;
  min-height: 10px !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
}

.rotating-dot.active {
  background-color: var(--mainColor, #bba777) !important;
  opacity: 1 !important;
  transform: scale(1.2) !important;
}

/* Desktop carousel styles based on desktop plugin */
.product-carousel-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 0 40px;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 20px;
  margin-right: 0;
  margin-left: 0;
}

.product-carousel {
  display: flex;
  gap: 15px;
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}

.product-carousel::-webkit-scrollbar {
  display: none;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background-color: var(--mainBackgroundColor);
  border: 1px solid var(--mainForegroundColor);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
  font-size: 24px;
  line-height: 1;
  padding: 0;
  color: var(--mainForegroundColor);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-arrow.prev {
  left: 0px;
}

.nav-arrow.next {
  right: 0px;
}

.nav-arrow:hover {
  background-color: var(--submenuBackgroundColor);
  color: var(--mainColor);
}

.nav-arrow:focus {
  outline: 2px solid var(--mainColor);
  outline-offset: 2px;
}

.nav-arrow:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.product-card {
  flex: 0 0 225px;
  width: 225px;
  min-width: 225px;
  max-width: 225px;
  height: 110px;
  display: flex;
  align-items: center;
  border: 1px solid var(--mainForegroundColor);
  border-radius: 8px;
  padding: 10px;
  transition: transform 0.3s ease;
  text-decoration: none;
  color: inherit;
  background: var(--mainBackgroundColor);
  position: relative;
  z-index: 1;
}

.product-card:hover {
  border-color: var(--mainColor);
}

.product-image {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 4px 0 0 4px;
}

.product-info {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: calc(100% - 90px);
}

.product-title {
  font-size: 12px;
  line-height: 1.2;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
}

.product-price {
  font-size: 12px;
  font-weight: bold;
  color: var(--mainColor);
  margin: 0;
}

.product-site {
  font-size: 11px;
  color: var(--greyForegroundColor);
  margin: 0;
}

@media screen and (max-width: 1100px) {
  .product-carousel-container {
    padding: 0 70px;
  }
}

@media screen and (max-width: 600px) {
  .product-carousel-container {
    padding: 0 60px;
  }

  .product-carousel {
    gap: 10px;
  }

  .nav-arrow.prev {
    left: 0px;
  }

  .nav-arrow.next {
    right: 0px;
  }
}
/* Hide language selection elements */
my-select-languages,
div[formcontrolname="language"],
div.form-group:has(label[for="languageOneOf"]),
div.form-group:has(label[for="language"]) {
  display: none !important;
}

/* Hide language settings link */
.update-your-settings {
  display: none !important;
} /**
 * Account setup / welcome modal custom plugin
 * Targets the modal whose body was replaced by this plugin (data-account-setup-modal-custom)
 * and centers the footer action buttons.
 */
[data-account-setup-modal-custom] .modal-footer.inputs {
  justify-content: center;
  padding: 2px !important;
  margin-bottom: 15px !important;
}

[data-account-setup-modal-custom] .modal-body {
  display: grid !important;
  text-align: center !important;
  padding: 15px !important;
}

/**
 * Plugin settings: larger, resizable textarea for "Custom modal body HTML"
 */
textarea#customModalBodyHtml {
  resize: both;
  min-height: 280px;
  min-width: 80%;
  box-sizing: border-box;
}
/* peertube-plugin-blog-management — Greyhive blog (reference: category / post / featured cards) */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Space+Mono:wght@400;700&family=Bebas+Neue&display=swap');

.gh-blog-root {
  --gh-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gh-c-bg: #0b0b0d;
  --gh-c-bg-2: #111115;
  --gh-c-bg-card: #17171d;
  --gh-c-bg-card-hover: #1e1e26;
  --gh-c-surface: #252530;
  --gh-c-border: rgba(255, 255, 255, 0.06);
  --gh-c-border-hover: rgba(255, 255, 255, 0.12);
  --gh-c-border-gold: rgba(187, 167, 119, 0.3);
  --gh-c-text: #e8e6e1;
  --gh-c-text-mid: #a0a0ac;
  --gh-c-text-dim: #b5b5cf;
  --gh-c-gold: #bba777;
  --gh-c-gold-light: #d4c49a;
  --gh-c-gold-dark: #8a7c58;
  --gh-font-display: 'Bebas Neue', sans-serif;
  --gh-font-body: 'DM Sans', system-ui, sans-serif;
  --gh-font-mono: 'Space Mono', ui-monospace, monospace;
  min-height: 50vh;
  padding-bottom: 5rem;
  font-family: var(--gh-font-body);
  color: var(--gh-c-text);
  -webkit-font-smoothing: antialiased;
}

.gh-blog-inner {
  /* max-width: 1200px; */
  margin: 0 auto;
}

/* Main blog hero — matches reference .hero / .hero-sub */
.gh-blog-hero {
  padding: 5px 0 35px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--gh-c-border);
  margin-bottom: 0;
  text-align: left;
}

.gh-blog-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(187, 167, 119, 0.05) 0%, transparent 65%);
  pointer-events: none;
}

.gh-blog-hero-title {
  font-family: var(--gh-font-display);
  font-size: clamp(52px, 7vw, 96px);
  text-transform: uppercase;
  line-height: 0.92;
  font-weight: bold;
  margin: 0 0 20px;
  position: relative;
  z-index: 1;
  letter-spacing: 3px;
}

.gh-blog-hero-title span,
.gh-blog-hero-title em,
.gh-blog-hero-title strong,
.gh-blog-hero-title b,
.gh-blog-hero-title i {
  font-style: normal;
  font-weight: inherit;
  color: var(--gh-c-gold);
}

.gh-blog-hero-sub {
  font-family: var(--gh-font-body);
  font-size: 16px;
  color: var(--gh-c-text-mid);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 0 36px;
  position: relative;
  z-index: 1;
  font-weight: normal;
}

/* Home page exact-style shell */
.gh-blog-home-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.gh-blog-home-hero-eyebrow {
  font-family: var(--gh-font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gh-c-gold);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.gh-blog-home-hero-eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--gh-c-gold-dark);
}

.gh-blog-home-hero-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.gh-blog-home-hero-meta-item {
  font-family: var(--gh-font-mono);
  font-size: 12px;
  color: var(--gh-c-text-dim);
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gh-blog-home-hero-meta-item::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gh-c-gold-dark);
}

.gh-blog-home-hero-meta-item:first-child::before {
  display: none;
}

/* Home hero shares 1200px shell with filter + grid; tame vw-based title on ultrawide */
.gh-blog-home-hero-title {
  font-size: clamp(36px, 4.2vw, 72px);
  letter-spacing: 2px;
}

.gh-blog-home-hero-sub {
  max-width: min(560px, 100%);
}

.gh-blog-home-filter-bar {
  background: var(--gh-c-bg-2);
  border-top: 1px solid var(--gh-c-border);
  border-bottom: 1px solid var(--gh-c-border);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
}

.gh-blog-home-filter-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.gh-blog-home-search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.gh-blog-home-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gh-c-text-dim);
  font-size: 14px;
  pointer-events: none;
}

.gh-blog-home-search-input {
  width: 100%;
  background: var(--gh-c-bg-card);
  border: 1px solid var(--gh-c-border);
  border-radius: 5px;
  padding: 10px 16px 10px 38px;
  font-family: var(--gh-font-body);
  font-size: 13px;
  color: var(--gh-c-text);
  outline: none;
  transition: border-color 0.2s;
}

.gh-blog-home-search-input::placeholder {
  color: var(--gh-c-text-dim);
}

.gh-blog-home-search-input:focus {
  border-color: var(--gh-c-gold);
}

.gh-blog-home-filter-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gh-blog-home-filter-cat {
  font-family: var(--gh-font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 4px;
  border: 1px solid var(--gh-c-border);
  background: transparent;
  color: var(--gh-c-text-dim);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.gh-blog-home-filter-cat:hover {
  border-color: var(--gh-c-border-gold);
  color: var(--gh-c-gold);
}

.gh-blog-home-filter-cat.active {
  background: rgba(187, 167, 119, 0.1);
  border-color: var(--gh-c-border-gold);
  color: var(--gh-c-gold);
}

.gh-blog-home-featured {
  padding: 46px 0 0;
}

.gh-blog-home-categories-section {
  padding: 80px 0;
}

.gh-blog-home-categories-head {
  margin-bottom: 40px;
}

.gh-blog-home-sec-title {
  font-family: var(--gh-font-display);
  font-size: clamp(34px, 4.2vw, 54px);
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 16px;
}

.gh-blog-home-sec-title em {
  font-style: normal;
  color: var(--gh-c-gold);
}

.gh-blog-home-sec-sub {
  font-size: 18px;
  color: var(--gh-c-text-mid);
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 0;
}

.gh-blog-home-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gh-blog-home-cat-card {
  padding: 28px;
  border-radius: 10px;
}

.gh-blog-home-cat-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.gh-blog-home-cat-count {
  font-family: var(--gh-font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gh-c-text-dim);
  background: var(--gh-c-surface);
  padding: 4px 10px;
  border-radius: 100px;
}

.gh-blog-home-cat-count.has-posts {
  color: var(--gh-c-gold);
  background: rgba(187, 167, 119, 0.1);
}

.gh-blog-home-cat-arrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--gh-font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gh-c-text-dim);
  margin-top: auto;
  padding-top: 16px;
  transition: color 0.2s, gap 0.2s;
}

.gh-blog-home-cat-card:hover .gh-blog-home-cat-arrow {
  color: var(--gh-c-gold);
  gap: 10px;
}

.gh-blog-home-empty-state {
  display: none;
  text-align: center;
  padding: 80px 20px;
}

.gh-blog-home-empty-kicker {
  font-family: var(--gh-font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gh-c-gold);
  margin-bottom: 16px;
}

.gh-blog-home-empty-title {
  font-family: var(--gh-font-display);
  font-size: 36px;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.gh-blog-home-empty-sub {
  font-size: 16px;
  color: var(--gh-c-text-mid);
  max-width: 400px;
  margin: 0 auto 32px;
}

.gh-blog-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--gh-font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--gh-ease);
  white-space: nowrap;
  line-height: 1.4;
}

.gh-blog-home-btn-gold {
  background: var(--gh-c-gold);
  color: #0b0b0d !important;
}

.gh-blog-home-btn-gold:hover {
  background: var(--gh-c-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(187, 167, 119, 0.35);
}

.gh-blog-home-btn-arrow::after {
  content: '→';
  margin-left: 4px;
  transition: transform 0.2s;
}

.gh-blog-home-btn-arrow:hover::after {
  transform: translateX(3px);
}

.gh-blog-kicker {
  display: inline-block;
  font-family: var(--gh-font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gh-c-gold);
  margin-bottom: 0.35rem;
}

.gh-blog-eyebrow {
  font-family: var(--gh-font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gh-c-gold);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.gh-blog-eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--gh-c-gold-dark);
}

/* Category index: each tile max ~240px wide (no stretch on ultrawide); grid caps at 5 columns */
.gh-blog-cat-grid-fluid {
  --gh-cat-col-max: 320px;
  --gh-cat-col-min: 300px;
  display: grid;
  gap: 12px;
  margin-top: 2rem;
  justify-content: start;
  width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(var(--gh-cat-col-min), var(--gh-cat-col-max)));
}

@media (max-width: 640px) {
  .gh-blog-cat-grid-fluid {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

.gh-blog-cat-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100%;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--gh-c-border);
  background: var(--gh-c-bg-card);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.gh-blog-cat-card:hover {
  border-color: var(--gh-c-border-gold);
  background: var(--gh-c-bg-card-hover);
}

.gh-blog-cat-card:hover .gh-blog-cat-name {
  color: var(--gh-c-gold);
}

.gh-blog-cat-card--compact {
  min-height: 0;
}

.gh-blog-cat-num {
  font-family: var(--gh-font-mono);
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgb(187 167 119 / 30%);
}

.gh-blog-cat-name {
  font-family: var(--gh-font-display);
  font-size: 18px;
  letter-spacing: 1px;
  line-height: 1.15;
  margin: 0;
  color: var(--gh-c-text);
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.gh-blog-root .gh-blog-cat-desc {
  font-family: var(--gh-font-body);
  font-size: 13px;
  font-weight: normal;
  color: var(--gh-c-text-mid);
  line-height: 1.6;
  margin: 0 0 0.5rem;
  min-height: 0;
  flex: 1;
}

.gh-blog-cat-count {
  margin-top: auto;
  padding-top: 4px;
  font-family: var(--gh-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gh-c-text-dim);
  font-weight: 400;
}

/* Featured block — .featured-post */
.gh-blog-featured {
  margin: 1.5rem 0 2rem;
}

.gh-blog-featured-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.gh-blog-featured-link:hover .gh-blog-feature-img {
  transform: scale(1.04);
}

.gh-blog-featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gh-c-border-gold);
  background: var(--gh-c-bg-card);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.gh-blog-featured-link:hover .gh-blog-featured-grid {
  background: var(--gh-c-bg-card-hover);
}

@media (max-width: 1024px) {
  .gh-blog-featured-grid {
    grid-template-columns: 1fr;
  }
}

.gh-blog-featured-visual {
  position: relative;
  min-height: 280px;
  background: var(--gh-c-surface);
  overflow: hidden;
}

@media (max-width: 1024px) {
  .gh-blog-featured-visual {
    min-height: 220px;
  }
}

.gh-blog-featured-visual--placeholder {
  min-height: 200px;
}

.gh-blog-featured-visual--has-img .gh-blog-feature-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--gh-ease);
}

.gh-blog-featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(11, 11, 13, 0.85);
  border: 1px solid var(--gh-c-border-gold);
  border-radius: 4px;
  padding: 5px 12px;
  font-family: var(--gh-font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gh-c-gold);
  pointer-events: none;
}

.gh-blog-featured-text {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gh-blog-featured-label {
  font-family: var(--gh-font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gh-c-gold);
  margin-bottom: 12px;
}

.gh-blog-featured-title {
  font-family: var(--gh-font-display);
  line-height: 1.05;
  margin: 0 0 14px;
  font-weight: bold;
  color: var(--gh-c-text);
  text-transform: uppercase;
}

.gh-blog-featured-excerpt {
  font-size: 15px;
  color: var(--gh-c-text-mid);
  line-height: 1.7;
  margin: 0 0 20px;
  font-weight: normal;
}

.gh-blog-featured-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gh-c-border);
}

.gh-blog-featured-author,
.gh-blog-featured-date {
  font-size: 12px;
  color: var(--gh-c-text-dim);
}

.gh-blog-featured-read {
  font-family: var(--gh-font-mono);
  font-size: 10px;
  color: var(--gh-c-text-dim);
  letter-spacing: 0.08em;
  margin-left: auto;
}

@media (max-width: 540px) {
  .gh-blog-featured-read {
    margin-left: 0;
    width: 100%;
  }
}

.gh-blog-list-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin: 1.5rem 0;
}

.gh-blog-search {
  flex: 1 1 220px;
  max-width: 360px;
}

.gh-blog-sort-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gh-blog-sort-btns .button-sort {
  font-family: var(--gh-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid var(--gh-c-border);
  background: transparent;
  color: var(--gh-c-text-dim);
  transition: all 0.2s ease;
}

.gh-blog-sort-btns .button-sort:hover {
  border-color: var(--gh-c-border-gold);
  color: var(--gh-c-gold);
}

.gh-blog-sort-btns .button-sort.is-active {
  background: rgba(187, 167, 119, 0.1);
  border-color: var(--gh-c-border-gold);
  color: var(--gh-c-gold);
}

/* Post grid — .posts-grid / .post-card */
.gh-blog-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 1rem;
}

@media (max-width: 1024px) {
  .gh-blog-card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .gh-blog-card-grid {
    grid-template-columns: 1fr;
  }
}

.gh-blog-card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--gh-c-border);
  background: var(--gh-c-bg-card);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.gh-blog-card:hover {
  border-color: var(--gh-c-border-hover);
  background: var(--gh-c-bg-card-hover);
}

.gh-blog-card:hover .gh-blog-card-img {
  transform: scale(1.04);
}

.gh-blog-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--gh-c-surface);
  transition: transform 0.5s var(--gh-ease);
}

.gh-blog-card-img--placeholder {
  min-height: 160px;
  background: linear-gradient(135deg, var(--gh-c-surface), var(--gh-c-bg-2));
}

.gh-blog-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gh-blog-card-title {
  font-family: var(--gh-font-display);
  font-size: 22px;
  letter-spacing: 0.5px;
  line-height: 1.1;
  margin: 0 0 10px;
  font-weight: 400;
  color: var(--gh-c-text);
}

.gh-blog-card-excerpt {
  font-size: 13px;
  color: var(--gh-c-text-mid);
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gh-blog-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding-top: 14px;
  border-top: 1px solid var(--gh-c-border);
  margin-top: auto;
}

.gh-blog-card-author,
.gh-blog-card-date {
  font-size: 11px;
  color: var(--gh-c-text-dim);
}

.gh-blog-card-read {
  font-family: var(--gh-font-mono);
  font-size: 10px;
  color: var(--gh-c-text-dim);
  letter-spacing: 0.08em;
  margin-left: auto;
}

@media (max-width: 480px) {
  .gh-blog-card-read {
    margin-left: 0;
    width: 100%;
  }
}

.gh-blog-empty {
  text-align: center;
  padding: 3rem 1rem;
  border-radius: 8px;
  border: 1px dashed var(--gh-c-border-hover);
  color: var(--gh-c-text-mid);
}

/* Related categories — .related-cats-grid */
.gh-blog-related {
  margin-top: 3rem;
  padding-top: 3.75rem;
  border-top: 1px solid var(--gh-c-border);
}

.gh-blog-related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.gh-blog-btn-all-cats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-family: var(--gh-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 5px;
  border: 1px solid var(--gh-c-border);
  background: transparent;
  color: var(--gh-c-text);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.gh-blog-btn-all-cats::after {
  content: '→';
  transition: transform 0.2s ease;
}

.gh-blog-btn-all-cats:hover {
  border-color: #00a3e0;
  color: #00a3e0;
}

.gh-blog-btn-all-cats:hover::after {
  transform: translateX(3px);
}

.gh-blog-related-grid {
  --gh-cat-col-max: 240px;
  --gh-cat-col-min: 200px;
  display: grid;
  gap: 12px;
  justify-content: start;
  width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(var(--gh-cat-col-min), var(--gh-cat-col-max)));
}

.gh-blog-related-empty {
  grid-column: 1 / -1;
  text-align: center;
  margin: 0;
}

@media (max-width: 640px) {
  .gh-blog-related-grid {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

.gh-blog-cta-sentinel {
  height: 1px;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.gh-blog-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  background: rgba(11, 11, 13, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--gh-c-border);
  transform: translateY(100%);
  transition: transform 0.5s var(--gh-ease);
}

.gh-blog-sticky-cta--visible {
  transform: translateY(0);
}

.gh-blog-sticky-cta p {
  margin: 0;
  font-size: 13px;
  color: var(--gh-c-text-mid);
}

.gh-blog-sticky-cta p strong {
  color: #00a3e0;
  font-weight: 600;
}

.gh-blog-sticky-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 5px;
  background: var(--gh-c-gold);
  color: var(--gh-c-bg) !important;
  font-family: var(--gh-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s var(--gh-ease), transform 0.3s var(--gh-ease), box-shadow 0.3s ease;
}

.gh-blog-sticky-cta-link:hover {
  background: var(--gh-c-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(187, 167, 119, 0.35);
  color: var(--gh-c-bg) !important;
}

.gh-blog-sticky-cta-link::after {
  content: '→';
  transition: transform 0.2s ease;
}

.gh-blog-sticky-cta-link:hover::after {
  transform: translateX(3px);
}

.gh-blog-article-title {
  font-family: var(--gh-font-display);
  font-size: clamp(52px,7vw,90px);
  letter-spacing: 3px;
  font-weight: bold;
  margin: 0.5rem 0 1rem;
  line-height: .92;
}

.gh-blog-article-title .gh-blog-title-gold {
  color: var(--gh-c-gold);
  font-style: normal;
}

.article-excerpt {
  font-family: var(--gh-font-body);
  font-size: 18px;
  color: var(--gh-c-text-mid);
  line-height: 1.75;
}

.gh-blog-breadcrumb a {
  color: var(--gh-c-text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.gh-blog-breadcrumb a:hover {
  color: var(--gh-c-gold);
}

.gh-blog-breadcrumb--bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--gh-c-border);
  font-family: var(--gh-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gh-c-text-dim);
}

.gh-blog-bc-sep {
  opacity: 0.4;
  user-select: none;
}

.gh-blog-bc-current {
  color: var(--gh-c-text-mid);
}

/* Category listing page shell */
.gh-blog-inner.gh-blog-category-page {
  background: var(--gh-c-bg-2);
  color: var(--gh-c-text);
  padding: 1.5rem clamp(1rem, 3vw, 1.75rem) 2.25rem;
  border-radius: 10px;
  border: 1px solid var(--gh-c-border);
}

.gh-blog-category-page .gh-blog-card {
  background: var(--gh-c-bg-card);
}

.gh-blog-category-page .gh-blog-featured-grid {
  background: var(--gh-c-bg-card);
}

.gh-blog-category-page .gh-blog-empty {
  background: rgba(0, 0, 0, 0.2);
  border-style: solid;
  border-color: var(--gh-c-border);
}

.gh-blog-cat-header .gh-blog-kicker {
  margin-bottom: 8px;
}

.gh-blog-cat-headline {
  font-family: var(--gh-font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: bold;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

.gh-blog-cat-header .gh-blog-cat-desc {
  font-size: 1rem;
  max-width: 36rem;
}

.gh-blog-cat-total {
  font-family: var(--gh-font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gh-c-gold);
  margin: 0.75rem 0 0;
}

.gh-blog-article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--gh-c-text-mid);
}

.gh-blog-author-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.gh-blog-article-hero img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.gh-blog-video-embed-wrap {
  margin: 0 0 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.gh-blog-article-body {
  line-height: 1.65;
  font-size: 1.05rem;
}

.gh-blog-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Article category links — same card language as rel-cat */
.gh-blog-tags {
  margin: 2rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gh-blog-tag {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid var(--gh-c-border);
  background: var(--gh-c-bg-card);
  font-family: var(--gh-font-display);
  font-size: 15px;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: var(--gh-c-text);
  transition: border-color 0.3s ease, background 0.3s ease, color 0.2s ease;
}

.gh-blog-tag:hover {
  border-color: var(--gh-c-border-gold);
  background: var(--gh-c-bg-card-hover);
  color: var(--gh-c-gold);
}

.gh-blog-author-bio {
  margin: 2rem 0;
  padding: 1.25rem 1.35rem;
  border-radius: 8px;
  background: var(--gh-c-bg-card);
  border: 1px solid var(--gh-c-border);
}

.gh-blog-author-bio h2 {
  font-family: var(--gh-font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  font-weight: 400;
  margin: 0 0 1rem;
  color: var(--gh-c-text);
}

.gh-blog-author-bio-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.gh-blog-author-bio-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--gh-c-border-gold);
}

.gh-blog-author-bio-col {
  flex: 1;
  min-width: 0;
}

.gh-blog-author-bio-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gh-c-text);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.gh-blog-author-bio-body {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gh-c-text-mid);
  line-height: 1.65;
}

.gh-blog-related-posts h2 {
  font-family: var(--gh-font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  font-weight: 400;
  margin-bottom: 1rem;
}

.gh-blog-channel-miniature .channel {
  max-width: 100%;
}

.plugin-peertube-video-embed.gh-blog-peertube-iframe,
.gh-blog-peertube-iframe {
  display: block;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .gh-blog-home-cat-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .gh-blog-home-cat-grid {
    grid-template-columns: 1fr;
  }

  .gh-blog-home-filter-cats {
    display: none;
  }
}

/* -------------------------------------------------------------------------- */
/* Category page (reference UI: hero, filter, featured, grid, empty, related) */
/* -------------------------------------------------------------------------- */

.gh-blog-sticky-cta-outline {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 5px;
  border: 1px solid var(--gh-c-border);
  background: transparent;
  color: var(--gh-c-text) !important;
  font-family: var(--gh-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.gh-blog-sticky-cta-outline:hover {
  border-color: #00a3e0;
  color: #00a3e0 !important;
}

.gh-blog-cat-page .rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--gh-ease), transform 0.7s var(--gh-ease);
}

.gh-blog-cat-page .rv.vis {
  opacity: 1;
  transform: translateY(0);
}

.gh-cat-page-breadcrumb-bar {
  padding: 18px 0;
  border-bottom: 1px solid var(--gh-c-border);
}

.gh-cat-page-bc {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--gh-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gh-c-text-dim);
}

.gh-cat-page-bc a {
  color: var(--gh-c-text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.gh-cat-page-bc a:hover {
  color: var(--gh-c-gold);
}

.gh-cat-page-bc-sep {
  opacity: 0.4;
}

.gh-cat-page-bc-current {
  color: var(--gh-c-text-mid);
}

.gh-cat-page-hero {
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--gh-c-border);
}

.gh-cat-page-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(187, 167, 119, 0.05) 0%, transparent 65%);
  pointer-events: none;
}

.gh-cat-page-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.gh-cat-page-hero-left {
  flex: 1;
  min-width: 280px;
}

.gh-cat-page-title {
  font-family: var(--gh-font-display);
  font-size: clamp(52px, 7vw, 90px);
  line-height: 0.92;
  letter-spacing: 3px;
  margin: 0 0 16px;
  text-transform: uppercase;
  font-weight: bold;
}

.gh-cat-page-title em {
  font-style: normal;
  color: var(--gh-c-gold);
}

.gh-cat-page-desc {
  font-size: 18px;
  color: var(--gh-c-text-mid);
  line-height: 1.75;
  max-width: 580px;
  margin: 0 0 24px;
}

.gh-cat-page-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.gh-cat-page-meta-item {
  font-family: var(--gh-font-mono);
  font-size: 12px;
  color: var(--gh-c-text-dim);
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gh-cat-page-meta-item::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gh-c-gold-dark);
}

.gh-cat-page-meta-item--highlight {
  color: var(--gh-c-gold);
}

.gh-cat-page-meta-item--highlight::before {
  display: none;
}

.gh-cat-page-hero-right {
  flex-shrink: 0;
}

.gh-cat-page-num-display {
  font-family: var(--gh-font-display);
  font-size: clamp(80px, 12vw, 160px);
  color: rgba(187, 167, 119, 0.07);
  line-height: 1;
  letter-spacing: 4px;
  user-select: none;
}

.gh-cat-filter-bar {
  background: var(--gh-c-bg-2);
  border-bottom: 1px solid var(--gh-c-border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
}

.gh-cat-filter-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.gh-cat-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}

.gh-cat-search-input {
  width: 100%;
  background: var(--gh-c-bg-card);
  border: 1px solid var(--gh-c-border);
  border-radius: 5px;
  padding: 9px 14px 9px 36px;
  font-family: var(--gh-font-body);
  font-size: 13px;
  color: var(--gh-c-text);
  outline: none;
  transition: border-color 0.2s ease;
}

.gh-cat-search-input::placeholder {
  color: var(--gh-c-text-dim);
}

.gh-cat-search-input:focus {
  border-color: var(--gh-c-gold);
}

.gh-cat-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gh-c-text-dim);
  font-size: 14px;
  pointer-events: none;
}

.gh-cat-filter-divider {
  width: 1px;
  height: 28px;
  background: var(--gh-c-border);
  flex-shrink: 0;
}

.gh-cat-sort-label {
  font-family: var(--gh-font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gh-c-text-dim);
  white-space: nowrap;
}

.gh-cat-sort-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.gh-cat-sort-btn {
  font-family: var(--gh-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid var(--gh-c-border);
  background: transparent;
  color: var(--gh-c-text-dim);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.gh-cat-sort-btn:hover {
  border-color: var(--gh-c-border-gold);
  color: var(--gh-c-gold);
}

.gh-cat-sort-btn.active {
  background: rgba(187, 167, 119, 0.1);
  border-color: var(--gh-c-border-gold);
  color: var(--gh-c-gold);
}

.gh-cat-results-count {
  font-family: var(--gh-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gh-c-text-dim);
  margin-left: auto;
  white-space: nowrap;
}

.gh-cat-results-count span {
  color: var(--gh-c-gold);
}

.gh-cat-posts-grid.gh-cat-grid-loading {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.gh-cat-grid-error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  text-align: center;
  color: var(--gh-c-text-mid);
  font-size: 14px;
}

.gh-cat-posts-section {
  padding: 60px 0 80px;
}

.gh-cat-posts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}

.gh-cat-posts-heading {
  font-family: var(--gh-font-display);
  font-size: 28px;
  letter-spacing: 1px;
  margin: 0;
  text-transform: uppercase;
  font-weight: bold;
  line-height: 1.1;
}

.gh-cat-posts-heading-gold {
  font-style: normal;
  color: var(--gh-c-gold);
}

.gh-cat-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gh-cat-post {
  background: var(--gh-c-bg-card);
  border: 1px solid var(--gh-c-border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.gh-cat-post:hover {
  border-color: var(--gh-c-border-hover);
  background: var(--gh-c-bg-card-hover);
}

.gh-cat-post-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--gh-c-surface);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.gh-cat-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--gh-ease);
}

.gh-cat-post:hover .gh-cat-post-img img {
  transform: scale(1.04);
}

.gh-cat-post-img--ph {
  background: var(--gh-c-surface);
}

.gh-cat-post-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gh-cat-post-title {
  font-family: var(--gh-font-display);
  font-size: 22px;
  letter-spacing: 0.5px;
  line-height: 1.1;
  margin: 0 0 10px;
  color: var(--gh-c-text);
  text-transform: uppercase;
  font-weight: bold;
}

.gh-cat-post-title .gh-blog-title-gold {
  color: var(--gh-c-gold);
  font-style: normal;
}

.gh-cat-post-excerpt {
  font-size: 13px;
  color: var(--gh-c-text-mid);
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gh-cat-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--gh-c-border);
  margin-top: auto;
}

.gh-cat-post-author,
.gh-cat-post-date {
  font-size: 11px;
  color: var(--gh-c-text-dim);
}

.gh-cat-post-read {
  font-family: var(--gh-font-mono);
  font-size: 10px;
  color: var(--gh-c-text-dim);
  letter-spacing: 0.08em;
  margin-left: auto;
}

.gh-cat-no-results {
  text-align: center;
  padding: 48px 0;
}

.gh-cat-no-results p {
  font-size: 16px;
  color: var(--gh-c-text-dim);
}

.gh-cat-no-results strong {
  color: var(--gh-c-text-mid);
}

.gh-cat-empty-state {
  text-align: center;
  padding: 80px 20px;
}

.gh-cat-empty-icon {
  font-size: 48px;
  margin-bottom: 20px;
  opacity: 0.3;
}

.gh-cat-empty-state h3 {
  font-family: var(--gh-font-display);
  font-size: 36px;
  letter-spacing: 1px;
  margin: 0 0 12px;
  color: var(--gh-c-text-mid);
}

.gh-cat-empty-state > p {
  font-size: 16px;
  color: var(--gh-c-text-dim);
  line-height: 1.7;
  max-width: 460px;
  margin: 0 auto 28px;
}

.gh-cat-empty-notify {
  background: var(--gh-c-bg-card);
  border: 1px solid var(--gh-c-border-gold);
  border-radius: 8px;
  padding: 24px 28px;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.gh-cat-empty-notify p {
  font-size: 13px;
  color: var(--gh-c-text-mid);
  margin: 0;
}

.gh-cat-empty-form {
  display: flex;
  gap: 8px;
  width: 100%;
}

.gh-cat-empty-input {
  flex: 1;
  background: var(--gh-c-bg);
  border: 1px solid var(--gh-c-border);
  border-radius: 5px;
  padding: 10px 14px;
  font-family: var(--gh-font-body);
  font-size: 13px;
  color: var(--gh-c-text);
  outline: none;
  transition: border-color 0.2s ease;
}

.gh-cat-empty-input:focus {
  border-color: var(--gh-c-gold);
}

.gh-cat-empty-btn {
  padding: 10px 18px;
  border-radius: 5px;
  border: none;
  background: var(--gh-c-gold);
  color: var(--gh-c-bg);
  font-family: var(--gh-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.gh-cat-empty-btn:hover {
  background: var(--gh-c-gold-light);
}

.gh-cat-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 48px;
  flex-wrap: wrap;
}

.gh-cat-pag-btn {
  font-family: var(--gh-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  border: 1px solid var(--gh-c-border);
  background: transparent;
  color: var(--gh-c-text-dim);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.gh-cat-pag-btn:hover:not(:disabled) {
  border-color: var(--gh-c-border-gold);
  color: var(--gh-c-gold);
}

.gh-cat-pag-btn.active {
  background: rgba(187, 167, 119, 0.1);
  border-color: var(--gh-c-border-gold);
  color: var(--gh-c-gold);
}

.gh-cat-pag-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.gh-cat-pag-wide {
  width: auto;
  padding: 0 16px;
}

.gh-cat-pag-ellipsis {
  font-family: var(--gh-font-mono);
  font-size: 11px;
  color: var(--gh-c-text-dim);
  padding: 0 4px;
}

.gh-cat-related {
  padding: 60px 0;
  border-top: 1px solid var(--gh-c-border);
}

.gh-cat-related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.gh-cat-related-eyebrow {
  margin-bottom: 0 !important;
}

.gh-cat-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-family: var(--gh-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none !important;
  border-radius: 5px;
  border: 1px solid var(--gh-c-border);
  background: transparent;
  color: var(--gh-c-text) !important;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.gh-cat-btn-outline::after {
  content: '→';
  transition: transform 0.2s ease;
}

.gh-cat-btn-outline:hover {
  border-color: #00a3e0;
  color: #00a3e0 !important;
}

.gh-cat-btn-outline:hover::after {
  transform: translateX(3px);
}

.gh-cat-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gh-cat-rel-card {
  background: var(--gh-c-bg-card);
  border: 1px solid var(--gh-c-border);
  border-radius: 8px;
  padding: 20px;
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 0.3s ease, background 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gh-cat-rel-card:hover {
  border-color: var(--gh-c-border-gold);
  background: var(--gh-c-bg-card-hover);
}

.gh-cat-rel-num {
  font-family: var(--gh-font-display);
  font-size: 28px;
  color: rgba(187, 167, 119, 0.15);
  line-height: 1;
}

.gh-cat-rel-name {
  font-family: var(--gh-font-display);
  font-size: 17px;
  letter-spacing: 0.5px;
  color: var(--gh-c-text);
  text-transform: uppercase;
}

.gh-cat-rel-card:hover .gh-cat-rel-name {
  color: var(--gh-c-gold);
}

.gh-cat-rel-count {
  font-family: var(--gh-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gh-c-text-dim);
}

.gh-cat-related-empty {
  grid-column: 1 / -1;
  text-align: center;
  margin: 0;
  color: var(--gh-c-text-dim);
  font-size: 14px;
}

@media (max-width: 1024px) {
  .gh-cat-posts-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gh-cat-related-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .gh-cat-posts-grid {
    grid-template-columns: 1fr;
  }

  .gh-cat-results-count {
    margin-left: 0;
    width: 100%;
  }

  .gh-cat-post-read {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .gh-cat-related-grid {
    grid-template-columns: 1fr;
  }

  .gh-cat-empty-form {
    flex-direction: column;
  }
}
/* peertube-plugin-blog-management — admin plugin settings UI */

/*
 * PeerTube always shows "Update plugin settings" when the server registers any setting.
 * We register one display-only setting so the <form> exists (required for this admin UI).
 * Real configuration is add/edit/delete in #gh-blog-admin-panel — hide the stock submit + blurb.
 */
my-plugin-show-installed h2:first-of-type {
  display: none;
}

 form.gh-blog-plugin-settings-root #greyhive-blog-info-wrapper {
  display: none;
}

form.gh-blog-plugin-settings-root input.peertube-button.primary-button[type='submit'] {
  display: none !important;
}

#gh-blog-admin-panel {
  width: 100%;
  max-width: none;
}

#gh-blog-admin-panel .gh-blog-table-wrap {
  width: 100%;
}

#gh-blog-admin-panel .gh-blog-table-wrap table {
  width: 100%;
}

.gh-blog-act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  vertical-align: middle;
}

.gh-blog-act-btn .gh-blog-ico {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.gh-blog-icon-btn {
  min-width: 2.25rem;
  min-height: 2rem;
  padding: 0.25rem 0.45rem;
  justify-content: center;
}

#gh-blog-admin-panel .gh-blog-act-btn .gh-blog-btn-label {
  margin-left: 0.4rem;
}

#gh-blog-admin-panel .gh-blog-admin-tabs {
  border-bottom: 1px solid var(--border-primary, rgba(255, 255, 255, 0.12));
  margin-bottom: 1rem;
}

#gh-blog-admin-panel .gh-blog-admin-tabs .nav-link {
  cursor: pointer;
  border: none;
  background: transparent;
  color: inherit;
  padding: 0.5rem 1rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

#gh-blog-admin-panel .gh-blog-admin-tabs .nav-link.active {
  border-bottom-color: var(--primary, #f97316);
  font-weight: 600;
}

#gh-blog-admin-panel .gh-blog-tab-pane {
  display: none;
}

#gh-blog-admin-panel .gh-blog-tab-pane.active {
  display: block;
}

.gh-blog-modal-root {
  position: fixed;
  inset: 0;
  z-index: 10550;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow: auto;
  background: rgba(0, 0, 0, 0.55);
}

.gh-blog-modal-root.gh-blog-modal-open {
  display: flex;
}

.gh-blog-modal-root .modal-dialog.modal-xl {
  max-width: min(1140px, calc(100vw - 2rem));
  width: 100%;
  margin: 0 auto;
}

.gh-blog-modal-root .modal-content {
  background: var(--bg, #1e1e1e);
  color: var(--fg, #eee);
  border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.12));
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.gh-blog-modal-root .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-primary, rgba(255, 255, 255, 0.1));
}

.gh-blog-modal-root .modal-body {
  padding: 1.25rem;
  max-height: min(78vh, 900px);
  overflow-y: auto;
}

.gh-blog-modal-root .modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-primary, rgba(255, 255, 255, 0.1));
}

.gh-blog-modal-root .gh-blog-modal-footer-lead {
  margin-right: auto;
}

.gh-blog-modal-root .gh-blog-modal-x {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0 0.25rem;
  cursor: pointer;
  opacity: 0.75;
  color: inherit;
}

.gh-blog-modal-root .gh-blog-modal-x:hover {
  opacity: 1;
}

#gh-blog-admin-panel .table-actions {
  white-space: nowrap;
}

#gh-blog-admin-panel .table-actions .btn,
#gh-blog-admin-panel .table-actions .gh-blog-act-btn {
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
}

/* Categories: drag handle + order number */
.gh-blog-cat-admin-table tbody td {
  vertical-align: middle;
}

.gh-blog-cat-admin-table .gh-blog-cat-order-th {
  width: 5.5rem;
  white-space: nowrap;
}

.gh-blog-cat-order-cell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  line-height: 1.25;
}

.gh-blog-cat-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.75rem;
  min-height: 1.75rem;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 4px;
  cursor: grab;
  color: inherit;
  background: transparent;
  opacity: 0.75;
  line-height: 0;
}

.gh-blog-cat-drag-handle:hover {
  opacity: 1;
  background: rgba(128, 128, 128, 0.12);
}

.gh-blog-cat-drag-handle:active {
  cursor: grabbing;
}

.gh-blog-cat-drag-bars {
  display: block;
  width: 12px;
  height: 12px;
  margin-top: 1px;
  background: linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 5px / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 10px / 100% 2px no-repeat;
  opacity: 0.85;
}

.gh-blog-cat-order-num {
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  line-height: 1.25;
  opacity: 0.9;
  min-width: 1.35rem;
  display: inline-flex;
  align-items: center;
}

.gh-blog-cat-row--dragging {
  opacity: 0.55;
}

/* Drop slot: full-row bar above/below target row */
.gh-blog-cat-admin-table tbody tr.gh-blog-cat-row--drop-before > td {
  box-shadow: inset 0 4px 0 0 var(--primary, #f97316);
  background-color: rgba(249, 115, 22, 0.06);
}

.gh-blog-cat-admin-table tbody tr.gh-blog-cat-row--drop-after > td {
  box-shadow: inset 0 -4px 0 0 var(--primary, #f97316);
  background-color: rgba(249, 115, 22, 0.06);
}
.captions-browser-wrap {
  box-sizing: border-box;
}

.captions-browser-checking {
  color: var(--mutedForegroundColor, #888);
  margin: 0;
  padding: 0.5rem 0;
}

/* Wide table area inside the main column — no viewport bleed (avoids hugging the window edge / sidebar) */
.captions-browser-wrap.captions-browser-fullscreen {
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  padding: 1rem
    max(1.5rem, calc(env(safe-area-inset-right, 0px) + clamp(1.5rem, 3vw, 2.75rem)))
    2.5rem
    max(1.5rem, calc(env(safe-area-inset-left, 0px) + clamp(1.5rem, 3vw, 2.75rem)));
  min-height: calc(100dvh - 5rem);
  display: flex;
  flex-direction: column;
}

.captions-browser-fullscreen .captions-browser-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.captions-browser-fullscreen .dataTables_wrapper {
  width: 100% !important;
}

.captions-browser-fullscreen .dataTables_scrollHead,
.captions-browser-fullscreen .dataTables_scrollBody {
  width: 100% !important;
}

.captions-browser-header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.captions-browser-sub {
  color: var(--mutedForegroundColor, #888);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.captions-browser-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.captions-browser-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1 1 12rem;
  min-width: 10rem;
}

.captions-browser-field-sort {
  flex: 0 1 14rem;
  max-width: 18rem;
}

.captions-browser-field-label {
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0;
}

.captions-browser-search-input,
.captions-browser-select {
  width: 100%;
  padding: 0.4rem 0.65rem;
  font-size: 0.95rem;
  border-radius: 4px;
  border: 1px solid var(--inputBorderColor, #444);
  background: var(--inputBackgroundColor, #222);
  color: var(--foregroundColor, #eee);
}

.captions-browser-col-uuid .captions-browser-uuid {
  font-size: 0.8rem;
  word-break: break-all;
}

.captions-browser-copy-uuid {
  cursor: pointer;
  margin-left: 0.25rem;
  padding: 0.15rem 0.4rem;
  font-size: 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--inputBorderColor, #444);
  background: var(--inputBackgroundColor, #222);
  color: var(--foregroundColor, #eee);
}

.captions-browser-alert {
  margin-bottom: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  background: rgba(200, 60, 60, 0.12);
  color: var(--foregroundColor, #c33);
}

.captions-browser-table-wrap {
  overflow-x: auto;
}

/* DataTables + theme conflicts: remove grid borders (scoped to this plugin only) */
.captions-browser-wrap table.dataTable,
.captions-browser-wrap table.dataTable th,
.captions-browser-wrap table.dataTable td {
  border: none !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.captions-browser-wrap table.dataTable thead th,
.captions-browser-wrap table.dataTable thead td,
.captions-browser-wrap table.dataTable tbody th,
.captions-browser-wrap table.dataTable tbody td {
  border: none !important;
}

.captions-browser-wrap table.dataTable > thead > tr > th,
.captions-browser-wrap table.dataTable > thead > tr > td,
.captions-browser-wrap table.dataTable > tbody > tr > th,
.captions-browser-wrap table.dataTable > tbody > tr > td {
  border: none !important;
}

.captions-browser-wrap table.dataTable.no-footer {
  border-bottom: none !important;
}

.captions-browser-wrap .dataTables_wrapper .dataTables_length,
.captions-browser-wrap .dataTables_wrapper .dataTables_filter,
.captions-browser-wrap .dataTables_wrapper .dataTables_info,
.captions-browser-wrap .dataTables_wrapper .dataTables_paginate {
  border: none !important;
}

.captions-browser-wrap .dataTables_wrapper .dataTables_paginate .paginate_button {
  border: none !important;
  background: transparent !important;
}

.captions-browser-wrap .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.captions-browser-wrap .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  border: none !important;
}

.captions-browser-key {
  font-size: 0.85rem;
  word-break: break-all;
  border: none !important;
  box-shadow: none !important;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

.captions-browser-link {
  color: var(--mainForegroundColor, #e0e0e0);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.captions-browser-link:hover {
  opacity: 0.9;
}

.captions-browser-na {
  color: var(--mutedForegroundColor, #888);
}

.captions-browser-actions {
  white-space: nowrap;
  width: 7rem;
}

.captions-browser-copy {
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  border-radius: 4px;
  border: 1px solid var(--inputBorderColor, #444);
  background: var(--inputBackgroundColor, #222);
  color: var(--foregroundColor, #eee);
}

.captions-browser-copy:hover {
  opacity: 0.9;
}

.captions-browser-fallback {
  padding: 1rem;
}
