/* ===== FEED PANEL (slides up from bottom) ===== */
.feed-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  overflow: hidden;
  pointer-events: none;
}
.feed-panel.active {
  pointer-events: auto;
}
.feed-scroll {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(100%);
  will-change: transform;
}
.feed-scroll::-webkit-scrollbar {
  display: none;
}
.feed-scroll.open {
  transform: translateY(0);
}

/* ===== FEED CONTAINER ===== */
.feed-spacer {
  height: 666px;
  flex-shrink: 0;
}
.feed-container {
  position: relative;
  background: #F3F3F3;
  border-radius: 24px 24px 0 0;
  margin-left: 8px;
  margin-right: 8px;
  padding-bottom: 140px;
  z-index: 4;
}

.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px 8px;
}
.feed-header-title {
  font-family: 'Segoe UI Variable', -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: rgba(0,0,0,0.74);
  line-height: 20px;
}
.feed-header-manage {
  font-family: 'Segoe UI Variable', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(0,0,0,0.45);
  line-height: 18px;
}

.feed-cards {
  padding: 0 12px;
}

/* --- Feed Card Base --- */
.feed-card {
  background: #fff;
  border-radius: 16px;
  margin-bottom: 8px;
  overflow: hidden;
}

/* --- Small Card --- */
.feed-card-small .feed-card-body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 16px 0;
}
.feed-card-small .feed-card-article {
  flex: 1;
  min-width: 0;
}
.feed-card-header {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}
.feed-publisher-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.feed-publisher-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feed-publisher {
  font-family: 'Segoe UI Variable', -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(0,0,0,0.56);
  line-height: 16px;
}
.feed-time {
  font-family: 'Segoe UI Variable', -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(0,0,0,0.56);
  line-height: 16px;
}
.feed-card-title {
  font-family: 'Segoe UI Variable', -apple-system, sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #242424;
  line-height: 22px;
  letter-spacing: -0.17px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-card-thumb {
  width: 94px;
  height: 94px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}
.feed-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feed-card-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 16px 12px;
  height: 40px;
}
.feed-action {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Segoe UI Variable', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(0,0,0,0.62);
  line-height: 18px;
  cursor: pointer;
}
.feed-action svg {
  width: 20px;
  height: 20px;
  fill: rgba(0,0,0,0.45);
}
.feed-action-spacer {
  flex: 1;
}

/* --- 1C Card (large image) --- */
.feed-card-1c .feed-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.feed-card-1c .feed-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feed-card-1c .feed-card-body {
  padding: 12px 16px 0;
}
.feed-card-1c .feed-card-title {
  margin-top: 4px;
}

/* --- 2 Column Card --- */
.feed-card-2col {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.feed-card-2col .feed-card-col {
  flex: 1;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}
.feed-card-col .feed-col-image {
  width: 100%;
  height: 120px;
  overflow: hidden;
}
.feed-card-col .feed-col-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feed-card-col .feed-col-body {
  padding: 10px 12px;
}
.feed-card-col .feed-col-title {
  font-family: 'Segoe UI Variable', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #242424;
  line-height: 18px;
  letter-spacing: -0.14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-card-col .feed-col-publisher {
  font-family: 'Segoe UI Variable', -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: rgba(0,0,0,0.45);
  line-height: 14px;
  margin-top: 6px;
}

/* --- Ad Card --- */
.feed-card-ad {
  position: relative;
}
.feed-ad-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 1;
}

/* --- Feed Divider --- */
.feed-divider {
  height: 0.5px;
  background: rgba(0,0,0,0.06);
  margin: 0 16px;
}

/* --- Feed mode NTP bottom bar transition --- */
.ntp-bottom-bar.feed-mode {
  background: rgba(243,243,243,0.95);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
}
.ntp-bottom-bar.feed-mode .omni-box {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.06);
}
.ntp-bottom-bar.feed-mode .home-indicator-bar {
  background: #1a1a1a;
}
.ntp-bottom-bar.feed-mode .nav-btn img {
  filter: invert(1);
}
.ntp-bottom-bar.feed-mode .nav-btn .tab-count {
  color: black;
}

