.hub-timeline-app {
  --hub-bg: #080b11;
  --hub-panel: rgba(12, 17, 24, 0.88);
  --hub-panel-soft: rgba(17, 24, 35, 0.9);
  --hub-border: rgba(146, 182, 208, 0.16);
  --hub-border-strong: rgba(25, 209, 255, 0.24);
  --hub-text: #eef4fb;
  --hub-muted: #93a4ba;
  --hub-accent: #19d1ff;
  --hub-accent-strong: #6fe6ff;
  --hub-accent-soft: rgba(25, 209, 255, 0.14);
  --hub-accent-glow: rgba(25, 209, 255, 0.22);
  --hub-youtube: #d9b37a;
  --hub-wordpress: #9fc3dc;
  color: var(--hub-text);
  font-family: "Segoe UI", "Hiragino Sans", sans-serif;
}

body.hub-timeline-fullscreen {
  margin: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.02) 0, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 24px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0, rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 28px),
    linear-gradient(45deg, rgba(25, 209, 255, 0.035) 0, rgba(25, 209, 255, 0.035) 1px, transparent 1px, transparent 64px),
    radial-gradient(circle at 50% 0%, rgba(25, 209, 255, 0.11), transparent 26%),
    radial-gradient(circle at 12% 8%, rgba(25, 209, 255, 0.12), transparent 22%),
    radial-gradient(circle at 82% 16%, rgba(107, 140, 176, 0.15), transparent 18%),
    radial-gradient(circle at 88% 74%, rgba(111, 230, 255, 0.08), transparent 16%),
    radial-gradient(circle at 30% 100%, rgba(83, 106, 130, 0.15), transparent 28%),
    linear-gradient(180deg, #05080c 0%, #0a1017 44%, #090d13 100%);
  color: var(--hub-text);
  background-attachment: scroll;
}

body.hub-modal-open {
  overflow: hidden;
}

.hub-fullscreen-root {
  min-height: 100vh;
}

.hub-fullscreen-intro {
  padding: 24px 16px 8px;
}

.hub-fullscreen-intro__inner {
  width: min(1200px, calc(100% - 20px));
  margin: 0 auto;
}

.hub-fullscreen-intro h1 {
  margin: 0 0 10px;
  color: var(--hub-text);
}

.hub-fullscreen-intro__content {
  color: var(--hub-muted);
}

.hub-fullscreen-app {
  width: min(1200px, calc(100% - 20px));
  margin: 0 auto;
  padding: 8px 0 36px;
  position: relative;
}

.hub-fullscreen-app::before {
  content: "";
  position: absolute;
  inset: -32px -16px auto;
  height: 300px;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.045) 12%, transparent 24%, transparent 72%, rgba(25, 209, 255, 0.06) 84%, transparent 100%),
    radial-gradient(circle at 20% 20%, rgba(25, 209, 255, 0.08), transparent 32%),
    radial-gradient(circle at 72% 28%, rgba(25, 209, 255, 0.12), transparent 22%),
    linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.035) 16%, transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 72%);
  opacity: 0.9;
}

.hub-shell {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 24px;
}

.hub-shell--single {
  grid-template-columns: minmax(0, 1fr);
}

.hub-panel {
  position: relative;
  background:
    linear-gradient(120deg, rgba(111, 230, 255, 0.035), transparent 24%, transparent 72%, rgba(255, 255, 255, 0.02) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
    linear-gradient(135deg, rgba(25, 209, 255, 0.03), transparent 42%),
    var(--hub-panel);
  border: 1px solid var(--hub-border);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(25, 209, 255, 0.04);
  overflow: hidden;
}

.hub-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.018) 18%, transparent 38%),
    linear-gradient(180deg, rgba(25, 209, 255, 0.07), transparent 32%);
  opacity: 0.85;
}

.hub-panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--hub-border-strong), transparent);
}

.hub-panel > * {
  position: relative;
  z-index: 1;
}

.hub-eyebrow {
  margin: 0 0 12px;
  color: var(--hub-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hub-title {
  margin: 0;
  line-height: 1.15;
}

.hub-copy,
.hub-section-head p,
.hub-feed-header p,
.hub-status,
.hub-image-name,
.hub-card-meta,
.hub-card p,
.hub-empty {
  color: var(--hub-muted);
}

.hub-primary,
.hub-secondary,
.hub-filter {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, background-color 180ms ease;
}

.hub-primary {
  background: linear-gradient(135deg, #b9c7d4, #72879b);
  color: #061018;
  padding: 13px 18px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(185, 199, 212, 0.14);
}

.hub-secondary,
.hub-filter {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--hub-border);
  color: var(--hub-text);
  padding: 10px 15px;
}

.hub-primary:hover,
.hub-secondary:hover,
.hub-filter:hover {
  transform: translateY(-1px);
}

.hub-filter.is-active {
  background: var(--hub-accent-soft);
  color: #ddf8ff;
  border-color: rgba(25, 209, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(25, 209, 255, 0.08), 0 10px 26px rgba(25, 209, 255, 0.08);
}

.hub-status {
  margin: 12px 4px 0;
  font-size: 14px;
}

.hub-status--inline {
  margin: 0 0 0 auto;
  white-space: nowrap;
}

.hub-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.hub-stat {
  padding: 14px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.hub-stat span {
  display: block;
  color: var(--hub-muted);
  font-size: 12px;
}

.hub-stat strong {
  display: block;
  margin-top: 6px;
}

.hub-main {
  min-width: 0;
}

.hub-topbar {
  padding: 24px 24px 20px;
  margin-bottom: 16px;
}

.hub-composer,
.hub-feed-header {
  padding: 18px 20px;
  margin-bottom: 16px;
}

.hub-section-head h3,
.hub-feed-header h3 {
  margin: 0;
}

.hub-composer-form textarea {
  width: 100%;
  min-height: 120px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hub-border);
  border-radius: 18px;
  color: var(--hub-text);
  padding: 14px;
  resize: vertical;
}

.hub-composer-actions,
.hub-feed-actions,
.hub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hub-icon-action,
.hub-icon-filter {
  min-width: 58px;
  min-height: 52px;
  padding: 8px 10px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.hub-icon-action__icon,
.hub-icon-filter__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  background: rgba(255, 255, 255, 0.07);
}

.hub-icon-action__icon img,
.hub-icon-filter__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.hub-icon-action__label,
.hub-icon-filter__label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
}

.hub-composer-actions {
  margin-top: 12px;
}

.hub-composer-category {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.hub-composer-category span {
  font-size: 12px;
  color: var(--hub-text-muted);
}

.hub-composer-category select {
  width: min(100%, 260px);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hub-border);
  border-radius: 14px;
  color: var(--hub-text);
  padding: 10px 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.hub-composer-category select:focus {
  outline: none;
  border-color: rgba(143, 183, 216, 0.5);
  box-shadow: 0 0 0 3px rgba(143, 183, 216, 0.15);
}

.hub-composer-category select option {
  background: #10141a;
  color: #eef4fb;
}

.hub-post-button {
  margin-left: auto;
}

.hub-image-preview {
  margin-top: 12px;
}

.hub-image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.hub-image-preview-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
}

.hub-feed {
  position: relative;
  overflow: hidden;
}

.hub-feed-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  min-height: 58px;
}

.hub-feed-actions {
  flex: 1 1 auto;
  justify-content: flex-start;
}

.hub-warning {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 196, 87, 0.08);
  border: 1px solid rgba(255, 196, 87, 0.2);
  color: #ffd27e;
}

.hub-mobile-notice {
  display: none;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(25, 209, 255, 0.28);
  background: linear-gradient(135deg, rgba(25, 209, 255, 0.12), rgba(15, 23, 34, 0.92));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hub-mobile-notice__body {
  min-width: 0;
}

.hub-mobile-notice__eyebrow {
  margin: 0 0 6px;
  color: #82ebff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub-mobile-notice__text {
  margin: 0;
  color: #d8ecf8;
  font-size: 13px;
  line-height: 1.6;
}

.hub-mobile-notice__close {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  color: #f3fbff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.hub-mobile-notice.is-visible {
  display: flex;
}

.hub-pwa-panel {
  margin-bottom: 14px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.hub-pwa-panel__body {
  min-width: 0;
}

.hub-pwa-panel__eyebrow {
  margin: 0 0 6px;
  color: #82ebff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub-pwa-panel__text {
  margin: 0;
  color: #d8ecf8;
  font-size: 13px;
  line-height: 1.6;
}

.hub-pwa-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.hub-android-install {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(25, 209, 255, 0.28);
  background: linear-gradient(135deg, rgba(8, 14, 22, 0.96), rgba(18, 28, 40, 0.96));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.hub-android-install__body {
  min-width: 0;
}

.hub-android-install__eyebrow {
  margin: 0 0 6px;
  color: #82ebff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub-android-install__text {
  margin: 0;
  color: #d8ecf8;
  font-size: 13px;
  line-height: 1.6;
}

.hub-android-install__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.hub-debug-panel {
  margin-bottom: 14px;
  padding: 14px 16px;
  background: rgba(25, 209, 255, 0.06);
}

.hub-debug-panel h3 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7fdfff;
}

.hub-debug-log {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
  line-height: 1.6;
  color: #c9f4ff;
}

.hub-section-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--hub-border);
  position: relative;
}

.hub-section-head::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -1px;
  width: 108px;
  height: 2px;
  background: linear-gradient(90deg, rgba(25, 209, 255, 0.9), rgba(111, 230, 255, 0.4), transparent);
  box-shadow: 0 0 14px rgba(25, 209, 255, 0.22);
}

.hub-section-head--compact h3 {
  margin-bottom: 4px;
}

.hub-card + .hub-card {
  border-top: 1px solid var(--hub-border);
  margin-top: 0;
}

.hub-card {
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 420px;
}

.hub-card-shell {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
}

.hub-card-rail {
  position: relative;
  grid-row: 1 / span 3;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding-top: 4px;
}

.hub-card-rail::before {
  content: "";
  position: absolute;
  top: -18px;
  bottom: -18px;
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(111, 230, 255, 0.92), rgba(25, 209, 255, 0.82) 40%, rgba(25, 209, 255, 0.56));
  box-shadow: 0 0 18px rgba(25, 209, 255, 0.2);
}

.hub-card-avatar {
  position: relative;
  z-index: 1;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(12, 17, 24, 0.9);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(111, 230, 255, 0.08);
  background: linear-gradient(135deg, rgba(150, 184, 211, 0.92), rgba(102, 125, 149, 0.84));
}

.hub-card-avatar::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  opacity: 0.55;
  pointer-events: none;
}

.hub-card-avatar span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #f4fbff;
}

.hub-card-avatar .fa-brands,
.hub-card-avatar .fa-solid {
  font-size: 21px;
  line-height: 1;
}

.hub-source-favicon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  object-fit: cover;
  display: block;
}

.hub-source-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.hub-card-avatar--ad {
  background: linear-gradient(135deg, rgba(137, 150, 167, 0.9), rgba(73, 82, 96, 0.82));
}

.hub-card-date {
  position: relative;
  z-index: 1;
  min-width: 56px;
  padding: 9px 7px 8px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: linear-gradient(180deg, rgba(7, 13, 20, 0.92), rgba(13, 19, 28, 0.7));
  border: 1px solid rgba(25, 209, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 24px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(25, 209, 255, 0.05);
}

.hub-card-date-month,
.hub-card-date-day {
  display: block;
  line-height: 1;
  font-family: "Segoe UI", "Bahnschrift", "Arial Narrow", sans-serif;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}

.hub-card-date-month {
  color: rgba(180, 231, 245, 0.78);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hub-card-date-day {
  color: #e8fbff;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-shadow: 0 0 14px rgba(25, 209, 255, 0.18);
}

.hub-card-promo {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hub-card-promo--custom {
  min-height: 0;
}

.hub-card-link {
  position: relative;
  display: block;
  grid-column: 2;
  min-width: 0;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(111, 230, 255, 0.03), transparent 24%, transparent 72%, rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.hub-card-link:hover {
  transform: translateY(-1px);
  border-color: rgba(25, 209, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 24%),
    linear-gradient(135deg, rgba(25, 209, 255, 0.075), transparent 42%, transparent 72%, rgba(111, 230, 255, 0.035)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16), 0 0 24px rgba(25, 209, 255, 0.08);
}

.hub-card-link--ad:hover {
  transform: none;
}

.hub-card-link::before {
  content: "";
  position: absolute;
  top: 32px;
  left: -16px;
  width: 16px;
  height: 2px;
  background: linear-gradient(90deg, var(--hub-accent-strong), var(--hub-accent));
  box-shadow: 0 0 12px rgba(25, 209, 255, 0.18);
}

.hub-card-link::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  width: 28px;
  height: 28px;
  border-top: 1px solid rgba(25, 209, 255, 0.22);
  border-left: 1px solid rgba(25, 209, 255, 0.22);
  pointer-events: none;
}

.hub-card-body {
  min-width: 0;
}

.hub-card-actions {
  grid-column: 2;
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.hub-card-action {
  position: relative;
  z-index: 4;
  border: 1px solid var(--hub-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--hub-text);
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
}

.hub-card-action--danger {
  border-color: rgba(255, 120, 120, 0.32);
  color: #ffb0b0;
}

.hub-card-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

.hub-card-source {
  font-weight: 700;
}

.hub-card--youtube .hub-card-source {
  color: var(--hub-youtube);
}

.hub-card--wordpress .hub-card-source {
  color: var(--hub-wordpress);
}

.hub-card--youtube-live .hub-card-source {
  color: #ff8f8f;
}

.hub-card h4 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  position: relative;
  padding-left: 14px;
}

.hub-card h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.38em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, rgba(25, 209, 255, 0.92), rgba(138, 196, 214, 0.5));
  box-shadow: 0 0 10px rgba(25, 209, 255, 0.18);
}

.hub-card p {
  margin: 0;
  line-height: 1.7;
}

.hub-card-media {
  margin-top: 10px;
}

.hub-card-gallery {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.hub-card-gallery--count-1 {
  grid-template-columns: minmax(0, 1fr);
}

.hub-card-gallery-item {
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  border-radius: 16px;
}

.hub-card-gallery-item--single {
  display: block;
  width: 100%;
}

.hub-card-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hub-card-gallery-more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 7, 11, 0.56);
  color: #f3f8fc;
  font-size: 24px;
  font-weight: 800;
}

.hub-live-embed {
  margin-top: 10px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(25, 209, 255, 0.16);
  background: #05080d;
}

.hub-live-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

@media (min-width: 641px) {
  .hub-card--youtube-live .hub-card-media {
    display: none;
  }
}

.hub-external-card {
  grid-column: 2;
  margin-top: 12px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.hub-external-card__link {
  display: grid;
  gap: 10px;
  padding: 12px;
  color: inherit;
  text-decoration: none;
}

.hub-external-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--hub-muted);
  font-size: 12px;
}

.hub-external-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 125, 82, 0.18);
  color: #ffb397;
  font-weight: 700;
}

.hub-external-card__title {
  font-size: 14px;
  line-height: 1.5;
}

.hub-external-card__image {
  display: block;
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 2.5 / 1;
  object-fit: cover;
  object-position: 50% 35%;
}

.hub-card-image {
  display: block;
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 2.5 / 1;
  object-fit: cover;
  object-position: 50% 35%;
}

.hub-card-shell--ad .hub-card-link::before {
  top: 28px;
}

.hub-card-promo,
.hub-article-ad {
  overflow: hidden;
  border-radius: 18px;
}

.hub-card-promo .adsbygoogle,
.hub-article-ad .adsbygoogle {
  display: block;
  max-width: 100%;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
}

.hub-article-ad {
  margin: 22px 0;
}

.hub-article-ad:empty {
  display: none;
}

.hub-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.hub-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 12, 0.78);
}

.hub-modal-dialog {
  position: relative;
  width: min(920px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #0f141b;
  border: 1px solid var(--hub-border);
  border-radius: 24px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.4);
  contain: layout paint;
}

.hub-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  margin: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(7, 10, 14, 0.72);
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  z-index: 4;
}

.hub-modal-close:hover {
  background: rgba(7, 10, 14, 0.88);
}

.hub-modal-head {
  flex: 0 0 auto;
  padding: 26px 28px 10px;
}

.hub-modal-source {
  margin: 0 0 6px;
  color: var(--hub-accent);
  font-size: 13px;
  font-weight: 700;
}

.hub-modal-head h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  line-height: 1.3;
}

.hub-modal-meta {
  margin: 10px 0 0;
  color: var(--hub-muted);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hub-modal-meta a {
  color: #8ed0ff;
  text-decoration: none;
}

.hub-modal-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hub-modal-compact {
  min-width: 42px;
  padding: 8px 10px;
  font-size: 12px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hub-modal-footer {
  flex: 0 0 auto;
  padding: 0 28px 24px;
  display: none;
}

.hub-modal-actions--footer {
  margin-top: 0;
}

.hub-modal-actions [data-role='modal-close'] {
  display: none;
}

.hub-modal-image {
  display: block;
  width: calc(100% - 56px);
  margin: 6px auto 0;
  border-radius: 20px;
}

.hub-modal-video {
  flex: 0 0 auto;
  width: calc(100% - 56px);
  margin: 6px auto 0;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
}

.hub-modal-video iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.hub-modal-content {
  flex: 1 1 auto;
  min-height: 0;
  padding: 22px 28px 34px;
  color: var(--hub-text);
  line-height: 1.9;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.hub-modal-content img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  cursor: zoom-in;
}

.hub-modal-content iframe,
.hub-modal-content video,
.hub-modal-content embed,
.hub-modal-content object {
  max-width: 100%;
}

.hub-modal-content iframe {
  width: 100%;
  border: 0;
  aspect-ratio: 16 / 9;
  height: auto;
}

.hub-bilibili-embed {
  margin: 18px 0;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
}

.hub-bilibili-embed iframe {
  display: block;
  width: 100%;
  border: 0;
  aspect-ratio: 16 / 9;
}

.hub-modal-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.hub-modal-content * {
  max-width: 100%;
}

.hub-modal-content a {
  color: #8ed0ff;
}

.hub-modal-content h2,
.hub-modal-content h3,
.hub-modal-content h4 {
  color: #f4fbff;
  line-height: 1.5;
}

.hub-modal-content h2 {
  margin: 2.2em 0 0.9em;
  padding: 0.7em 0.9em;
  border: 1px solid rgba(25, 209, 255, 0.42);
  border-radius: 14px;
  background: rgba(25, 209, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.hub-modal-content h3 {
  margin: 1.8em 0 0.8em;
  padding-bottom: 0.45em;
  border-bottom: 2px solid rgba(25, 209, 255, 0.58);
}

.hub-modal-content h4 {
  margin: 1.5em 0 0.7em;
  padding-bottom: 0.35em;
  border-bottom: 1px dashed rgba(25, 209, 255, 0.52);
}

.hub-youtube-modal-extras {
  display: grid;
  gap: 18px;
  margin-top: 10px;
}

.hub-youtube-channel-card,
.hub-youtube-modal-section {
  padding: 18px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(111, 230, 255, 0.035), transparent 22%, transparent 72%, rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hub-youtube-channel-card {
  display: grid;
  gap: 14px;
  padding: 0;
  overflow: hidden;
}

.hub-youtube-channel-card__banner {
  height: 132px;
  width: 100%;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 98, 98, 0.18), rgba(111, 230, 255, 0.14));
}

.hub-youtube-channel-card__banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-youtube-channel-card__head,
.hub-youtube-channel-card__actions {
  padding-left: 18px;
  padding-right: 18px;
}

.hub-youtube-channel-card__head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 2px;
}

.hub-youtube-channel-card__avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 98, 98, 0.3), rgba(217, 179, 122, 0.16)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.hub-youtube-channel-card__avatar .fa-brands {
  font-size: 28px;
  color: #ff6c6c;
}

.hub-youtube-channel-card__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-youtube-channel-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(217, 179, 122, 0.12);
  color: var(--hub-youtube);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub-youtube-channel-card__title,
.hub-youtube-modal-head h4 {
  display: block;
  margin-top: 8px;
  color: #f3fbff;
  font-size: 18px;
  line-height: 1.3;
}

.hub-youtube-channel-card__text,
.hub-youtube-modal-head p,
.hub-youtube-related-card__meta {
  margin: 6px 0 0;
  color: var(--hub-muted);
  font-size: 13px;
}

.hub-youtube-channel-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 18px;
}

.hub-youtube-channel-card__button {
  text-decoration: none;
  min-width: 0;
  white-space: nowrap;
}

.hub-youtube-channel-card__button--subscribe {
  background: linear-gradient(135deg, #ff5e5e, #ff7d57);
  color: #fff8f4;
  box-shadow: 0 10px 24px rgba(255, 94, 94, 0.22);
}

.hub-youtube-related-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.hub-youtube-related-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.hub-youtube-related-card__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
}

.hub-youtube-related-card__body {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.hub-youtube-related-card__title {
  color: #eef8ff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.hub-youtube-related-card:hover {
  border-color: rgba(25, 209, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
}

.hub-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.hub-image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 11, 0.86);
}

.hub-image-lightbox__dialog {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1280px);
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hub-image-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
}

.hub-image-lightbox__close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(7, 10, 14, 0.82);
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.hub-unread {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--hub-accent-soft);
  color: #8ed0ff;
  font-size: 12px;
  font-weight: 700;
}

.hub-empty {
  padding: 28px 18px;
}

.hub-feed-sentinel {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 56px;
  color: var(--hub-muted);
  font-size: 14px;
}

.hidden {
  display: none !important;
}

html {
  scrollbar-width: thin;
  scrollbar-color: #19d1ff rgba(255, 255, 255, 0.06);
}

body::-webkit-scrollbar,
.hub-modal-content::-webkit-scrollbar,
.hub-modal-dialog::-webkit-scrollbar,
.hub-filters::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

body::-webkit-scrollbar-track,
.hub-modal-content::-webkit-scrollbar-track,
.hub-modal-dialog::-webkit-scrollbar-track,
.hub-filters::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

body::-webkit-scrollbar-thumb,
.hub-modal-content::-webkit-scrollbar-thumb,
.hub-modal-dialog::-webkit-scrollbar-thumb,
.hub-filters::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #19d1ff, #0f91c7);
  border-radius: 999px;
  border: 2px solid rgba(8, 12, 18, 0.78);
}

body::-webkit-scrollbar-thumb:hover,
.hub-modal-content::-webkit-scrollbar-thumb:hover,
.hub-modal-dialog::-webkit-scrollbar-thumb:hover,
.hub-filters::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #47dcff, #19d1ff);
}

@media (max-width: 960px) {
  .hub-shell {
    grid-template-columns: 1fr;
  }

  .hub-feed-header {
    flex-direction: column;
    align-items: stretch;
  }

  .hub-feed-actions {
    justify-content: flex-start;
  }

  .hub-status--inline {
    margin-left: 0;
    white-space: normal;
  }

  .hub-post-button {
    margin-left: 0;
  }

  .hub-modal-dialog {
    width: min(100% - 12px, 920px);
    max-height: calc(100vh - 12px);
  }

  .hub-modal-head,
  .hub-modal-content {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hub-modal-image {
    width: calc(100% - 36px);
  }

  .hub-modal-video {
    width: calc(100% - 36px);
  }
}

@media (max-width: 640px) {
  html,
  body.hub-timeline-fullscreen,
  .hub-fullscreen-root {
    overflow-x: hidden;
  }

  .hub-timeline-app,
  .hub-fullscreen-intro,
  .hub-fullscreen-intro__inner,
  .hub-fullscreen-app,
  .hub-shell,
  .hub-main,
  .hub-topbar,
  .hub-composer,
  .hub-feed-header,
  .hub-warning,
  .hub-feed,
  .hub-card,
  .hub-card-shell,
  .hub-card-link,
  .hub-card-body,
  .hub-card-media,
  .hub-card-gallery,
  .hub-external-card,
  .hub-modal-content,
  .hub-modal-content > * {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
  }

  .hub-feed::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 35px;
    width: 2px;
    background: #19d1ff;
    border-radius: 999px;
    pointer-events: none;
  }

  .hub-fullscreen-intro {
    padding: 14px 4px 6px;
  }

  .hub-fullscreen-intro__inner,
  .hub-fullscreen-app {
    width: calc(100% - 8px);
    max-width: calc(100% - 8px);
  }

  .hub-fullscreen-app {
    overflow-x: clip;
  }

  .hub-mobile-scroll-glow {
    position: fixed;
    left: 50%;
    bottom: 10px;
    z-index: 9998;
    width: calc(100vw - 32px);
    max-width: 80vw;
    height: 4px;
    border-radius: 999px;
    transform: translateX(-50%);
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(90deg, rgba(25, 209, 255, 0), rgba(25, 209, 255, 0.95) 18%, rgba(111, 230, 255, 1) 50%, rgba(25, 209, 255, 0.95) 82%, rgba(25, 209, 255, 0));
    box-shadow: 0 0 8px rgba(25, 209, 255, 0.3), 0 0 16px rgba(25, 209, 255, 0.18);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }

  .hub-mobile-scroll-glow::before {
    content: "";
    position: absolute;
    inset: -6px -14px;
    border-radius: 999px;
    background: radial-gradient(circle at center, rgba(25, 209, 255, 0.2), transparent 70%);
    opacity: 0.9;
  }

  .hub-mobile-scroll-glow.is-active {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
  }

  .hub-fullscreen-app::before {
    inset: -20px 0 auto;
  }

  .hub-topbar,
  .hub-composer,
  .hub-feed-header,
  .hub-warning,
  .hub-feed,
  .hub-empty {
    border-radius: 18px;
  }

  .hub-topbar,
  .hub-composer,
  .hub-feed-header,
  .hub-empty {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hub-topbar {
    gap: 16px;
  }

  .hub-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hub-stat {
    padding: 12px 14px;
  }

  .hub-composer-actions,
  .hub-feed-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .hub-feed-actions::-webkit-scrollbar,
  .hub-composer-actions::-webkit-scrollbar {
    display: none;
  }

  .hub-status--inline {
    width: auto;
    flex: 0 0 auto;
    font-size: 13px;
  }

  .hub-icon-action {
    flex: 0 0 auto;
    min-width: 56px;
    min-height: 50px;
    padding: 7px 8px;
  }

  .hub-filters {
    width: auto;
    flex: 0 0 auto;
    overflow-x: auto;
    padding-bottom: 0;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }

  .hub-filters::-webkit-scrollbar {
    display: none;
  }

  .hub-icon-filter {
    flex: 0 0 auto;
    min-width: 54px;
    min-height: 50px;
    padding: 7px 8px;
  }

  .hub-icon-action__label,
  .hub-icon-filter__label {
    font-size: 10px;
  }

  .hub-card-link {
    padding: 14px 15px;
    border-radius: 18px;
    width: 100%;
  }

  .hub-card-shell {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
    align-items: start;
    width: 100%;
  }

  .hub-card-rail::before {
    display: none;
  }

  .hub-card-link::before {
    top: 24px;
    left: -10px;
    width: 10px;
  }

  .hub-card-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border-width: 2px;
  }

  .hub-card-media {
    margin-top: 10px;
  }

  .hub-live-embed {
    display: none;
  }

  .hub-external-card {
    margin-top: 8px;
  }

  .hub-external-card__link {
    gap: 8px;
    padding: 10px;
  }

  .hub-external-card__image {
    border-radius: 10px;
  }

  .hub-pwa-panel,
  .hub-android-install {
    flex-direction: column;
    align-items: stretch;
  }

  .hub-pwa-panel__actions,
  .hub-android-install__actions {
    justify-content: stretch;
  }

  .hub-pwa-panel__actions .hub-secondary,
  .hub-android-install__actions .hub-secondary,
  .hub-android-install__actions .hub-primary {
    width: 100%;
  }

  .hub-card-image {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
  }

  .hub-card-promo,
  .hub-article-ad {
    overflow: visible;
    border-radius: 14px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .hub-card-promo--custom,
  .hub-article-ad {
    padding: 2px 0;
  }

  .hub-article-ad {
    margin: 12px 0 6px;
  }

  .hub-article-ad--article-bottom {
    margin-bottom: 0;
  }

  .hub-article-ad .adsbygoogle {
    margin-bottom: 0 !important;
  }

  .hub-modal-content {
    overflow-x: hidden;
  }

  .hub-card-meta {
    gap: 6px;
    font-size: 11px;
  }

  .hub-card p {
    font-size: 13px;
    line-height: 1.65;
  }

  .hub-card-actions {
    justify-content: flex-start;
  }

  .hub-card--wordpress .hub-card-shell {
    padding-bottom: 10px;
  }

  .hub-card h4 {
    font-size: 16px;
    line-height: 1.45;
  }

  .hub-modal-actions {
    gap: 8px;
  }

  .hub-modal-compact {
    min-width: 38px;
    padding: 7px 8px;
    font-size: 11px;
  }

  .hub-modal {
    padding: 0;
    align-items: stretch;
  }

  .hub-modal-dialog {
    width: 100%;
    max-width: 100%;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    contain: layout paint;
    overflow-x: hidden;
  }

  .hub-modal-head,
  .hub-modal-content {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hub-modal-head {
    padding-top: 18px;
    padding-bottom: 8px;
  }

  .hub-modal-head h3 {
    font-size: 0.92rem;
    line-height: 1.4;
  }

  .hub-modal-meta {
    margin-top: 6px;
    gap: 7px;
    font-size: 10px;
  }

  .hub-modal-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .hub-youtube-related-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .hub-youtube-channel-card__head {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }

  .hub-youtube-channel-card__actions {
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 14px;
    scrollbar-width: none;
  }

  .hub-youtube-channel-card__actions::-webkit-scrollbar {
    display: none;
  }

  .hub-youtube-channel-card__button {
    flex: 0 0 auto;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 12px;
  }

  .hub-youtube-channel-card__banner {
    height: 108px;
  }

  .hub-youtube-channel-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .hub-youtube-channel-card__avatar .fa-brands {
    font-size: 24px;
  }

  .hub-modal-image,
  .hub-modal-video {
    width: calc(100% - 36px);
  }

  .hub-modal-close {
    top: 14px;
    right: 14px;
  }
}
.hub-single-local-thumbnail {
  margin: 0 0 1.25rem;
}

.hub-single-local-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.hub-single-local-gallery,
.hub-local-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 1.25rem;
}

.hub-single-local-gallery--count-1,
.hub-local-gallery--count-1 {
  grid-template-columns: minmax(0, 1fr);
}

.hub-single-local-gallery__item,
.hub-local-gallery__item {
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  border-radius: 16px;
}

.hub-single-local-gallery__item img,
.hub-local-gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hub-local-gallery__more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 7, 11, 0.56);
  color: #f3f8fc;
  font-size: 24px;
  font-weight: 800;
}
