:root {
  --gplus-red: #db4437;
  --gplus-red-dark: #c53929;
  --gplus-red-soft: rgba(219, 68, 55, 0.1);
  --gplus-blue: #3367d6;
  --bg: #eeeeee;
  --surface: #ffffff;
  --surface-alt: #fafafa;
  --surface-hover: #f5f5f5;
  --text: #212121;
  --text-secondary: #5f6368;
  --muted: #757575;
  --border: #e0e0e0;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.2);
  --radius: 4px;
  --font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

[data-theme="dark"] {
  --bg: #121212;
  --surface: #1e1e1e;
  --surface-alt: #252525;
  --surface-hover: #2c2c2c;
  --text: #ececec;
  --text-secondary: #b0b4ba;
  --muted: #8c9198;
  --border: #323232;
  --gplus-red-soft: rgba(219, 68, 55, 0.2);
  --gplus-blue: #7aa7ff;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 10px 32px rgba(0, 0, 0, 0.65);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gplus-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.hidden { display: none !important; }

/* ---------------- Top Header ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none !important;
  flex-shrink: 0;
}
.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--gplus-red);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.5px;
}
.brand-name {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.3px;
}
.brand-plus { color: var(--gplus-red); font-weight: 700; }
.brand-archive {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gplus-red);
  background: var(--gplus-red-soft);
  padding: 2px 6px;
  border-radius: 3px;
}

.search-wrap {
  flex: 1;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 12px;
  color: var(--muted);
  pointer-events: none;
}
#globalSearch {
  width: 100%;
  height: 38px;
  padding: 0 36px 0 38px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
#globalSearch:focus {
  background: var(--surface);
  border-color: var(--gplus-red);
  box-shadow: 0 0 0 2px var(--gplus-red-soft);
}
.icon-btn {
  position: absolute;
  right: 6px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:hover { background: var(--surface-hover); color: var(--text); }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}
.topbar-btn:hover { background: var(--surface-hover); color: var(--text); }

/* ---------------- Profile Hero ---------------- */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.hero-cover {
  position: relative;
  height: 240px;
  background-color: #2b3a4a;
  background-size: cover;
  background-position: center 40%;
  overflow: hidden;
}
.hero-cover-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.52) 100%);
}
.cover-cycle-btn {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.cover-cycle-btn:hover { background: rgba(0, 0, 0, 0.78); }

.hero-bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}
.hero-bar-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}
.hero-identity {
  display: flex;
  align-items: flex-end;
  gap: 18px;
}
.hero-avatar-btn {
  margin-top: -54px;
  position: relative;
  z-index: 3;
  padding: 0;
  border: 4px solid var(--surface);
  border-radius: 50%;
  width: 112px;
  height: 112px;
  overflow: hidden;
  background: var(--surface-alt);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  cursor: pointer;
  flex-shrink: 0;
}
.hero-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-meta { padding-top: 8px; }
.hero-name-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-meta h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}
.hero-handle {
  color: var(--gplus-red);
  font-weight: 500;
  font-size: 14px;
}
.hero-subtitle {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
}
.hero-stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 8px;
}
.stat-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.stat-chip strong {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.15;
}
.stat-chip span {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Profile Navigation Tabs */
.profile-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-top: 1px solid var(--border);
  margin: 0 -16px;
  padding: 0 16px;
  scrollbar-width: none;
}
.profile-tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  position: relative;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 13px 16px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
  color: var(--gplus-red);
  font-weight: 600;
}
.tab-btn.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--gplus-red);
  border-radius: 3px 3px 0 0;
}
.tab-count {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface-alt);
  padding: 1px 6px;
  border-radius: 10px;
}
.tab-btn.active .tab-count {
  color: var(--gplus-red);
  background: var(--gplus-red-soft);
}

/* ---------------- Main Workspace & Filters ---------------- */
.main-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 16px 64px;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.filter-bar {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 14px;
  margin-bottom: 14px;
}
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.year-pills, .subtab-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pill {
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text-secondary);
  border-radius: 16px;
  padding: 4px 11px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s;
}
.pill:hover { background: var(--surface-hover); color: var(--text); }
.pill.active {
  background: var(--gplus-red);
  border-color: var(--gplus-red);
  color: #fff;
}
.pill small { opacity: 0.78; margin-left: 3px; font-weight: 400; }

.filter-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-controls select {
  height: 32px;
  padding: 0 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}
.active-filters {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gplus-red-soft);
  color: var(--gplus-red);
  font-size: 12.5px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 14px;
}
.active-chip button {
  border: none;
  background: none;
  color: inherit;
  font-size: 15px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.results-meta {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 2px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ---------------- Posts Masonry & Stream ---------------- */
.stream-container.masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.stream-container.single {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.masonry-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

@media (max-width: 1060px) {
  .stream-container.masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .stream-container.masonry { grid-template-columns: 1fr; }
  .hero-cover { height: 170px; }
  .hero-avatar-btn { width: 84px; height: 84px; margin-top: -42px; }
  .brand-archive, .btn-label { display: none; }
}

/* ---------------- Google+ Post Card ---------------- */
.post-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.15s;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.post-card.highlighted {
  box-shadow: 0 0 0 2px var(--gplus-red), var(--shadow-lg);
}
.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 8px;
}
.post-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.post-author-meta { min-width: 0; flex: 1; }
.post-author-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 14px;
}
.post-author-name { font-weight: 600; color: var(--text); }
.post-vis {
  font-size: 12px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.post-vis.private { color: #2e7d32; }
[data-theme="dark"] .post-vis.private { color: #81c784; }
.post-date-line {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-permalink {
  color: var(--muted);
  font-size: 12px;
}
.post-permalink:hover { color: var(--gplus-red); }

.post-body {
  padding: 4px 16px 12px;
  font-size: 14px;
  line-height: 1.6;
}
.post-body .ot-hashtag {
  color: var(--gplus-blue);
  font-weight: 500;
  cursor: pointer;
}
.post-body .proflinkWrapper {
  color: var(--gplus-blue);
  font-weight: 500;
}
.post-body .proflinkPrefix { opacity: 0.8; }

.post-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 8px 16px 6px;
  padding: 4px 10px;
  border-radius: 14px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
}
.post-location:hover { border-color: var(--gplus-red); color: var(--gplus-red); text-decoration: none; }

/* Reshare box */
.reshare-box {
  margin: 4px 16px 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--border);
  background: var(--surface-alt);
  border-radius: 0 4px 4px 0;
}
.reshare-author {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.reshare-content {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text);
}

/* Media grids inside post cards */
.post-media-grid {
  display: grid;
  gap: 2px;
  background: var(--border);
  margin-top: 6px;
}
.post-media-grid.count-1 { grid-template-columns: 1fr; }
.post-media-grid.count-2 { grid-template-columns: repeat(2, 1fr); }
.post-media-grid.count-3 { grid-template-columns: repeat(2, 1fr); }
.post-media-grid.count-3 .media-tile:first-child { grid-column: span 2; max-height: 260px; }
.post-media-grid.count-4 { grid-template-columns: repeat(2, 1fr); }

.media-tile {
  position: relative;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  display: block;
}
.post-media-grid.count-1 .media-tile img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
}
.post-media-grid:not(.count-1) .media-tile {
  aspect-ratio: 4 / 3;
}
.post-media-grid:not(.count-1) .media-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}
.media-tile:hover img { transform: scale(1.02); }
.media-more-badge {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.56);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-video-wrap {
  margin-top: 6px;
  background: #000;
}
.post-video-wrap video {
  width: 100%;
  max-height: 420px;
  display: block;
}

/* External Video / YouTube embed */
.yt-card {
  display: block;
  margin: 8px 16px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface-alt);
  color: var(--text);
  text-decoration: none !important;
}
.yt-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #181818;
  overflow: hidden;
}
.yt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 38px;
  border-radius: 10px;
  background: rgba(219, 68, 55, 0.92);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.yt-meta {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.yt-meta small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 11.5px;
  margin-top: 2px;
}

/* Link Preview Card */
.link-card {
  display: block;
  margin: 8px 16px 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface-alt);
  color: var(--text);
  text-decoration: none !important;
  transition: border-color 0.15s;
}
.link-card:hover { border-color: var(--gplus-blue); }
.link-card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gplus-blue);
  margin-bottom: 2px;
}
.link-card-domain {
  font-size: 11.5px;
  color: var(--muted);
}

.missing-media-note {
  margin: 6px 16px 10px;
  padding: 6px 10px;
  border-radius: 4px;
  background: var(--surface-alt);
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 12px;
}

.recovered-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 4px 16px 6px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(46, 125, 50, 0.12);
  color: #2e7d32;
  font-size: 11.5px;
  font-weight: 500;
}
[data-theme="dark"] .recovered-pill {
  background: rgba(129, 199, 132, 0.18);
  color: #81c784;
}

.recovered-album-box {
  margin-top: 6px;
  border-top: 1px solid var(--border);
}
.recovered-album-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(51, 103, 214, 0.08);
  color: var(--gplus-blue);
  font-size: 12px;
  font-weight: 500;
}
[data-theme="dark"] .recovered-album-bar {
  background: rgba(122, 167, 255, 0.12);
}
.recovered-album-bar small {
  color: var(--muted);
  font-weight: 400;
}

/* Classic Google+ Footer Action Bar */
.post-footer {
  padding: 8px 14px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.gplus-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s;
}
.gplus-action:hover { background: var(--surface-hover); }
.gplus-action.plus1.has-count {
  color: var(--gplus-red);
  border-color: rgba(219, 68, 55, 0.35);
  background: var(--gplus-red-soft);
}
.gplus-action.active {
  background: var(--gplus-red);
  color: #fff;
  border-color: var(--gplus-red);
}
.people-drawer {
  margin: 0 14px 10px;
  padding: 8px 10px;
  border-radius: 4px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.people-drawer strong { color: var(--text); }

/* Comments section */
.post-comments {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  padding: 10px 16px 12px;
}
.comments-toggle-btn {
  border: none;
  background: none;
  color: var(--gplus-blue);
  font-size: 12.5px;
  font-weight: 500;
  padding: 2px 0 8px;
  cursor: pointer;
}
.comment-item {
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.5;
}
.comment-item + .comment-item {
  border-top: 1px solid var(--border);
}
.comment-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.comment-author { font-weight: 600; color: var(--text); }
.comment-time { font-size: 11.5px; color: var(--muted); }
.comment-body { margin-top: 2px; color: var(--text); }

/* ---------------- Photos Tab ---------------- */
.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 10px;
}
.photo-card {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #181818;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.photo-card img, .photo-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.22s;
}
.photo-card:hover img { transform: scale(1.05); }
.photo-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 8px 7px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
  font-size: 11.5px;
  opacity: 0;
  transition: opacity 0.15s;
}
.photo-card:hover .photo-card-overlay { opacity: 1; }
.video-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.72);
  color: #fff;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
}

/* ---------------- Events Tab ---------------- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.event-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.event-cover {
  height: 120px;
  background: linear-gradient(135deg, #db4437 0%, #8e24aa 100%);
  position: relative;
  overflow: hidden;
}
.event-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.event-card-body {
  padding: 12px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.event-card-title {
  font-size: 15.5px;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.3;
}
.event-card-meta {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin: 2px 0;
}
.event-card-footer {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------------- Activity Tab ---------------- */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.activity-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 16px;
}
.activity-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.activity-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--gplus-blue);
}
.activity-time {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.activity-text {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.55;
}
.activity-footer {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.local-jump-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gplus-red);
  background: var(--gplus-red-soft);
  padding: 2px 8px;
  border-radius: 10px;
  cursor: pointer;
  border: none;
}

/* ---------------- About Tab ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}
.about-card h2 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--gplus-red);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.bar-chart { display: flex; flex-direction: column; gap: 8px; }
.bar-row {
  display: grid;
  grid-template-columns: 44px 1fr 48px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  cursor: pointer;
}
.bar-row:hover .bar-fill { background: var(--gplus-red-dark); }
.bar-track {
  height: 18px;
  background: var(--surface-alt);
  border-radius: 3px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--gplus-red);
  border-radius: 3px;
  transition: width 0.3s;
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.tag-chip {
  padding: 4px 10px;
  border-radius: 14px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--gplus-blue);
  cursor: pointer;
}
.tag-chip:hover {
  background: var(--gplus-red-soft);
  border-color: var(--gplus-red);
  color: var(--gplus-red);
}
.friends-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 8px;
}
.friend-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12.5px;
}
.friend-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-pill strong { color: var(--gplus-red); margin-left: 6px; font-size: 12px; }
.profile-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.profile-strip img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid var(--border);
}
.profile-strip img:hover { border-color: var(--gplus-red); }

/* ---------------- Modals (Lightbox & Event Detail) ---------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}
.lightbox-shell {
  position: relative;
  z-index: 2;
  width: 96vw;
  height: 92vh;
  max-width: 1360px;
  display: grid;
  grid-template-columns: 1fr 310px;
  background: #111;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 860px) {
  .lightbox-shell {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
}
.lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b0b0b;
  padding: 20px 56px;
  min-height: 0;
}
.lightbox-stage img, .lightbox-stage video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.lightbox-sidebar {
  background: var(--surface);
  color: var(--text);
  padding: 20px;
  overflow-y: auto;
  border-left: 1px solid var(--border);
  font-size: 13.5px;
}
.lightbox-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 64px;
  border: none;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 34px;
  cursor: pointer;
  border-radius: 4px;
}
.lightbox-nav:hover { background: rgba(0,0,0,0.8); }
.lightbox-nav.prev { left: 10px; }
.lightbox-nav.next { right: 320px; }
@media (max-width: 860px) { .lightbox-nav.next { right: 10px; } }

.event-modal-card {
  position: relative;
  z-index: 2;
  width: min(920px, 95vw);
  max-height: 90vh;
  background: var(--surface);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.event-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
.event-modal-body {
  overflow-y: auto;
  padding-bottom: 24px;
}
.event-detail-cover {
  height: 180px;
  background: linear-gradient(135deg, #db4437 0%, #6a1b9a 100%);
  overflow: hidden;
}
.event-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.event-detail-content { padding: 18px 22px; }
.guest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 14px;
}
.guest-chip {
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 12px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
}
.event-stream-item {
  padding: 10px 12px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 10px;
}

/* Load more & FAB */
.load-more-wrap { text-align: center; padding: 24px 0 8px; }
.load-more-btn {
  background: var(--surface);
  color: var(--gplus-red);
  border: 1px solid var(--gplus-red);
  border-radius: 4px;
  padding: 9px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.load-more-btn:hover { background: var(--gplus-red); color: #fff; }
.sentinel { height: 2px; }

.fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--gplus-red);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  cursor: pointer;
}
.fab:hover { background: var(--gplus-red-dark); }

.empty-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--muted);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
