/* ============================================================
   TIKTOK — 04
   Konsep: For You Page vertikal, snap scroll, duet, komentar.
   ============================================================ */
:root {
  --tt-red: #fe2c55;
  --tt-red-deep: #e01f45;
  --tt-cyan: #25f4ee;
  --tt-ink: #ffffff;
  --tt-muted: rgba(255, 255, 255, 0.72);
  --tt-faint: rgba(255, 255, 255, 0.48);
  --tt-line: rgba(255, 255, 255, 0.14);
  --tt-display: "Archivo", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --tt-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tt-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html, body { height: 100%; }
body {
  margin: 0; background: #000; color: var(--tt-ink);
  font-family: var(--tt-body); overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
body.tt-locked { overflow: hidden; }
img { background: #151515; }

/* ================= GATE ================= */
.tt-gate {
  position: fixed; inset: 0; z-index: 300; overflow: hidden;
  display: flex; flex-direction: column;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.tt-gate.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
.tt-gate__bg { position: absolute; inset: 0; }
.tt-gate__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; filter: saturate(0.85) contrast(1.05); transform: scale(1.04); }
.tt-gate__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.95) 2%, rgba(0, 0, 0, 0.62) 38%, rgba(0, 0, 0, 0.3) 70%, rgba(0, 0, 0, 0.55)),
    radial-gradient(80% 60% at 50% 45%, transparent 20%, rgba(0, 0, 0, 0.55) 100%);
}
.tt-gate__top {
  position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between;
  padding: calc(16px + env(safe-area-inset-top)) 18px 10px;
}
.tt-gate__back {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff;
  text-decoration: none; backdrop-filter: blur(8px);
}
.tt-gate__back svg { width: 18px; }
.tt-brand {
  font-family: var(--tt-display); font-weight: 900; font-size: 1.15rem; letter-spacing: -0.04em;
  text-shadow: -1.5px -1.5px 0 rgba(37, 244, 238, 0.8), 1.5px 1.5px 0 rgba(254, 44, 85, 0.8);
}
.tt-gate__part { font-size: 0.58rem; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.65); }
.tt-gate__center {
  position: relative; z-index: 3; flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 20px 24px calc(20px + env(safe-area-inset-bottom)); min-height: 0;
}
.tt-note {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.24);
  margin-bottom: 20px; backdrop-filter: blur(8px);
  box-shadow: -3px -3px 0 rgba(37, 244, 238, 0.55), 3px 3px 0 rgba(254, 44, 85, 0.6);
}
.tt-note svg { width: 26px; fill: #fff; }
.tt-gate__eyebrow { font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); margin-bottom: 10px; }
.tt-gate__title {
  font-family: var(--tt-display); font-weight: 900; letter-spacing: -0.055em;
  font-size: clamp(3.2rem, 15vw, 4.8rem); line-height: 0.86; margin-bottom: 14px;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.tt-gate__title em { font-style: normal; color: var(--tt-red); }
.tt-gate__date { font-size: 0.78rem; color: rgba(255, 255, 255, 0.8); margin-bottom: 18px; }
.tt-gate__guest {
  font-size: 0.72rem; color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.26); border-radius: 999px;
  padding: 7px 18px; background: rgba(0, 0, 0, 0.25); backdrop-filter: blur(8px);
  max-width: 100%; margin-bottom: 24px;
}
.tt-gate__guest strong { color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.tt-cta {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--tt-red); color: #fff; border: 0; border-radius: 6px;
  padding: 13px 26px 13px 16px; font-size: 0.88rem; font-weight: 700; letter-spacing: 0.01em;
  box-shadow: 0 16px 40px -14px rgba(254, 44, 85, 0.8);
  transition: transform 0.25s var(--tt-ease), background 0.2s;
}
.tt-cta:hover { background: #ff3d63; transform: translateY(-2px); }
.tt-cta__icon { width: 28px; height: 28px; border-radius: 50%; background: rgba(0, 0, 0, 0.2); display: grid; place-items: center; }
.tt-cta__icon svg { width: 13px; fill: currentColor; margin-left: 1px; }
.tt-gate__hint { margin-top: 18px; font-size: 0.58rem; color: rgba(255, 255, 255, 0.5); letter-spacing: 0.02em; }
.tt-gate__bottom {
  position: relative; z-index: 3; display: flex; align-items: center; gap: 7px; justify-content: center;
  padding: 0 20px calc(22px + env(safe-area-inset-bottom)); font-size: 0.6rem; color: rgba(255, 255, 255, 0.55);
}
.tt-gate__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--tt-red); }

/* ================= APP ================= */
.tt-app {
  position: fixed; inset: 0; background: #000; overflow: hidden;
  opacity: 0; visibility: hidden; transition: opacity 0.7s ease, visibility 0.7s;
}
body.tt-live .tt-app { opacity: 1; visibility: visible; }
body.tt-live .tt-gate { display: none; }

.tt-feed {
  position: absolute; inset: 0; overflow-y: scroll; overflow-x: hidden;
  scroll-snap-type: y mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.tt-feed::-webkit-scrollbar { display: none; }

.tt-slide {
  position: relative; height: 100%; min-height: 100%; overflow: hidden;
  scroll-snap-align: start; scroll-snap-stop: always;
}
.tt-bg { position: absolute; inset: -2%; }
.tt-bg img {
  width: 100%; height: 100%; object-fit: cover;
  animation: ttKen 24s ease-in-out infinite alternate;
  transform-origin: 50% 45%;
}
.tt-slide:nth-child(2n) .tt-bg img { animation-delay: -7s; animation-duration: 28s; }
.tt-slide:nth-child(3n) .tt-bg img { animation-delay: -13s; animation-duration: 32s; }
.tt-bg--slow img { animation-duration: 38s; }
@keyframes ttKen {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(0, -1.4%, 0); }
}
.tt-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.58) 26%, rgba(0, 0, 0, 0.05) 58%, rgba(0, 0, 0, 0.5) 100%),
    linear-gradient(to right, rgba(0, 0, 0, 0.35), transparent 55%);
}
.tt-shade--duet { background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 38%, transparent 66%, rgba(0, 0, 0, 0.5)); }

.tt-slide__body {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(76px + env(safe-area-inset-top)) 68px calc(156px + env(safe-area-inset-bottom)) 18px;
}
.tt-slide__body--center { justify-content: center; align-items: flex-start; text-align: left; padding-bottom: calc(176px + env(safe-area-inset-bottom)); }
.tt-slide__body--duet { padding-bottom: calc(162px + env(safe-area-inset-bottom)); }

.tt-eyebrow { font-size: 0.58rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); margin-bottom: 9px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5); }
.tt-display {
  font-family: var(--tt-display); font-weight: 900; font-size: clamp(3rem, 14vw, 4.4rem);
  line-height: 0.86; letter-spacing: -0.055em; margin-bottom: 14px;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}
.tt-display em { font-style: normal; color: var(--tt-red); }
.tt-h2 {
  font-family: var(--tt-display); font-weight: 800; font-size: clamp(1.8rem, 8.4vw, 2.5rem);
  line-height: 0.96; letter-spacing: -0.045em; margin-bottom: 14px;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.tt-date { font-size: 0.78rem; color: rgba(255, 255, 255, 0.82); margin-bottom: 16px; }
.tt-guest { font-size: 0.7rem; color: rgba(255, 255, 255, 0.68); margin-top: 16px; }
.tt-guest strong { color: #fff; font-weight: 600; }
.tt-swipe {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px;
  font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55);
}
.tt-swipe span { display: inline-block; animation: ttBounce 1.8s ease-in-out infinite; }
@keyframes ttBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.tt-count { display: flex; align-items: flex-start; gap: 7px; }
.tt-count div { min-width: 42px; }
.tt-count strong { display: block; font-family: var(--tt-display); font-weight: 800; font-size: clamp(1.5rem, 7vw, 2rem); line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); }
.tt-count span { display: block; font-size: 0.48rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); margin-top: 4px; }
.tt-count i { font-style: normal; font-family: var(--tt-display); font-size: 1.2rem; color: rgba(255, 255, 255, 0.35); line-height: 1.15; }

/* Duet */
.tt-duet { position: absolute; inset: 0; display: flex; }
.tt-duet__half { position: relative; flex: 1; overflow: hidden; }
.tt-duet__half:first-child { border-right: 1px solid rgba(255, 255, 255, 0.22); }
.tt-duet__half img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9); }
.tt-duet__half:first-child img { object-position: 50% 25%; }
.tt-duet__half:last-child img { object-position: 50% 25%; }
.tt-duet__label {
  position: absolute; top: calc(80px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  font-size: 0.48rem; letter-spacing: 0.2em; text-transform: uppercase;
  background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 4px 8px; border-radius: 999px; white-space: nowrap; backdrop-filter: blur(6px);
}
.tt-couple-card {
  background: rgba(12, 12, 12, 0.5); border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px; padding: 10px 12px; backdrop-filter: blur(14px);
  display: grid; gap: 8px;
}
.tt-couple-row { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; }
.tt-couple-row + .tt-couple-row { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 11px; }
.tt-couple-row img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255, 255, 255, 0.3); flex: 0 0 auto; }
.tt-couple-row h3 { font-family: var(--tt-display); font-size: 0.82rem; font-weight: 700; letter-spacing: -0.02em; }
.tt-couple-row a { font-size: 0.62rem; color: var(--tt-cyan); text-decoration: none; }
.tt-couple-row p { font-size: 0.6rem; line-height: 1.4; color: rgba(255, 255, 255, 0.68); margin-top: 2px; }
.tt-couple-row .tt-couple-row__bio { color: rgba(255, 255, 255, 0.5); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* Story rail */
.tt-story-rail {
  display: flex; gap: 8px; overflow-x: auto; margin: 2px -18px 0; padding: 2px 68px 6px 18px;
  scroll-snap-type: x mandatory; scroll-padding-left: 18px; scrollbar-width: none;
}
.tt-story-rail::-webkit-scrollbar { display: none; }
.tt-story-card {
  flex: 0 0 auto; width: 208px; scroll-snap-align: start; text-align: left;
  background: rgba(12, 12, 12, 0.52); border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px; padding: 12px; color: #fff; backdrop-filter: blur(12px);
  transition: transform 0.25s var(--tt-ease), border-color 0.2s;
}
.tt-story-card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.34); }
.tt-story-card__date { font-size: 0.5rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tt-red); margin-bottom: 5px; }
.tt-story-card h3 { font-family: var(--tt-display); font-size: 0.82rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 5px; }
.tt-story-card p { font-size: 0.63rem; line-height: 1.45; color: rgba(255, 255, 255, 0.68); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tt-story-card__num { float: right; font-family: var(--tt-display); font-size: 0.62rem; color: rgba(255, 255, 255, 0.32); }
.tt-hint { font-size: 0.55rem; color: rgba(255, 255, 255, 0.42); margin-top: 8px; }

/* Event */
.tt-event-card {
  background: rgba(12, 12, 12, 0.56); border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px; padding: 6px 12px 12px; backdrop-filter: blur(14px);
}
.tt-event-row { display: grid; grid-template-columns: 48px 1fr 26px; gap: 8px; align-items: center; padding: 9px 0; }
.tt-event-row + .tt-event-row { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.tt-event-row__tag {
  font-size: 0.48rem; letter-spacing: 0.1em; text-transform: uppercase; text-align: center;
  color: var(--tt-red); border: 1px solid rgba(254, 44, 85, 0.45); background: rgba(254, 44, 85, 0.1);
  padding: 4px 3px; border-radius: 4px;
}
.tt-event-row__main strong { display: block; font-size: 0.68rem; font-weight: 600; }
.tt-event-row__main p { font-size: 0.68rem; color: rgba(255, 255, 255, 0.82); margin-top: 1px; }
.tt-event-row__main .tt-event-row__addr { font-size: 0.58rem; line-height: 1.4; color: rgba(255, 255, 255, 0.5); margin-top: 2px; }
.tt-event-row__map { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; }
.tt-event-row__map svg { width: 13px; }
.tt-loc { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 2px; padding-top: 10px; display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 9px; align-items: start; }
.tt-loc__text { min-width: 0; }
.tt-loc__label { font-size: 0.5rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); margin-bottom: 3px; }
.tt-loc__venue { font-family: var(--tt-display); font-size: 0.78rem; font-weight: 700; }
.tt-loc__addr { font-size: 0.6rem; line-height: 1.45; color: rgba(255, 255, 255, 0.6); margin-top: 2px; }
.tt-minimap {
  position: relative; height: 54px; border-radius: 7px; overflow: hidden;
  background: linear-gradient(145deg, #2a2140, #171126);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.tt-minimap__grid {
  position: absolute; inset: 0; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 11px 11px;
}
.tt-minimap__pin { position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%); width: 22px; color: var(--tt-red); filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.5)); }
.tt-minimap__pin svg { width: 100%; }
.tt-loc__actions { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 1px; }
.tt-pill {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; border: 1px solid transparent; padding: 7px 12px;
  font-size: 0.62rem; font-weight: 700; text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.tt-pill--red { background: var(--tt-red); color: #fff; }
.tt-pill--red:hover { background: #ff3d63; }
.tt-pill--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.tt-pill--ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* Gallery */
.tt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.tt-tile { position: relative; aspect-ratio: 1; overflow: hidden; border: 0; padding: 0; background: #1a1a1a; border-radius: 4px; }
.tt-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--tt-ease), filter 0.3s; }
.tt-tile::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.2); opacity: 0; transition: opacity 0.2s; }
.tt-tile:hover img { transform: scale(1.06); }
.tt-tile:hover::after { opacity: 1; }

/* Closing */
.tt-quote { font-size: 0.76rem; line-height: 1.65; color: rgba(255, 255, 255, 0.78); font-style: italic; max-width: 34ch; margin-bottom: 10px; }
.tt-closing-msg { font-size: 0.68rem; line-height: 1.55; color: rgba(255, 255, 255, 0.6); max-width: 38ch; margin-bottom: 12px; }
.tt-hash { color: var(--tt-cyan); font-weight: 600; }
.tt-hash--big { font-family: var(--tt-display); font-size: 0.9rem; letter-spacing: 0.02em; margin-bottom: 14px; }
.tt-cta--full { width: 100%; justify-content: center; padding: 12px 16px; }
.tt-credit { margin-top: 12px; font-size: 0.54rem; color: rgba(255, 255, 255, 0.38); }
.tt-credit a { color: rgba(255, 255, 255, 0.6); }

/* Caption */
.tt-caption {
  position: absolute; left: 14px; right: 82px; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 4;
  color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.tt-user { font-family: var(--tt-display); font-size: 0.78rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; }
.tt-user span { font-family: var(--tt-body); font-size: 0.6rem; font-weight: 400; color: rgba(255, 255, 255, 0.55); }
.tt-desc { font-size: 0.7rem; line-height: 1.45; color: rgba(255, 255, 255, 0.85); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.tt-music { display: flex; align-items: center; gap: 6px; font-size: 0.6rem; color: rgba(255, 255, 255, 0.72); overflow: hidden; }
.tt-music svg { width: 12px; fill: currentColor; flex: 0 0 auto; }
.tt-music__track { display: flex; width: max-content; white-space: nowrap; animation: ttMarquee 18s linear infinite; }
.tt-music__track span { display: inline-block; }
@keyframes ttMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Top */
.tt-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 7;
  display: flex; align-items: center; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent);
}
.tt-top__back, .tt-top__search {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  background: none; border: 0; color: #fff; text-decoration: none; flex: 0 0 auto;
}
.tt-top__back svg, .tt-top__search svg { width: 19px; }
.tt-tabs { flex: 1; display: flex; justify-content: center; gap: 20px; }
.tt-tab {
  position: relative; background: none; border: 0; color: rgba(255, 255, 255, 0.62);
  font-family: var(--tt-display); font-size: 0.86rem; font-weight: 600; letter-spacing: -0.01em;
  padding: 4px 0; transition: color 0.2s;
}
.tt-tab.is-active { color: #fff; font-weight: 700; }
.tt-tab.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%);
  width: 22px; height: 2px; border-radius: 2px; background: #fff;
}

/* Rail */
.tt-rail {
  position: absolute; right: 9px; bottom: calc(126px + env(safe-area-inset-bottom)); z-index: 6;
  display: flex; flex-direction: column; align-items: center; gap: 15px;
}
.tt-rail__avatar { position: relative; width: 46px; height: 46px; }
.tt-rail__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 1.5px solid #fff; }
.tt-rail__follow {
  position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%);
  width: 18px; height: 18px; border-radius: 50%; border: 0; background: var(--tt-red); color: #fff;
  font-size: 0.78rem; line-height: 1; display: grid; place-items: center; font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.tt-rail__follow[aria-pressed="true"] { background: #2a2a2a; color: var(--tt-cyan); }
.tt-rail__btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: 0; color: #fff; padding: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}
.tt-rail__btn svg { width: 30px; height: 30px; transition: transform 0.2s; }
.tt-rail__btn:hover svg { transform: scale(1.08); }
.tt-rail__btn span { font-size: 0.58rem; font-weight: 600; }
.tt-rail__btn[aria-pressed="true"] svg path { fill: var(--tt-red); stroke: var(--tt-red); }
.tt-rail__btn.is-pop svg { animation: ttPop 0.4s var(--tt-ease); }
@keyframes ttPop { 50% { transform: scale(1.35); } }
.tt-record { background: none; border: 0; padding: 0; width: 44px; height: 44px; margin-top: 2px; }
.tt-record__disc {
  position: relative; display: block; width: 44px; height: 44px; border-radius: 50%;
  background: repeating-radial-gradient(circle, #111 0 1px, #1d1d1d 1px 3px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: ttSpin 5s linear infinite;
}
.tt-record__disc img { position: absolute; inset: 12px; width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.tt-record__disc svg { position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; fill: #fff; background: #000; border-radius: 50%; padding: 3px; }
.tt-record.is-paused .tt-record__disc { animation-play-state: paused; }
@keyframes ttSpin { to { transform: rotate(360deg); } }

/* Dots */
.tt-dots {
  position: absolute; left: 9px; top: 50%; transform: translateY(-50%); z-index: 6;
  display: flex; flex-direction: column; gap: 5px;
}
.tt-dots span { width: 3px; height: 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.24); transition: height 0.3s, background 0.3s; }
.tt-dots span.is-active { height: 24px; background: var(--tt-red); }

/* Nav */
.tt-nav {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 8;
  display: flex; align-items: center; justify-content: space-around;
  height: calc(54px + env(safe-area-inset-bottom));
  padding: 0 6px env(safe-area-inset-bottom);
  background: linear-gradient(to top, #000 52%, rgba(0, 0, 0, 0.72) 80%, transparent);
}
.tt-nav__item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: none; border: 0; color: rgba(255, 255, 255, 0.6); width: 54px;
  font-size: 0.5rem; transition: color 0.2s;
}
.tt-nav__item svg { width: 22px; height: 22px; }
.tt-nav__item:hover, .tt-nav__item.is-active { color: #fff; }
.tt-nav__profile img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255, 255, 255, 0.5); }
.tt-nav__plus {
  width: 40px; height: 27px; border: 0; border-radius: 7px; background: #fff; color: #000;
  display: grid; place-items: center; font-size: 1.2rem; font-weight: 500; line-height: 1;
  box-shadow: -2px -2px 0 rgba(37, 244, 238, 0.9), 2px 2px 0 rgba(254, 44, 85, 0.9);
  transition: transform 0.2s;
}
.tt-nav__plus:hover { transform: scale(1.05); }

/* ================= SHEET ================= */
.tt-sheet { position: fixed; inset: 0; z-index: 400; }
.tt-sheet[hidden] { display: none; }
.tt-sheet__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); }
.tt-sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0; outline: none;
  max-height: 90svh; background: #121212; border-radius: 20px 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; flex-direction: column;
  animation: ttSheetIn 0.42s var(--tt-ease);
  box-shadow: 0 -30px 80px -20px #000;
}
@keyframes ttSheetIn { from { transform: translateY(100%); } }
.tt-sheet__grab { width: 38px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.24); margin: 9px auto 4px; flex: 0 0 auto; }
.tt-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 18px 10px; flex: 0 0 auto; }
.tt-sheet__head h2 { font-family: var(--tt-display); font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; }
.tt-sheet__head h2 span { color: rgba(255, 255, 255, 0.5); font-weight: 400; }
.tt-sheet__close { width: 30px; height: 30px; border: 0; background: rgba(255, 255, 255, 0.08); border-radius: 50%; color: #fff; font-size: 1.2rem; line-height: 1; }
.tt-sheet__body { overflow-y: auto; padding: 0 18px calc(22px + env(safe-area-inset-bottom)); }
.tt-comments { display: grid; gap: 14px; padding: 6px 0 16px; }
.tt-comment { display: flex; gap: 9px; align-items: flex-start; }
.tt-comment img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; border: 1px solid rgba(255, 255, 255, 0.2); }
.tt-comment__main { flex: 1; min-width: 0; }
.tt-comment__name { font-size: 0.66rem; font-weight: 600; color: rgba(255, 255, 255, 0.6); margin-bottom: 2px; }
.tt-comment__text { font-size: 0.74rem; line-height: 1.45; color: #fff; overflow-wrap: anywhere; }
.tt-comment__meta { font-size: 0.54rem; color: rgba(255, 255, 255, 0.4); margin-top: 4px; }
.tt-comment__like { background: none; border: 0; color: rgba(255, 255, 255, 0.45); padding: 2px; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.tt-comment__like svg { width: 13px; }
.tt-comment__like span { font-size: 0.48rem; }
.tt-form { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 14px; display: grid; gap: 6px; }
.tt-form__title { font-family: var(--tt-display); font-size: 0.78rem; font-weight: 700; margin-bottom: 2px; }
.tt-form label, .tt-choice legend { font-size: 0.55rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.tt-form input, .tt-form select, .tt-form textarea {
  width: 100%; background: #1c1c1c; border: 1px solid #343434; border-radius: 8px;
  padding: 9px 11px; color: #fff; font-size: 0.78rem; transition: border-color 0.2s;
}
.tt-form input:focus, .tt-form select:focus, .tt-form textarea:focus { outline: 0; border-color: var(--tt-red); }
.tt-form textarea { resize: vertical; min-height: 56px; }
.tt-form__row { display: grid; grid-template-columns: 1.5fr 0.8fr; gap: 8px; }
.tt-form__row > div { display: grid; gap: 5px; }
.tt-form > label { margin-top: 2px; }
.tt-choice { border: 0; padding: 0; margin: 6px 0 2px; display: flex; flex-wrap: wrap; gap: 5px; }
.tt-choice legend { width: 100%; margin-bottom: 3px; }
.tt-choice label { position: relative; cursor: pointer; }
.tt-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tt-choice span {
  display: inline-block; border: 1px solid #3a3a3a; border-radius: 999px;
  padding: 5px 12px; font-size: 0.66rem; color: #fff; transition: all 0.2s;
}
.tt-choice input:checked + span { background: var(--tt-red); border-color: var(--tt-red); }
.tt-choice input:focus-visible + span { outline: 2px solid var(--tt-cyan); outline-offset: 2px; }
.tt-submit {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 6px; border: 0; border-radius: 8px; background: var(--tt-red); color: #fff;
  padding: 11px 14px; font-size: 0.72rem; font-weight: 700;
}
.tt-submit svg { width: 17px; }
.tt-form__note { font-size: 0.56rem; color: rgba(255, 255, 255, 0.42); text-align: center; }
.tt-form__note strong { color: rgba(255, 255, 255, 0.7); }
.tt-form__done { font-size: 0.66rem; color: var(--tt-cyan); line-height: 1.5; }

/* ================= STORY MODAL ================= */
.tt-modal { position: fixed; inset: 0; z-index: 450; display: grid; place-items: center; padding: 18px; }
.tt-modal[hidden] { display: none; }
.tt-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(6px); }
.tt-modal__card {
  position: relative; z-index: 2; width: min(430px, 100%); max-height: 90svh; overflow-y: auto; outline: none;
  background: #141414; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 16px;
  animation: ttModalIn 0.35s var(--tt-ease);
}
@keyframes ttModalIn { from { opacity: 0; transform: translateY(20px) scale(0.98); } }
.tt-modal__media { aspect-ratio: 16 / 10; overflow: hidden; }
.tt-modal__media img { width: 100%; height: 100%; object-fit: cover; }
.tt-modal__close {
  position: absolute; top: 8px; right: 10px; z-index: 3; width: 32px; height: 32px;
  border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 1.25rem;
}
.tt-modal__body { padding: 16px 18px 18px; }
.tt-modal__date { font-size: 0.54rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--tt-red); margin-bottom: 5px; }
.tt-modal__body h2 { font-family: var(--tt-display); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 8px; }
.tt-modal__text { font-size: 0.78rem; line-height: 1.65; color: rgba(255, 255, 255, 0.7); }
.tt-modal__nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 12px; }
.tt-modal__nav button { background: none; border: 0; color: rgba(255, 255, 255, 0.7); font-size: 0.66rem; padding: 4px; }
.tt-modal__nav span { font-size: 0.56rem; color: rgba(255, 255, 255, 0.4); }

/* ================= TOAST ================= */
.tt-toast {
  position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 500;
  transform: translate(-50%, 10px); background: rgba(255, 255, 255, 0.94); color: #111;
  font-size: 0.7rem; font-weight: 600; padding: 9px 16px; border-radius: 6px;
  max-width: calc(100vw - 40px); text-align: center;
  opacity: 0; transition: opacity 0.25s, transform 0.25s var(--tt-ease);
}
.tt-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* Heart burst */
.tt-burst {
  position: absolute; z-index: 20; width: 88px; height: 88px; pointer-events: none;
  transform: translate(-50%, -50%) scale(0); color: var(--tt-red);
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.4));
}
.tt-burst svg { width: 100%; height: 100%; fill: currentColor; }
.tt-burst.is-on { animation: ttBurst 0.85s var(--tt-ease) forwards; }
@keyframes ttBurst {
  0% { transform: translate(-50%, -50%) scale(0.2) rotate(-8deg); opacity: 0; }
  25% { transform: translate(-50%, -50%) scale(1.15) rotate(3deg); opacity: 1; }
  55% { transform: translate(-50%, -50%) scale(0.95) rotate(-2deg); opacity: 1; }
  100% { transform: translate(-50%, -60%) scale(1.05) rotate(0); opacity: 0; }
}

/* ================= RESPONSIVE ================= */
@media (min-width: 760px) {
  body {
    display: flex; align-items: center; justify-content: center;
    background:
      radial-gradient(45% 55% at 22% 18%, rgba(37, 244, 238, 0.13), transparent 70%),
      radial-gradient(45% 55% at 78% 82%, rgba(254, 44, 85, 0.16), transparent 70%),
      #08080a;
  }
  .tt-app {
    position: relative; inset: auto; width: min(430px, 92vw); height: min(92svh, 880px);
    margin: 0 auto; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 60px 120px -40px #000, 0 0 0 8px rgba(255, 255, 255, 0.025);
  }
  .tt-slide__body { padding-left: 22px; padding-right: 74px; }
  .tt-caption { left: 18px; }
  .tt-story-rail { margin-left: -22px; margin-right: -22px; padding-left: 22px; padding-right: 74px; }
  .tt-sheet__panel { left: 50%; right: auto; transform: translateX(-50%); width: 430px; border-radius: 20px 20px 0 0; }
  .tt-toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
  .tt-gate__center { padding-bottom: 30px; }
}

@media (max-height: 700px) {
  .tt-slide__body { padding-bottom: calc(142px + env(safe-area-inset-bottom)); }
  .tt-slide__body--center { padding-bottom: calc(154px + env(safe-area-inset-bottom)); }
  .tt-count strong { font-size: 1.4rem; }
  .tt-display { font-size: 2.7rem; }
  .tt-story-card { width: 196px; padding: 10px; }
  .tt-event-row__addr { display: none; }
}

@media (max-width: 360px) {
  .tt-caption { right: 76px; }
  .tt-rail { right: 6px; gap: 12px; }
  .tt-rail__btn svg { width: 27px; height: 27px; }
  .tt-event-row { grid-template-columns: 42px 1fr 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .tt-bg img, .tt-music__track span, .tt-record__disc, .tt-swipe span { animation: none !important; }
  .tt-sheet__panel, .tt-modal__card, .tt-toast { animation: none !important; transition: none !important; }
  .tt-burst.is-on { animation: none; opacity: 0; }
}
