/* =========================================================
   Social layer — video-platform look: flat surfaces, pill
   controls, thumbnail-first cards. Loaded last on purpose.
   ========================================================= */

/* ---------- Wide pages (feeds & grids) ---------- */
body.wide .page { max-width: 2200px; padding-top: 0; }

/* ---------- Buttons: pill shaped, tonal secondary ---------- */
.btn { height: 38px; padding: 0 18px; border-radius: 19px; box-shadow: none; font-weight: 600; }
.btn:hover { box-shadow: none; }
.btn.sm { height: 32px; padding: 0 14px; border-radius: 16px; }
.btn.lg { height: 46px; padding: 0 24px; border-radius: 23px; }
.btn.secondary, .btn.ghost { --btn-bg: var(--color-chip); --btn-fg: var(--color-text); --btn-bd: transparent; }
.btn.secondary:hover, .btn.ghost:hover { --btn-bg: var(--color-chip-hover); --btn-bd: transparent; }
.btn.ghost { --btn-bg: transparent; }
.btn.ghost:hover { --btn-bg: var(--color-surface-hover); }
.btn.dark { --btn-bg: var(--color-text); --btn-fg: var(--color-background); }
.btn.dark:hover { --btn-bg: var(--color-text); opacity: .86; }
.btn[data-action="follow"][aria-pressed="true"] { --btn-bg: var(--color-chip); --btn-fg: var(--color-text); }
.btn.ai:hover { box-shadow: none; filter: brightness(1.05); }
.icon-btn { border-radius: 50%; }
.icon-btn:hover { background: var(--color-surface-hover); }

/* ---------- Cards: flat, quiet borders ---------- */
.card { box-shadow: none; border-radius: var(--border-radius-lg); }
a.card:hover { transform: none; box-shadow: none; background: var(--color-surface-hover); }
.side-card { background: var(--color-surface); }
.card-title { font-family: var(--font-display); font-weight: 700; }
.card-title .icon { color: var(--color-text); }

/* ---------- Pills & chips ---------- */
.pill { border: 0; background: var(--color-chip); color: var(--color-text); text-transform: none; border-radius: 6px; height: 24px; }
.tag { background: transparent; color: #065FD4; padding: 0; height: auto; font-size: var(--text-sm); font-weight: 500; }
[data-theme="dark"] .tag { color: #3EA6FF; }
.tag:hover { background: transparent; color: #065FD4; text-decoration: underline; transform: none; }
.chip-row { gap: 12px; padding: 0; }
.chip-link { height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--color-chip); font-weight: 500; font-size: var(--text-sm); gap: 6px; }
.chip-link:hover { background: var(--color-chip-hover); transform: none; box-shadow: none; }
.chip-link.active, .chip-link[aria-current="page"] { background: var(--color-text); color: var(--color-background); }
.chip-link.active:hover { background: var(--color-text); color: var(--color-background); }
.chip-tabs { display: contents; }
.chip-divider { flex-shrink: 0; width: 1px; height: 24px; align-self: center; background: var(--color-border); }

/* Pill tabs (used outside home) → chip style */
.pill-tabs { padding: 0; gap: 12px; background: none; border: 0; }
.pill-tabs a { height: 32px; padding: 0 12px; border-radius: 8px; background: var(--color-chip); color: var(--color-text); font-weight: 500; }
.pill-tabs a:hover { background: var(--color-chip-hover); }
.pill-tabs a.active { background: var(--color-text); color: var(--color-background); box-shadow: none; }

/* Underline tabs (profile, saved, admin) */
.tabs a { height: 48px; font-size: var(--text-md); font-weight: 600; }
.tabs a::after { height: 3px; border-radius: 0; }

/* ---------- Home ---------- */
.chip-bar {
  position: sticky; top: var(--topbar-height); z-index: calc(var(--z-sticky) - 1);
  margin: 0 calc(-1 * var(--space-6)); padding: 12px var(--space-6);
  background: var(--color-surface-glass);
}
.chip-bar .chip-row { flex-wrap: nowrap; }
.announce-bar { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; padding: 12px 16px; border-radius: var(--border-radius-lg); background: var(--color-surface-sunken); font-size: var(--text-sm); line-height: 1.45; }
.announce-bar .grow { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.announce-bar.sm { margin-top: 8px; }
.announce-icon { flex-shrink: 0; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--color-primary-soft); color: var(--color-primary); }

.shelf { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 16px 0 24px; }
.shelf-card { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 14px 16px; border-radius: var(--border-radius-lg); border: 1px solid var(--color-border); transition: background var(--transition-fast), border-color var(--transition-fast); }
.shelf-card:hover { color: inherit; background: var(--color-surface-hover); border-color: transparent; }
.shelf-card .grow { display: grid; gap: 2px; }
.shelf-card b { font-size: var(--text-sm); font-weight: 650; }
.shelf-card .small { font-size: 13px; }
.shelf-card .progress { margin-top: 6px; height: 4px; }
.shelf-kicker { font-size: 12px; font-weight: 600; color: var(--color-text-muted); }
.shelf-icon { flex-shrink: 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--color-chip); color: var(--color-text); }
.shelf-icon.green { background: var(--color-success-soft); color: var(--color-success); }
.shelf-icon.orange { background: var(--color-warning-soft); color: var(--color-warning); }
.shelf-icon.blue { background: rgba(6, 95, 212, .09); color: #065FD4; }
[data-theme="dark"] .shelf-icon.blue { background: rgba(62, 166, 255, .14); color: #3EA6FF; }
.shelf-icon.ai { background: var(--gradient-ai); color: #fff; }

.chef-shelf { margin: 0 0 28px; }
.chef-shelf .section-title { margin: 0 0 12px; }
.section-title h2 { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; }
.section-title a { color: var(--color-text); padding: 6px 12px; border-radius: 16px; }
.section-title a:hover { background: var(--color-surface-hover); color: var(--color-text); }
.chef-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 16px; overflow-x: auto; scrollbar-width: none; }
.chef-row::-webkit-scrollbar { display: none; }
.chef-tile { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 16px 12px; border-radius: var(--border-radius-lg); background: var(--color-surface-sunken); text-align: center; }
.chef-tile .avatar { width: 72px; height: 72px; margin-bottom: 8px; }
.chef-tile .user-link { font-size: var(--text-sm); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chef-tile .btn { margin-top: 10px; }

/* ---------- Feed grid ---------- */
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 16px; }
.post-card { display: flex; flex-direction: column; min-width: 0; background: none; border: 0; border-radius: 0; overflow: visible; box-shadow: none; }
.post-card:hover { box-shadow: none; }
.post-thumb { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--border-radius-lg); overflow: hidden; background: var(--color-surface-sunken); color: inherit; }
.post-thumb:hover { color: inherit; }
.post-card .media { aspect-ratio: auto; height: 100%; }
.post-card .media img { transition: transform 500ms var(--ease-out); }
.post-card:hover .media img { transform: scale(1.03); }
.thumb-badges { position: absolute; top: 8px; left: 8px; z-index: 3; display: flex; gap: 6px; pointer-events: none; }
.thumb-pill, .thumb-time { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: 4px; background: rgba(0, 0, 0, .72); color: #fff; font-size: 12px; font-weight: 600; }
.thumb-pill.ai { background: var(--gradient-ai); }
.thumb-time { position: absolute; right: 8px; bottom: 8px; z-index: 3; font-variant-numeric: tabular-nums; }
.post-card .media-count { top: 8px; right: 8px; padding: 2px 8px; border-radius: 4px; background: rgba(0,0,0,.72); }
.post-card .carousel-dots { bottom: 10px; }

.text-tile { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; background: var(--color-surface-sunken); }
.text-tile p { margin: 0; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; line-height: 1.4; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tt-quote { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--color-text-muted); }
.post-card:nth-child(4n+1) .text-tile { background: #FDECE7; } .post-card:nth-child(4n+2) .text-tile { background: #E8F1FB; }
.post-card:nth-child(4n+3) .text-tile { background: #EAF5EE; } .post-card:nth-child(4n) .text-tile { background: #F4ECF9; }
[data-theme="dark"] .post-card .text-tile { background: var(--color-surface-sunken); }

.post-info { display: flex; align-items: flex-start; gap: 12px; padding-top: 12px; }
.post-avatar { flex-shrink: 0; }
.post-avatar .avatar { width: 36px; height: 36px; }
.post-text { flex: 1; min-width: 0; }
.post-card .post-title { margin: 0 0 4px; font-family: var(--font-sans); font-size: 1rem; font-weight: 600; line-height: 1.4; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.post-card .post-title a:hover { color: inherit; }
.post-channel .user-link { font-weight: 500; font-size: var(--text-sm); color: var(--color-text-muted); }
.post-channel .user-link:hover { color: var(--color-text); }
.post-channel .chef-badge, .chef-badge { color: var(--color-text-muted); }
.post-card .post-meta { margin-top: 0; font-size: var(--text-sm); color: var(--color-text-muted); gap: 6px; }
.post-meta .sep { width: 3px; height: 3px; }
.post-meta .rating { display: inline-flex; align-items: center; gap: 3px; }
.post-meta .rating .icon { color: var(--color-accent); fill: var(--color-accent); }
.post-card .allergy-warn { margin: 8px 0 0; padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.post-info .dropdown { margin: -6px -8px 0 0; }
.post-info .dropdown .icon-btn { opacity: 0; width: 36px; height: 36px; color: var(--color-text); }
.post-card:hover .post-info .dropdown .icon-btn, .post-info .dropdown.open .icon-btn, .post-info .dropdown .icon-btn:focus-visible { opacity: 1; }

.post-card .post-actions { margin: 6px 0 0 40px; padding: 0; border: 0; gap: 0; }
.post-card .act { height: 34px; padding: 0 10px; font-size: 13px; color: var(--color-text-muted); }
.post-card .act .icon { width: 18px; height: 18px; }
.post-card .share-label { display: none; }
.post-card .act.ml-auto { margin-left: 0; }

.feed-end, .load-sentinel { grid-column: 1 / -1; }
.load-sentinel { margin-top: 32px; display: flex; justify-content: center; }
.skeleton-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; width: 100%; }
.skeleton-feed .card { border: 0; padding: 0; }

/* ---------- Recipe cards (discover / search / saved) ---------- */
.card-grid, .for-you { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px 16px; }
.recipe-card { background: none; border: 0; border-radius: 0; overflow: visible; }
.recipe-card:hover { transform: none; box-shadow: none; }
.recipe-card .rc-media { aspect-ratio: 16 / 10; border-radius: var(--border-radius-lg); }
.recipe-card:hover .rc-media img { transform: scale(1.03); }
.recipe-card .rc-badges .pill { height: 22px; padding: 0 7px; border-radius: 4px; background: rgba(0,0,0,.72); color: #fff; font-size: 12px; }
.recipe-card .rc-badges .pill .icon { color: #fff; }
.recipe-card .rc-body { padding: 12px 0 0; gap: 4px; }
.recipe-card h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; line-height: 1.4; letter-spacing: 0; }
.recipe-card .rc-author { order: -1; display: none; }
.recipe-card .recipe-meta { font-size: 13px; }
.recipe-card .rc-body > .rc-author { display: flex; order: 0; margin-top: 4px; padding-top: 0; font-size: 13px; }
.recipe-card .rc-author b { font-weight: 500; color: var(--color-text-muted); }

/* Square tiles */
.grid-item, .mosaic .grid-item { border-radius: var(--border-radius-lg); }
.grid-kind { border-radius: 4px; background: rgba(0,0,0,.72); color: #fff; }

/* ---------- Discover hero → flat banner ---------- */
.discover-hero { border-radius: var(--border-radius-xl); background: var(--color-surface-sunken); color: var(--color-text); padding: var(--space-8); }
.discover-hero::before { display: none; }
.discover-hero h1 { color: var(--color-text); font-size: clamp(1.75rem, 3vw, 2.25rem); }
.discover-hero p { color: var(--color-text-muted); }
.discover-hero .eyebrow { color: var(--color-primary); }
.discover-hero .search-field { border-color: var(--color-border); }
.feature-card { border-radius: var(--border-radius-lg); aspect-ratio: 9 / 14; }
.feature-card .fc-rank { font-family: var(--font-display); font-weight: 800; }
.feature-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.cuisine-tile { border-radius: var(--border-radius-lg); }
.creator-card { border: 0; background: var(--color-surface-sunken); }

/* ---------- Profile → channel header ---------- */
.profile-card { border: 0; background: none; overflow: visible; }
.profile-cover { height: 180px; border-radius: var(--border-radius-xl); background: linear-gradient(135deg, #FF8A3D, #E5462B 55%, #C2185B); }
.profile-cover img { opacity: .9; }
.profile-cover::after { display: none; }
.profile-info { margin-top: 0; padding: 24px 0 8px; align-items: center; gap: 24px; }
.profile-info .grow { padding-top: 0; }
.avatar.lg { width: 160px; height: 160px; border: 0; box-shadow: none; }
.profile-info h1 { font-size: 2.25rem; }
.stats > div { background: none; padding: 0; min-width: 0; }
.stats { gap: 20px; margin-top: 12px; }
.stats b { display: inline; font-size: var(--text-base); margin-right: 4px; }
.stats span { font-size: var(--text-base); color: var(--color-text-muted); }

/* ---------- Dropdown menus ---------- */
.dropdown-menu { border-radius: var(--border-radius-lg); box-shadow: var(--shadow-lg); border: 0; background: var(--color-surface-raised); padding: 8px 0; }
.dropdown-menu a, .dropdown-menu button { border-radius: 0; }

/* ---------- Forms: softer inputs ---------- */
.field input:not([type=checkbox]):not([type=radio]):not([type=range]), .field select, .field textarea { border-radius: var(--border-radius-md); }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .feed, .skeleton-feed { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}
@media (max-width: 767px) {
  .chip-bar { margin: 0 calc(-1 * var(--space-4)); padding: 10px var(--space-4); }
  .shelf { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scrollbar-width: none; margin: 12px 0 20px; }
  .shelf::-webkit-scrollbar { display: none; }
  .feed { display: flex; flex-direction: column; gap: 28px; margin: 0 calc(-1 * var(--space-4)); }
  .feed .post-thumb { border-radius: 0; }
  .feed .post-info, .feed .post-actions { padding-left: 12px; padding-right: 8px; }
  .feed .post-card .post-actions { margin-left: 48px; }
  .post-info .dropdown .icon-btn { opacity: 1; }
  .chef-row { grid-auto-columns: 150px; }
  .card-grid, .for-you { gap: 24px 12px; }
  .profile-info { flex-direction: column; align-items: flex-start; gap: 12px; }
  .avatar.lg { width: 88px; height: 88px; }
  .profile-info h1 { font-size: 1.6rem; }
  .profile-cover { height: 110px; border-radius: var(--border-radius-lg); }
}
@media (hover: none) { .post-info .dropdown .icon-btn { opacity: 1; } }

/* ---------- Home refinements ---------- */
.announce-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 12px; margin-top: 8px; }
.announce-row .announce-bar { margin: 0; }
.feed > .chef-shelf { grid-column: 1 / -1; margin: 0; padding: 24px 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.chef-row { grid-auto-columns: 200px; }
.is-text .text-tile { padding-bottom: 44px; }
.is-text .thumb-badges { top: auto; bottom: 10px; left: 12px; }
@media (max-width: 767px) {
  .announce-row { grid-template-columns: 1fr; }
  .announce-row .announce-bar:not(:first-child) { display: none; }
  .announce-bar .grow { -webkit-line-clamp: 2; }
  .shelf-card { padding: 12px 14px; }
  .shelf-icon { width: 40px; height: 40px; }
  .feed > .chef-shelf { padding: 20px 16px; }
  .chef-row { grid-auto-columns: 150px; }
}
.post-card .media img, .recipe-card .rc-media img { object-position: center 40%; }
.recipe-tile { align-items: center; justify-content: center; gap: 8px; color: var(--color-primary); background: var(--gradient-ai-soft) !important; }
.recipe-tile span { font-size: var(--text-sm); font-weight: 600; color: var(--color-text-muted); }
.guide-mini .nav-item .nav-text { flex: none; width: 100%; }
@media (max-width: 1199px) { .app-sidebar .nav-item .nav-text { flex: none; width: 100%; } .guide-open .app-sidebar .nav-item .nav-text { flex: 1; width: auto; } }
.shelf { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); overflow-x: auto; scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.text-tile p { -webkit-line-clamp: 3; }

/* ---------- Post page → watch layout ---------- */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 402px; gap: 24px; align-items: start; max-width: 1720px; margin: 0 auto; }
.post-main { min-width: 0; }
.watch .recipe-media .media, .watch .post-single .media { border-radius: var(--border-radius-lg); background: #000; aspect-ratio: 16 / 9; }
.watch .media.full > img, .watch .media.full > video, .watch .media.full .carousel-track, .watch .media.full .carousel-slide img, .watch .media.full .carousel-slide video { width: 100%; height: 100%; max-height: none; border-radius: 0; object-fit: contain; background: #000; }
.watch .media.full { max-height: calc(100vh - var(--topbar-height) - 140px); }
.watch .media.full > img { object-fit: cover; object-position: center 40%; }
.watch-title { margin: 14px 0 10px; font-size: 1.375rem; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.watch-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 12px; }
.channel { display: flex; align-items: center; gap: 12px; min-width: 0; }
.channel .avatar { width: 40px; height: 40px; }
.channel-text { min-width: 0; line-height: 1.3; margin-right: 12px; }
.channel-text .user-link { font-size: var(--text-md); font-weight: 650; }
.watch-actions { display: flex; align-items: center; gap: 8px; padding: 0; flex-wrap: wrap; }
.watch-actions .act { height: 36px; padding: 0 16px; border-radius: 18px; background: var(--color-chip); color: var(--color-text); }
.watch-actions .act:hover { background: var(--color-chip-hover); }
.watch-actions .act.ml-auto { margin-left: 0; }
.watch-actions .act.save { padding: 0 12px; }
.watch-actions .dropdown .icon-btn { width: 36px; height: 36px; background: var(--color-chip); color: var(--color-text); }
.watch-actions .dropdown .icon-btn:hover { background: var(--color-chip-hover); }

.desc-box { padding: 12px 14px 14px; border-radius: var(--border-radius-lg); background: var(--color-surface-sunken); font-size: var(--text-sm); }
.desc-box > * + * { margin-top: 10px; }
.desc-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-weight: 650; }
.desc-meta a { color: #065FD4; font-weight: 500; }
[data-theme="dark"] .desc-meta a { color: #3EA6FF; }
.desc-box p { margin: 0; }
.desc-box .recipe-lede { font-size: var(--text-base); color: var(--color-text); max-width: none; line-height: 1.55; }
.desc-box .recipe-facts { margin: 12px 0 0; border: 0; background: none; gap: 8px; }
.desc-box .recipe-facts > div { background: var(--color-surface); border-radius: var(--border-radius-md); padding: 10px 12px; }
.desc-box .pill { background: var(--color-surface); }
.desc-box .pill.herb { background: var(--color-secondary-soft); }
.desc-box .pill.warn { background: var(--color-warning-soft); }
.cook-note { padding-top: 10px; border-top: 1px solid var(--color-border); }
.cook-note b { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.text-hero { display: grid; place-items: center; min-height: 260px; padding: 40px; border-radius: var(--border-radius-lg); background: #FDECE7; }
[data-theme="dark"] .text-hero { background: var(--color-surface-sunken); }
.text-hero p { margin: 0; max-width: 32ch; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; line-height: 1.35; text-align: center; }
.post-single .watch-bar { margin-top: 14px; }

.watch .recipe-section { margin-top: 32px; }
.watch .recipe-section-head h2 { font-size: 1.25rem; }
.watch .comments-section { padding-top: 8px; }
.watch .rate-section h2 { font-size: 1.25rem; margin-bottom: 8px; }
.steps li::before { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }

.watch-side { display: grid; gap: 16px; }
.watch-side .side-card { padding: 16px; }
.up-next-head { margin: 8px 0 0; font-size: 1.1rem; }
.up-next-list { display: grid; gap: 8px; }
.up-next { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 10px; padding: 4px; margin: 0 -4px; border-radius: var(--border-radius-md); color: inherit; }
.up-next:hover { color: inherit; background: var(--color-surface-hover); }
.un-thumb { position: relative; aspect-ratio: 16 / 10; border-radius: var(--border-radius-md); overflow: hidden; background: var(--color-surface-sunken); }
.un-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.un-thumb .thumb-time { right: 4px; bottom: 4px; height: 18px; font-size: 11px; padding: 0 5px; }
.un-ph { display: grid; place-items: center; height: 100%; color: var(--color-primary); background: var(--gradient-ai-soft); }
.un-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 1px; }
.un-text b { font-size: var(--text-sm); font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.un-by, .un-meta { font-size: 12px; color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.un-by .chef-badge { margin-left: 3px; }

@media (max-width: 1279px) { .watch { grid-template-columns: minmax(0, 1fr) 340px; } .up-next { grid-template-columns: 140px minmax(0, 1fr); } }
@media (max-width: 1023px) {
  .watch { grid-template-columns: minmax(0, 1fr); }
  .watch-side .up-next { grid-template-columns: 168px minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .watch .recipe-media, .watch .post-single > .recipe-media { margin: calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) 0; }
  .watch .recipe-media .media, .watch .post-single .media { border-radius: 0; }
  .watch-title { font-size: 1.2rem; }
  .watch-actions { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--space-4)); padding: 0 var(--space-4); width: calc(100% + 2 * var(--space-4)); }
  .watch-actions::-webkit-scrollbar { display: none; }
  .watch-actions .act { flex-shrink: 0; }
  .watch-actions .dropdown { position: static; }
  .channel { width: 100%; }
  .channel .btn { margin-left: auto; }
  .desc-box .recipe-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .watch-side .up-next { grid-template-columns: 150px minmax(0, 1fr); }
  .text-hero { min-height: 200px; padding: 28px; margin: 0 calc(-1 * var(--space-4)); border-radius: 0; }
  .text-hero p { font-size: 1.3rem; }
}
.shelf-card .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desc-box .cook-note { padding: 10px 0 0; border: 0; border-top: 1px solid var(--color-border); border-radius: 0; background: none; }
.watch .rate-section { display: block; text-align: left; }
.comment + .comment, .comment-list .comment { border: 0; }
.comment-form .input-pill { border-width: 0 0 1px; border-radius: 0; padding-left: 0; background: transparent; }
.comment-form .input-pill:focus-within { box-shadow: 0 1px 0 var(--color-text); border-color: var(--color-text); }
body.wide .page { padding-top: var(--space-6); max-width: 2000px; }
body.home-page .page { padding-top: 0; }
.watch-side > .card + .card { margin-top: 0; }
.chip-link.on-dark { background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-text); }
.chip-link.on-dark:hover { background: var(--color-chip-hover); color: var(--color-text); }
.btn.on-dark { --btn-bg: var(--color-text); --btn-fg: var(--color-background); }
@media (max-width: 767px) { .watch .media.full { border-radius: 0; } }

/* ---------- Channel (profile) refinements ---------- */
.profile-info .profile-avatar { border: 0; box-shadow: none; }
.profile-handle .pill.primary { background: var(--color-primary-soft); color: var(--color-primary); }
.profile-stats { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 8px 0 0; border: 0; background: none; color: var(--color-text-muted); font-size: var(--text-sm); }
.profile-stats > div { display: inline-flex; flex-direction: row; align-items: baseline; gap: 4px; padding: 0; background: none; text-align: left; }
.profile-stats > div + div::before { content: '·'; margin: 0 8px; color: var(--color-text-subtle); }
.profile-stats dd { order: -1; margin: 0; font-size: var(--text-sm); font-weight: 650; color: var(--color-text); letter-spacing: 0; }
.profile-stats dt { font-size: var(--text-sm); font-weight: 400; color: var(--color-text-muted); }
.profile-bio { color: var(--color-text-muted); margin-top: 8px; }
body.wide .post-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
@media (max-width: 767px) {
  .profile-stats > div { padding: 0; }
  .profile-stats dd, .profile-stats dt { font-size: 13px; }
  body.wide .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
}
.profile-stats > div + div::before { order: -2; }
body.wide .post-grid .grid-item { aspect-ratio: 16 / 10; }
body.wide .post-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.grid-item img { object-position: center 40%; }
@media (max-width: 767px) { body.wide .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } body.wide .post-grid .grid-item { aspect-ratio: 1; } }
@media (max-width: 767px) {
  .profile-stats > div { flex: none; padding: 0; text-align: left; }
}
