:root {
  --bg: #050509;
  --bg-elevated: #101018;
  --accent: #ff4b4b;
  --accent-soft: rgba(255, 75, 75, 0.1);
  --text: #f5f5f7;
  --text-muted: #9a9aaf;
  --border-subtle: #222233;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(circle at top, #181828 0, #050509 55%);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* Layout */

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */

.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(14px);
  background: linear-gradient(
      to bottom,
      rgba(5, 5, 10, 0.95),
      rgba(5, 5, 10, 0.80)
    );
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

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

.brand h1 {
  font-size: 1.1rem;
  margin: 0;
}

.brand p {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4b4b, #ff9a62);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Header links */

.header-links {
  display: flex;
  gap: 10px;
}

.header-links a {
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 8, 16, 0.8);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.1s ease;
}

.header-links a:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Main */

main {
  padding: 24px 0 40px;
}

/* Feed */

.feed-message {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 40px 0;
}

.feed-message--error {
  color: #ff7b7b;
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Feed card */

.feed-card {
  background: radial-gradient(circle at top left, #181828, #090912);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feed-card-inner {
  display: flex;
  flex-direction: row;
  gap: 0;
}

.feed-thumbnail {
  min-width: 200px;
  max-width: 260px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.feed-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.feed-card:hover .feed-thumbnail img {
  transform: scale(1.03);
}

.feed-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  font-size: 0.7rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.feed-badge span.icon {
  font-size: 0.8rem;
}

.feed-content {
  padding: 12px 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  flex: 1;
}

.feed-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.feed-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

.feed-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 4px 0 0;
  line-height: 1.4;
}

.feed-actions {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 8px;
}

.feed-embed {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0c0c14;
}

.feed-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.feed-embed--video {
  aspect-ratio: 16 / 9;
}

.feed-embed--tweet {
  min-height: 520px;
}

.feed-embed--tweet iframe {
  height: 520px;
}

.feed-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: rgba(12, 12, 20, 0.6);
}

.feed-group__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.feed-group__title {
  margin: 0;
  font-size: 1rem;
}

.feed-group__count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.feed-group__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.feed-group__page {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.button-ghost {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  font-size: 0.8rem;
  background: rgba(10, 10, 18, 0.9);
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.1s ease;
}

.button-ghost:hover {
  background: var(--accent-soft);
  border-color: rgba(255, 75, 75, 0.5);
  transform: translateY(-1px);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 18px 0 22px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive */

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .feed-card-inner {
    flex-direction: column;
  }

  .feed-thumbnail {
    max-width: 100%;
  }
}
