:root {
  --mf-bg: #f0f4f7;
  --mf-card: #ffffff;
  --mf-text: #111111;
  --mf-muted: #7f8790;
  --mf-blue: #11a9f5;
  --mf-blue-dark: #0d8ddb;
  --mf-border: #dfe5ea;
  --mf-shadow: 0 4px 18px rgba(18, 38, 63, 0.08);
  --mf-radius-card: 20px;
  --mf-radius-pill: 999px;
  --mf-sidebar-width: 300px;
  --mf-feed-width: 690px;
  --mf-gallery-radius: 10px;
  --mf-gallery-gap: 2px;
}

/* ---------- Base ---------- */
body {
  background: var(--mf-bg);
}

.mastodon-feed-wrapper-outer {
  background: #f0f4f7;
}

.mastodon-container {
  display: grid;
  grid-template-columns: var(--mf-sidebar-width) minmax(0, var(--mf-feed-width));
  gap: 28px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--mf-bg);
}

/* ---------- Sidebar ---------- */
.mastodon-sidebar {
  background: #fff !important;
  border: none !important;
  box-shadow: none !important;
  padding: 20px;
  margin: 0;
  position: sticky;
  top: 20px;
  height: 100vh;
  margin-top: 20px;
}

.sticky-filters-page {
  padding: 0;
  background: transparent;
  line-height: 1.45;
}

.entry-content .sticky-filters-section h2.mastodon-feed-title {
  font-size: 20px;
  margin-top: 0;
}

.mastodon-feed-wrapper .mastodon-header-bar h2.mastodon-title {
  font-size: 24px !important;
}

.sticky-filters-page .sticky-filters-container {
  max-width: none;
  margin: 0;
  background: transparent;
}

.sticky-filters-section {
  margin-bottom: 36px;
}

.sticky-filters-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.sticky-filters-heading svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: block;
}

.sticky-filters-section-title {
  margin: 0 !important;
  font-size: 20px !important;
  line-height: 1.1;
  font-weight: 800;
  color: var(--mf-text) !important;
}

.sticky-filters-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 34px;
}

.sticky-filters-item {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.35;
  color: var(--mf-text);
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.sticky-filters-item:hover {
  color: var(--mf-blue);
}

.sticky-filters-item--active {
  color: var(--mf-blue);
  font-weight: 700;
}

/* ---------- Search box ---------- */
.sticky-filters-hashtags-section {
  margin-top: 10px;
}

.sticky-filters-search-container {
  position: relative;
  margin-top: 12px;
}

.sticky-filters-search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: none;
  border-radius: var(--mf-radius-pill);
  background: #ffffff;
  font-size: 14px;
  color: #333;
  outline: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.sticky-filters-search-input::placeholder {
  color: #7d8790;
}

.sticky-filters-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: #7d8790;
  pointer-events: none;
}

.sticky-filters-search-icon svg {
  width: 100%;
  height: 100%;
}

/* ---------- Feed wrapper ---------- */
.mastodon-feed-wrapper {
  max-width: var(--mf-feed-width);
  width: 100%;
  background: var(--mf-bg);
  padding: 40px 10px 10px 10px;
}

.mastodon-feed-wrapper h2 {
  font-size: 30px !important;
  line-height: 1.02;
  font-weight: 800;
  color: var(--mf-text);
  margin: 0 0 18px;
}

/* ---------- Top toggle ---------- */
.mastodon-top-toggle {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 0;
  background: transparent;
}

.mastodon-top-toggle .toggle-btn {
  border: none;
  background: #ffffff;
  color: var(--mf-blue);
  border-radius: var(--mf-radius-pill);
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mastodon-top-toggle .toggle-btn:hover {
  transform: translateY(-1px);
}

.mastodon-top-toggle .toggle-btn.is-active {
  background: var(--mf-blue);
  color: #ffffff;
}

/* ---------- Feed list ---------- */
#mastodon-feed {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ---------- Cards ---------- */
.mastodon-post {
  display: block;
  width: 100%;
  margin: 0;
  border: none;
  border-radius: var(--mf-radius-card);
  background: var(--mf-card);
  box-shadow: var(--mf-shadow);
  padding: 0;
  overflow: hidden;
}

.mastodon-post--boats,
.mastodon-post--camps {
  background: var(--mf-card);
  border: none;
  box-shadow: var(--mf-shadow);
}

/* ---------- Card header ---------- */
.mastodon-card-header {
  padding: 18px 20px 0;
}

.mastodon-card-account {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mastodon-avatar {
  width: 40px;
  height: 40px;
  max-width: none;
  flex: 0 0 40px;
  border-radius: 999px !important;
  object-fit: cover;
  display: block;
  margin: 0;
}

.mastodon-card-account-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mastodon-card-account-name {
  font-size: 16px;
  font-weight: 800;
  color: #111;
  line-height: 1.15;
}

.mastodon-card-account-date {
  font-size: 13px;
  color: #8a8f98;
  line-height: 1.2;
}

/* ---------- Card body ---------- */
.mastodon-card-body {
  padding: 12px 20px 18px;
}

.mastodon-card-author {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8a8f98;
  font-size: 14px;
  margin-bottom: 10px;
}

.mastodon-card-author-icon {
  color: #8a8f98;
  font-size: 14px;
}

.mastodon-card-author-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.mastodon-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #111;
  line-height: 1.4;
  margin: 0 0 14px;
}

.mastodon-info-block {
  margin-bottom: 16px;
}

.mastodon-info-block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #111;
  margin-bottom: 4px;
}

.mastodon-info-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.mastodon-info-block-content {
  font-size: 15px;
  line-height: 1.62;
  color: #1f2937;
  padding-left: 28px;
}

.mastodon-info-block-content p {
  font-size: 15px;
  line-height: 1.62;
  color: #1f2937;
}

.mastodon-card-content,
.mastodon-post .content {
  color: #1f2937;
  font-size: 15px;
  line-height: 1.62;
  word-break: break-word;
}

.mastodon-card-content p,
.mastodon-post .content p {
  margin: 0 0 12px;
  font-size: 15px !important;
  line-height: 1.62;
}

.mastodon-card-content strong,
.mastodon-card-content b,
.mastodon-post .content strong,
.mastodon-post .content b {
  font-weight: 800;
  color: var(--mf-text);
}

/* ---------- Inline tags and links ---------- */
.mastodon-hashtag {
  color: var(--mf-blue);
  font-weight: 700;
  cursor: pointer;
}

.mastodon-hashtag:hover {
  text-decoration: underline;
}

.mastodon-inline-link {
  color: var(--mf-blue);
  text-decoration: none;
  word-break: break-word;
}

.mastodon-inline-link:hover {
  color: var(--mf-blue-dark);
  text-decoration: underline;
}

/* ---------- Card actions ---------- */
.mastodon-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  margin-top: 6px;
  display: none;
}

.mastodon-card-action {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  line-height: 1;
}

.mastodon-card-action svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* ---------- Media Grid ---------- */
.mastodon-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--mf-gallery-gap);
  margin-top: 16px;
  width: 100%;
  background: transparent;
}

.mastodon-media-cell {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: var(--mf-gallery-radius);
  background: #dfe8ef;
  min-height: 180px;
}

.mastodon-media-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: var(--mf-gallery-radius);
}

/* default fallback */
.mastodon-media-grid .mastodon-media-cell {
  grid-column: span 1;
}

.mastodon-media-cell .mastodon-media-alt {
  display: none;
  position: absolute;
  inset: 0;
  background: #000;
  border-radius: var(--mf-gallery-radius);
  align-items: flex-end;
  justify-content: flex-end;
  padding: 8px;
}

.mastodon-media-cell--error .mastodon-media-item {
  display: none;
}

.mastodon-media-cell--error .mastodon-media-alt {
  display: flex;
}

.mastodon-media-alt-label {
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #333;
  letter-spacing: 0.02em;
}

/* 1 image */
.mastodon-media-grid-1 .mastodon-media-cell {
  grid-column: 1 / -1;
  min-height: 420px;
}

/* 2 images */
.mastodon-media-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.mastodon-media-grid-2 .mastodon-media-cell {
  grid-column: span 1;
  min-height: 320px;
}

/* 3 images */
.mastodon-media-grid-3 .mastodon-media-cell:nth-child(1) {
  grid-column: 1 / -1;
  min-height: 360px;
}

.mastodon-media-grid-3 .mastodon-media-cell:nth-child(2) {
  grid-column: 1 / 2;
  min-height: 240px;
}

.mastodon-media-grid-3 .mastodon-media-cell:nth-child(3) {
  grid-column: 2 / 4;
  min-height: 240px;
}

/* 4 images */
.mastodon-media-grid-4 .mastodon-media-cell:nth-child(1) {
  grid-column: 1 / -1;
  min-height: 360px;
}

.mastodon-media-grid-4 .mastodon-media-cell:nth-child(2) {
  grid-column: 1 / 2;
  min-height: 220px;
}

.mastodon-media-grid-4 .mastodon-media-cell:nth-child(3) {
  grid-column: 2 / 4;
  min-height: 220px;
}

.mastodon-media-grid-4 .mastodon-media-cell:nth-child(4) {
  grid-column: 1 / -1;
  min-height: 300px;
}

/* 5 images */
.mastodon-media-grid-5 .mastodon-media-cell:nth-child(1) {
  grid-column: 1 / -1;
  min-height: 360px;
}

.mastodon-media-grid-5 .mastodon-media-cell:nth-child(2) {
  grid-column: 1 / 2;
  min-height: 220px;
}

.mastodon-media-grid-5 .mastodon-media-cell:nth-child(3) {
  grid-column: 2 / 4;
  min-height: 220px;
}

.mastodon-media-grid-5 .mastodon-media-cell:nth-child(4) {
  grid-column: 1 / 3;
  min-height: 240px;
}

.mastodon-media-grid-5 .mastodon-media-cell:nth-child(5) {
  grid-column: 3 / 4;
  min-height: 240px;
}

/* 6 images */
.mastodon-media-grid-6 .mastodon-media-cell:nth-child(1) {
  grid-column: 1 / -1;
  min-height: 360px;
}

.mastodon-media-grid-6 .mastodon-media-cell:nth-child(2) {
  grid-column: 1 / 2;
  min-height: 220px;
}

.mastodon-media-grid-6 .mastodon-media-cell:nth-child(3) {
  grid-column: 2 / 4;
  min-height: 220px;
}

.mastodon-media-grid-6 .mastodon-media-cell:nth-child(4) {
  grid-column: 1 / -1;
  min-height: 320px;
}

.mastodon-media-grid-6 .mastodon-media-cell:nth-child(5) {
  grid-column: 1 / 3;
  min-height: 220px;
}

.mastodon-media-grid-6 .mastodon-media-cell:nth-child(6) {
  grid-column: 3 / 4;
  min-height: 220px;
}

/* 7-10 images */
.mastodon-media-grid-7 .mastodon-media-cell,
.mastodon-media-grid-8 .mastodon-media-cell,
.mastodon-media-grid-9 .mastodon-media-cell,
.mastodon-media-grid-10 .mastodon-media-cell {
  min-height: 220px;
}

.mastodon-media-grid-7 .mastodon-media-cell:nth-child(1),
.mastodon-media-grid-8 .mastodon-media-cell:nth-child(1),
.mastodon-media-grid-9 .mastodon-media-cell:nth-child(1),
.mastodon-media-grid-10 .mastodon-media-cell:nth-child(1) {
  grid-column: 1 / -1;
  min-height: 360px;
}

.mastodon-media-grid-7 .mastodon-media-cell:nth-child(2),
.mastodon-media-grid-8 .mastodon-media-cell:nth-child(2),
.mastodon-media-grid-9 .mastodon-media-cell:nth-child(2),
.mastodon-media-grid-10 .mastodon-media-cell:nth-child(2) {
  grid-column: 1 / 2;
}

.mastodon-media-grid-7 .mastodon-media-cell:nth-child(3),
.mastodon-media-grid-8 .mastodon-media-cell:nth-child(3),
.mastodon-media-grid-9 .mastodon-media-cell:nth-child(3),
.mastodon-media-grid-10 .mastodon-media-cell:nth-child(3) {
  grid-column: 2 / 4;
}

.mastodon-media-grid-7 .mastodon-media-cell:nth-child(4),
.mastodon-media-grid-8 .mastodon-media-cell:nth-child(4),
.mastodon-media-grid-9 .mastodon-media-cell:nth-child(4),
.mastodon-media-grid-10 .mastodon-media-cell:nth-child(4) {
  grid-column: 1 / -1;
  min-height: 320px;
}

.mastodon-media-grid-7 .mastodon-media-cell:nth-child(5),
.mastodon-media-grid-8 .mastodon-media-cell:nth-child(5),
.mastodon-media-grid-9 .mastodon-media-cell:nth-child(5),
.mastodon-media-grid-10 .mastodon-media-cell:nth-child(5) {
  grid-column: 1 / 3;
}

.mastodon-media-grid-7 .mastodon-media-cell:nth-child(6),
.mastodon-media-grid-8 .mastodon-media-cell:nth-child(6),
.mastodon-media-grid-9 .mastodon-media-cell:nth-child(6),
.mastodon-media-grid-10 .mastodon-media-cell:nth-child(6) {
  grid-column: 3 / 4;
}

.mastodon-media-grid-7 .mastodon-media-cell:nth-child(n+7),
.mastodon-media-grid-8 .mastodon-media-cell:nth-child(n+7),
.mastodon-media-grid-9 .mastodon-media-cell:nth-child(n+7),
.mastodon-media-grid-10 .mastodon-media-cell:nth-child(n+7) {
  grid-column: span 1;
}

/* video */
.mastodon-media-grid video {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
  border-radius: var(--mf-gallery-radius);
  background: #000;
}

/* ---------- Generic media defaults ---------- */
.mastodon-post img:not(.mastodon-avatar):not(.mastodon-media-item),
.mastodon-post video,
.mastodon-post iframe {
  width: 100%;
  height: auto;
  display: block;
}

.mastodon-post iframe {
  border-radius: 12px;
  margin-top: 8px;
}

/* ---------- Infinite scroll ---------- */
.mastodon-infinite-trigger {
  height: 1px;
  width: 100%;
  pointer-events: none;
  visibility: hidden;
}

.mastodon-infinite-loading,
.mastodon-infinite-no-more {
  text-align: center;
  padding: 16px;
  font-size: 14px;
  color: #7b8794;
}

.mastodon-infinite-loading {
  color: var(--mf-blue);
}

/* ---------- Not found ---------- */
.mastodon-not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  color: #666;
}

.mastodon-not-found-icon {
  width: 48px;
  height: 48px;
}

.mastodon-not-found-text {
  margin: 0;
  font-size: 1rem;
}

/* ---------- Utility ---------- */
.gregory {
  background: #fff;
  border-color: #dd2a7b;
}

/* ---------- Mobile filter toggle ---------- */
.mastodon-mobile-filter-toggle {
  display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .mastodon-container {
    grid-template-columns: 1fr;
  }

  .mastodon-sidebar {
    display: none;
    background: rgb(247, 247, 247) !important;
    border-radius: 10px !important;
    border: 2px solid #eee !important;
    padding: 14px 16px;
    position: relative;
    top: 0;
    height: auto;
  }

  .mastodon-sidebar.is-open {
    display: block;
  }

  .mastodon-mobile-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 12px 0;
    background: transparent !important;
    border: 0;
    cursor: pointer;
    color: #111;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 12px;
  }

  .mastodon-mobile-filter-toggle svg {
    width: 20px;
    height: 20px;
    margin-right: 5px;
  }

  .mastodon-mobile-filter-toggle-text {
    display: inline-flex;
    align-items: center;
    gap: 2px;
  }

  .mastodon-mobile-filter-toggle-arrow {
    margin-left: 2px;
    display: inline-flex;
    align-items: center;
    transition: transform 200ms ease;
  }

  .mastodon-mobile-filter-toggle-arrow svg {
    width: 20px;
    height: 20px;
  }

  .mastodon-mobile-filter-toggle.is-open .mastodon-mobile-filter-toggle-arrow {
    transform: rotate(180deg);
  }

  .mastodon-feed-wrapper {
    max-width: 100%;
    width: 100%;
  }

  .mastodon-feed-wrapper h2 {
    font-size: 34px !important;
  }

  .sticky-filters-list {
    padding-left: 26px;
  }

  .sticky-filters-section-title {
    font-size: 22px !important;
  }
}

@media (max-width: 768px) {
  .mastodon-container {
    padding: 12px;
  }

  .mastodon-feed-wrapper h2 {
    font-size: 28px !important;
  }

  .mastodon-top-toggle {
    gap: 10px;
  }

  .mastodon-top-toggle .toggle-btn {
    padding: 10px 16px;
    font-size: 13px;
  }

  .mastodon-card-header {
    padding: 16px 16px 0;
  }

  .mastodon-card-body {
    padding: 10px 16px 16px;
  }

  .mastodon-media-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .mastodon-media-grid .mastodon-media-cell,
  .mastodon-media-grid-1 .mastodon-media-cell,
  .mastodon-media-grid-2 .mastodon-media-cell,
  .mastodon-media-grid-3 .mastodon-media-cell,
  .mastodon-media-grid-4 .mastodon-media-cell,
  .mastodon-media-grid-5 .mastodon-media-cell,
  .mastodon-media-grid-6 .mastodon-media-cell,
  .mastodon-media-grid-7 .mastodon-media-cell,
  .mastodon-media-grid-8 .mastodon-media-cell,
  .mastodon-media-grid-9 .mastodon-media-cell,
  .mastodon-media-grid-10 .mastodon-media-cell {
    grid-column: 1 / -1 !important;
    min-height: 220px !important;
  }

  .mastodon-media-grid-1 .mastodon-media-cell {
    min-height: 260px !important;
  }
}

/* ---------- HEADER BAR (title + search) ---------- */
.mastodon-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.mastodon-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: #111;
}

.mastodon-search-top {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  min-width: 280px;
  max-width: 360px;
  width: 100%;
  font-size: 14px;
}

.mastodon-search-top input {
  font-size: 14px;
}

.mastodon-search-icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  stroke: #666;
}

.mastodon-search-input {
  border: none !important;
  background: transparent;
  outline: none;
  font-size: 14px;
  width: 100%;
  color: #333;
  padding: 0 !important;
}

.mastodon-search-input::placeholder {
  color: #888;
}

.mastodon-card-content--trailing {
  margin-top: 10px;
}

.mastodon-card-content--trailing p {
  margin-bottom: 10px;
}

/* ============================================================
   FLOATING LIVE FEED WIDGET — Dark Blue Theme (#2000F0)
   ============================================================ */

.mastodon-live-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

/* Widget flotante solo en viewports anchos (coincide con 768px en mastodon-feed.js) */
@media (max-width: 768px) {
  .mastodon-live-widget {
    display: none !important;
  }
}

.mastodon-live-widget__bubble,
.mastodon-live-widget__reviews-btn,
.mastodon-live-widget__panel {
  pointer-events: auto;
}

.mastodon-live-widget:not(.is-open) .mastodon-live-widget__status,
.mastodon-live-widget:not(.is-open) .mastodon-live-widget__skeleton,
.mastodon-live-widget:not(.is-open) .mlw-slider-wrapper,
.mastodon-live-widget:not(.is-open) .mlw-slider-controls,
.mastodon-live-widget:not(.is-open) .mastodon-live-widget__cta {
  display: none !important;
}

/* ---------- Buttons row ---------- */
.mastodon-live-widget__buttons-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  pointer-events: auto;
  margin:5px;
}

/* ---------- Life Onboard bubble ---------- */
.mastodon-live-widget__bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: #00b7f0;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(32, 0, 240, 0.45);
  transition: background 0.2s ease;
  text-decoration: none;
}

.mastodon-live-widget__bubble:hover {
  background: #00b7f0;
}

/* ---------- Nautilus TV button ---------- */
.mastodon-live-widget__tv-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 10px 14px;
  background: #0d0d1a;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(32, 0, 240, 0.45);
  transition: background 0.2s ease;
  white-space: nowrap;
}

.mastodon-live-widget__tv-btn:hover {
  background: #cc0000;
  color: #fff;
  text-decoration: none;
}

.mastodon-live-widget__tv-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: currentColor;
}

/* ---------- Guest reviews (ratings) ---------- */
.mastodon-live-widget__reviews-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 10px 14px;
  background: #0d0d1a;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(32, 0, 240, 0.45);
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.mastodon-live-widget__reviews-btn:hover {
  background: #2a1f4a;
  color: #ffd54f !important;
  text-decoration: none;
}

.mastodon-live-widget__reviews-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: #ffd54f;
}

.mastodon-live-widget__reviews-btn:hover .mastodon-live-widget__reviews-icon {
  fill: #ffeb3b;
}

/* ---------- Live dot ---------- */
.mastodon-live-widget__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4f5e;
  box-shadow: 0 0 0 0 rgba(255, 79, 94, 0.45);
  animation: mastodon-live-dot-pulse 1.8s infinite;
}

/* ---------- Panel ---------- */
.mastodon-live-widget__panel {
  width: min(401px, calc(100vw - 24px));
  max-height: 290px;
  background: rgba(1, 1, 1, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ---------- Panel header ---------- */
.mastodon-live-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
 
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mastodon-live-widget__header-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.mastodon-live-widget__close {
  border: 0;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.6);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.mastodon-live-widget__close:hover {
  color: #ffffff;
}

/* ---------- Status ---------- */
.mastodon-live-widget__status {
  padding: 8px 14px 0;
  font-size: 12px;
}

.mastodon-live-widget__status.is-muted {
  color: rgba(255, 255, 255, 0.45);
}

.mastodon-live-widget__status.is-error {
  color: #ff6b6b;
}

/* ---------- List ---------- */
.mastodon-live-widget__list {
  overflow: auto;
  padding: 8px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---------- Individual items ---------- */
.mastodon-live-widget__item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px;
}

.mastodon-live-widget__item-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mastodon-live-widget__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(32, 0, 240, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mastodon-live-widget__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mastodon-live-widget__avatar-placeholder {
  color: #a89fff;
  font-size: 13px;
  font-weight: 700;
}

.mastodon-live-widget__meta {
  min-width: 0;
}

.mastodon-live-widget__name {
  font-size: 13px;
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mastodon-live-widget__time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.mastodon-live-widget__text {
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

/* ---------- View post link ---------- */
.mastodon-live-widget__post-link {
  display: inline-flex;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: white !important;
  text-decoration: none;
}

.mastodon-live-widget__post-link:hover {
  color: #a89fff;
}

/* ---------- CTA ---------- */
.mastodon-live-widget__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-top: none;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.mastodon-live-widget__cta:hover {
  background: #0d0d1a;
  color: #ffffff !important;
  text-decoration: none;
}

/* ---------- Media grid inside widget ---------- */
.mastodon-live-widget__item .mastodon-media-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

/* ---------- Skeleton ---------- */
.mastodon-live-widget__skeleton {
  display: none;
  padding: 10px 14px;
  flex-direction: column;
  gap: 14px;
}

.mastodon-live-widget__skeleton.is-visible {
  display: flex;
}

.mlw-sk-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-bottom: 14px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
}

.mlw-sk-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mlw-sk-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mlw-sk {
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  animation: mlw-pulse 1.4s ease-in-out infinite;
}

.mlw-sk-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mlw-sk-name {
  height: 11px;
  width: 90px;
  margin-bottom: 5px;
}

.mlw-sk-time {
  height: 10px;
  width: 60px;
}

.mlw-sk-line {
  height: 10px;
}

/* ---------- Animations ---------- */
@keyframes mastodon-live-dot-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 79, 94, 0.45);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 79, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 79, 94, 0);
  }
}

@keyframes mlw-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ---------- Responsive widget ---------- */
@media (max-width: 768px) {
  .mastodon-live-widget {
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(82px + env(safe-area-inset-bottom));
    left: auto;
  }

  .mastodon-live-widget__panel {
    width: min(360px, calc(100vw - 24px));
    max-height: 60vh;
  }
}

@media (max-width: 450px) {
  .mastodon-live-widget {
    right: 8px;
    left: auto;
    max-width: calc(100vw - 8px);
    bottom: calc(108px + env(safe-area-inset-bottom));
  }

  .mastodon-live-widget__bubble {
    max-width: calc(100vw - 16px);
    padding: 8px 10px;
    font-size: 11px;
  }

  .mastodon-live-widget__label {
    max-width: calc(100vw - 92px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .mastodon-live-widget__tv-btn,
  .mastodon-live-widget__reviews-btn {
    padding: 8px 10px;
    font-size: 11px;
  }

  .mastodon-live-widget__tv-btn svg,
  .mastodon-live-widget__reviews-icon {
    width: 14px;
    height: 14px;
  }

  .mastodon-live-widget__buttons-row {
    gap: 7px;
  }

  .mastodon-live-widget__panel {
    width: calc(100vw - 16px);
    max-width: 340px;
    max-height: 58vh;
  }
}

/* ---------- Misc ---------- */
.mastodon-sidebar.is-open,
.mastodon-mobile-filter-toggle.is-open {
  height: auto;
}

.mastodon-feed-wrapper-outer h2 {
  font-weight: 500 !important;
}
.mastodon-live-widget button.mastodon-live-widget__close {
  background: none !important;
}

.mlw-slider-wrapper { position: relative; overflow: hidden; }
.mastodon-live-widget__list { display: flex; transition: transform 0.4s ease; flex-direction: row;
  width: auto;
  overflow: visible;}
.mastodon-live-widget__item { min-width: 100%; box-sizing: border-box; padding-bottom: 0;}
.mlw-slider-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 6px 0; }
.mlw-slider-btn { background: #f5f5f5; border: 1px solid #ddd; border-radius: 6px; padding: 6px 14px; cursor: pointer; }
.mlw-slider-dots { display: flex; gap: 6px; }
.mlw-dot { width: 7px; height: 7px; padding:0; border-radius: 50%; background: #ccc; border: none; cursor: pointer;  background-color: #000 !important;
  box-shadow: 0px 0px 1px #fff;}
 button:not(.toggle).mlw-dot{ background-color: #000 !important};
.mlw-dot.active { background: #555; }
.mastodon-live-widget__arrow {
    transition: transform 0.3s ease;
}

.mastodon-live-widget.is-open .mastodon-live-widget__arrow {
    transform: rotate(180deg);
}

.mastodon-live-widget__item {
    width: min(380px, calc(100vw - 24px));
    flex-shrink: 0;
}