:root {
  --bg: #fff;
  --fg: #111;
  --muted: #555;
  --faint: #888;
  --link: #111;
  --accent: #2f41bf;
  --radius: 999px;
  --btn-radius: 999px;
  --content-max: 960px;
  --img-radius: 12px;
  --font: "Cabin", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-soft: 0 2px 8px rgba(0,0,0,0.06);
  --shadow: 0 10px 22px rgba(0,0,0,0.08);
  --shadow-strong: 0 14px 30px rgba(0,0,0,0.12);
  --focus-ring: 0 0 0 2px rgba(17, 17, 17, 0.14);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

html {
  font-family: var(--font);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: inherit;
  font-size: 17px;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.Icon {
  display: inline-block;
  width: 1em;
  text-align: center;
  flex-shrink: 0;
}

.Btn,
.TopBar__post,
.Sheet__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.Sheet__close {
  font-size: 18px;
}

.Sheet__close .Icon {
  width: auto;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover { color: var(--muted); }

img { max-width: 100%; display: block; }

.TopBar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.TopBar__inner {
  max-width: none;
  margin: 0;
  padding: 16px 48px 16px 80px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.TopBar__left {
  flex: 1;
}

.TopBar__right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.TopBar__stats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--faint);
  text-decoration: none;
  padding: 10px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.045);
  height: 36px;
}

.TopBar__stats:hover {
  color: var(--fg);
  background: rgba(0,0,0,.075);
}

.TopBar__stats .Icon {
  opacity: 0.75;
}

.Brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-decoration: none;
  color: var(--fg);
}

.Brand__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.Brand:hover {
  color: var(--fg);
  text-decoration: none;
}

.Brand__name {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  transition: opacity 0.14s ease, transform 0.14s ease, max-width 0.14s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 520px;
}

.Brand__post {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transform: translateY(-1px);
  transition: opacity 0.14s ease, transform 0.14s ease, max-width 0.14s ease;
  pointer-events: none;
}

.Brand__sep {
  opacity: 0.45;
}

.Brand__postTitle {
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 520px;
}

.TopBar-scrolled .Brand__name {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transform: translateY(1px);
}

body[data-page="post"].TopBar-scrolled .Brand__post {
  opacity: 1;
  max-width: 740px;
  transform: translateY(0);
  pointer-events: none;
}

.TopBar__post {
  flex-shrink: 0;
  min-height: 32px;
  padding-block: 12px;
}

.Shell {
  max-width: none;
  margin: 0 auto;
  padding: 72px 20px 64px;
}

.MaintenanceBanner {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  border-radius: var(--img-radius);
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.2);
}

.MaintenanceBanner__content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.MaintenanceBanner__icon {
  font-size: 18px;
  flex-shrink: 0;
}

.MaintenanceBanner__text {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.MaintenanceBanner__close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.MaintenanceBanner__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.Welcome {
  margin: 0 0 20px;
  padding: 16px 20px;
  background: #f3f4f6;
  border-radius: var(--img-radius);
  display: flex;
  align-items: center;
  gap: 12px;
}

.Welcome__text {
  min-width: 0;
}

.Welcome__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.Welcome__desc {
  margin-top: 6px;
  font-size: 13px;
  color: var(--faint);
  line-height: 1.25;
}

.Welcome__close {
  margin-left: auto;
  border: none;
  background: transparent;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.Welcome__close:hover {
  background: rgba(0,0,0,.05);
  color: var(--fg);
}

.Welcome__actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.Welcome__install {
  display: none;
  font-size: 13px;
  padding: 8px 14px;
}

.Welcome__install--show {
  display: inline-flex;
}

.InfoBanner {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #eff6ff;
  border-left: 3px solid #3b82f6;
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1e40af;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.InfoBanner__text {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.InfoBanner__icon {
  font-size: 14px;
  flex-shrink: 0;
}

.InfoBanner__close {
  margin-left: auto;
  border: none;
  background: transparent;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #3b82f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  flex-shrink: 0;
}

.InfoBanner__close:hover {
  background: rgba(59,130,246,.12);
}

html[data-theme="dark"] .InfoBanner {
  background: #1a2332;
  border-left-color: #1e3a5f;
  color: #93c5fd;
}

html[data-theme="dark"] .InfoBanner__close {
  color: #93c5fd;
}

html[data-theme="dark"] .InfoBanner__close:hover {
  background: rgba(147,197,253,.12);
}

.Content {
  width: 100%;
}

.Rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0 32px;
  z-index: 100;
  border-right: 1px solid rgba(0,0,0,0.04);
  background: var(--bg);
  pointer-events: none;
}

.Rail > * {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
}

@media (max-height: 700px) {
  .Rail {
    padding: 16px 0 20px;
  }

  .Rail__brand {
    width: 40px;
    height: 40px;
    font-size: 18px;
    margin-bottom: 24px;
  }

  .RailPill {
    width: 40px;
    height: 40px;
  }
}

/* Floating Post Button - Desktop */
.FloatingPostBtn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  border: none;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 40;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}

.FloatingPostBtn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Hide on mobile */
@media (max-width: 900px) {
  .FloatingPostBtn {
    display: none;
  }
}

/* Collapse categories on short screens */
@media (max-height: 750px) {
  .Rail__pills {
    display: none;
  }
  
  .Rail__divider {
    display: none;
  }
}


.Rail__views {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
}

.Rail__divider {
  width: 32px;
  height: 1px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  margin: 20px auto;
  flex-shrink: 0;
}

.Rail__pills {
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.Rail__pills::-webkit-scrollbar {
  display: none;
}

/* TopActions - desktop top bar */
.TopActions {
  display: flex;
  position: fixed;
  top: 24px;
  right: 48px;
  align-items: center;
  gap: 12px;
  z-index: 30;
}

@media (max-width: 899px) {
  .TopActions {
    right: 14px;
  }
}

.TopActionBtn {
  height: 48px;
  min-width: 48px;
  border-radius: 999px;
  border: 0;
  padding: 0 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 20px;
  background: #f3f4f6;
  color: #111;
  transition: all .15s ease;
  text-decoration: none;
}

.TopActionBtn:hover {
  background: #e5e7eb;
  transform: scale(1.02);
}

.TopActionBtn--primary {
  background: #111;
  color: #fff;
  padding: 0 20px;
  font-weight: 600;
  font-size: 15px;
}

.TopActionBtn--primary:hover {
  background: #333;
}

.TopActionBtn__text {
  font-size: 15px;
  font-weight: 600;
}

.TopActionBtn--icon {
  width: 48px;
  padding: 0;
  border-radius: 50%;
}

.TopActionBtn__icon--dark { display: none; }
html[data-theme="dark"] .TopActionBtn__icon--light { display: none; }
html[data-theme="dark"] .TopActionBtn__icon--dark { display: inline; }

.MobileBar {
  display: none;
}

.MobileTabBar {
  display: none;
}

.MobileBar__themeIcon--dark {
  display: none;
}

html[data-theme="dark"] .MobileBar__themeIcon--light {
  display: none;
}

html[data-theme="dark"] .MobileBar__themeIcon--dark {
  display: inline;
}

@media (max-width: 899px) {
  .Rail,
  .TopActions,
  .StreamHeader {
    display: none;
  }

  .MobileBar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 72px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 0;
    box-sizing: border-box;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .MobileBar--hidden {
    transform: translateY(-100%);
  }

  .MobileBar__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--fg);
    text-decoration: none;
  }

  .MobileBar__logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #111;
    font-size: 19px;
    flex-shrink: 0;
  }

  .MobileBar__name {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
    overflow: hidden;
    white-space: nowrap;
    max-width: 55vw;
  }

  .MobileBar__name--fade {
    mask-image: linear-gradient(to right, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 70%, transparent 100%);
  }

  .MobileBar__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .MobileBar__btn {
    height: 42px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #f3f4f6;
    color: #111;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
  }

  .MobileBar__btn--icon {
    width: 42px;
    padding: 0;
    border-radius: 50%;
    font-size: 17px;
  }

  .MobileBar__btn--post {
    background: #111;
    color: #fff;
  }

  .MobileBar__btn--post.MobileBar__btn--icon {
    width: 42px;
    padding: 0;
    border-radius: 50%;
    font-size: 17px;
  }

  .MobileTabBar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(52px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 50;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .MobileTabBar--hidden {
    transform: translateY(100%);
  }

  .MobileTabBar__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 36px;
    color: var(--muted);
    text-decoration: none;
    transition: all 0.15s ease;
    border-radius: 10px;
  }

  .MobileTabBar__item i {
    font-size: 22px;
    transition: all 0.15s ease;
  }

  .MobileTabBar__item span,
  .MobileTabBar__item::after {
    display: none !important;
  }

  .MobileTabBar__item:hover {
    color: var(--fg);
  }

  .MobileTabBar__item--active {
    color: var(--fg);
  }

  .MobileTabBar__item--active i {
    transform: scale(1.1);
  }

  .Shell {
    padding: 72px 14px calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .Content {
    max-width: none;
    margin: 0;
  }

  .FeedItem {
    padding: 20px 0;
  }
}

.Rail__brand {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: #f3f4f6;
  color: #111;
  margin-bottom: 36px;
  cursor: pointer;
  transition: all .15s ease;
  border: none;
  flex-shrink: 0;
  padding: 0;
}

.Rail__brand:hover {
  background: #e5e7eb;
  transform: scale(1.05);
}

.RailPill {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: transparent;
  color: var(--fg);
  transition: all .15s ease;
  position: relative;
  margin: 4px 0;
}

.RailPill:hover {
  background: rgba(0,0,0,0.04);
  transform: translateX(4px) scale(1.05);
  z-index: 50;
}

.RailPill--active {
  background: rgba(0,0,0,0.06);
}

.RailPill--back {
  background: transparent;
  color: var(--fg);
}

.RailPill--clear {
  margin-top: 16px;
  background: rgba(0,0,0,0.04);
  color: var(--muted);
  font-size: 18px;
}

.RailPill--clear:hover {
  background: rgba(0,0,0,0.08);
  color: var(--fg);
}

.Field__label {
  font-size: 11px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.ComposerRow {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.Field__input {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: var(--btn-radius);
  background: #f3f4f6;
  color: var(--fg);
  font-size: 15px;
  outline: none;
}

.Field__input:focus {
  background: #fff;
  box-shadow: var(--focus-ring);
}

.Field__input::placeholder {
  color: #a3a3a3;
}

.Field__select {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: var(--btn-radius);
  background: #f3f4f6;
  color: var(--fg);
  font-size: 15px;
  outline: none;
  cursor: pointer;
}

.Field__select:focus {
  background: #fff;
  box-shadow: var(--focus-ring);
}

@media (min-width: 900px) {
  .ComposerRow {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .ComposerRow .Field__input {
    flex: 1 1 auto;
  }

  .ComposerRow .Btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

.Btn {
  border: none;
  border-radius: var(--btn-radius);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  background: var(--fg);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  line-height: 1.2;
  transition: opacity 0.15s ease, transform 0.15s ease;
  height: 36px;
}

.Btn:hover {
  opacity: 0.88;
  color: #fff;
}

.Btn:active {
  opacity: 0.75;
  transform: scale(0.98);
}

.Btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.Btn--ghost {
  background: #fff;
  color: var(--fg);
  box-shadow: inset 0 0 0 1.5px var(--fg);
}

.Btn--ghost:hover {
  color: var(--fg);
  background: #f5f5f5;
}

.Btn--loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.Btn--loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.Btn--ghost.Btn--loading::after {
  border: 2px solid rgba(17,17,17,.15);
  border-top-color: var(--fg);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.Skeleton {
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.Skeleton--title {
  height: 22px;
  width: 75%;
  max-width: 480px;
}

.Skeleton--text {
  height: 15px;
  width: 90%;
  max-width: 640px;
}

.Skeleton--textShort {
  height: 15px;
  width: 55%;
  max-width: 320px;
}

.Skeleton--meta {
  height: 12px;
  width: 140px;
}

.Skeleton--img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--img-radius);
}

.Skeleton--stat {
  height: 32px;
  width: 80px;
  border-radius: 6px;
}

.FeedItem--skeleton .FeedItem__row {
  gap: 12px;
}

.FeedItem--skeleton .Skeleton + .Skeleton {
  margin-top: 10px;
}

.StatCard__value--loading {
  color: transparent;
  position: relative;
}

.StatCard__value--loading::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 24px;
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 4px;
}

.Chart--loading .Spark {
  opacity: 0.25;
  filter: grayscale(1);
  animation: shimmer 1.4s ease-in-out infinite;
}

.Notice {
  margin-top: 12px;
  padding: 12px 14px;
  border: none;
  background: #f3f4f6;
  border-radius: var(--img-radius);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.Notice--hidden { display: none; }

.Preview {
  margin-top: 14px;
  overflow: hidden;
}

.Preview--hidden { display: none; }

.Preview .Card {
  flex-direction: row;
  gap: 14px;
  align-items: flex-start;
}

.Preview .Card__img {
  flex: 0 0 170px;
  width: 170px;
  aspect-ratio: 16 / 10;
}

.Preview .Card__title {
  font-size: 16px;
}

.Preview .Card__desc {
  margin-top: 6px;
  font-size: 13px;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.Preview .Card__meta {
  margin-top: 6px;
  font-size: 11px;
}

.PreviewCategory {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.PreviewCategory__link {
  color: var(--faint);
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}

.PreviewCategory__link:hover {
  color: var(--fg);
  text-decoration: underline;
}

.PreviewCategory__select {
  border: none;
  border-radius: 999px;
  background: #f4f4f5;
  color: var(--fg);
  font: inherit;
  font-size: 12px;
  padding: 7px 10px;
  outline: none;
}

@media (max-width: 560px) {
  .Preview .Card {
    flex-direction: column;
    gap: 12px;
  }

  .Preview .Card__img {
    width: 100%;
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
  }

  .FeedItem {
    padding: 20px 0;
  }
}

.Card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
}

.Card__img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f5f5f5;
  border-radius: var(--img-radius);
}

.Card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--img-radius);
}

.Card__body { min-width: 0; }

.Card__title {
  font-size: 20px;
  line-height: 1.25;
  margin: 0;
  font-weight: 700;
}

.Card__desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.Card__meta {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 12px;
}

.Chip {
  display: inline-flex;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: inherit;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.Chip:hover { color: var(--fg); }

.Chip--quiet {
  opacity: 1;
  text-decoration: none;
  color: var(--faint);
}

.Chip--accent {
  text-decoration: none;
  color: var(--faint);
  font-weight: 600;
}

.SortFilters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.SortChip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  background: transparent;
  font-size: 16px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.SortChip:hover {
  border-color: rgba(0, 0, 0, 0.3);
  color: var(--fg);
}

.SortChip--active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

@media (prefers-color-scheme: dark) {
  .SortChip {
    border-color: rgba(255, 255, 255, 0.15);
  }
  .SortChip:hover {
    border-color: rgba(255, 255, 255, 0.3);
  }
}

.Feed { margin-top: 0; }

.Feed__filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 0 20px;
}

.Feed__filters:empty {
  display: none;
  padding: 0;
  margin: 0;
}

.Feed__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 860px) {
  .Feed__list {
    max-width: var(--content-max);
    margin: 0 auto;
  }
}

.Feed__fade {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 30%, rgba(255,255,255,0.75) 65%, rgba(255,255,255,1) 100%);
  z-index: 10;
}

.FeedSentinel {
  height: 1px;
  visibility: hidden;
}

.FeedLoading {
  padding: 24px 0;
  text-align: center;
  color: var(--faint);
  font-size: 14px;
}

.FeedSpinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
}

.FeedSpinner__icon {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(0,0,0,0.08);
  border-top-color: var(--fg);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

html[data-theme="dark"] .FeedSpinner__icon {
  border-color: rgba(255,255,255,0.08);
  border-top-color: var(--fg);
}

.FeedItem {
  padding: 24px 0;
  border: none;
  background: transparent;
  border-radius: 0;
}

.FeedItem:first-child {
  padding-top: 0;
}

.FeedItem:hover {
  transform: none;
  background: transparent;
}

.FeedItem__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.FeedItem__link:hover { color: inherit; }

.FeedItem__link:hover .FeedItem__title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.FeedItem__row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}

.FeedItem__img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f5f5f5;
  border-radius: var(--img-radius);
}

@media (min-width: 860px) {
  .FeedItem__img {
    aspect-ratio: 16 / 9;
    max-height: 260px;
  }

  .FeedItem {
    padding: 24px 0;
  }

  .FeedItem__row {
    gap: 10px;
  }
}

.FeedItem__img:empty { display: none; }

.FeedItem__img img,
.FeedItem__img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--img-radius);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.FeedItem__img img[loading="eager"],
.FeedItem__img img:not([loading]),
.FeedItem__img img.loaded,
.FeedItem__img video {
  opacity: 1;
}

.FeedItem__img {
  position: relative;
}

.FeedItem__img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--img-radius);
  z-index: 0;
}

.FeedItem__img img.loaded + ::before,
.FeedItem__img:has(img.loaded)::before,
.FeedItem__img:has(video)::before {
  animation: none;
  opacity: 0;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.FeedItem__img video {
  display: block;
  background: #000;
}

.FeedItem__link:hover .FeedItem__img img,
.FeedItem__link:hover .FeedItem__img video {
  transform: scale(1.05);
}

.FeedItem__body {
  position: relative;
  min-width: 0;
}

.FeedItem__body--noBadge .FeedItem__title {
  padding-right: 0;
}

.FeedItem__title {
  margin: 0;
  padding-right: 2.5rem;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0;
}

.CategoryBadge {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  pointer-events: none;
  box-shadow: 0 0 0 2px var(--bg);
}

.CategoryBadge--media { background: #fee2e2; color: #be123c; }
.CategoryBadge--tech { background: #e0e7ff; color: #4338ca; }
.CategoryBadge--dev { background: #f3f4f6; color: #111827; }
.CategoryBadge--design { background: #fce7f3; color: #9d174d; }
.CategoryBadge--science { background: #d1fae5; color: #047857; }
.CategoryBadge--news { background: #fef3c7; color: #b45309; }
.CategoryBadge--finance { background: #ecfccb; color: #4d7c0f; }
.CategoryBadge--writing { background: #f5f5f4; color: #57534e; }
.CategoryBadge--sport { background: #dcfce7; color: #15803d; }
.CategoryBadge--music { background: #ede9fe; color: #7c3aed; }
.CategoryBadge--podcast { background: #fff7ed; color: #c2410c; }
.CategoryBadge--social { background: #dbeafe; color: #1d4ed8; }
.CategoryBadge--shopping { background: #ffedd5; color: #b45309; }
.CategoryBadge--reference { background: #e2e8f0; color: #1e3a8a; }
.CategoryBadge--web { background: #dbeafe; color: #0c4a6e; }

.RailPill--media { color: #be123c; }
.RailPill--tech { color: #4338ca; }
.RailPill--dev { color: #111827; }
.RailPill--design { color: #9d174d; }
.RailPill--science { color: #047857; }
.RailPill--news { color: #b45309; }
.RailPill--finance { color: #4d7c0f; }
.RailPill--writing { color: #57534e; }
.RailPill--sport { color: #15803d; }
.RailPill--music { color: #7c3aed; }
.RailPill--podcast { color: #c2410c; }
.RailPill--social { color: #1d4ed8; }
.RailPill--shopping { color: #b45309; }
.RailPill--reference { color: #1e3a8a; }
.RailPill--web { color: #0c4a6e; }

.CategoryBadge--inline {
  position: static;
  pointer-events: auto;
  box-shadow: none;
}

.FeedItem__desc {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.FeedItem__meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 12px;
}

.FeedItem__meta a { font-size: 12px; }

.FeedItem__meta .Meta--dot {
  opacity: 0.45;
}


.StreamHeader {
  padding: 0 0 16px;
}

.StreamHeader__kicker {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--faint);
  text-transform: uppercase;
  font-weight: 500;
}

.StreamHeader__name {
  margin: 8px 0 0;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}

.StreamHeader__meta {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}

.Article {
  margin-top: 0;
  border: none;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.Article__nav {
  padding: 0 0 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}

.Article__media { padding: 0 0 16px; }

.Article__media--thumb .Article__image,
.Article__media--thumb .Article__video {
  max-height: 220px;
  object-fit: cover;
}

.Article__image,
.Article__video {
  width: 100%;
  height: 340px;
  max-height: 340px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--img-radius);
}

.Article__video {
  display: block;
  background: #000;
}


.Article__header {
  padding: 0 0 20px;
  position: relative;
}

.Article__title {
  margin: 0;
  padding-right: 2.5rem;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0;
}

.Article__header .CategoryBadge {
  top: 0;
  right: 0;
}

.Article__excerpt {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.Article__excerpt p {
  margin: 0;
}

.Article__meta {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--faint);
  font-size: 13px;
}

.SourceIcon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: transparent;
  opacity: 0.85;
}

.SharePills {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.ShareBtn {
  display: none;
}

.Article__mobileShareBtn {
  display: none;
}

.SharePill {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #111;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}

.SharePill:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-strong);
}

.ShareSheet {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ShareSheet__item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8f8fa;
  color: var(--fg);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

.ShareSheet__item:hover {
  background: #f0f0f4;
}

.ShareSheet__item .Icon {
  width: 22px;
  text-align: center;
}

.Article__favicon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.Article__content {
  padding: 0 0 24px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg);
}

.Article__content p {
  margin: 0 0 1em;
}

.Article__content h2,
.Article__content h3,
.Article__content h4 {
  font-weight: 700;
  line-height: 1.25;
  margin: 1.4em 0 0.6em;
}

.Article__content h2 { font-size: 24px; }
.Article__content h3 { font-size: 20px; }
.Article__content h4 { font-size: 18px; }

.Article__content a {
  color: var(--fg);
}

.Article__content img {
  margin: 1.2em 0;
  width: 100%;
  height: auto;
  border-radius: var(--img-radius);
}

.Article__content blockquote {
  margin: 1.2em 0;
  padding-left: 16px;
  border-left: 3px solid #ddd;
  color: var(--muted);
}

.Article__content ul,
.Article__content ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

.Article__content--text p:last-child {
  margin-bottom: 0;
}

.Meta--dot { opacity: 0.5; }

.Article__actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.Related {
  padding: 24px 0 0;
}

.Related__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .Related__list {
    grid-template-columns: 1fr;
  }
}

.Related__header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.Related__label {
  color: var(--faint);
  font-size: 12px;
  font-weight: 500;
}

.Related__source {
  color: var(--fg);
  font-size: 12px;
  font-weight: 600;
}

.Related__link {
  display: block;
  text-decoration: none;
  padding: 16px;
  background: #fff;
  border-radius: var(--img-radius);
  transition: transform 0.2s ease;
}

.Related__link:hover {
  transform: translateY(-2px);
}

.Related__item-title {
  color: var(--fg);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}

.Related__item-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.NotFound {
  padding: 0 0 48px;
}

.NotFound__hero {
  overflow: hidden;
  border-radius: var(--img-radius);
  background:
    radial-gradient(circle at 18% 12%, rgba(47,65,191,.16), transparent 34%),
    linear-gradient(135deg, #fff, #f7f7fb);
  padding: 48px;
  box-shadow: var(--shadow);
}

.NotFound__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(47,65,191,.1);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}

.NotFound__title {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: clamp(36px, 7vw, 76px);
  line-height: .92;
  letter-spacing: -0.06em;
}

.NotFound__desc {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.NotFound__actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.NotFound__recommendations {
  margin-top: 26px;
}

.NotFound__recs-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
}

.NotFound__recs-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.NotFound__recs-item {
  display: block;
  padding: 16px;
  background: #fff;
  border-radius: var(--img-radius);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.NotFound__recs-item:hover {
  transform: translateY(-2px);
}

.NotFound__recs-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--fg);
}

.NotFound__recs-desc {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 620px) {
  .NotFound__recommendations {
    display: none;
  }
}

@media (max-width: 900px) {
  .NotFound__recs-list {
    grid-template-columns: 1fr;
  }
}

.NotFoundFeed {
  margin-top: 0;
}

@media (min-width: 900px) {
  .NotFoundFeed {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .NotFoundFeed .FeedItem {
    padding: 0;
    border: 0;
  }

  .NotFoundFeed .FeedItem + .FeedItem {
    border-top: 0;
  }

  .NotFoundFeed .FeedItem__link {
    height: 100%;
    padding: 14px 0;
    border-radius: var(--img-radius);
    background: #fff;
    box-shadow: var(--shadow-soft);
  }

  .NotFoundFeed .FeedItem__row {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
  }

  .NotFoundFeed .FeedItem__img {
    flex: 0 0 150px;
    width: 150px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
  }

.NotFoundFeed .FeedItem__img img {
  transition: transform 0.3s ease;
}

.NotFoundFeed .FeedItem__link:hover .FeedItem__img img {
  transform: scale(1.05);
}

  .NotFoundFeed .FeedItem__title {
    font-size: 18px;
  }

  .NotFoundFeed .FeedItem__desc {
    font-size: 14px;
  }
}

@media (max-width: 620px) {
  .NotFound__hero {
    padding: 30px 22px;
  }
}

@media (min-width: 900px) {
  .Related .FeedItem__row {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
  }

  .Related .FeedItem__img {
    flex: 0 0 180px;
    width: 180px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
  }

.Related .FeedItem__img img {
  transition: transform 0.3s ease;
}

.Related .FeedItem__link:hover .FeedItem__img img {
  transform: scale(1.05);
}
}

.Empty {
  padding: 32px 0;
  color: var(--muted);
  font-size: 15px;
  border: none;
  border-radius: 0;
  background: transparent;
}

.NavSelect {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  border-bottom: 1px solid #ddd;
  color: var(--fg);
  padding: 6px 0;
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.Sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  visibility: hidden;
}

.Sheet--open {
  pointer-events: auto;
  visibility: visible;
}

.Sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.Sheet--open .Sheet__backdrop {
  opacity: 1;
}

.Sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 92vh;
  background: var(--bg);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.Sheet--open .Sheet__panel {
  transform: translateY(0);
}

.Sheet__handle {
  width: 36px;
  height: 4px;
  background: rgba(0,0,0,0.12);
  border-radius: 2px;
  margin: 10px auto 0;
}

.Sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 8px;
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
}

.Sheet__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.Sheet__close {
  border: none;
  background: #f3f4f6;
  line-height: 1;
  cursor: pointer;
  color: var(--fg);
  border-radius: 50%;
  width: 36px;
  height: 36px;
}

.Sheet__close:hover {
  background: #e5e7eb;
  color: var(--fg);
}

.Sheet__body {
  padding: 8px 20px 28px;
  overflow-y: auto;
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
}

.Sheet__actions {
  margin-top: 20px;
}

body.Sheet-open {
  overflow: hidden;
}

.CookieBanner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 40;
}

.CookieBanner__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}

.CookieBanner__left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.CookieBanner__icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #f3f4f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  flex: 0 0 auto;
  font-size: 18px;
}

.CookieBanner__text {
  min-width: 0;
  flex: 1;
}

.CookieBanner__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--fg);
}

.CookieBanner__desc {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

.CookieBanner__actions {
  display: flex;
  gap: 12px;
  margin-left: auto;
}

.CookieBanner__btn {
  padding: 12px 20px;
  font-size: 15px;
}

.CookieBanner__desc a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 720px) {
  .CookieBanner__inner {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
  }

  .CookieBanner__left {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex: 1;
  }

  .CookieBanner__icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .CookieBanner__title {
    font-size: 13px;
  }

  .CookieBanner__desc {
    font-size: 11px;
    margin-top: 2px;
  }

  .CookieBanner__actions {
    flex-direction: column;
    gap: 6px;
  }

  .CookieBanner__btn {
    padding: 8px 12px;
    font-size: 12px;
    width: 100%;
  }

  .CookieBanner__btn--reject {
    display: none;
  }
}

.SheetTerms {
  margin-top: 14px;
  font-size: 12px;
  color: var(--faint);
  text-align: center;
  line-height: 1.4;
}

.SheetTerms a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.SiteFooter {
  border-top: 1px solid #eee;
  padding: 32px 24px 24px;
  margin-top: auto;
  text-align: center;
}

.SiteFooter__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  gap: 24px;
  justify-items: center;
}

.SiteFooter__content {
  max-width: 720px;
}

.SiteFooter__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.SiteFooter__title {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--fg);
}

.SiteFooter__text,
.SiteFooter__legal {
  margin: 0 auto 16px;
  max-width: 640px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.SiteFooter__legal a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.SiteFooter__legal a:hover {
  color: var(--fg);
}

.SiteFooter__social {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.SiteFooter__socialLinks {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.SiteFooter__socialLink {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f3f4f6;
  color: #111;
  transition: all 0.15s ease;
  text-decoration: none;
}

.SiteFooter__socialLink:hover {
  background: #e5e7eb;
  transform: scale(1.02);
}

html[data-theme="dark"] .SiteFooter__socialLink {
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg);
}

html[data-theme="dark"] .SiteFooter__socialLink:hover {
  background: rgba(255, 255, 255, 0.12);
}

.SiteFooter__copyright {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 560px) {
  .SiteFooter {
    padding: 28px 16px 20px;
  }

  .SiteFooter__content {
    max-width: 100%;
  }
}

.Stats {
  margin-top: 0;
}

.Stats__head {
  padding: 0 0 16px;
}

/* Dark mode */
html[data-theme="dark"] {
  --bg: #141414;
  --fg: #f5f5f5;
  --muted: #aaa;
  --faint: #888;
  --link: #f5f5f5;
  --accent: #818cf8;
}

html[data-theme="dark"] body { background: var(--bg); }

/* Remove all light borders and lines in dark mode */
html[data-theme="dark"] .Related,
html[data-theme="dark"] .SiteFooter { border: none; }

html[data-theme="dark"] .Article__content blockquote { border-left: none; }
html[data-theme="dark"] .SourceIcon { opacity: 0.9; }

/* Dark mode image shimmer */
html[data-theme="dark"] .FeedItem__img::before {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
}

/* Side rail - refined dark mode */
html[data-theme="dark"] .Rail { border-right-color: rgba(255,255,255,0.04); }
html[data-theme="dark"] .Rail__divider { background: rgba(255,255,255,0.04); }
html[data-theme="dark"] .Rail__brand { background: rgba(255,255,255,0.08); color: var(--fg); }
html[data-theme="dark"] .Rail__brand:hover { background: rgba(255,255,255,0.12); }
html[data-theme="dark"] .RailPill { background: transparent; color: var(--fg); }
html[data-theme="dark"] .RailPill:hover { background: rgba(255,255,255,.06); }
html[data-theme="dark"] .RailPill--active { background: rgba(255,255,255,.1); }
html[data-theme="dark"] .RailPill--clear { background: rgba(255,255,255,0.06); color: var(--muted); }
html[data-theme="dark"] .RailPill--clear:hover { background: rgba(255,255,255,0.1); color: var(--fg); }

html[data-theme="dark"] .RailPill--media { color: #f43f5e; }
html[data-theme="dark"] .RailPill--tech { color: #818cf8; }
html[data-theme="dark"] .RailPill--dev { color: #9ca3af; }
html[data-theme="dark"] .RailPill--design { color: #f472b6; }
html[data-theme="dark"] .RailPill--science { color: #34d399; }
html[data-theme="dark"] .RailPill--news { color: #fbbf24; }
html[data-theme="dark"] .RailPill--finance { color: #a3e635; }
html[data-theme="dark"] .RailPill--writing { color: #d6d3d1; }
html[data-theme="dark"] .RailPill--sport { color: #4ade80; }

/* Floating Post Button dark mode - white button */
html[data-theme="dark"] .FloatingPostBtn {
  background: #fff;
  color: #111;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* TopActions dark mode */
html[data-theme="dark"] .TopActionBtn { background: rgba(255,255,255,0.08); color: var(--fg); }
html[data-theme="dark"] .TopActionBtn:hover { background: rgba(255,255,255,0.12); }
html[data-theme="dark"] .TopActionBtn--primary { background: var(--fg); color: #111; }
html[data-theme="dark"] .TopActionBtn--primary:hover { background: rgba(255,255,255,0.85); }

/* MobileBar dark mode */
html[data-theme="dark"] .MobileBar { background: rgba(20, 20, 20, 0.85); }
html[data-theme="dark"] .MobileBar__logo,
html[data-theme="dark"] .MobileBar__btn--icon {
  background: rgba(255,255,255,0.08);
  color: var(--fg);
}
html[data-theme="dark"] .MobileBar__btn--post {
  background: var(--fg);
  color: #111;
}

/* MobileTabBar dark mode */
html[data-theme="dark"] .MobileTabBar {
  background: rgba(20, 20, 20, 0.85);
}
html[data-theme="dark"] .MobileTabBar__item {
  color: var(--muted);
}
html[data-theme="dark"] .MobileTabBar__item:hover {
  color: var(--fg);
}
html[data-theme="dark"] .MobileTabBar__item--active {
  color: var(--fg);
}


/* Buttons */
html[data-theme="dark"] .Btn { background: var(--fg); color: #111; }
html[data-theme="dark"] .Btn:hover { color: #111; }
html[data-theme="dark"] .Btn--ghost { background: rgba(255,255,255,.06); box-shadow: none; color: var(--fg); }
html[data-theme="dark"] .Btn--ghost:hover { background: rgba(255,255,255,.10); color: var(--fg); }

/* TopBar */
html[data-theme="dark"] .TopBar { background: rgba(20, 20, 20, 0.85); }
html[data-theme="dark"] .TopBar__stats { background: rgba(255,255,255,.06); }
html[data-theme="dark"] .TopBar__stats:hover { background: rgba(255,255,255,.10); }
html[data-theme="dark"] .Brand__icon { filter: invert(1); }

/* Surfaces */
html[data-theme="dark"] .Welcome,
html[data-theme="dark"] .Field__input,
html[data-theme="dark"] .Notice,
html[data-theme="dark"] .CookieBanner__icon,
html[data-theme="dark"] .Related__fallback,
html[data-theme="dark"] .Related__link { background: #1a1a1a; }

html[data-theme="dark"] .ShareSheet__item:hover,
html[data-theme="dark"] .PreviewCategory__select { background: #222; }

html[data-theme="dark"] .Field__input:focus { background: #1a1a1a; }
html[data-theme="dark"] .Field__select { background: #222; }
html[data-theme="dark"] .Field__select:focus { background: #1a1a1a; }
html[data-theme="dark"] .StatCard { background: #1a1a1a; }
html[data-theme="dark"] .Chart { background: #1a1a1a; }
html[data-theme="dark"] .ShareSheet__item,
html[data-theme="dark"] .CookieBanner__inner { background: rgba(20, 20, 20, 0.85); }

html[data-theme="dark"] .SharePill { background: rgba(255,255,255,.06); color: var(--fg); box-shadow: none; }
html[data-theme="dark"] .SharePill:hover { background: rgba(255,255,255,.10); box-shadow: none; }

html[data-theme="dark"] .Sheet__close { background: rgba(255,255,255,0.12); }
html[data-theme="dark"] .Sheet__close:hover { background: rgba(255,255,255,0.18); }
html[data-theme="dark"] .Welcome__close:hover { background: #333; }


/* Sheet */
html[data-theme="dark"] .Sheet__backdrop { background: rgba(0,0,0,0.55); }
html[data-theme="dark"] .Sheet__handle { background: rgba(255,255,255,0.15); }

/* Feed fade */
html[data-theme="dark"] .Feed__fade {
  background: linear-gradient(to bottom, rgba(20,20,20,0) 0%, rgba(20,20,20,0.35) 30%, rgba(20,20,20,0.75) 65%, rgba(20,20,20,1) 100%);
}

/* NotFound */
html[data-theme="dark"] .NotFound__hero {
  background: radial-gradient(circle at 18% 12%, rgba(100,120,255,.14), transparent 34%), linear-gradient(135deg, #1a1a1a, #1e1e24);
}
html[data-theme="dark"] .NotFoundFeed .FeedItem__link { background: #1a1a1a; }
html[data-theme="dark"] .NotFound__recs-item { background: #1a1a1a; }

/* Fallback */
html[data-theme="dark"] .Related__fallbackIcon { background: #333; color: #888; }
html[data-theme="dark"] .Related__fallbackText { color: #ccc; }

/* Skeleton */
html[data-theme="dark"] .Skeleton,
html[data-theme="dark"] .Chart--loading .Spark {
  background: linear-gradient(90deg, #222 25%, #2a2a2a 50%, #222 75%);
}

/* Spark bars */
html[data-theme="dark"] .Spark__bar { background: rgba(255,255,255,.18); }
html[data-theme="dark"] .Chart:nth-child(2) .Spark__bar { background: rgba(100,130,255,.3); }
html[data-theme="dark"] .Chart:nth-child(3) .Spark__bar { background: rgba(255,255,255,.22); }


/* Category badges - flat rail style */
html[data-theme="dark"] .CategoryBadge,
html[data-theme="dark"] [class^="CategoryBadge--"] { background: rgba(255,255,255,.06); box-shadow: none; }

html[data-theme="dark"] .CategoryBadge--media { color: #be123c; }
html[data-theme="dark"] .CategoryBadge--tech { color: #4338ca; }
html[data-theme="dark"] .CategoryBadge--dev { color: #111827; }
html[data-theme="dark"] .CategoryBadge--design { color: #9d174d; }
html[data-theme="dark"] .CategoryBadge--science { color: #047857; }
html[data-theme="dark"] .CategoryBadge--news { color: #b45309; }
html[data-theme="dark"] .CategoryBadge--finance { color: #4d7c0f; }
html[data-theme="dark"] .CategoryBadge--writing { color: #57534e; }
html[data-theme="dark"] .CategoryBadge--sport { color: #15803d; }
html[data-theme="dark"] .CategoryBadge--music { color: #7c3aed; }
html[data-theme="dark"] .CategoryBadge--podcast { color: #c2410c; }
html[data-theme="dark"] .CategoryBadge--social { color: #1d4ed8; }
html[data-theme="dark"] .CategoryBadge--shopping { color: #b45309; }
html[data-theme="dark"] .CategoryBadge--reference { color: #1e3a8a; }
html[data-theme="dark"] .CategoryBadge--web { color: #0c4a6e; }

/* Theme toggle */
.ThemeToggle {
  border: none;
  background: rgba(0,0,0,.045);
  color: var(--faint);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  font-size: 14px;
  transition: background 0.14s ease, color 0.14s ease;
}

.ThemeToggle:hover {
  color: var(--fg);
  background: rgba(0,0,0,.075);
}

html[data-theme="dark"] .ThemeToggle {
  background: rgba(255,255,255,.06);
  color: var(--faint);
}

html[data-theme="dark"] .ThemeToggle:hover {
  background: rgba(255,255,255,.10);
  color: var(--fg);
}

.ThemeToggle__icon--dark { display: none; }

html[data-theme="dark"] .ThemeToggle__icon--light { display: none; }
html[data-theme="dark"] .ThemeToggle__icon--dark { display: inline-flex; }

.Stats__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
}

.Stats__sub {
  margin-top: 6px;
  color: var(--faint);
  font-size: 13px;
}

.Stats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.Stats__grid + .Stats__grid {
  margin-top: 20px;
}

.Stats__charts + .Stats__grid {
  margin-top: 20px;
}

@media (max-width: 900px) {
  .Stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .Stats__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .StatCard--wide {
    grid-column: auto;
    min-width: 0;
  }

  .StatCard__value {
    font-size: 18px;
    line-height: 1.3;
    word-break: break-word;
  }

  .StatCard__value--link {
    white-space: normal;
    font-size: 16px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .Stats__head {
    padding: 0 0 12px;
  }

  .Stats__title {
    font-size: 24px;
  }

  .Stats__sub {
    font-size: 14px;
  }

  .Spark {
    height: 48px;
    gap: 1px;
  }

  .Chart {
    padding: 12px;
  }
}

.StatCard {
  background: #f3f4f6;
  border-radius: var(--img-radius);
  padding: 14px;
}

.StatCard--wide {
  grid-column: 1 / -1;
}

.StatCard__label {
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.StatCard__value {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

.StatCard__value--link {
  display: block;
  color: var(--fg);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.StatCard__value--link:hover {
  text-decoration: underline;
}

.StatCard__value--small {
  font-size: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.StatCard__meta {
  margin-top: 8px;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.3;
}

.Stats__charts {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.Chart {
  background: #fff;
  border-radius: var(--img-radius);
  box-shadow: var(--shadow-soft);
  padding: 14px;
}

.Chart__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.Spark {
  margin-top: 10px;
  height: 56px;
  display: grid;
  grid-template-columns: repeat(60, 1fr);
  gap: 2px;
  align-items: end;
}

.Spark__bar {
  width: 100%;
  background: rgba(17,17,17,.18);
  border-radius: 2px;
  position: relative;
  cursor: help;
}

.Chart:nth-child(2) .Spark__bar { background: rgba(47,65,191,.22); }
.Chart:nth-child(3) .Spark__bar { background: rgba(17,17,17,.24); }

.Spark__bar:hover::after {
  content: attr(data-value);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}

.Spark__bar:hover::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #111;
  pointer-events: none;
  z-index: 10;
}

.Embed {
  width: 100%;
  overflow: hidden;
  background: #f5f5f5;
  border-radius: var(--img-radius);
}

.Embed iframe {
  display: block;
  width: 100%;
  border: none;
}

.Embed--youtube {
  aspect-ratio: 16 / 9;
}

.Embed--youtube iframe {
  height: 100%;
  min-height: 200px;
}

.Embed--vimeo,
.Embed--tiktok {
  aspect-ratio: 16 / 9;
}

.Embed--vimeo iframe,
.Embed--tiktok iframe {
  height: 100%;
  min-height: 200px;
}

.Embed--spotify iframe {
  height: 152px;
}

.Embed--soundcloud iframe {
  height: 166px;
}

.FeedItem__row .Embed {
  margin-bottom: 4px;
}

@media (max-width: 720px) {
  .Brand__name { display: none; }
  .Article__title { font-size: 28px; }
  .FeedItem__title { font-size: 20px; }

  .Article__image,
  .Article__video {
    height: 240px;
    max-height: 240px;
  }

  .Article__actions {
    flex-direction: column;
    gap: 12px;
  }

  .Article__actions .Btn {
    width: 100%;
    justify-content: center;
  }

  .Article__mobileShareBtn {
    display: inline-flex;
  }

  .SharePills {
    display: none;
  }
}

/* Preview image carousel */
.PreviewImage {
  position: relative;
  overflow: hidden;
}

.PreviewImage__counter {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 2;
}

.PreviewImage__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 2;
  font-size: 14px;
}

.PreviewImage:hover .PreviewImage__arrow {
  opacity: 1;
}

.PreviewImage__arrow:hover {
  background: rgba(0,0,0,0.65);
}

.PreviewImage__arrow--prev {
  left: 8px;
}

.PreviewImage__arrow--next {
  right: 8px;
}

/* Stream layout with What's happening now header */
@media (min-width: 900px) {
  .Shell {
    padding: 80px 48px 64px 80px;
    max-width: none;
  }

  .Content {
    max-width: 720px;
    margin: 0 auto;
  }

  /* Stream header */
  .StreamHeader {
    margin-bottom: 32px;
    padding-bottom: 0;
  }

  .StreamHeader__title {
    font-size: 22px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0;
  }

  .StreamHeader__subtitle {
    font-size: 14px;
    color: var(--faint);
    margin-top: 6px;
  }

  .Feed__list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-width: none;
    margin: 0;
  }

  .Feed__list .FeedItem {
    padding: 24px 0;
  }

  .Feed__list .FeedItem:first-child {
    padding-top: 0;
  }

  .Feed__list .FeedItem:last-child {
    padding-bottom: 0;
  }

  .Feed__list .FeedItem__img {
    aspect-ratio: 16 / 9;
    max-height: 320px;
  }

  .Feed__list .FeedItem__title {
    font-size: 22px;
    font-weight: 600;
  }

  .Feed__list .FeedItem__desc {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 15px;
  }
}

@media (min-width: 1200px) {
  .Shell {
    padding: 80px 64px 64px 100px;
  }

  .Content {
    max-width: 800px;
  }

  .Rail {
    width: 80px;
  }

  .StreamHeader__title {
    font-size: 24px;
  }

  .Feed__list .FeedItem {
    padding: 28px 0;
  }

  .Feed__list .FeedItem__img {
    max-height: 360px;
  }
}


