:root {
  color-scheme: light;
  --tt-app-bg: #ffffff;
  --tt-surface: transparent;
  --tt-surface-soft: rgba(22, 24, 35, 0.04);
  --tt-stage: #0f0f10;
  --tt-line: rgba(22, 24, 35, 0.09);
  --tt-line-strong: rgba(22, 24, 35, 0.14);
  --tt-text: #161823;
  --tt-muted: rgba(22, 24, 35, 0.75);
  --tt-subtle: rgba(22, 24, 35, 0.5);
  --tt-hot: #fe2c55;
  --tt-cyan: #25f4ee;
  --tt-stage-pill-bg: rgba(255, 255, 255, 0.92);
  --tt-stage-pill-text: #161823;
  --tt-stage-pill-muted: rgba(22, 24, 35, 0.72);
  --tt-warning-bg: #fff7e8;
  --tt-warning-border: rgba(176, 117, 0, 0.2);
  --tt-warning-text: #7a4c00;
  --tt-warning-strong: #3d2400;
  --tt-shadow: none;
  --tt-radius-xl: 0px;
  --tt-radius-lg: 12px;
  --tt-radius-md: 8px;
}

:root[data-tt-theme="dark"] {
  color-scheme: dark;
  --tt-app-bg: #0f0f10;
  --tt-surface: transparent;
  --tt-surface-soft: rgba(255, 255, 255, 0.06);
  --tt-stage: #000000;
  --tt-line: rgba(255, 255, 255, 0.11);
  --tt-line-strong: rgba(255, 255, 255, 0.16);
  --tt-text: #f5f5f5;
  --tt-muted: rgba(245, 245, 245, 0.76);
  --tt-subtle: rgba(245, 245, 245, 0.52);
  --tt-stage-pill-bg: rgba(32, 32, 34, 0.92);
  --tt-stage-pill-text: #f5f5f5;
  --tt-stage-pill-muted: rgba(245, 245, 245, 0.72);
  --tt-warning-bg: rgba(97, 65, 8, 0.3);
  --tt-warning-border: rgba(255, 212, 133, 0.16);
  --tt-warning-text: #ffdca0;
  --tt-warning-strong: #fff4dc;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-tt-theme="light"]) {
    color-scheme: dark;
    --tt-app-bg: #0f0f10;
    --tt-surface: transparent;
    --tt-surface-soft: rgba(255, 255, 255, 0.06);
    --tt-stage: #000000;
    --tt-line: rgba(255, 255, 255, 0.11);
    --tt-line-strong: rgba(255, 255, 255, 0.16);
    --tt-text: #f5f5f5;
    --tt-muted: rgba(245, 245, 245, 0.76);
    --tt-subtle: rgba(245, 245, 245, 0.52);
    --tt-stage-pill-bg: rgba(32, 32, 34, 0.92);
    --tt-stage-pill-text: #f5f5f5;
    --tt-stage-pill-muted: rgba(245, 245, 245, 0.72);
    --tt-warning-bg: rgba(97, 65, 8, 0.3);
    --tt-warning-border: rgba(255, 212, 133, 0.16);
    --tt-warning-text: #ffdca0;
    --tt-warning-strong: #fff4dc;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--tt-text);
  background: var(--tt-app-bg);
}

a {
  color: inherit;
}

.tt-page {
  min-height: 100vh;
}

.tt-shell {
  width: min(1320px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 2.75rem;
}

.tt-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.tt-logo-mark {
  position: relative;
  width: 1.9rem;
  height: 1.9rem;
}

.tt-logo-mark::before,
.tt-logo-mark::after {
  content: "";
  position: absolute;
  display: block;
}

.tt-logo-mark::before {
  left: 0.88rem;
  top: 0.08rem;
  width: 0.42rem;
  height: 1.18rem;
  border-radius: 999px;
  background: #111111;
  box-shadow:
    -0.14rem 0 0 var(--tt-cyan),
    0.14rem 0 0 var(--tt-hot);
}

.tt-logo-mark::after {
  left: 0.26rem;
  bottom: 0.14rem;
  width: 0.92rem;
  height: 0.92rem;
  border-radius: 50%;
  background: #111111;
  box-shadow:
    -0.16rem 0 0 var(--tt-cyan),
    0.16rem 0 0 var(--tt-hot);
}

.tt-floating-brand {
  margin-bottom: 0.6rem;
}

.tt-theme-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  border: 1px solid var(--tt-line);
  border-radius: 999px;
  padding: 0.7rem 0.95rem;
  color: var(--tt-text);
  background: color-mix(in srgb, var(--tt-app-bg) 92%, transparent);
  backdrop-filter: blur(18px);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.tt-theme-toggle:hover {
  border-color: var(--tt-line-strong);
}

.tt-header-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 46px;
  padding: 0 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f1f1f2;
  color: var(--tt-subtle);
}

.tt-header-search-icon {
  position: relative;
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.tt-header-search-icon::after {
  content: "";
  position: absolute;
  right: -0.35rem;
  bottom: -0.28rem;
  width: 0.45rem;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: right center;
}

.tt-header-search strong {
  color: var(--tt-text);
}

.tt-header-actions {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 0.75rem;
}

.tt-header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--tt-line);
  background: var(--tt-surface);
  text-decoration: none;
  font-weight: 600;
}

.tt-header-action.primary {
  color: #ffffff;
  background: var(--tt-hot);
  border-color: var(--tt-hot);
}

.tt-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tt-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.1rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--tt-line-strong);
  border-radius: 999px;
  background: var(--tt-surface);
  color: var(--tt-muted);
  text-decoration: none;
  font-size: 0.88rem;
}

.tt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

.tt-card,
.tt-panel,
.tt-modal-note,
.tt-content-shell,
.tt-watch-panel {
  border: 0;
  border-radius: var(--tt-radius-xl);
  background: var(--tt-surface);
  box-shadow: var(--tt-shadow);
}

.tt-hero {
  overflow: visible;
}

.tt-hero-inner {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 1.5rem;
  padding: 2rem;
}

.tt-avatar {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  object-fit: cover;
  background: #ececf0;
}

.tt-userline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.tt-userline h1 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  line-height: 1.04;
}

.tt-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.85rem;
  min-height: 1.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--tt-cyan);
}

.tt-handle {
  margin: 0.4rem 0 0;
  color: var(--tt-muted);
  font-size: 0.98rem;
}

.tt-bio {
  margin: 1rem 0 0;
  max-width: 64ch;
  white-space: pre-wrap;
  line-height: 1.6;
}

.tt-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 1rem 0 0;
}

.tt-stat {
  min-width: auto;
}

.tt-stat strong {
  display: inline;
  font-size: 1.15rem;
}

.tt-stat span {
  display: inline;
  margin-left: 0.35rem;
  color: var(--tt-muted);
  font-size: 0.95rem;
}

.tt-content-shell {
  padding: 1rem 0 0;
}

.tt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}

.tt-video-card {
  text-decoration: none;
  box-shadow: none;
  border: 0;
  background: transparent;
}

.tt-video-thumb-wrap {
  position: relative;
  aspect-ratio: 9 / 15;
  overflow: hidden;
  border-radius: var(--tt-radius-lg);
  background: #111111;
}

.tt-video-thumb,
.tt-photo-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tt-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  background: rgba(22, 24, 35, 0.74);
  color: #ffffff;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tt-card-meta {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.5rem;
}

.tt-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.8rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(22, 24, 35, 0.78);
  color: #ffffff;
  border: 0;
  font-size: 0.76rem;
}

.tt-pill-stack {
  display: grid;
  gap: 0.35rem;
}

.tt-video-plays {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
}

.tt-video-plays::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 0.38rem solid transparent;
  border-bottom: 0.38rem solid transparent;
  border-left: 0.62rem solid #ffffff;
}

.tt-video-copy {
  padding: 0.85rem 0.15rem 0;
}

.tt-video-copy h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.tt-video-copy p {
  margin: 0.45rem 0 0;
  color: var(--tt-muted);
  line-height: 1.45;
  font-size: 0.88rem;
}

.tt-watch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 1.25rem;
}

.tt-stage {
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.tt-stage-frame {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  min-height: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  padding: 0;
}

.tt-player-shell {
  width: min(100%, 440px);
  margin: 0 auto;
}

.tt-stage video,
.tt-stage img {
  display: block;
  width: min(100%, 440px);
  max-height: 76vh;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #000000;
}

.tt-stage audio {
  width: min(100%, 440px);
}

.tt-video-fallback {
  margin-top: 0.75rem;
  padding: 0.9rem;
  border-radius: var(--tt-radius-lg);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.tt-photo-stack {
  display: grid;
  gap: 0.9rem;
  width: min(100%, 700px);
}

.tt-photo-stack img {
  border-radius: var(--tt-radius-md);
}

.tt-side {
  padding: 0;
  display: grid;
  gap: 0;
  overflow: visible;
}

.tt-section {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--tt-line);
}

.tt-section:last-child {
  border-bottom: 0;
}

.tt-section h2,
.tt-section h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
}

.tt-comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.tt-comments-count {
  color: var(--tt-subtle);
  font-size: 0.84rem;
  font-weight: 600;
}

.tt-section p,
.tt-section li {
  color: var(--tt-muted);
  line-height: 1.55;
}

.tt-section p strong,
.tt-comment-head strong,
.tt-person-head strong {
  color: var(--tt-text);
}

.tt-comments-scroll {
  max-height: 56vh;
  overflow: auto;
  padding-right: 0.2rem;
}

.tt-raw-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tt-raw-links a {
  text-decoration: none;
}

.tt-comment-list,
.tt-user-list {
  display: grid;
  gap: 0.85rem;
}

.tt-comment,
.tt-person {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0 0 1rem;
}

.tt-comment:not(:last-child),
.tt-person:not(:last-child) {
  border-bottom: 1px solid var(--tt-line);
}

.tt-comment-avatar,
.tt-person-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #ececf0;
}

.tt-comment-head,
.tt-person-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.tt-comment-head strong,
.tt-person-head strong {
  font-size: 0.94rem;
}

.tt-comment-head span,
.tt-person-meta {
  color: var(--tt-muted);
  font-size: 0.86rem;
}

.tt-comment-body {
  margin-top: 0.3rem;
  color: var(--tt-text);
  white-space: pre-wrap;
  word-break: break-word;
}

.tt-comment-copy {
  min-width: 0;
}

.tt-comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
  color: var(--tt-subtle);
  font-size: 0.82rem;
}

.tt-comment-assets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.tt-comment-assets img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
}

.tt-replies {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  display: grid;
  gap: 0.75rem;
}

.tt-status-note {
  padding: 1rem;
  border-radius: var(--tt-radius-lg);
  border: 1px solid var(--tt-line);
  background: var(--tt-surface-soft);
  color: var(--tt-muted);
}

.tt-warning {
  border-color: var(--tt-warning-border);
  background: var(--tt-warning-bg);
  color: var(--tt-warning-text);
}

.tt-warning p,
.tt-warning li,
.tt-warning .tt-inline-sep {
  color: var(--tt-warning-text);
}

.tt-warning p strong {
  color: var(--tt-warning-strong);
}

.tt-footer {
  margin-top: 2rem;
  color: var(--tt-muted);
  font-size: 0.88rem;
  text-align: center;
}

.tt-inline-sep {
  color: var(--tt-subtle);
  margin: 0 0.15rem;
}

.tt-profile-shell-compact .tt-hero-inner {
  grid-template-columns: 72px minmax(0, 1fr);
  padding: 1.25rem 1.5rem;
}

.tt-profile-shell-compact .tt-avatar {
  width: 72px;
  height: 72px;
}

.tt-profile-shell-compact .tt-userline h1 {
  font-size: 1.4rem;
}

.tt-profile-shell-compact .tt-bio {
  margin-top: 0.6rem;
  max-width: 72ch;
}

@media (max-width: 980px) {
  .tt-hero-inner,
  .tt-watch-grid {
    grid-template-columns: 1fr;
  }

  .tt-topbar-inner {
    padding: 0.75rem 0;
  }

  .tt-avatar {
    width: 96px;
    height: 96px;
  }

  .tt-stage-frame {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .tt-shell {
    width: min(100% - 1rem, 1320px);
    padding-top: 1rem;
  }

  .tt-hero-inner {
    grid-template-columns: 1fr;
    padding: 1.2rem;
  }

  .tt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tt-content-shell {
    padding: 1rem;
  }
}