/* ═══════════════════════════════════════════════════════════════
   Only – Master CSS
   ═══════════════════════════════════════════════════════════════ */

/* ─── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Logo immer auf explizite Größe beschränken */
img[src*="logo.svg"] { display:block; flex-shrink:0; }

:root {
  --only-primary:      #6C63FF;
  --only-primary-dark: #574fd6;
  --only-accent:       #FF6584;
  --only-diamond:      #43D9E8;

  /* Dark Theme – OnlyDay Style */
  --bg:          #0a0a0a;
  --surface:     #111111;
  --surface-2:   #1c1c1c;
  --border:      rgba(255,255,255,.08);
  --text:        #f0f0f0;
  --text-muted:  #888888;
  --text-light:  #3a3a3a;

  --nav-h:       49px;
  --topbar-h:    54px;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 2px 16px rgba(0,0,0,.5);
  --shadow-lg:   0 8px 40px rgba(0,0,0,.7);

  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top:    env(safe-area-inset-top, 0px);

  --danger:        #e53e3e;
  --success:       #16a34a;
  --surface-1:     #111111;
  --primary:       #6C63FF;
  --border-subtle: rgba(255,255,255,.04);
}

/* Light Theme Override */
[data-theme="light"] {
  --bg:          #fafafa;
  --surface:     #ffffff;
  --surface-2:   #f0f0f0;
  --border:      rgba(0,0,0,.08);
  --text:        #0d0d0d;
  --text-muted:  #8a8a8a;
  --text-light:  #cccccc;
  --shadow:      0 2px 16px rgba(0,0,0,.08);
  --shadow-lg:   0 8px 40px rgba(0,0,0,.14);
  --surface-1:   #ffffff;
  --border-subtle: rgba(0,0,0,.04);
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 16px);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
input, textarea { font-family: inherit; }

/* ─── Utility ─────────────────────────────────────────────────── */
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

/* ─── Buttons ─────────────────────────────────────────────────── */
.only-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 50px;
  border: none;
  font-size: .92rem;
  font-weight: 600;
  transition: opacity .15s, background .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.only-btn:active { transform: scale(.97); }

.only-btn--primary {
  background: var(--only-primary);
  color: #fff;
}
.only-btn--primary:hover { background: var(--only-primary-dark); }

.only-btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.only-btn--ghost:hover { background: var(--surface-2); }

.only-btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.only-btn--outline:hover { background: var(--surface-2); }

.only-btn--danger { background: #e53e3e; color: #fff; }
.only-btn--lg { padding: 13px 32px; font-size: 1rem; }
.only-btn--sm { padding: 6px 14px; font-size: .82rem; }
.only-btn--full { width: 100%; }

/* ─── Avatar ──────────────────────────────────────────────────── */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
}
.avatar-sm  { width: 32px; height: 32px; font-size: 13px; }
.avatar-md  { width: 48px; height: 48px; font-size: 19px; }
.avatar-lg  { width: 80px; height: 80px; font-size: 32px; }
.avatar-xl  { width: 120px; height: 120px; font-size: 48px; }

/* ─── Badge (Benachrichtigungen) ──────────────────────────────── */
.only-badge {
  position: absolute;
  top: 2px; right: calc(50% - 20px);
  min-width: 16px; height: 16px;
  background: #e53e3e;
  color: #fff;
  font-size: 10px; font-weight: 700;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; line-height: 1;
}
.only-badge:empty { display: none; }

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */

/* ─── Guest Nav ───────────────────────────────────────────────── */
.only-nav--guest {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.only-nav__actions { display: flex; align-items: center; gap: 8px; }

/* ─── Desktop Topbar ──────────────────────────────────────────── */
.only-topbar {
  display: none; /* nur Desktop */
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  align-items: center; justify-content: space-between;
}
.only-topbar__nav {
  display: flex; align-items: center; gap: 4px;
}
.only-topbar__item {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: var(--text);
  transition: background .12s;
}
.only-topbar__item:hover { background: var(--surface-2); }
.only-topbar__item.active { color: var(--only-primary); }

@media (min-width: 768px) {
  .only-topbar { display: flex; }
  body { padding-top: var(--topbar-h); padding-bottom: 40px; }
  .only-bottom-nav { display: none !important; }
  .only-settings-panel { top: var(--topbar-h); }
}

/* ─── Mobile Bottom Nav ───────────────────────────────────────── */
.only-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-around;
  padding-left: 4px; padding-right: 4px;
}
.only-bottom-nav__item {
  position: relative;
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  height: var(--nav-h);
  color: var(--text);
  background: none; border: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .12s;
}
.only-bottom-nav__item:active { opacity: .6; }
.only-bottom-nav__item .ico-fill { display: none; }
.only-bottom-nav__item.active .ico-out  { display: none; }
.only-bottom-nav__item.active .ico-fill { display: block; }
.only-bottom-nav__item.active { color: var(--only-primary); }

/* Plus-Button (Only erstellen) */
.only-bottom-nav__create { flex: none; }
.only-create-icon {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  background: var(--only-primary);
  color: #fff;
  border-radius: 14px;
  transition: transform .15s, background .15s;
}
.only-bottom-nav__create:active .only-create-icon { transform: scale(.93); }

/* ─── Settings Panel ──────────────────────────────────────────── */
.only-settings-panel {
  position: fixed; inset: 0; z-index: 3000;
  background: var(--surface);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.only-settings-panel.open { transform: translateX(0); pointer-events: auto; }

.only-sp__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + var(--safe-top)) 8px 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.only-sp__back {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; border-radius: 50%;
  color: var(--text);
}
.only-sp__back:active { background: var(--surface-2); }
.only-sp__title { font-size: .92rem; font-weight: 700; flex: 1; text-align: center; }

.only-sp__scroll {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: calc(20px + var(--safe-bottom));
}
.only-sp__section { margin-bottom: 4px; }
.only-sp__section-label { padding: 16px 16px 6px; font-size: .78rem; font-weight: 600; color: var(--text-muted); }
.only-sp__group {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.only-sp__item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--surface-2);
  -webkit-tap-highlight-color: transparent;
  transition: background .1s;
}
.only-sp__item:last-child { border-bottom: none; }
.only-sp__item:active { background: var(--surface-2); }
.only-sp__item--admin { color: #1d4ed8; }
.only-sp__item-icon {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #333;
}
.only-sp__item-icon--verified { background: #e8f0fe; color: #1877f2; }
.only-sp__item-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.only-sp__item-label { font-size: .9rem; font-weight: 500; }
.only-sp__item-label--verified { color: #1877f2; font-weight: 600; }
.only-sp__item-sub { font-size: .72rem; color: var(--text-muted); }
.only-sp__item-arrow { color: var(--text-light); flex-shrink: 0; }
.only-sp__badge { font-size: .65rem; font-weight: 700; background: #7C1D3C; color: #fff; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.only-sp__badge--active { background: #16a34a; }
.only-sp__logout-wrap { padding: 20px 16px 8px; }
.only-sp__logout {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 13px 16px;
  background: rgba(220,38,38,.12); border: none; border-radius: var(--radius);
  color: #ef4444; font-size: .9rem; font-weight: 600;
  transition: background .15s;
}
.only-sp__logout:active { background: rgba(220,38,38,.2); }

/* ═══════════════════════════════════════════════════════════════
   GUEST PAGE
   ═══════════════════════════════════════════════════════════════ */
.guest-hero {
  display: flex; flex-direction: column; align-items: center;
  min-height: calc(100vh - 60px);
  padding: 40px 20px 60px;
}
.guest-hero__inner {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; max-width: 420px; width: 100%;
}
.guest-hero__logo { margin-bottom: 28px; }
.guest-hero__logo img { width: 72px; height: 72px; }
.guest-hero__headline {
  font-size: 2rem; font-weight: 800; line-height: 1.2;
  margin-bottom: 12px; letter-spacing: -.5px;
}
.guest-hero__sub { font-size: 1rem; color: var(--text-muted); margin-bottom: 32px; }
.guest-hero__cta { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.guest-hero__cta .only-btn { width: 100%; max-width: 320px; }
.guest-hero__login-hint { font-size: .88rem; color: var(--text-muted); }
.guest-hero__login-hint a { color: var(--only-primary); font-weight: 600; }

.guest-features { width: 100%; max-width: 900px; margin: 40px auto 0; padding: 0 16px; }
.guest-features__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.guest-feature {
  background: var(--surface); border-radius: var(--radius);
  padding: 24px 20px; text-align: center;
  box-shadow: var(--shadow);
}
.guest-feature__icon {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, var(--only-primary), var(--only-accent));
  color: #fff; margin: 0 auto 14px;
}
.guest-feature__title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.guest-feature__text { font-size: .85rem; color: var(--text-muted); line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════════
   AUTH PAGES (Login / Register / Forgot)
   ═══════════════════════════════════════════════════════════════ */
body.page-auth {
  padding-bottom: 20px !important;  /* kein Bottom-Nav-Padding */
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 100vh;
}
.page-auth {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 20px; width: 100%;
}
.auth-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%; max-width: 400px;
  padding: 36px 28px;
}
.auth-card__logo {
  display: flex; flex-direction: column; align-items: center;
  margin: 0 auto 24px; text-align: center; text-decoration: none;
  color: var(--text);
}
.auth-card__logo img {
  width: 48px !important; height: 48px !important;
  max-width: 48px !important; max-height: 48px !important;
  margin: 0 auto 8px; border-radius: 12px;
}
.auth-card__logo span { display: block; font-size: 1.4rem; font-weight: 800; }
.auth-card__title { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; text-align: center; }
.auth-card__sub { font-size: .88rem; color: var(--text-muted); text-align: center; margin-bottom: 24px; line-height: 1.5; }

/* Form Fields */
.only-field { margin-bottom: 14px; }
.only-field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 5px; color: var(--text-muted); }
.only-input {
  width: 100%; padding: 11px 14px;
  background: var(--surface-2); border: 1.5px solid transparent;
  border-radius: var(--radius-sm); font-size: .95rem; color: var(--text);
  transition: border-color .15s, background .15s; outline: none;
}
.only-input:focus { border-color: var(--only-primary); background: var(--surface); }
.only-input.error { border-color: #e53e3e; }

.only-form-error { font-size: .82rem; color: #e53e3e; margin-top: 4px; display: none; }
.only-form-error.show { display: block; }

.only-alert {
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: .88rem; margin-bottom: 14px;
}
.only-alert--error   { background: #fff5f5; color: #c0392b; border: 1px solid #fbb; }
.only-alert--success { background: #f0fff4; color: #276749; border: 1px solid #9ae6b4; }

.auth-card__footer { text-align: center; margin-top: 18px; font-size: .88rem; color: var(--text-muted); }
.auth-card__footer a { color: var(--only-primary); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════
   HOME – Story Ring
   ═══════════════════════════════════════════════════════════════ */
.only-home { max-width: 680px; margin: 0 auto; }

.only-story-ring {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  margin-bottom: 4px;
  overflow: hidden;
}
.only-story-ring__scroll {
  display: flex; align-items: flex-start;
  gap: 14px; padding: 2px 16px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.only-story-ring__scroll::-webkit-scrollbar { display: none; }

.only-story-ring__item {
  display: flex; flex-direction: column; align-items: center;
  gap: 5px; cursor: pointer; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.only-story-ring__avatar-wrap {
  position: relative;
  width: 58px; height: 58px;
}
.only-story-ring__avatar-wrap .avatar {
  width: 58px; height: 58px;
  border: 2.5px solid var(--border);
  padding: 2px;
}
/* Unseen ring */
.only-story-ring__item--unseen .avatar {
  border-color: transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              linear-gradient(135deg, var(--only-primary), var(--only-accent)) border-box;
}
/* Self – kein Ring, Plus-Button */
.only-story-ring__add-btn {
  position: absolute; bottom: 0; right: 0;
  width: 20px; height: 20px;
  background: var(--only-primary); color: #fff;
  border-radius: 50%; border: 2px solid var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
}
.only-story-ring__name {
  font-size: .7rem; color: var(--text-muted);
  max-width: 60px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; text-align: center;
}
.only-story-ring__dynamic { display: contents; }

/* ─── Explore Feed Grid ───────────────────────────────────────── */
.only-explore-feed { padding: 4px 0; }
.only-explore-feed__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

/* Only-Kachel */
.only-tile {
  position: relative;
  aspect-ratio: 9/16;
  background: var(--surface-2);
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.only-tile img, .only-tile video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .2s;
}
.only-tile:hover img, .only-tile:hover video { transform: scale(1.03); }

/* Moment-Kachel (größer = 2 Spalten) */
.only-tile--moment {
  grid-column: span 2;
}
.only-tile__overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 8px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: #fff;
}
.only-tile__moment-title { font-size: .75rem; font-weight: 700; line-height: 1.2; }
.only-tile__moment-diamonds {
  display: flex; align-items: center; gap: 3px;
  font-size: .68rem; opacity: .85; margin-top: 2px;
}
.only-tile__video-icon {
  position: absolute; top: 8px; right: 8px;
  color: #fff; opacity: .85;
}

/* Ad-Kachel */
.only-tile--ad { grid-column: span 3; }
.only-ad-card {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
  display: flex; gap: 14px; align-items: center;
}
.only-ad-card__img { width: 70px; height: 70px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.only-ad-card__body { flex: 1; min-width: 0; }
.only-ad-card__label { font-size: .68rem; color: var(--text-muted); margin-bottom: 2px; }
.only-ad-card__title { font-size: .92rem; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.only-ad-card__desc  { font-size: .8rem; color: var(--text-muted); line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.only-ad-card__btn   { flex-shrink: 0; }

/* Loading Placeholder */
.only-feed-placeholder {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: center;
  padding: 60px 0;
}
.only-feed-placeholder__ring {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--only-primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════
   GLOBAL ONLY PLAYER
   ═══════════════════════════════════════════════════════════════ */
.only-player {
  position: fixed; inset: 0; z-index: 5000;
  display: flex; align-items: center; justify-content: center;
  background: #000;
}
.only-player__overlay {
  position: absolute; inset: 0;
}
.only-player__container {
  position: relative; z-index: 1;
  width: 100%; max-width: 480px;
  height: 100vh; height: 100dvh;
  background: #000;
  display: flex; flex-direction: column;
  overflow: hidden;
}
@media (min-width: 600px) {
  .only-player__container {
    height: 90vh; height: 90dvh; max-height: 840px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
  }
}

/* Progress */
.only-player__progress {
  display: flex; gap: 3px;
  padding: calc(var(--safe-top) + 8px) 8px 0;
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
}
.only-player__progress-seg {
  flex: 1; height: 2.5px; background: rgba(255,255,255,.35);
  border-radius: 2px; overflow: hidden;
}
.only-player__progress-seg.done { background: rgba(255,255,255,.9); }
.only-player__progress-seg.active {
  background: rgba(255,255,255,.35);
  position: relative; overflow: hidden;
}
.only-player__progress-seg.active::after {
  content: '';
  position: absolute; top: 0; left: 0; height: 100%;
  background: rgba(255,255,255,.9);
  animation: prog 5s linear forwards;
}
@keyframes prog { from { width: 0; } to { width: 100%; } }

/* Header */
.only-player__header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; gap: 10px;
  padding: calc(var(--safe-top) + 24px) 10px 12px;
  background: linear-gradient(rgba(0,0,0,.45), transparent);
}
.only-player__close {
  background: none; border: none; color: #fff; padding: 4px;
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.only-player__user {
  flex: 1; display: flex; align-items: center; gap: 8px; color: #fff; min-width: 0;
}
.only-player__avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(255,255,255,.6); flex-shrink: 0; }
.only-player__username { font-size: .88rem; font-weight: 700; }
.only-player__time { font-size: .75rem; opacity: .75; margin-left: 4px; }
.only-player__more { background: none; border: none; color: #fff; display: flex; align-items: center; -webkit-tap-highlight-color: transparent; }

/* Media */
.only-player__media {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.only-player__img  { width: 100%; height: 100%; object-fit: cover; }
.only-player__video { width: 100%; height: 100%; object-fit: cover; }
.only-player__text-card {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
}
.only-player__text-card p { color: #fff; font-size: 1.6rem; font-weight: 700; text-align: center; line-height: 1.4; }

/* Stickers */
.only-player__stickers { position: absolute; inset: 0; pointer-events: none; z-index: 8; }

/* Bottom */
.only-player__bottom {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 10;
  padding: 0 14px calc(var(--safe-bottom) + 14px);
  background: linear-gradient(transparent, rgba(0,0,0,.6));
}
.only-player__music {
  display: flex; align-items: center; gap: 6px;
  color: #fff; font-size: .78rem; margin-bottom: 10px; opacity: .85;
}
.only-player__actions-row {
  display: flex; align-items: center; gap: 4px;
}
.only-player__action-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: none; border: none; color: #fff;
  padding: 6px 10px; border-radius: 8px;
  font-size: .72rem; font-weight: 700;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s;
}
.only-player__action-btn:active { transform: scale(.9); }
.only-player__action-btn.liked svg { fill: #e53e3e; stroke: #e53e3e; }
.only-player__views {
  display: flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.8); font-size: .78rem; margin-left: auto;
}

/* ─── Kommentar-Sheet ─────────────────────────────────────────── */
.only-player__comment-sheet {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  z-index: 20;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  max-height: 70vh; display: flex; flex-direction: column;
}
.only-player__comment-sheet.open { transform: translateY(0); }
.only-cs__handle {
  width: 36px; height: 4px; background: var(--border);
  border-radius: 2px; margin: 10px auto 0;
}
.only-cs__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px 8px; border-bottom: 1px solid var(--border);
}
.only-cs__title { font-size: .95rem; font-weight: 700; }
.only-cs__close { background: none; border: none; color: var(--text-muted); display: flex; align-items: center; }
.only-cs__list { flex: 1; overflow-y: auto; padding: 10px 0; -webkit-overflow-scrolling: touch; }
.only-cs__input-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px calc(10px + var(--safe-bottom));
  border-top: 1px solid var(--border);
}
.only-cs__input-row input {
  flex: 1; background: var(--surface-2); border: none; border-radius: 50px;
  padding: 9px 14px; font-size: .9rem; outline: none; color: var(--text);
}
.only-cs__send { background: none; border: none; color: var(--only-primary); display: flex; align-items: center; }

/* Kommentar-Item */
.only-comment {
  display: flex; gap: 10px; padding: 8px 16px;
}
.only-comment__body { flex: 1; min-width: 0; }
.only-comment__name { font-size: .82rem; font-weight: 700; }
.only-comment__text { font-size: .88rem; margin-top: 2px; line-height: 1.4; }
.only-comment__meta {
  display: flex; align-items: center; gap: 12px; margin-top: 4px;
  font-size: .72rem; color: var(--text-muted);
}
.only-comment__like { background: none; border: none; color: var(--text-muted); display: flex; align-items: center; gap: 3px; font-size: .72rem; cursor: pointer; }
.only-comment__like.liked { color: #e53e3e; }

/* ═══════════════════════════════════════════════════════════════
   STATIC PAGES
   ═══════════════════════════════════════════════════════════════ */
.only-static-page {
  max-width: 680px; margin: 0 auto; padding: 32px 20px 60px;
}
.only-static-page__inner h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 20px; }
.only-static-page__inner h2 { font-size: 1.05rem; font-weight: 700; margin: 24px 0 8px; }
.only-static-page__inner p  { font-size: .92rem; line-height: 1.65; color: var(--text); margin-bottom: 10px; }
.only-static-page__inner ul { margin: 0 0 12px 20px; }
.only-static-page__inner li { font-size: .92rem; line-height: 1.65; margin-bottom: 4px; }
.only-static-page__inner a  { color: var(--only-primary); }
.only-static-page__inner em { color: var(--text-muted); font-style: normal; font-size: .85rem; }

/* FAQ */
.only-faq { margin-top: 20px; border-top: 1px solid var(--border); }
.only-faq__item { border-bottom: 1px solid var(--border); }
.only-faq__q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 16px 0; font-size: .95rem; font-weight: 600; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  cursor: pointer;
}
.only-faq__q svg { flex-shrink: 0; transition: transform .2s; }
.only-faq__item.open .only-faq__q svg { transform: rotate(180deg); }
.only-faq__a {
  display: none; padding: 0 0 14px;
  font-size: .88rem; line-height: 1.6; color: var(--text-muted);
}
.only-faq__item.open .only-faq__a { display: block; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.only-footer {
  text-align: center; padding: 24px 20px 12px;
  border-top: 1px solid var(--border); margin-top: 40px;
}
.only-footer__links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
  margin-bottom: 10px;
}
.only-footer__links a { font-size: .8rem; color: var(--text-muted); }
.only-footer__links a:hover, .only-footer__links a.active { color: var(--only-primary); }
.only-footer__lang { display: flex; gap: 6px; align-items: center; }
.only-footer__lang a { font-size: .8rem; color: var(--text-muted); font-weight: 600; }
.only-footer__lang a.active { color: var(--only-primary); }
.only-footer__copy { font-size: .75rem; color: var(--text-light); }

/* ═══════════════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════════════ */
#only-toast {
  position: fixed; bottom: calc(var(--nav-h) + var(--safe-bottom) + 12px); left: 50%; z-index: 9999;
  transform: translateX(-50%) translateY(20px);
  background: #111; color: #fff;
  padding: 10px 18px; border-radius: 50px;
  font-size: .88rem; font-weight: 500;
  opacity: 0; transition: opacity .2s, transform .2s;
  pointer-events: none; white-space: nowrap;
}
#only-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .only-home { padding-top: 16px; }
  .only-explore-feed__grid { grid-template-columns: repeat(3, 1fr); gap: 3px; }
  .guest-hero { padding-top: 80px; }
  .guest-hero__headline { font-size: 2.8rem; }
}

@media (min-width: 1024px) {
  .only-home { max-width: 800px; }
}

/* ═══════════════════════════════════════════════════════════════
   PROFILE
   ═══════════════════════════════════════════════════════════════ */
.only-profile { max-width: 680px; margin: 0 auto; }
.only-profile__blocked { padding: 60px 20px; text-align: center; color: var(--text-muted); }

.only-profile__header {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 20px 16px 16px;
}
.only-profile__avatar-wrap { position: relative; flex-shrink: 0; }
.only-profile__verified-badge {
  position: absolute; bottom: 2px; right: 2px;
  width: 22px; height: 22px;
  background: var(--surface); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.only-profile__info { flex: 1; min-width: 0; }
.only-profile__name-row { margin-bottom: 10px; }
.only-profile__username { font-size: 1.1rem; font-weight: 800; line-height: 1.2; }
.only-profile__displayname { font-size: .88rem; color: var(--text-muted); display: block; margin-top: 2px; }

.only-profile__stats {
  display: flex; gap: 16px; margin-bottom: 10px; flex-wrap: wrap;
}
.only-profile__stat { display: flex; flex-direction: column; align-items: center; cursor: default; }
.only-profile__stat a { cursor: pointer; }
.only-profile__stat-value { font-size: 1rem; font-weight: 800; }
.only-profile__stat-label { font-size: .72rem; color: var(--text-muted); }

.only-profile__bio { font-size: .88rem; line-height: 1.5; margin-bottom: 6px; white-space: pre-wrap; }
.only-profile__website { font-size: .85rem; color: var(--only-primary); font-weight: 600; display: block; margin-bottom: 12px; }
.only-profile__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* Story row on profile */
.only-profile__story-row {
  display: flex; gap: 2px;
  padding: 4px 0; border-bottom: 1px solid var(--border);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.only-profile__story-row::-webkit-scrollbar { display: none; }
.only-profile__story-item {
  position: relative; flex-shrink: 0;
  width: calc(33.33vw - 2px); max-width: 160px;
  aspect-ratio: 9/16; background: var(--surface-2);
  overflow: hidden; cursor: pointer;
}
.only-profile__story-item img { width: 100%; height: 100%; object-fit: cover; }
.only-profile__story-placeholder { width: 100%; height: 100%; background: var(--surface-2); }

/* Moments Grid on profile (2-col) */
.only-profile__moments { padding: 16px 0 0; }
.only-profile__moments-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px 10px; font-weight: 700;
}
.only-profile__moments-manage { font-size: .82rem; color: var(--only-primary); }
.only-profile__moments-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
}
.only-tile--profile { aspect-ratio: 4/5; }
.only-tile__placeholder { width: 100%; height: 100%; background: var(--surface-2); }
.only-tile__text-thumb {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
}
.only-tile__text-thumb p { color: #fff; font-size: .72rem; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }

.only-profile__empty { padding: 50px 20px; text-align: center; color: var(--text-muted); font-size: .9rem; }

.only-verified-check { color: var(--only-primary); font-size: .75rem; margin-left: 2px; }

/* ═══════════════════════════════════════════════════════════════
   CREATE
   ═══════════════════════════════════════════════════════════════ */
.only-create { max-width: 520px; margin: 0 auto; padding-bottom: 40px; }
.only-create__header { padding: 20px 16px 12px; display: flex; align-items: center; justify-content: space-between; }
.only-create__header h1 { font-size: 1.2rem; font-weight: 800; }
.only-create__counter { font-size: .82rem; color: var(--text-muted); }
.only-create__counter.limit { color: #e53e3e; font-weight: 700; }

.only-create__type-tabs {
  display: flex; gap: 2px; padding: 0 16px 14px; border-bottom: 1px solid var(--border); margin-bottom: 16px;
}
.only-create__type-tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 0; border: none; border-radius: 8px;
  background: var(--surface-2); color: var(--text-muted); font-size: .82rem; font-weight: 600;
  transition: background .15s, color .15s;
}
.only-create__type-tab.active { background: var(--only-primary); color: #fff; }

.only-create__preview { padding: 0 16px; margin-bottom: 16px; }
.only-create__preview-box {
  width: 100%; aspect-ratio: 9/16; max-height: 340px;
  background: #111; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin-bottom: 10px;
}
.only-create__preview-box img,
.only-create__preview-box video { width: 100%; height: 100%; object-fit: cover; }

.only-create__file-label {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 8px;
  background: var(--surface-2); color: var(--text-muted); font-size: .88rem; font-weight: 600;
  cursor: pointer; border: 1.5px dashed var(--border); width: 100%;
}

.only-create__text-card {
  width: 100%; aspect-ratio: 9/16; max-height: 340px;
  border-radius: var(--radius); background: #000;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px; transition: background .2s;
}
.only-create__text-input {
  background: none; border: none; outline: none; color: #fff;
  font-size: 1.4rem; font-weight: 700; text-align: center;
  width: 100%; resize: none; line-height: 1.4; padding: 20px;
}
.only-create__text-input::placeholder { color: rgba(255,255,255,.4); }

.only-create__bg-colors { display: flex; gap: 8px; flex-wrap: wrap; }
.only-create__bg-color {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent;
  cursor: pointer; transition: border-color .15s, transform .15s; flex-shrink: 0;
}
.only-create__bg-color.selected,
.only-create__bg-color:focus { border-color: var(--only-primary); transform: scale(1.15); outline: none; }

.only-create__field { padding: 0 16px; margin-bottom: 14px; }
.only-create__field--toggle { display: flex; align-items: center; justify-content: space-between; }

/* Toggle Switch */
.only-toggle { position: relative; display: inline-block; width: 44px; height: 26px; }
.only-toggle input { opacity: 0; width: 0; height: 0; }
.only-toggle__slider,
.only-toggle__track {
  position: absolute; inset: 0;
  background: var(--border); border-radius: 26px;
  transition: background .2s;
  cursor: pointer;
}
.only-toggle__slider::before,
.only-toggle__track::before {
  content: ''; position: absolute;
  width: 20px; height: 20px; left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.only-toggle input:checked + .only-toggle__slider,
.only-toggle input:checked + .only-toggle__track { background: var(--only-primary); }
.only-toggle input:checked + .only-toggle__slider::before,
.only-toggle input:checked + .only-toggle__track::before { transform: translateX(18px); }

/* ═══════════════════════════════════════════════════════════════
   MESSAGES
   ═══════════════════════════════════════════════════════════════ */
.only-messages {
  display: flex; height: calc(100vh - var(--topbar-h));
  max-height: calc(100vh - 54px);
  overflow: hidden;
}
@media (max-width: 767px) {
  .only-messages { height: calc(100vh - var(--nav-h) - var(--safe-bottom)); }
  .only-messages__list { width: 100%; }
  .only-messages__conversation { display: none; position: fixed; inset: 0; z-index: 100; background: var(--surface); flex-direction: column; }
  .only-messages--open .only-messages__list { display: none; }
  .only-messages--open .only-messages__conversation { display: flex; }
}
@media (min-width: 768px) {
  .only-messages__list { width: 320px; flex-shrink: 0; border-right: 1px solid var(--border); }
  .only-messages__conversation { flex: 1; display: flex; flex-direction: column; }
  .only-messages__back { display: none; }
}

.only-messages__list { display: flex; flex-direction: column; overflow: hidden; }
.only-messages__list-header { padding: 14px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.only-messages__list-header h2 { font-size: 1rem; font-weight: 800; }
.only-messages__empty { padding: 40px 20px; text-align: center; color: var(--text-muted); font-size: .88rem; }

.only-messages__chat-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background .1s; position: relative;
}
.only-messages__chat-item:active,
.only-messages__chat-item.active { background: var(--surface-2); }
.only-messages__chat-info { flex: 1; min-width: 0; }
.only-messages__chat-name { font-size: .88rem; font-weight: 700; display: block; }
.only-messages__chat-preview { font-size: .78rem; color: var(--text-muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.only-messages__chat-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.only-messages__chat-time { font-size: .72rem; color: var(--text-muted); }

.only-messages__conversation { display: flex; flex-direction: column; }
.only-messages__conv-header {
  display: flex; align-items: center; gap: 10px;
  padding: calc(var(--safe-top) + 10px) 14px 10px;
  border-bottom: 1px solid var(--border); flex-shrink: 0;
  background: var(--surface);
}
.only-messages__back { background: none; border: none; color: var(--text); display: flex; align-items: center; }
.only-messages__conv-user { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 700; }
.only-messages__select-hint { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--text-muted); font-size: .9rem; }

.only-messages__msg-list { flex: 1; overflow-y: auto; padding: 12px 14px; -webkit-overflow-scrolling: touch; }
.only-messages__input-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px calc(10px + var(--safe-bottom));
  border-top: 1px solid var(--border); background: var(--surface); flex-shrink: 0;
}
.only-messages__input-row input {
  flex: 1; background: var(--surface-2); border: none; border-radius: 50px;
  padding: 10px 14px; font-size: .9rem; outline: none; color: var(--text);
}

.only-msg { display: flex; gap: 8px; margin-bottom: 10px; }
.only-msg--mine { flex-direction: row-reverse; }
.only-msg__bubble {
  max-width: 72%; padding: 9px 13px;
  border-radius: 18px; font-size: .9rem; line-height: 1.4;
  background: var(--surface-2); color: var(--text);
}
.only-msg--mine .only-msg__bubble { background: var(--only-primary); color: #fff; border-bottom-right-radius: 4px; }
.only-msg--theirs .only-msg__bubble { border-bottom-left-radius: 4px; }
.only-msg__img { max-width: 180px; border-radius: 12px; margin-bottom: 4px; }
.only-msg__time { font-size: .65rem; opacity: .6; display: block; margin-top: 3px; text-align: right; }

/* ═══════════════════════════════════════════════════════════════
   SETTINGS PAGE
   ═══════════════════════════════════════════════════════════════ */
.only-settings-page { max-width: 540px; margin: 0 auto; padding: 0 0 60px; }
.only-settings-page__header { padding: 20px 16px 8px; }
.only-settings-page__header h1 { font-size: 1.2rem; font-weight: 800; }

.only-settings-card {
  background: var(--surface); margin: 0 16px 16px;
  border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow);
}
.only-settings-card--danger { border: 1.5px solid #fbb; }
.only-settings-card__title { font-size: .9rem; font-weight: 700; color: var(--text-muted); margin-bottom: 16px; text-transform: uppercase; letter-spacing: .5px; }

.only-settings-avatar-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }

/* ═══════════════════════════════════════════════════════════════
   ARCHIVE
   ═══════════════════════════════════════════════════════════════ */
.only-archive { max-width: 680px; margin: 0 auto; }
.only-archive__header { padding: 20px 16px 12px; }
.only-archive__header h1 { font-size: 1.2rem; font-weight: 800; }
.only-archive__sub { font-size: .85rem; color: var(--text-muted); margin-top: 2px; }
.only-archive__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
}
.only-tile--archive .only-tile__overlay { pointer-events: none; }
.only-tile__archive-date { font-size: .68rem; opacity: .75; }
.only-tile__archive-stats { font-size: .68rem; opacity: .75; margin-top: 2px; }

.only-pagination {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 20px; color: var(--text-muted); font-size: .85rem;
}

/* ═══════════════════════════════════════════════════════════════
   CREDITS
   ═══════════════════════════════════════════════════════════════ */
.only-credits { max-width: 540px; margin: 0 auto; padding: 0 0 60px; }

.only-credits__balance {
  display: flex; flex-direction: column; align-items: center;
  padding: 30px 20px 20px; text-align: center;
}
.only-credits__balance-icon { font-size: 2.4rem; margin-bottom: 6px; }
.only-credits__balance-amount { font-size: 2.8rem; font-weight: 900; }
.only-credits__balance-label { font-size: .85rem; color: var(--text-muted); margin-top: 2px; }

.only-credits__verified-card {
  margin: 0 16px 16px;
  background: var(--surface); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
  display: flex; gap: 16px; align-items: flex-start;
  border: 1.5px solid var(--border);
}
.only-credits__verified-card.active { border-color: var(--only-primary); }
.only-credits__verified-icon { flex-shrink: 0; }
.only-credits__verified-info { flex: 1; min-width: 0; }
.only-credits__verified-info h2 { font-size: 1rem; font-weight: 800; margin-bottom: 8px; }
.only-credits__verified-active { color: #16a34a; font-size: .88rem; font-weight: 600; }
.only-credits__verified-perks { list-style: none; font-size: .85rem; line-height: 2; color: var(--text); }
.only-credits__verified-price { font-size: 1rem; font-weight: 800; color: var(--only-primary); margin: 10px 0; }
.only-credits__verified-not-enough { font-size: .82rem; color: var(--text-muted); margin: 8px 0; }

.only-credits__shop { padding: 0 16px; }
.only-credits__shop-title { font-size: 1rem; font-weight: 800; margin-bottom: 14px; }
.only-credits__packages { display: flex; gap: 12px; flex-wrap: wrap; }
.only-credits__package {
  flex: 1; min-width: 120px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 18px 14px;
  text-align: center; position: relative;
  box-shadow: var(--shadow);
}
.only-credits__package.popular { border-color: var(--only-primary); }
.only-credits__package-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--only-primary); color: #fff; font-size: .65rem; font-weight: 700;
  padding: 2px 10px; border-radius: 20px; white-space: nowrap;
}
.only-credits__package-name  { font-size: .78rem; color: var(--text-muted); font-weight: 600; margin-bottom: 6px; }
.only-credits__package-amount { font-size: 1.6rem; font-weight: 900; }
.only-credits__package-label { font-size: .72rem; color: var(--text-muted); margin-bottom: 8px; }
.only-credits__package-price { font-size: .9rem; font-weight: 700; color: var(--only-primary); margin-bottom: 10px; }
.only-credits__bonus { font-size: .62rem; background: #d1fae5; color: #065f46; padding: 1px 6px; border-radius: 20px; font-weight: 700; }
.only-credits__shop-note { font-size: .75rem; color: var(--text-muted); margin-top: 14px; }

.only-credits__history { padding: 20px 16px 0; }
.only-credits__tx { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .85rem; }
.only-credits__tx-desc { flex: 1; }
.only-credits__tx-amount { font-weight: 700; }
.only-credits__tx-amount.positive { color: #16a34a; }
.only-credits__tx-amount.negative { color: #e53e3e; }
.only-credits__tx-date { font-size: .72rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════
   MOMENTS PAGE
   ═══════════════════════════════════════════════════════════════ */
.only-moments-page { max-width: 540px; margin: 0 auto; padding-bottom: 60px; }
.only-moments-page__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 16px 12px;
}
.only-moments-page__header h1 { font-size: 1.2rem; font-weight: 800; }

.only-moments-list { padding: 0 16px; }
.only-moments-list__item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.only-moments-list__cover {
  width: 70px; height: 90px; border-radius: var(--radius-sm);
  overflow: hidden; flex-shrink: 0; background: var(--surface-2);
}
.only-moments-list__cover img { width: 100%; height: 100%; object-fit: cover; }
.only-moments-list__cover-empty {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.only-moments-list__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: .85rem; }
.only-moments-list__actions { display: flex; flex-direction: column; gap: 6px; }

/* Pick-Grid im Modal */
.only-moments-onlys-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  max-height: 320px; overflow-y: auto;
}
.only-moments-only-pick {
  aspect-ratio: 9/16; background: var(--surface-2); border-radius: var(--radius-sm);
  overflow: hidden; cursor: pointer; border: 2.5px solid transparent; transition: border-color .15s;
}
.only-moments-only-pick.selected { border-color: var(--only-primary); }
.only-moments-only-pick img { width: 100%; height: 100%; object-fit: cover; }

/* ═══════════════════════════════════════════════════════════════
   ADS PAGE
   ═══════════════════════════════════════════════════════════════ */
.only-ads-page { max-width: 540px; margin: 0 auto; padding-bottom: 60px; }
.only-ads-page__header { padding: 20px 16px 12px; }
.only-ads-page__header h1 { font-size: 1.2rem; font-weight: 800; }

.only-ads-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: .85rem; }
.only-ads-item__img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.only-ads-item__info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.only-ads-item__status { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; align-self: flex-start; }
.only-ads-item__status--active   { background: #d1fae5; color: #065f46; }
.only-ads-item__status--pending  { background: #fef3c7; color: #92400e; }
.only-ads-item__status--rejected { background: #fee2e2; color: #991b1b; }

/* ═══════════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════════ */
.only-modal {
  position: fixed; inset: 0; z-index: 8000;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.only-modal__box {
  background: var(--surface); border-radius: var(--radius);
  padding: 24px; width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.only-modal__box h2 { font-size: 1rem; font-weight: 800; margin-bottom: 16px; }

/* ═══════════════════════════════════════════════════════════════
   PROFILE — Animated Story Ring / Category / Links
   ═══════════════════════════════════════════════════════════════ */
@keyframes only-ring-spin {
  to { transform: rotate(360deg); }
}
.only-profile__avatar-wrap { position: relative; flex-shrink: 0; }

.only-profile__avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(
    #f09433, #e6683c, #dc2743, #cc2366, #bc1888,
    #6C63FF, #43D9E8, #f09433
  );
  animation: only-ring-spin 3s linear infinite;
  z-index: 0;
}
.only-profile__avatar-wrap.has-onlys .only-avatar {
  position: relative; z-index: 1;
  box-shadow: 0 0 0 3px var(--bg);
}
/* White gap ring between gradient and avatar */
.only-profile__avatar-ring::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--bg);
}

.only-profile__category {
  display: inline-block;
  font-size: .72rem; font-weight: 600; color: var(--text-muted);
  background: var(--surface-2); padding: 2px 10px;
  border-radius: 20px; margin-bottom: 8px;
  border: 1px solid var(--border);
}

.only-profile__links {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px;
}
.only-profile__link {
  display: flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 600;
  color: var(--only-primary);
  background: rgba(108,99,255,.1);
  padding: 5px 12px; border-radius: 20px;
  text-decoration: none; transition: background .15s;
  border: 1px solid rgba(108,99,255,.2);
}
.only-profile__link:hover { background: rgba(108,99,255,.2); }
.only-profile__link svg { flex-shrink: 0; opacity: .7; }

/* ═══════════════════════════════════════════════════════════════
   CREATOR — Canvas / Toolbar / Music / Share
   ═══════════════════════════════════════════════════════════════ */
.only-create__canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  max-height: calc(100vh - 200px);
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0;
  display: flex; align-items: center; justify-content: center;
}

.only-create__canvas-bg {
  position: absolute; inset: 0;
  background: #111;
  transition: background .2s;
}

.only-create__canvas-media {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.only-create__canvas-media img,
.only-create__canvas-media video {
  width: 100%; height: 100%; object-fit: cover;
}

.only-create__text-overlay {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800;
  color: #fff; text-align: center;
  padding: 20px;
  word-break: break-word;
  cursor: text;
  z-index: 10;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.only-create__text-overlay[contenteditable="true"]:empty::before {
  content: attr(data-placeholder);
  color: rgba(255,255,255,.4);
  pointer-events: none;
}

.only-create__music-widget {
  position: absolute; bottom: 60px; left: 12px; right: 12px;
  background: rgba(0,0,0,.6); backdrop-filter: blur(12px);
  border-radius: 10px; padding: 8px 12px;
  display: flex; align-items: center; gap: 10px;
  z-index: 15;
}
.only-create__music-artwork {
  width: 36px; height: 36px; border-radius: 6px;
  object-fit: cover; flex-shrink: 0;
}
.only-create__music-info { flex: 1; min-width: 0; }
.only-create__music-title {
  font-size: .78rem; font-weight: 700; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.only-create__music-artist {
  font-size: .68rem; color: rgba(255,255,255,.7);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.only-create__toolbar {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 8px;
  z-index: 20;
}
.only-create__tool-btn {
  width: 40px; height: 40px;
  background: rgba(0,0,0,.5); backdrop-filter: blur(8px);
  border: none; border-radius: 50%;
  color: #fff; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s;
}
.only-create__tool-btn:active { background: rgba(108,99,255,.7); }
.only-create__tool-btn.active { background: var(--only-primary); }

.only-create__publish-btn {
  position: absolute; bottom: 12px; right: 12px;
  z-index: 20;
}

/* Music Search Sheet */
.only-create__music-sheet {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end;
}
.only-create__music-sheet-inner {
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-height: 85vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.only-create__music-sheet-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 10px;
  flex-shrink: 0;
}
.only-create__music-sheet-header h3 { font-size: 1rem; font-weight: 800; }
.only-create__music-search-row {
  display: flex; gap: 8px; padding: 0 16px 12px; flex-shrink: 0;
}
.only-create__music-search-row input {
  flex: 1; background: var(--surface-2); border: none; outline: none;
  border-radius: 8px; padding: 10px 14px; font-size: .9rem; color: var(--text);
}
.only-create__music-results { flex: 1; overflow-y: auto; padding: 0 16px 16px; }
.only-create__music-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.only-create__music-item-artwork {
  width: 44px; height: 44px; border-radius: 6px;
  object-fit: cover; flex-shrink: 0; background: var(--surface-2);
}
.only-create__music-item-info { flex: 1; min-width: 0; }
.only-create__music-item-title {
  font-size: .88rem; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.only-create__music-item-artist {
  font-size: .78rem; color: var(--text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* BG Color Sheet */
.only-create__bg-sheet {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.85); backdrop-filter: blur(10px);
  padding: 12px 16px;
  display: flex; gap: 10px; flex-wrap: wrap;
  z-index: 20; border-radius: 0 0 var(--radius) var(--radius);
}

/* Share Widget on Canvas */
.only-share-widget {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; z-index: 10;
}
.only-share-widget__card {
  background: rgba(0,0,0,.6); backdrop-filter: blur(12px);
  border-radius: 14px; overflow: hidden;
  width: 100%; max-width: 220px;
  border: 1.5px solid rgba(255,255,255,.15);
}
.only-share-widget__thumb {
  width: 100%; aspect-ratio: 9/16;
  object-fit: cover; display: block;
}
.only-share-widget__info {
  padding: 10px 12px;
  display: flex; align-items: center; gap: 8px;
}
.only-share-widget__label {
  font-size: .72rem; color: rgba(255,255,255,.7);
  flex: 1; font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   PLAYER — Diamond Button / Dialog
   ═══════════════════════════════════════════════════════════════ */
.only-player__diamond-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 3px; background: none; border: none;
  color: var(--only-diamond); cursor: pointer;
  padding: 4px 8px;
  font-size: .68rem; font-weight: 700;
  transition: transform .15s;
}
.only-player__diamond-btn:active { transform: scale(.9); }
.only-player__diamond-btn span:first-child { font-size: 1.5rem; line-height: 1; }

.only-diamond-dialog {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
}
.only-diamond-dialog__panel {
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  width: 100%; max-width: 500px;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
}
.only-diamond-dialog__title {
  font-size: 1rem; font-weight: 800;
  text-align: center; margin-bottom: 6px;
}
.only-diamond-dialog__sub {
  font-size: .82rem; color: var(--text-muted);
  text-align: center; margin-bottom: 18px;
}
.only-diamond-dialog__amounts {
  display: flex; gap: 8px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 20px;
}
.only-diamond-amount-btn {
  background: var(--surface-2); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 10px 16px;
  font-size: .9rem; font-weight: 700; color: var(--text);
  cursor: pointer; transition: all .15s;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.only-diamond-amount-btn span { font-size: .65rem; color: var(--text-muted); font-weight: 400; }
.only-diamond-amount-btn.active {
  background: rgba(67,217,232,.12);
  border-color: var(--only-diamond);
  color: var(--only-diamond);
}
.only-diamond-amount-btn.active span { color: var(--only-diamond); }

/* ═══════════════════════════════════════════════════════════════
   SETTINGS — Link Input Rows
   ═══════════════════════════════════════════════════════════════ */
.only-link-row {
  display: flex; gap: 8px; margin-bottom: 10px;
  align-items: flex-start;
}
.only-link-row__inputs {
  flex: 1; display: flex; flex-direction: column; gap: 6px;
}
.only-link-row__num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface-2); color: var(--text-muted);
  font-size: .72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   MESSAGES — Disappearing Toggle
   ═══════════════════════════════════════════════════════════════ */
.only-msg--disappearing .only-msg__bubble {
  background: linear-gradient(135deg, rgba(108,99,255,.3), rgba(67,217,232,.2));
  border: 1.5px solid rgba(108,99,255,.35);
}
.only-msg--mine.only-msg--disappearing .only-msg__bubble {
  background: linear-gradient(135deg, #6C63FF, #43D9E8);
  border: none;
}
.only-msg__disappear-icon {
  font-size: .7rem; opacity: .7; margin-right: 4px;
}
.only-disappear-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 4px 6px;
  border-radius: 8px; display: flex; align-items: center;
  transition: color .15s, background .15s;
  font-size: 1.15rem;
}
.only-disappear-btn.active {
  color: var(--only-primary);
  background: rgba(108,99,255,.12);
}

/* ═══════════════════════════════════════════════════════════════
   TOAST (generic, if not already defined above)
   ═══════════════════════════════════════════════════════════════ */
.only-toast {
  position: fixed; bottom: calc(80px + env(safe-area-inset-bottom,0px));
  left: 50%; transform: translateX(-50%) translateY(10px);
  background: rgba(30,30,30,.95); color: #fff;
  padding: 10px 20px; border-radius: 30px;
  font-size: .85rem; font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 99999; white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}
.only-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ═══════════════════════════════════════════════════════════════
   CREATE OVERLAY (Fullscreen Iframe)
   ═══════════════════════════════════════════════════════════════ */
.only-create-overlay {
  position: fixed; inset: 0; z-index: 4000;
  background: var(--bg);
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.only-create-overlay.open {
  transform: translateY(0);
  pointer-events: auto;
}
.only-create-overlay__frame {
  flex: 1; border: none; width: 100%; height: 100%;
  background: var(--bg);
}

/* Create Overlay Bar (in iframe) */
.only-create-overlay-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--safe-top) + 10px) 8px 10px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.only-create-overlay-bar__close {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--text);
  border-radius: 50%; -webkit-tap-highlight-color: transparent;
}
.only-create-overlay-bar__close:active { background: var(--surface-2); }
.only-create-overlay-bar__title { font-size: .92rem; font-weight: 700; }

/* Overlay-Modus: kein bottom-nav-Padding */
.page-create--overlay {
  padding-bottom: 20px !important;
}

/* ═══════════════════════════════════════════════════════════════
   CONTACTS PANEL (Freunde)
   ═══════════════════════════════════════════════════════════════ */
.only-contacts-panel {
  position: fixed; inset: 0; z-index: 4000;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}
.only-contacts-panel__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.only-contacts-panel.open { pointer-events: auto; }
.only-contacts-panel.open .only-contacts-panel__backdrop {
  opacity: 1; pointer-events: auto;
}
.only-contacts-panel__sheet {
  position: relative; z-index: 1;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  max-height: 85vh; height: 85vh;
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom));
}
.only-contacts-panel.open .only-contacts-panel__sheet { transform: translateY(0); }

.only-contacts-panel__handle {
  width: 36px; height: 4px; background: var(--border);
  border-radius: 2px; margin: 10px auto 0; flex-shrink: 0;
}
.only-contacts-panel__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px 8px; flex-shrink: 0;
}
.only-contacts-panel__title { font-size: .95rem; font-weight: 700; }
.only-contacts-panel__close {
  background: none; border: none; color: var(--text-muted);
  display: flex; align-items: center; -webkit-tap-highlight-color: transparent;
}
.only-contacts-panel__tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.only-contacts-panel__tab {
  flex: 1; padding: 10px 0;
  background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--text-muted); font-size: .88rem; font-weight: 600;
  transition: color .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
  margin-bottom: -1px;
}
.only-contacts-panel__tab.active {
  color: var(--only-primary);
  border-bottom-color: var(--only-primary);
}
.only-contacts-panel__list {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 6px 0;
}
.only-contacts-panel__loader {
  display: flex; justify-content: center; padding: 30px;
}
.only-contacts-panel__empty {
  text-align: center; padding: 40px 20px;
  color: var(--text-muted); font-size: .88rem;
}

/* Contact Item */
.only-contact-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  text-decoration: none; color: var(--text);
  transition: background .1s;
  -webkit-tap-highlight-color: transparent;
}
.only-contact-item:active { background: var(--surface-2); }
.only-contact-item__avatar {
  flex-shrink: 0; border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color .15s;
}
.only-contact-item__avatar.has-onlys {
  border-color: var(--only-primary);
  padding: 1px;
}
.only-contact-item__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.only-contact-item__name { font-size: .9rem; font-weight: 700; }
.only-contact-item__sub  { font-size: .78rem; color: var(--text-muted); }
