/**
 * File: /var/www/flippulse.ohiomade.us/public/assets/css/flippulse.css
 * Version: v1.3.0-unified-shell-plus-feed-safe
 * Last edited: 2026-05-15 03:36:00 -0400
 */

:root {
  --bg: #020617;
  --panel: rgba(15,23,42,.45);
  --card: rgba(15,23,42,.58);
  --ink: #e2e8f0;
  --mut: #94a3b8;
  --accent: #0ea5e9;
  --accent-soft: rgba(14,165,233,.15);
  --danger: #f43f5e;
  --line: rgba(148,163,184,.12);
  --radius-lg: 18px;
  --radius-sm: 12px;
  --safe-top: max(12px, env(safe-area-inset-top));
  --safe-bot: max(12px, env(safe-area-inset-bottom));
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

html {
  min-height: 100%;
  background: #020617;
  color-scheme: dark;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(30,41,59,.82), transparent 38%),
    radial-gradient(circle at 5% 18%, rgba(14,165,233,.08), transparent 28%),
    #020617;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  padding-bottom: calc(60px + var(--safe-bot));
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* =========================================================
   FlipPulse unified shell
   ========================================================= */

.fp-shell-topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: calc(var(--safe-top) - 6px) 14px 8px;
  background: rgba(2,6,23,.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148,163,184,.08);
}

.fp-shell-inner {
  width: min(100%, 1180px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.fp-shell-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  max-width: 100%;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

.fp-shell-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(14,165,233,.10);
  border: 1px solid rgba(14,165,233,.34);
  overflow: hidden;
  flex: 0 0 auto;
}

.fp-shell-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fp-shell-brand-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.fp-shell-brand-text strong {
  font-size: 1.08rem;
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: -.015em;
  color: var(--ink);
}

.fp-shell-brand-text span {
  color: var(--mut);
  font-size: .7rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-shell-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
  min-width: 0;
}

.fp-shell-nav::-webkit-scrollbar {
  display: none;
}

.fp-shell-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 13px 8px;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: rgba(15,23,42,.18);
  color: var(--ink);
  text-decoration: none;
  font-size: .72rem;
  line-height: 1;
  white-space: nowrap;
  flex: 0 0 auto;
}

.fp-shell-nav-link.is-active {
  background: rgba(14,165,233,.16);
  border-color: rgba(14,165,233,.48);
}

.fp-shell-main {
  width: 100%;
  min-width: 0;
}

.fp-shell-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  background: rgba(2,6,23,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(148,163,184,.08);
  display: flex;
  gap: 10px;
  padding: 7px 10px calc(7px + var(--safe-bot));
  justify-content: center;
}

.fp-shell-bottom-link {
  flex: 1 1 0;
  max-width: 124px;
  min-height: 35px;
  border-radius: 9999px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(15,23,42,.08);
  color: var(--ink);
  text-decoration: none;
  font-size: .72rem;
  line-height: 1;
  padding: 8px 8px 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.fp-shell-bottom-link.is-active {
  border-color: rgba(14,165,233,.62);
  background: rgba(14,165,233,.12);
}

.fp-icon,
.fp-shell-nav-icon,
.fp-shell-bottom-icon,
.fp-shell-logo-icon {
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  min-height: 17px !important;
  max-width: 17px !important;
  max-height: 17px !important;
  display: inline-block !important;
  color: currentColor !important;
  fill: currentColor !important;
  stroke: currentColor !important;
  flex: 0 0 auto;
}

.fp-shell-logo-icon {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
}

/* =========================================================
   Legacy header/nav support
   ========================================================= */

header:not(.fp-shell-topbar) {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: calc(var(--safe-top) - 6px) 14px 6px;
  background: rgba(2,6,23,.66);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148,163,184,.08);
}

.top-title {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: .01rem;
  margin-bottom: 2px;
}

.top-sub {
  font-size: .68rem;
  color: var(--mut);
}

.tabs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  padding: 6px 14px 7px;
  border-radius: 9999px;
  background: rgba(15,23,42,.18);
  border: 1px solid transparent;
  color: var(--ink);
  font-size: .68rem;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}

.tab.active {
  background: rgba(14,165,233,.16);
  border-color: rgba(14,165,233,.45);
}

main:not(.fp-shell-main) {
  padding: 12px 10px 80px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 720px) {
  main:not(.fp-shell-main) {
    max-width: 720px;
    margin: 0 auto;
  }
}

/* =========================================================
   Status
   ========================================================= */

.status-bar {
  font-size: .7rem;
}

.status-ok,
.status-err {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 7px;
  border-radius: 10px;
}

.status-ok {
  background: rgba(14,165,233,.15);
  border: 1px solid rgba(14,165,233,.48);
}

.status-err {
  background: rgba(244,63,94,.12);
  border: 1px solid rgba(244,63,94,.4);
}

/* =========================================================
   Feed cards
   ========================================================= */

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  background:
    linear-gradient(180deg, rgba(15,23,42,.72), rgba(15,23,42,.48));
  border: 1px solid rgba(148,163,184,.11);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.16);
}

.media-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 50% 28%, rgba(30,41,59,.75) 0%, transparent 34%),
    linear-gradient(135deg, rgba(15,23,42,1), rgba(2,6,23,.96));
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-box img,
.media-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.media-fallback {
  inset: 0;
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background:
    linear-gradient(180deg, rgba(2,6,23,.08), rgba(2,6,23,.45)),
    radial-gradient(circle at 50% 50%, rgba(14,165,233,.05), transparent 38%);
  text-align: center;
  padding: 12px;
  transition: opacity .18s ease;
}

.media-fallback-clear {
  background: none;
  pointer-events: none;
}

.fallback-title {
  max-width: 82%;
  font-size: .72rem;
  color: rgba(226,232,240,.86);
  word-break: normal;
  line-height: 1.25;
  text-shadow: 0 1px 8px rgba(0,0,0,.55);
}

.play-btn {
  width: 54px;
  height: 54px;
  border-radius: 9999px;
  border: 1px solid rgba(226,232,240,.2);
  background: rgba(2,6,23,.18);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.16rem;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}

.play-btn-disabled {
  opacity: .4;
  cursor: default;
}

.body-box {
  padding: 11px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.v-title {
  font-weight: 750;
  font-size: .92rem;
  line-height: 1.25;
}

.v-desc {
  font-size: .69rem;
  color: var(--mut);
  line-height: 1.3;
  margin-top: 1px;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.user-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.avatar,
.fp-avatar-fallback {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  object-fit: cover;
  flex: 0 0 auto;
}

.avatar {
  background: rgba(148,163,184,.16);
}

.fp-avatar-fallback,
.avatar:not(img) {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: .62rem;
  line-height: 1;
  font-weight: 850;
  text-align: center;
  border: 1px solid rgba(148,163,184,.18);
  background:
    linear-gradient(135deg, rgba(14,165,233,.22), rgba(148,163,184,.10));
}

.user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.user-name {
  font-size: .7rem;
  font-weight: 700;
}

.time-line {
  font-size: .64rem;
  color: var(--mut);
  line-height: 1.25;
}

.badge-live {
  padding: 4px 10px 5px;
  border-radius: 9999px;
  border: 1px solid rgba(248,113,113,.42);
  background: rgba(248,113,113,.13);
  font-size: .62rem;
  white-space: nowrap;
  text-transform: lowercase;
}

.watch-btn {
  border: 1px solid rgba(148,163,184,.28);
  background: rgba(2,6,23,.16);
  border-radius: 9999px;
  padding: 6px 12px 7px;
  font-size: .67rem;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  white-space: nowrap;
}

.empty {
  text-align: center;
  color: var(--mut);
  font-size: .7rem;
  padding: 22px 10px;
}

/* Legacy bottom nav support */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(2,6,23,.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(148,163,184,.08);
  display: flex;
  gap: 10px;
  padding: 7px 10px calc(7px + var(--safe-bot));
  justify-content: center;
  z-index: 70;
}

.btab {
  flex: 1 1 0;
  max-width: 100px;
  border-radius: 9999px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(15,23,42,.08);
  text-align: center;
  font-size: .68rem;
  padding: 7px 6px 8px;
  color: var(--ink);
  text-decoration: none;
}

.btab.active {
  border-color: rgba(14,165,233,.62);
  background: rgba(14,165,233,.12);
}

/* =========================================================
   Mine page additions
   ========================================================= */

.fp-page-mine .thumb-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.media-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15,23,42,.72);
  border: 1px solid rgba(148,163,184,.26);
  border-radius: 999px;
  padding: 3px 9px 4px;
  font-size: .58rem;
  color: var(--ink);
  z-index: 3;
}

.actions-row {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.action-btn {
  border: 1px solid rgba(148,163,184,.24);
  background: rgba(15,23,42,.22);
  border-radius: 999px;
  color: var(--ink);
  font-size: .66rem;
  padding: 6px 12px 7px;
  -webkit-appearance: none;
  appearance: none;
}

.action-btn.danger {
  background: rgba(244,63,94,.12);
  border-color: rgba(244,63,94,.38);
  color: #ffe4e6;
}

/* =========================================================
   Feed media polish
   ========================================================= */

.fp-feed-media {
  overflow: hidden;
}

.fp-feed-video {
  background: #020617;
}

.fp-feed-overlay {
  background:
    linear-gradient(180deg, rgba(2,6,23,.04) 0%, rgba(2,6,23,.42) 100%);
}

.fp-feed-overlay .fallback-title {
  max-width: 80%;
  font-size: .74rem;
  color: rgba(226,232,240,.9);
  text-shadow: 0 1px 8px rgba(0,0,0,.55);
  word-break: normal;
}

.fp-media-duration,
.fp-media-audience {
  position: absolute;
  z-index: 4;
  border-radius: 999px;
  border: 1px solid rgba(226,232,240,.16);
  background: rgba(2,6,23,.62);
  color: var(--ink);
  backdrop-filter: blur(8px);
  font-size: .58rem;
  line-height: 1;
  padding: 5px 8px 6px;
}

.fp-media-duration {
  right: 8px;
  bottom: 8px;
}

.fp-media-audience {
  left: 8px;
  top: 8px;
  max-width: calc(100% - 16px);
  text-transform: capitalize;
}

.media-box.is-playing .media-fallback {
  opacity: 0;
  pointer-events: none;
}

/* =========================================================
   Emergency shell hard override
   Last edited: 2026-05-15 03:52:00 -0400
   ========================================================= */

body .fp-shell-topbar,
body .fp-shell-bottom-nav {
  display: block !important;
}

body .fp-shell-inner {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

body .fp-shell-brand,
body .fp-shell-nav-link,
body .fp-shell-bottom-link {
  text-decoration: none !important;
}

body .fp-shell-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  color: #e2e8f0 !important;
}

body .fp-shell-brand-text {
  display: flex !important;
  flex-direction: column !important;
}

body .fp-shell-nav {
  display: flex !important;
  flex-direction: row !important;
  gap: 8px !important;
  overflow-x: auto !important;
}

body .fp-shell-nav-link {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-height: 34px !important;
  padding: 7px 13px 8px !important;
  border-radius: 999px !important;
  background: rgba(15,23,42,.18) !important;
  border: 1px solid transparent !important;
  color: #e2e8f0 !important;
  font-size: .72rem !important;
  white-space: nowrap !important;
}

body .fp-shell-nav-link.is-active {
  background: rgba(14,165,233,.16) !important;
  border-color: rgba(14,165,233,.48) !important;
}

body .fp-shell-bottom-nav {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 95 !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 10px !important;
  justify-content: center !important;
  padding: 7px 10px calc(7px + max(12px, env(safe-area-inset-bottom))) !important;
  background: rgba(2,6,23,.92) !important;
  border-top: 1px solid rgba(148,163,184,.08) !important;
}

body .fp-shell-bottom-link {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  flex: 1 1 0 !important;
  max-width: 124px !important;
  min-height: 35px !important;
  border-radius: 999px !important;
  color: #e2e8f0 !important;
  background: rgba(15,23,42,.08) !important;
  border: 1px solid rgba(148,163,184,.16) !important;
  font-size: .72rem !important;
}

body .fp-shell-bottom-link.is-active {
  border-color: rgba(14,165,233,.62) !important;
  background: rgba(14,165,233,.12) !important;
}

body .fp-shell-topbar svg,
body .fp-shell-bottom-nav svg,
body .fp-shell-topbar .fp-icon,
body .fp-shell-bottom-nav .fp-icon {
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  min-height: 17px !important;
  max-width: 17px !important;
  max-height: 17px !important;
  display: inline-block !important;
  vertical-align: middle !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
}

/* =========================================================
   Desktop tightening
   ========================================================= */

@media (min-width: 760px) {
  .fp-shell-topbar {
    padding-left: 18px;
    padding-right: 18px;
  }

  .fp-shell-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .fp-shell-brand {
    flex: 0 0 auto;
  }

  .fp-shell-nav {
    justify-content: flex-end;
  }

  .fp-shell-bottom-nav {
    max-width: 760px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 22px 22px 0 0;
    border-left: 1px solid rgba(148,163,184,.08);
    border-right: 1px solid rgba(148,163,184,.08);
  }
}

@media (max-width: 420px) {
  .fp-shell-brand-text strong {
    font-size: 1rem;
  }

  .fp-shell-nav-link {
    padding-left: 12px;
    padding-right: 12px;
  }

  .fp-shell-bottom-link {
    font-size: .68rem;
    gap: 5px;
  }

  .fp-shell-bottom-icon {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
  }
}