/* components/browse-view.css */
.feed-tabs {
  display: flex;
  gap: 0.5rem;
  background-color: var(--surface-dark);
  padding: 0.35rem;
  border-radius: 12px;
  align-self: flex-start;
  border: 1px solid var(--line-light);
}
.tab-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  color: var(--ink-secondary);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tab-item:hover {
  color: var(--ink-primary);
}
.tab-item.active {
  color: var(--ink-primary);
  background-color: var(--surface-card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.empty-state {
  text-align: center;
  padding: 6rem 2rem;
  background-color: var(--surface-dark);
  border: 1px dashed var(--line-light);
  border-radius: 16px;
  max-width: 500px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.empty-icon {
  color: var(--ink-muted);
}
.empty-state h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.empty-state p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-secondary);
  line-height: 1.5;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem 1.5rem;
}
.video-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: pointer;
}
.card-thumbnail-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--surface-dark);
  border: 1px solid var(--line-light);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.video-card:hover .card-thumbnail-wrapper {
  transform: scale(1.02);
  border-color: var(--line-focus);
}
.card-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.duration-badge {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background-color: color-mix(in srgb, var(--surface-dark) 85%, transparent);
  color: var(--ink-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}
.card-play-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  color: var(--ink-primary);
}
.video-card:hover .card-play-overlay {
  opacity: 1;
}
.card-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-metadata {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-secondary);
}
.channel-name {
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease;
}
.channel-name:hover {
  color: var(--ink-primary);
  text-decoration: underline;
}
.instance-badge {
  font-size: 0.7rem;
  font-weight: 600;
  background-color: var(--surface-card);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  border: 1px solid var(--line-light);
}
.card-stats {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.775rem;
  color: var(--ink-muted);
}
.stat-dot {
  width: 3px;
  height: 3px;
  border-radius: 99px;
  background-color: var(--ink-muted);
}
.channels-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink-primary);
  margin: 0;
  letter-spacing: -0.02em;
}
.channels-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.channel-card {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  background:
    linear-gradient(
      145deg,
      var(--surface-card) 0%,
      color-mix(in srgb, var(--surface-card) 60%, transparent) 100%);
  border: 1px solid var(--line-light);
  border-radius: 20px;
  padding: 1.5rem 2.25rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.channel-card:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: var(--line-focus);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 15px var(--accent-glow);
}
.channel-avatar-col {
  flex-shrink: 0;
}
.channel-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ink-primary);
  background:
    linear-gradient(
      135deg,
      var(--accent-neon),
      hsl(340, 85%, 60%));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent-neon) 30%, transparent);
  border: 2px solid color-mix(in srgb, var(--ink-primary) 10%, transparent);
  transition: transform 0.3s ease;
}
.channel-card:hover .channel-avatar {
  transform: scale(1.05);
}
.channel-info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.channel-title-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink-primary);
  margin: 0;
  cursor: pointer;
  transition: color 0.15s ease;
  width: fit-content;
}
.channel-title-name:hover {
  color: var(--accent-neon);
}
.channel-meta-subtitle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink-secondary);
  font-weight: 500;
}
.bullet-separator {
  color: var(--ink-muted);
}
.channel-description {
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin: 0.75rem 0 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.channel-action-col {
  flex-shrink: 0;
}
.channel-visit-btn {
  background: color-mix(in srgb, var(--ink-primary) 5%, transparent);
  border: 1px solid var(--line-light);
  color: var(--ink-primary);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(5px);
}
.channel-card:hover .channel-visit-btn {
  background-color: var(--surface-input);
}
.channel-visit-btn:hover {
  background-color: var(--accent-neon) !important;
  border-color: var(--accent-neon);
  color: var(--ink-primary);
  box-shadow: 0 0 16px var(--accent-glow);
  transform: translateY(-1px);
}
.section-divider {
  height: 1px;
  background:
    linear-gradient(
      90deg,
      transparent,
      var(--line-light),
      transparent);
  margin: 2rem 0 1rem;
}

/* lib/studio-shell.css */
.studio-shell {
  display: flex;
  min-height: 100vh;
  background: var(--surface-dark);
  color: var(--ink-primary);
}
.studio-rail {
  width: 240px;
  flex: none;
  border-right: 1px solid var(--line-light);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
}
.studio-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 16px;
  color: var(--ink-primary);
  text-decoration: none;
  font-size: 1.05rem;
}
.studio-brand-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}
.studio-brand-text b {
  font-weight: 700;
}
.studio-brand-text {
  font-weight: 500;
}
.studio-create {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin: 0 4px 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent-neon);
  color: var(--ink-primary);
  font-weight: 600;
  text-decoration: none;
}
.studio-create:hover {
  filter: brightness(1.08);
}
.studio-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.studio-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 12px;
  border-radius: 10px;
  color: color-mix(in srgb, var(--ink-primary) 70%, var(--ink-secondary));
  text-decoration: none;
  font-size: 0.95rem;
}
.studio-nav-item:hover {
  background: var(--surface-card);
  color: var(--ink-primary);
}
.studio-nav-item.active {
  background: var(--surface-input);
  color: var(--ink-primary);
  font-weight: 600;
}
.studio-content {
  flex: 1;
  min-width: 0;
  padding: 28px 36px 64px;
}
@media (max-width: 760px) {
  .studio-rail {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid var(--line-light);
  }
  .studio-shell {
    flex-direction: column;
  }
  .studio-brand {
    padding: 4px 8px;
  }
  .studio-nav {
    flex-direction: row;
  }
  .studio-create {
    margin: 0;
  }
  .studio-content {
    padding: 20px 16px 56px;
  }
}

/* app/studio/upload/upload.css */
.cs {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 120px;
  color: var(--ink-primary);
}
.cs-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}
.cs-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink-primary);
}
.cs-back {
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: 0.9rem;
}
.cs-back:hover {
  color: var(--ink-primary);
}
.cs-error {
  background: color-mix(in srgb, var(--error-neon) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--error-neon) 40%, transparent);
  color: var(--error-neon);
  padding: 10px 12px;
  border-radius: 8px;
  margin: 0 0 16px;
}
.cs-drop {
  display: block;
  border: 2px dashed var(--line-light);
  border-radius: 16px;
  background: #121317;
  padding: 64px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.cs-drop:hover {
  border-color: var(--accent-neon);
  background: var(--surface-dark);
}
.cs-drop-icon {
  display: inline-flex;
  width: 84px;
  height: 84px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-input);
  color: var(--accent-neon);
  margin-bottom: 18px;
}
.cs-drop-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--ink-primary);
}
.cs-drop-sub {
  color: var(--ink-secondary);
  margin: 0 0 20px;
}
.cs-drop-btn {
  background: var(--accent-neon);
  color: var(--ink-primary);
  border: none;
  padding: 10px 22px;
  border-radius: 9px;
  font-weight: 700;
  cursor: pointer;
}
.cs-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}
.cs-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cs-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-top: 14px;
}
.cs-req {
  color: var(--ink-muted);
  font-weight: 400;
}
.cs-input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  background: var(--bg-dark);
  border: 1px solid var(--line-light);
  border-radius: 9px;
  color: var(--ink-primary);
  font: inherit;
}
.cs-input:focus {
  outline: none;
  border-color: var(--accent-neon);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.22);
}
.cs-textarea {
  resize: vertical;
}
.cs-hint {
  font-size: 0.8rem;
  color: var(--ink-muted);
}
.cs-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.cs-thumb-opt {
  position: relative;
  width: 132px;
  aspect-ratio: 16/9;
  padding: 0;
  cursor: pointer;
  border: 2px solid var(--line-light);
  border-radius: 9px;
  overflow: hidden;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-secondary);
}
.cs-thumb-opt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cs-thumb-opt.sel {
  border-color: var(--accent-neon);
}
.cs-thumb-check {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-neon);
  color: var(--ink-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-thumb-custom {
  border-style: dashed;
}
.cs-thumb-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
}
.cs-thumb-row {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cs-thumb-prev {
  width: 160px;
  aspect-ratio: 16/9;
  border-radius: 9px;
  overflow: hidden;
  background: var(--bg-dark);
  border: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
}
.cs-thumb-prev img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cs-thumb-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cs-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-input);
  color: var(--ink-primary);
  border: 1px solid var(--line-light);
  border-radius: 9px;
  padding: 9px 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.cs-secondary:hover {
  background: var(--surface-input);
}
.cs-vis {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.cs-vis-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line-light);
  border-radius: 11px;
  cursor: pointer;
  background: #121317;
}
.cs-vis-card:has(input:checked) {
  border-color: var(--accent-neon);
  background: rgba(249, 115, 22, 0.08);
}
.cs-vis-card input {
  accent-color: var(--accent-neon);
  width: 18px;
  height: 18px;
}
.cs-vis-ico {
  color: var(--ink-secondary);
  display: inline-flex;
}
.cs-vis-card:has(input:checked) .cs-vis-ico {
  color: var(--accent-neon);
}
.cs-vis-text {
  display: flex;
  flex-direction: column;
}
.cs-vis-text b {
  color: var(--ink-primary);
}
.cs-vis-text small {
  color: var(--ink-secondary);
}
.cs-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cs-published {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--success-neon);
  border-color: color-mix(in srgb, var(--success-neon) 40%, transparent);
  font-weight: 600;
}
.cs-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: color-mix(in srgb, var(--ink-primary) 70%, var(--ink-secondary));
  cursor: pointer;
}
.cs-checkbox input {
  accent-color: var(--accent-neon);
  width: 17px;
  height: 17px;
}
.cs-share {
  margin-top: 14px;
}
.cs-share-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.cs-share-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--line-light);
  border-radius: 11px;
  cursor: pointer;
  background: #121317;
}
.cs-share-opt:has(input:checked) {
  border-color: var(--accent-neon);
  background: rgba(249, 115, 22, 0.08);
}
.cs-share-opt input {
  accent-color: var(--accent-neon);
  width: 18px;
  height: 18px;
}
.cs-share-text {
  display: flex;
  flex-direction: column;
}
.cs-share-text b {
  color: var(--ink-primary);
}
.cs-share-text small {
  color: var(--ink-secondary);
}
.cs-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 16px;
}
.cs-preview {
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-light);
}
.cs-preview video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.cs-card {
  background: var(--surface-dark);
  border: 1px solid var(--line-light);
  border-radius: 12px;
  padding: 14px;
}
.cs-card-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.85rem;
}
.cs-card-label {
  color: color-mix(in srgb, var(--ink-primary) 70%, var(--ink-secondary));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-card-pct {
  color: var(--accent-neon);
  font-weight: 700;
}
.cs-bar {
  height: 8px;
  background: var(--bg-dark);
  border-radius: 999px;
  overflow: hidden;
}
.cs-bar-fill {
  height: 100%;
  background: var(--accent-neon);
  transition: width .2s;
}
.cs-processing {
  display: flex;
  align-items: center;
  gap: 10px;
  color: color-mix(in srgb, var(--ink-primary) 70%, var(--ink-secondary));
}
.cs-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--line-light);
  border-top-color: var(--accent-neon);
  border-radius: 50%;
  animation: cs-spin .8s linear infinite;
}
@keyframes cs-spin {
  to {
    transform: rotate(360deg);
  }
}
.cs-mod-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-primary);
}
.cs-mod-head b {
  font-size: 1rem;
}
.cs-mod-approved .cs-mod-head {
  color: var(--success-neon);
}
.cs-mod-approved {
  border-color: color-mix(in srgb, var(--success-neon) 40%, transparent);
}
.cs-mod-flagged {
  border-color: color-mix(in srgb, var(--warn-neon) 45%, transparent);
}
.cs-mod-rejected {
  border-color: color-mix(in srgb, var(--error-neon) 50%, transparent);
}
.cs-mod-note {
  color: var(--ink-secondary);
  font-size: 0.88rem;
  margin: 8px 0 0;
}
.cs-mod-labels {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--ink-secondary);
  font-size: 0.82rem;
}
.cs-vis-badge {
  margin-left: auto;
  font-size: 0.72rem;
  padding: 2px 9px;
  border-radius: 999px;
  text-transform: capitalize;
  background: var(--surface-input);
  color: color-mix(in srgb, var(--ink-primary) 70%, var(--ink-secondary));
}
.cs-vis-badge.vis-public {
  background: color-mix(in srgb, var(--success-neon) 18%, transparent);
  color: var(--success-neon);
}
.cs-vis-badge.vis-unlisted {
  background: color-mix(in srgb, var(--info-neon) 18%, transparent);
  color: var(--info-neon);
}
.cs-mod-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.cs-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: rgba(13, 14, 17, 0.96);
  border-top: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 14px 24px;
  backdrop-filter: blur(8px);
}
.cs-footer-status {
  color: var(--ink-secondary);
  font-size: 0.9rem;
}
.cs-publish {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-neon);
  color: var(--ink-primary);
  border: none;
  padding: 11px 26px;
  border-radius: 9px;
  font-weight: 700;
  cursor: pointer;
}
.cs-publish:disabled {
  opacity: 0.5;
  cursor: default;
}
@media (max-width: 860px) {
  .cs-grid {
    grid-template-columns: 1fr;
  }
  .cs-side {
    position: static;
  }
}

/* app/page.css */
html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-dark);
}
* {
  box-sizing: border-box;
}
:root {
  color-scheme: light dark;
  --bg-dark: #000000;
  --surface-dark: hsl(0, 0%, 7%);
  --surface-card: hsl(0, 0%, 10%);
  --surface-input: hsl(0, 0%, 14%);
  --ink-primary: #ffffff;
  --ink-secondary: hsl(0, 0%, 66%);
  --ink-muted: hsl(0, 0%, 46%);
  --line-light: hsl(0, 0%, 18%);
  --line-focus: #ff6a00;
  --accent-neon: #ff6a00;
  --accent-glow: rgba(255, 106, 0, 0.15);
  --on-accent: #ffffff;
  --error-neon: hsl(0, 85%, 60%);
  --success-neon: hsl(142, 70%, 50%);
  --info-neon: hsl(210, 85%, 60%);
  --warn-neon: hsl(35, 90%, 55%);
}
@media (prefers-color-scheme: light) {
  :root {
    --bg-dark: #ffffff;
    --surface-dark: hsl(0, 0%, 98%);
    --surface-card: #ffffff;
    --surface-input: hsl(0, 0%, 95%);
    --ink-primary: #111114;
    --ink-secondary: hsl(0, 0%, 38%);
    --ink-muted: hsl(0, 0%, 52%);
    --line-light: hsl(0, 0%, 88%);
    --line-focus: #ff6a00;
    --accent-neon: #ff6a00;
    --accent-glow: rgba(255, 106, 0, 0.14);
  }
}
.kucken-app {
  min-height: 100vh;
  background-color: var(--bg-dark);
  color: var(--ink-primary);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  display: flex;
  flex-direction: column;
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--line-light);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--ink-muted);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary {
  background-color: var(--accent-neon);
  color: var(--ink-primary);
  box-shadow: 0 0 16px var(--accent-glow);
  text-decoration: none;
}
.btn-primary:hover:not(:disabled) {
  background-color: var(--line-focus);
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: transparent;
  border: 1px solid var(--line-light);
  color: var(--ink-primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-outline:hover:not(:disabled) {
  border-color: var(--ink-secondary);
  background-color: color-mix(in srgb, var(--ink-primary) 4%, transparent);
}
z-app-header {
  display: block;
  position: sticky;
  top: 0;
  z-index: 100;
}
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: color-mix(in srgb, var(--surface-dark) 80%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-light);
  transition:
    background-color 0.25s ease,
    backdrop-filter 0.25s ease,
    border-color 0.25s ease;
}
.app-header.scrolled {
  background-color: color-mix(in srgb, var(--surface-dark) 55%, transparent);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-bottom-color: color-mix(in srgb, var(--ink-primary) 5%, transparent);
}
.header-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0.85rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
}
.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 10px var(--accent-glow));
}
.brand-name {
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: -0.03em;
}
.brand-tld {
  color: var(--accent-neon);
}
.header-controls {
  flex: 1;
  max-width: 720px;
  margin: 0 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.search-box-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}
.filters-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--surface-card);
  border: 1px solid var(--line-light);
  color: var(--ink-secondary);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.filters-toggle-btn:hover {
  color: var(--ink-primary);
  border-color: var(--ink-secondary);
  background-color: var(--surface-input);
}
.search-filters-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background-color: color-mix(in srgb, var(--surface-card) 95%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-light);
  border-radius: 16px;
  padding: 1.25rem 1.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  z-index: 150;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.filter-column {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.filter-column-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 0.35rem;
}
.filter-option {
  background: transparent;
  border: none;
  color: var(--ink-secondary);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 550;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}
.filter-option:hover {
  background-color: var(--surface-input);
  color: var(--ink-primary);
}
.filter-option.active {
  background-color: var(--surface-input);
  color: var(--accent-neon);
  font-weight: 700;
}
.search-box {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 2.5rem;
  background-color: var(--surface-input);
  border: 1px solid var(--line-light);
  border-radius: 12px;
  transition: all 0.2s ease;
}
.search-box:focus-within {
  border-color: var(--line-focus);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.search-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--ink-muted);
  pointer-events: none;
}
.search-input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0;
  font: inherit;
  font-size: 0.9rem;
  background: transparent;
  border: none;
  color: var(--ink-primary);
  outline: none;
}
.clear-search {
  position: absolute;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: var(--ink-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 2px;
}
.clear-search:hover {
  color: var(--ink-primary);
}
.search-mood-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
  padding: 0.2rem 0.3rem 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-glow, color-mix(in srgb, var(--accent-neon) 16%, transparent));
  border: 1px solid var(--accent-neon, var(--accent-neon));
  color: var(--accent-neon, var(--accent-neon));
  font-size: 0.78rem;
  font-weight: 600;
  max-width: 45%;
  z-index: 1;
}
.search-mood-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-mood-x {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 1px;
  border-radius: 999px;
  opacity: 0.55;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.search-mood-pill:hover .search-mood-x {
  opacity: 1;
}
.search-mood-x:hover {
  background: rgba(0, 0, 0, 0.25);
  opacity: 1;
}
.mobile-search-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  background-color: var(--surface-card);
  border: 1px solid var(--line-light);
  border-radius: 10px;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}
.mobile-search-btn:hover {
  color: var(--ink-primary);
  border-color: var(--ink-secondary);
}
.search-modal {
  display: none;
}
.search-modal-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line-light);
}
.search-modal-bar .search-box {
  flex: 1;
}
.search-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--ink-primary);
  cursor: pointer;
}
.mobile-bottom-nav {
  display: none;
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: var(--ink-secondary);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.4rem 0;
  cursor: pointer;
  text-decoration: none;
}
.bottom-nav-item:active {
  color: var(--accent-neon);
}
.btn-panel-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--surface-card);
  border: 1px solid var(--line-light);
  color: var(--ink-secondary);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn-panel-toggle:hover {
  color: var(--ink-primary);
  border-color: var(--ink-secondary);
  background-color: var(--surface-input);
}
.app-body {
  flex: 1;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.user-menu-wrapper {
  position: relative;
  display: inline-block;
}
.avatar-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink-secondary);
  border: 1px solid var(--line-light);
  background-color: var(--surface-card);
  transition: all 0.2s ease;
}
.avatar-btn:hover {
  color: var(--ink-primary);
  border-color: var(--ink-muted);
  background-color: var(--surface-input);
}
.avatar-guest-icon {
  color: var(--ink-secondary);
}
.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background-color: var(--surface-card);
  border: 1px solid var(--line-light);
  border-radius: 12px;
  padding: 0.85rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 180;
  display: none;
  flex-direction: column;
  gap: 0.75rem;
}
.user-menu-wrapper.is-open .user-menu-dropdown {
  display: flex;
}
.user-menu-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.25rem 0.5rem 0.5rem 0.5rem;
}
.user-menu-info .user-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-primary);
}
.user-menu-info .user-email {
  font-size: 0.8rem;
  color: var(--ink-muted);
}
.dropdown-divider {
  height: 1px;
  background-color: var(--line-light);
  margin: 0.25rem 0;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: transparent;
  border: none;
  color: var(--ink-secondary);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.15s ease;
}
.dropdown-item:hover {
  background-color: var(--surface-input);
  color: var(--ink-primary);
}
.dropdown-quick-settings {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.25rem 0.5rem;
}
.quick-settings-title {
  font-size: 0.75rem;
  font-weight: 750;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.quick-settings-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.quick-settings-row.toggle-row {
  justify-content: space-between;
}
.quick-icon {
  color: var(--ink-muted);
}
.quick-lang-select {
  flex: 1;
  padding: 0.35rem 0.5rem;
  font: inherit;
  font-size: 0.85rem;
  background-color: var(--surface-input);
  border: 1px solid var(--line-light);
  border-radius: 8px;
  color: var(--ink-primary);
  outline: none;
  cursor: pointer;
}
.toggle-label-text {
  font-size: 0.85rem;
  color: var(--ink-secondary);
  font-weight: 550;
}
.app-footer {
  background-color: var(--surface-dark);
  border-top: 1px solid var(--line-light);
  padding: 1.5rem 2.5rem;
  margin-top: auto;
}
.footer-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 640px) {
  .footer-container {
    flex-direction: row;
    gap: 0;
  }
}
.footer-copyright {
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.footer-version {
  margin-left: 0.4rem;
  opacity: 0;
  transition: opacity 0.15s ease;
  font-variant-numeric: tabular-nums;
}
.footer-copyright:hover .footer-version {
  opacity: 0.65;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-link {
  font-size: 0.875rem;
  color: var(--ink-secondary);
  text-decoration: none;
  font-weight: 550;
  transition: color 0.15s ease;
}
.footer-link:hover {
  color: var(--accent-neon);
}
.kucken-app:has(.maximized-active) .app-footer {
  display: none;
}
.privacy-policy-layout {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  width: 100%;
}
.privacy-policy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.privacy-policy-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
  background:
    linear-gradient(
      135deg,
      var(--ink-primary) 30%,
      var(--accent-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.privacy-card {
  background:
    linear-gradient(
      135deg,
      var(--surface-dark),
      var(--surface-card));
  border: 1px solid var(--line-light);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}
.privacy-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background:
    linear-gradient(
      90deg,
      var(--accent-neon),
      var(--error-neon));
}
.privacy-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background-color: var(--surface-input);
  border: 1px solid var(--line-light);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
}
.privacy-brand-icon {
  color: var(--accent-neon);
  filter: drop-shadow(0 0 8px var(--accent-glow));
}
.privacy-card h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink-primary);
  text-align: center;
}
.privacy-disclaimer-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-secondary);
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
}
.btn-back-browse {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--surface-card);
  border: 1px solid var(--line-light);
  color: var(--ink-primary);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-back-browse:hover {
  background-color: var(--surface-input);
  border-color: var(--ink-muted);
}
@media (max-width: 640px) {
  html,
  body {
    overflow-x: hidden;
  }
  .header-container {
    padding: 0.6rem 0.9rem;
    gap: 0.6rem;
  }
  .header-controls {
    display: none;
  }
  .user-menu-wrapper {
    display: none;
  }
  .mobile-search-btn {
    display: flex;
  }
  .brand-name {
    font-size: 1.1rem;
  }
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    padding: 0.25rem 0.25rem calc(0.25rem + env(safe-area-inset-bottom, 0px));
    background-color: color-mix(in srgb, var(--surface-dark) 92%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line-light);
  }
  .app-body {
    padding-bottom: 5rem;
  }
  .app-footer {
    padding-bottom: 5rem;
  }
  .settings-page-header {
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }
  .settings-page-header h2 {
    font-size: 1.5rem;
  }
  .settings-page-layout {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
  .search-modal {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--line-light);
  }
  .feed-tabs {
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 0.85rem;
  }
  .feed-tabs::-webkit-scrollbar {
    display: none;
  }
  .tab-item {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .app-body {
    padding: 1rem 0.9rem 3rem;
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 1000px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (orientation: landscape) and (max-height: 600px) {
  :host(.on-watch) .app-header {
    display: none;
  }
  :host(.on-watch) .mobile-bottom-nav {
    display: none;
  }
}
.app-shell-row {
  display: flex;
  align-items: stretch;
}
.app-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 64px);
}
.app-content > * {
  display: block;
  width: 100%;
}
.app-content > .app-footer {
  margin-top: auto;
}
.app-scrim {
  display: none;
}
z-side-nav {
  flex: none;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  display: none;
}
html.sidebar-open z-side-nav {
  display: block;
}
@media (max-width: 900px) {
  z-side-nav {
    position: fixed;
    left: 0;
    top: 64px;
    bottom: 0;
    height: auto;
    z-index: 60;
  }
  html.sidebar-open .app-scrim {
    display: block;
    position: fixed;
    inset: 64px 0 0 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 55;
  }
}
.header-left {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.hamburger {
  background: none;
  border: none;
  color: var(--ink-primary);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
}
.hamburger:hover {
  background: color-mix(in srgb, var(--ink-primary) 8%, transparent);
}
.brand-studio {
  display: none;
}
:host(.in-studio) .brand-tld {
  display: none;
}
:host(.in-studio) .brand-studio {
  display: inline;
}
.studio-upload {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--surface-card);
  border: 1px solid var(--line-light);
  color: var(--ink-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.studio-upload:hover {
  color: var(--ink-primary);
  border-color: var(--ink-secondary);
  background-color: var(--surface-input);
}
@media (max-width: 600px) {
  .studio-upload span {
    display: none;
  }
}
.studio-main {
  padding: 28px 36px 56px;
  max-width: 1600px;
  width: 100%;
}
@media (max-width: 900px) {
  .studio-main {
    padding: 18px 16px 48px;
  }
}
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: var(--bg-dark, var(--bg-dark));
  color: var(--ink-primary, var(--ink-primary));
}
.error-card {
  max-width: 26rem;
  text-align: center;
}
.error-status {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-muted, var(--ink-muted));
}
.error-heading {
  margin: 0.4rem 0 0;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-primary, var(--ink-primary));
}
.error-body {
  margin: 0.75rem 0 1.5rem;
  color: var(--ink-secondary, var(--ink-secondary));
  line-height: 1.5;
}
.error-action {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  background-color: var(--accent, var(--accent-neon));
  color: var(--ink-primary);
  font-weight: 600;
  text-decoration: none;
}
.error-action:hover {
  filter: brightness(1.05);
}

/* app/library/library.css */
.library {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}
.lib-h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink-primary);
  margin: 0 0 18px;
}
.lib-section {
  margin-bottom: 34px;
}
.lib-h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin: 0;
}
.lib-h2-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.lib-section > .lib-h2 {
  display: flex;
  margin-bottom: 12px;
}
.lib-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  color: var(--ink-secondary);
  cursor: pointer;
}
.lib-toggle input {
  accent-color: var(--accent-neon);
  width: 16px;
  height: 16px;
}
.lib-clear {
  margin-left: auto;
  padding: 5px 12px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 0.8rem;
  cursor: pointer;
}
.lib-clear:hover {
  border-color: var(--accent-neon);
  color: var(--accent-neon);
}
.lib-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.lib-card {
  position: relative;
}
.lib-card-link {
  display: block;
  text-decoration: none;
}
.lib-card-poster {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  background: var(--surface-input);
  display: block;
}
.lib-card-poster-empty {
  border: 1px dashed var(--line-light);
}
.lib-card-title {
  display: block;
  margin-top: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-primary);
  line-height: 1.3;
}
.lib-card-channel {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--ink-secondary);
}
.lib-card-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 10px;
  border: none;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.72rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.12s ease;
}
.lib-card:hover .lib-card-remove {
  opacity: 1;
}
.lib-empty {
  color: var(--ink-secondary);
  font-size: 0.9rem;
}
.lib-signin {
  color: var(--ink-secondary);
  margin-bottom: 14px;
}
.lib-signin-btn {
  display: inline-block;
  padding: 9px 22px;
  border-radius: 999px;
  background: var(--accent-neon);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}

/* app/playlists/page.css */
.playlists-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}
.playlists-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
}
.playlists-empty {
  color: var(--ink-muted, #8b8b92);
}
.playlists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.playlist-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid var(--line, rgba(127, 127, 127, 0.25));
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: var(--surface, transparent);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.playlist-card:hover {
  border-color: var(--accent-neon, #ff6a00);
  transform: translateY(-2px);
}
.playlist-card-title {
  font-weight: 600;
}
.playlist-card-count {
  font-size: 0.8rem;
  color: var(--ink-muted, #8b8b92);
}

/* components/settings-view.css */
.settings-page-layout {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  width: 100%;
}
.settings-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.settings-page-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}
.btn-back-browse {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--surface-card);
  border: 1px solid var(--line-light);
  color: var(--ink-primary);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-back-browse:hover {
  background-color: var(--surface-input);
  border-color: var(--ink-muted);
}
.settings-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .settings-sections {
    grid-template-columns: 1.2fr 0.8fr;
  }
}
.settings-card {
  background-color: var(--surface-dark);
  border: 1px solid var(--line-light);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.settings-card h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-primary);
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 0.75rem;
}
.settings-form-group {
  margin-bottom: 1.5rem;
}
.settings-form-group:last-child {
  margin-bottom: 0;
}
.settings-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--ink-secondary);
  margin-bottom: 0.5rem;
}
.settings-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.settings-select-icon {
  position: absolute;
  left: 0.75rem;
  color: var(--ink-muted);
  pointer-events: none;
}
.settings-select {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  font: inherit;
  font-size: 0.95rem;
  background-color: var(--surface-input);
  border: 1px solid var(--line-light);
  border-radius: 10px;
  color: var(--ink-primary);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgb(160, 160, 160)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.settings-select:focus {
  border-color: var(--line-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.settings-help-text {
  font-size: 0.775rem;
  color: var(--ink-muted);
  margin: 0.35rem 0 0 0;
}
.settings-form-group.toggle-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--line-light);
}
.settings-form-group.toggle-group:last-child {
  border-bottom: none;
}
.toggle-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-right: 1.5rem;
}
.toggle-title {
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--ink-primary);
}
.toggle-desc {
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.3;
}
.ios-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}
.ios-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.ios-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--surface-input);
  border: 1px solid var(--line-light);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 34px;
}
.ios-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: var(--ink-primary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.ios-switch input:checked + .ios-slider {
  background-color: var(--accent-neon);
  border-color: var(--accent-neon);
  box-shadow: 0 0 10px var(--accent-glow);
}
.ios-switch input:checked + .ios-slider:before {
  transform: translateX(22px);
  background-color: var(--ink-primary);
}
.ios-switch input:focus-visible + .ios-slider {
  border-color: var(--line-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.account-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.account-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
@media (min-width: 480px) {
  .account-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.account-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-secondary);
}
.account-value {
  font-size: 0.9rem;
  font-family: monospace;
  color: var(--ink-primary);
  background-color: var(--surface-input);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  word-break: break-all;
}
.account-value.role-badge {
  font-family: inherit;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  background-color: var(--accent-neon);
  color: var(--ink-primary);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}
.guest-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--ink-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
}
.settings-admin-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.75rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  background: var(--accent, var(--accent-neon));
  color: var(--ink-primary);
  font-weight: 600;
  text-decoration: none;
}
.settings-admin-link:hover {
  filter: brightness(1.08);
}
.account-link {
  color: var(--accent-neon);
  text-decoration: none;
  word-break: break-all;
}
.account-link:hover {
  text-decoration: underline;
}
.settings-lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 4px 12px;
  max-height: 260px;
  overflow-y: auto;
  padding: 6px 2px;
}
.lang-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--ink-primary);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}
.lang-check:hover {
  background: color-mix(in srgb, var(--ink-primary) 7%, transparent);
}
.lang-check input {
  accent-color: var(--accent-neon);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.lang-check span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lang-check-all {
  grid-column: 1 / -1;
  font-weight: 600;
  border-bottom: 1px solid var(--line-light);
  border-radius: 0;
  padding-bottom: 8px;
  margin-bottom: 4px;
}

/* components/video-player.css */
.vp {
  position: relative;
  width: 100%;
  background: #000;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  outline: none;
  font-family: inherit;
  --vp-accent: #ff6a00;
}
.vp:fullscreen {
  border-radius: 0;
  aspect-ratio: auto;
}
.vp-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}
.vp-flash {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
}
.vp-flash svg {
  width: 72px;
  height: 72px;
  color: #fff;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .6));
}
.vp-flash.on {
  animation: vp-flash .5s ease-out forwards;
}
@keyframes vp-flash {
  0% {
    opacity: .9;
    transform: scale(.8);
  }
  100% {
    opacity: 0;
    transform: scale(1.25);
  }
}
.vp-bigplay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 64px;
  border: none;
  border-radius: 14px;
  background: rgba(0, 0, 0, .65);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.vp-bigplay:hover {
  background: var(--vp-accent);
}
.vp-bigplay svg {
  width: 36px;
  height: 36px;
}
.vp-shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 6px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
  transition: opacity .2s;
  opacity: 1;
}
.vp.vp-hide .vp-shade {
  opacity: 0;
  pointer-events: none;
}
.vp.vp-hide {
  cursor: none;
}
.vp-progress {
  position: relative;
  height: 14px;
  cursor: pointer;
  touch-action: none;
}
.vp-progress::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  height: 3px;
  background: rgba(255, 255, 255, .25);
  border-radius: 2px;
}
.vp-buffered,
.vp-played {
  position: absolute;
  left: 0;
  top: 6px;
  height: 3px;
  border-radius: 2px;
  pointer-events: none;
  width: 0;
}
.vp-buffered {
  background: rgba(255, 255, 255, .4);
}
.vp-played {
  background: var(--vp-accent);
}
.vp-progress:hover::before,
.vp-progress:hover .vp-buffered,
.vp-progress:hover .vp-played {
  transform: scaleY(1.7);
}
.vp-knob {
  position: absolute;
  top: 7.5px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--vp-accent);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .1s;
  pointer-events: none;
}
.vp-progress:hover .vp-knob {
  transform: translate(-50%, -50%) scale(1);
}
.vp-tip {
  position: absolute;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .85);
  color: #fff;
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 5px;
  pointer-events: none;
  opacity: 0;
  white-space: nowrap;
}
.vp-progress:hover .vp-tip {
  opacity: 1;
}
.vp-bar {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 2px;
}
.vp-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  width: 40px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  padding: 0;
}
.vp-btn:hover {
  background: rgba(255, 255, 255, .15);
}
.vp-btn svg {
  width: 21px;
  height: 21px;
}
.vp-time {
  color: #fff;
  font-size: 13px;
  margin: 0 8px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.vp-spacer {
  flex: 1;
}
.vp-volslider {
  width: 0;
  opacity: 0;
  transition: width .15s, opacity .15s;
  accent-color: var(--vp-accent);
  cursor: pointer;
}
.vp-vol:hover + .vp-volslider,
.vp-volslider:hover,
.vp-volslider:focus-visible {
  width: 64px;
  opacity: 1;
}
.vp-menu {
  position: absolute;
  right: 12px;
  bottom: 54px;
  min-width: 210px;
  background: rgba(18, 18, 20, .96);
  border-radius: 10px;
  overflow: hidden;
  padding: 6px 0;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .5);
}
.vp-mi {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 13.5px;
  font-family: inherit;
  padding: 9px 14px;
  text-align: left;
}
.vp-mi:hover {
  background: rgba(255, 255, 255, .12);
}
.vp-mi svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.vp-mv {
  margin-left: auto;
  color: rgba(255, 255, 255, .65);
}
.vp-mhead {
  border-bottom: 1px solid rgba(255, 255, 255, .15);
  font-weight: 600;
}
.vp-mcheck {
  width: 17px;
  flex: none;
  display: inline-flex;
}
.vp-fill {
  aspect-ratio: auto;
  height: 100%;
  border-radius: 0;
}
.vp-share-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, .68);
  display: grid;
  place-items: center;
}
.vp-share-card {
  width: min(440px, calc(100% - 32px));
  background: #141417;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: 16px;
  color: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6);
}
.vp-share-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 16px;
}
.vp-share-head svg {
  width: 18px;
  height: 18px;
}
.vp-share-sub {
  color: rgba(255, 255, 255, .6);
  font-size: 12.5px;
  margin: 2px 0 12px;
}
.vp-share-preview {
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 10px;
}
.vp-share-thumb {
  width: 96px;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 7px;
  flex: none;
}
.vp-share-meta {
  min-width: 0;
}
.vp-share-title {
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vp-share-url {
  color: rgba(255, 255, 255, .55);
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}
.vp-share-text {
  width: 100%;
  resize: none;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  padding: 9px 11px;
  outline: none;
  box-sizing: border-box;
}
.vp-share-text:focus {
  border-color: var(--vp-accent);
}
.vp-share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.vp-share-status {
  color: rgba(255, 255, 255, .65);
  font-size: 12.5px;
  flex: 1;
}
.vp-share-cancel {
  background: none;
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  border-radius: 999px;
  padding: 7px 16px;
  font-weight: 600;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}
.vp-share-post {
  background: var(--vp-accent);
  border: none;
  color: #fff;
  border-radius: 999px;
  padding: 7px 20px;
  font-weight: 700;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}
.vp-share-post:disabled {
  opacity: .6;
  cursor: default;
}

/* app/shorts/shorts.css */
.shorts-feed {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  background: #000;
}
.shorts-item {
  height: 100vh;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shorts-player {
  height: 100%;
  aspect-ratio: 9 / 16;
  max-width: 100%;
}
.shorts-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.6),
      transparent);
  color: var(--ink-primary);
}
.shorts-channel {
  color: var(--ink-primary);
  font-weight: 700;
  text-decoration: none;
}
.shorts-title {
  font-size: 0.95rem;
}
.shorts-empty {
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
}

/* app/studio/studio.css */
.studio {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 64px;
  color: var(--ink-primary);
}
.studio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.studio-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink-primary);
}
.studio-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-neon);
  color: var(--ink-primary);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 9px;
  font-weight: 700;
}
.studio-upload-btn:hover {
  background: var(--line-focus);
}
.studio-empty {
  color: var(--ink-secondary);
  text-align: center;
  padding: 64px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.studio-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.studio-card {
  border: 1px solid var(--line-light);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-dark);
  transition: border-color .15s;
}
.studio-card:hover {
  border-color: var(--ink-muted);
}
.studio-thumb {
  aspect-ratio: 16 / 9;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
}
.studio-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-dark);
}
.studio-thumb img.broken {
  display: none;
}
.studio-thumb-ph {
  color: var(--ink-muted);
}
.studio-meta {
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.studio-card-title {
  font-weight: 600;
  width: 100%;
  color: var(--ink-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.studio-badge {
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-input);
  color: color-mix(in srgb, var(--ink-primary) 70%, var(--ink-secondary));
  text-transform: capitalize;
}
.studio-badge.status-ready {
  background: color-mix(in srgb, var(--success-neon) 18%, transparent);
  color: var(--success-neon);
}
.studio-badge.status-processing {
  background: color-mix(in srgb, var(--warn-neon) 18%, transparent);
  color: var(--warn-neon);
}
.studio-badge.status-failed {
  background: color-mix(in srgb, var(--error-neon) 18%, transparent);
  color: var(--error-neon);
}
.studio-badge.mod-flagged {
  background: color-mix(in srgb, var(--warn-neon) 18%, transparent);
  color: var(--warn-neon);
}
.studio-badge.mod-rejected {
  background: color-mix(in srgb, var(--error-neon) 20%, transparent);
  color: var(--error-neon);
}
.studio-badge.vis-public {
  background: color-mix(in srgb, var(--success-neon) 16%, transparent);
  color: var(--success-neon);
}
.studio-badge.vis-unlisted {
  background: color-mix(in srgb, var(--info-neon) 18%, transparent);
  color: var(--info-neon);
}
.studio-badge.vis-private {
  background: var(--surface-input);
  color: color-mix(in srgb, var(--ink-primary) 70%, var(--ink-secondary));
}
.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.dash-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink-primary);
}
.dash-upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--accent-neon);
  color: var(--ink-primary);
  font-weight: 600;
  text-decoration: none;
}
.dash-upload:hover {
  filter: brightness(1.08);
}
.dash-empty {
  color: var(--ink-secondary);
  padding: 40px 0;
}
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.dash-card {
  background: var(--surface-dark);
  border: 1px solid var(--line-light);
  border-radius: 14px;
  padding: 20px;
}
.dash-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--ink-primary);
}
.dash-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.dash-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dash-stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink-primary);
}
.dash-stat-label {
  font-size: 0.8rem;
  color: var(--ink-secondary);
}
.dash-link {
  color: var(--accent-neon);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.dash-link:hover {
  text-decoration: underline;
}
.dash-empty-inline {
  color: var(--ink-secondary);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.dash-recent {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dash-recent-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dash-recent-thumb {
  position: relative;
  width: 100px;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-dark);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  text-decoration: none;
}
.dash-recent-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dash-recent-thumb img.broken {
  display: none;
}
.dash-recent-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-recent-title {
  color: var(--ink-primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-badge {
  font-size: 0.74rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--line-light);
  color: color-mix(in srgb, var(--ink-primary) 70%, var(--ink-secondary));
}
.dash-badge.mod {
  background: rgba(251, 191, 36, 0.15);
  color: var(--warn-neon);
}
.dash-badge.rej {
  background: rgba(248, 113, 113, 0.15);
  color: var(--error-neon);
}
.dash-badge.vis-public {
  background: color-mix(in srgb, var(--success-neon) 15%, transparent);
  color: var(--success-neon);
}
.dash-recent-edit {
  color: var(--ink-secondary);
  padding: 8px;
  border-radius: 8px;
  display: inline-flex;
}
.dash-recent-edit:hover {
  background: var(--line-light);
  color: var(--ink-primary);
}
@media (max-width: 880px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }
}

/* app/subscriptions/subscriptions.css */
.subs-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 16px 64px;
}
.subs-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.subs-head-icon {
  color: var(--accent-neon);
  display: inline-flex;
  margin-top: 4px;
}
.subs-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink-primary);
}
.subs-sub {
  margin: 4px 0 0;
  color: var(--ink-secondary);
  font-size: 0.92rem;
}
.subs-sub a {
  color: var(--accent-neon);
  text-decoration: none;
  font-weight: 600;
}
.subs-sub a:hover {
  text-decoration: underline;
}
.subs-empty {
  border: 1px dashed var(--line-light);
  border-radius: 14px;
  padding: 40px 24px;
  text-align: center;
  color: var(--ink-secondary);
}
.subs-signin-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 22px;
  border-radius: 10px;
  background: var(--accent-neon);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}
.subs-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.subs-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line-light);
}
.subs-channel {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
}
.subs-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--surface-input);
  color: var(--ink-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex: 0 0 auto;
}
.subs-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.subs-name {
  color: var(--ink-primary);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.subs-host {
  color: var(--ink-muted);
  font-size: 0.8rem;
}
.subs-unsub {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid var(--line-light);
  background: transparent;
  color: var(--ink-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
.subs-unsub:hover {
  color: var(--error-neon);
  border-color: var(--error-neon);
}

/* components/subscribe-button.css */
.sub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent-neon);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.12s ease,
    color 0.12s ease,
    border-color 0.12s ease;
}
.sub-btn:hover {
  filter: brightness(1.08);
}
.sub-btn.is-unknown {
  background: transparent;
  color: var(--ink-secondary);
  border-color: var(--line-light);
}
.sub-btn.is-unknown:hover {
  color: var(--ink-primary);
  border-color: var(--ink-muted);
  filter: none;
}
.sub-btn.is-subscribed {
  background: var(--surface-input);
  color: var(--ink-primary);
  border-color: var(--line-light);
}

/* components/channel-view.css */
.channel-page-layout {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 2rem 3rem 2rem;
  display: flex;
  flex-direction: column;
}
.channel-top-bar {
  display: flex;
  margin-bottom: 1.25rem;
}
.channel-top-bar .btn-back-browse {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--line-light);
  color: var(--ink-secondary);
  padding: 0.5rem 1rem;
  border-radius: 99px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  font-family: inherit;
}
.channel-top-bar .btn-back-browse:hover {
  background-color: var(--surface-card);
  color: var(--ink-primary);
  border-color: var(--ink-muted);
}
.channel-header-info {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.channel-avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background:
    linear-gradient(
      135deg,
      var(--accent-neon),
      hsl(15, 90%, 60%));
  color: var(--ink-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  font-weight: 800;
  border: 4px solid var(--surface-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  user-select: none;
}
.channel-text-details {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.channel-title {
  font-size: 2.25rem;
  font-weight: 850;
  margin: 0;
  color: var(--ink-primary);
  letter-spacing: -0.02em;
}
.channel-meta-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink-secondary);
  font-size: 0.95rem;
  font-weight: 550;
}
.channel-handle {
  color: var(--ink-primary);
  font-weight: 600;
}
.channel-instance-badge {
  display: inline-block;
  font-size: 0.8rem;
  background-color: var(--surface-card);
  border: 1px solid var(--line-light);
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  align-self: flex-start;
  margin-top: 0.25rem;
  color: var(--ink-muted);
  font-weight: 500;
}
.channel-action-buttons {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
}
.channel-action-buttons .btn-subscribe {
  background-color: var(--ink-primary);
  color: var(--surface-dark);
  border: none;
  font-weight: 700;
  border-radius: 99px;
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.channel-action-buttons .btn-subscribe:hover {
  opacity: 0.9;
  transform: scale(1.02);
}
.channel-action-buttons .channel-original-btn {
  border-radius: 99px;
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--line-light);
  background-color: transparent;
  color: var(--ink-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.channel-action-buttons .channel-original-btn:hover {
  background-color: var(--surface-card);
  border-color: var(--ink-muted);
}
.channel-grid-section {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
}
.channel-tabs {
  display: flex;
  border-bottom: 1px solid var(--line-light);
  margin-bottom: 1.75rem;
  gap: 2rem;
}
.channel-tab-item {
  background: none;
  border: none;
  color: var(--ink-secondary);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 0.25rem;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
  font-family: inherit;
}
.channel-tab-item:hover {
  color: var(--ink-primary);
}
.channel-tab-item.active {
  color: var(--ink-primary);
}
.channel-tab-item.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--ink-primary);
  border-radius: 99px;
}
.channel-featured-section {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 2rem;
  background: var(--surface-card);
  border-radius: 16px;
  border: 1px solid var(--line-light);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  align-items: center;
}
.channel-featured-player {
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-light);
  background-color: #000;
}
.channel-featured-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.channel-featured-details {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  justify-content: center;
}
.featured-badge {
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  color: var(--accent-neon);
  align-self: flex-start;
}
.featured-title {
  font-size: 1.6rem;
  font-weight: 850;
  margin: 0;
  line-height: 1.25;
  color: var(--ink-primary);
  letter-spacing: -0.015em;
}
.featured-stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.featured-desc {
  font-size: 0.9rem;
  color: var(--ink-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0.25rem 0 0.5rem 0;
}
.watch-featured-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  background-color: var(--accent-neon);
  color: var(--ink-primary);
  border: none;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.watch-featured-btn:hover {
  background-color: var(--line-focus);
  transform: translateY(-1px);
}
.channel-empty-grid {
  text-align: center;
  padding: 3rem;
  color: var(--ink-muted);
  border: 1px dashed var(--line-light);
  border-radius: 12px;
  margin-top: 1rem;
}
.channel-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 1rem;
  color: var(--ink-muted);
}
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--line-light);
  border-top-color: var(--accent-neon);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.scroll-row-section {
  margin-bottom: 2.5rem;
}
.row-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink-primary);
  margin: 0 0 1rem 0;
  letter-spacing: -0.01em;
}
.scroll-row-container {
  position: relative;
  width: 100%;
}
.scroll-row {
  display: flex;
  overflow-x: auto;
  gap: 1.25rem;
  padding: 0.25rem 0.25rem 1.25rem 0.25rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line-light) transparent;
  scroll-behavior: smooth;
  margin: 0 -0.25rem;
}
.scroll-row::-webkit-scrollbar {
  height: 6px;
}
.scroll-row::-webkit-scrollbar-track {
  background: transparent;
}
.scroll-row::-webkit-scrollbar-thumb {
  background: var(--line-light);
  border-radius: 99px;
}
.scroll-row::-webkit-scrollbar-thumb:hover {
  background: var(--ink-muted);
}
.scroll-item {
  flex: 0 0 280px;
  scroll-snap-align: start;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem 1.5rem;
}
.video-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: pointer;
}
.card-thumbnail-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--surface-dark);
  border: 1px solid var(--line-light);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.video-card:hover .card-thumbnail-wrapper {
  transform: scale(1.02);
  border-color: var(--line-focus);
}
.card-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.duration-badge {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background-color: color-mix(in srgb, var(--surface-dark) 85%, transparent);
  color: var(--ink-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}
.card-play-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  color: var(--ink-primary);
}
.video-card:hover .card-play-overlay {
  opacity: 1;
}
.card-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-stats {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.775rem;
  color: var(--ink-muted);
}
.stat-dot {
  width: 3px;
  height: 3px;
  border-radius: 99px;
  background-color: var(--ink-muted);
}
.playlists-tab-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.mock-playlists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.playlist-card-mock {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  cursor: pointer;
}
.playlist-thumb-mock {
  aspect-ratio: 16/9;
  width: 100%;
  border-radius: 12px;
  background:
    linear-gradient(
      135deg,
      hsl(24, 45%, 12%),
      hsl(220, 50%, 10%));
  border: 1px solid var(--line-light);
  position: relative;
  overflow: hidden;
}
.playlist-overlay-mock {
  position: absolute;
  inset: 0 0 0 50%;
  background: color-mix(in srgb, var(--surface-dark) 85%, transparent);
  backdrop-filter: blur(4px);
  border-left: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--ink-primary);
  font-size: 0.85rem;
  font-weight: 600;
}
.playlist-title-mock {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink-primary);
}
.channel-info-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: flex-start;
}
.channel-info-grid .info-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.channel-info-grid h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink-primary);
  margin: 0 0 0.5rem 0;
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 0.5rem;
}
.info-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-secondary);
  white-space: pre-line;
}
.stats-card {
  background-color: var(--surface-card);
  border: 1px solid var(--line-light);
  border-radius: 16px;
  padding: 1.5rem;
}
.stat-info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.9rem;
}
.stat-info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.stat-label {
  color: var(--ink-muted);
  font-weight: 500;
}
.stat-val {
  color: var(--ink-primary);
  font-weight: 600;
}
@media (max-width: 900px) {
  .channel-header-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    margin: 1.5rem 0;
  }
  .channel-avatar {
    width: 96px;
    height: 96px;
    font-size: 2.75rem;
  }
  .channel-title {
    font-size: 1.85rem;
  }
  .channel-featured-section {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.25rem;
  }
  .channel-page-layout {
    padding: 1rem;
  }
  .channel-info-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
@media (max-width: 480px) {
  .channel-action-buttons {
    width: 100%;
  }
  .channel-action-buttons .btn-subscribe,
  .channel-action-buttons .channel-original-btn {
    flex: 1 1 auto;
    text-align: center;
    justify-content: center;
  }
}

/* app/playlist/[id]/page.css */
.playlist-detail {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}
.playlist-back {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--ink-muted, #8b8b92);
  text-decoration: none;
}
.playlist-back:hover {
  color: var(--accent-neon, #ff6a00);
}
.playlist-detail-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.playlist-detail-desc {
  color: var(--ink-muted, #8b8b92);
  margin: 0 0 1.25rem;
  max-width: 70ch;
}
.playlists-empty {
  color: var(--ink-muted, #8b8b92);
}
.playlist-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.pv-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-decoration: none;
  color: inherit;
}
.pv-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  background: rgba(127, 127, 127, 0.18);
  display: block;
}
.pv-thumb-ph {
  display: block;
}
.pv-title {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pv-channel {
  font-size: 0.8rem;
  color: var(--ink-muted, #8b8b92);
}

/* app/studio/content/content.css */
.content-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.content-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink-primary);
}
.content-upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--accent-neon);
  color: var(--ink-primary);
  font-weight: 600;
  text-decoration: none;
}
.content-upload:hover {
  filter: brightness(1.08);
}
.content-empty {
  color: var(--ink-secondary);
  padding: 48px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.content-table {
  border: 1px solid var(--line-light);
  border-radius: 12px;
  overflow: hidden;
}
.ct-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px 130px 80px 100px 80px 48px;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-light);
}
.ct-row:last-child {
  border-bottom: none;
}
.ct-headrow {
  background: #121317;
  color: var(--ink-secondary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.ct-row:not(.ct-headrow):hover {
  background: var(--surface-dark);
}
.ct-col-video {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.ct-thumb {
  position: relative;
  width: 120px;
  aspect-ratio: 16/9;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-dark);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  text-decoration: none;
}
.ct-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ct-thumb img.broken {
  display: none;
}
.ct-dur {
  position: absolute;
  right: 4px;
  bottom: 4px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--ink-primary);
  font-size: 0.7rem;
  padding: 1px 4px;
  border-radius: 3px;
}
.ct-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ct-vtitle {
  color: var(--ink-primary);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ct-vtitle:hover {
  color: var(--accent-neon);
}
.ct-vdesc {
  color: var(--ink-muted);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ct-vis {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--ink-primary) 70%, var(--ink-secondary));
}
.ct-vis-pub {
  color: var(--success-neon);
}
.ct-vis-proc {
  color: var(--warn-neon);
}
.ct-vis-rej {
  color: var(--error-neon);
}
.ct-col-date {
  color: var(--ink-secondary);
  font-size: 0.85rem;
}
.ct-col-num {
  color: color-mix(in srgb, var(--ink-primary) 70%, var(--ink-secondary));
  font-size: 0.9rem;
  text-align: right;
}
.ct-col-act {
  text-align: right;
}
.ct-edit {
  color: var(--ink-secondary);
  padding: 7px;
  border-radius: 8px;
  display: inline-flex;
}
.ct-edit:hover {
  background: var(--line-light);
  color: var(--ink-primary);
}
@media (max-width: 880px) {
  .ct-headrow,
  .ct-col-date,
  .ct-col-num:nth-child(n+5) {
    display: none;
  }
  .ct-row {
    grid-template-columns: minmax(0, 1fr) 110px 44px;
  }
}

/* components/save-button.css */
.save-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-primary);
  font-weight: 600;
  font-size: 0.86rem;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.12s ease,
    color 0.12s ease,
    border-color 0.12s ease;
}
.save-btn:hover {
  border-color: var(--accent-neon);
  color: var(--accent-neon);
}
.save-btn-on {
  border-color: var(--accent-neon);
  color: var(--accent-neon);
}
.save-btn-quiet {
  opacity: 0.85;
}

/* components/watch-view.css */
.player-grid-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  width: 100%;
}
.player-main-col {
  display: flex;
  flex-direction: column;
}
.player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
  flex-shrink: 0;
}
.player-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.theater-mode-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  background: color-mix(in srgb, var(--surface-dark) 60%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-light);
  color: var(--ink-secondary);
  border-radius: 99px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  opacity: 0;
}
.player-wrapper:hover .theater-mode-btn {
  opacity: 1;
}
.theater-mode-btn:hover {
  color: var(--ink-primary);
  border-color: var(--ink-secondary);
  background: color-mix(in srgb, var(--surface-dark) 80%, transparent);
  transform: scale(1.05);
}
.player-details {
  padding: 1.5rem;
  background-color: var(--surface-dark);
  border-bottom: 1px solid var(--line-light);
}
.details-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.details-author-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--ink-secondary);
  margin-bottom: 0.85rem;
}
.details-channel {
  font-weight: 750;
  color: var(--ink-primary);
}
.details-channel-link {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--ink-primary);
  text-decoration: none;
  font-weight: 600;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  outline: none;
}
.details-channel-link:hover {
  text-decoration: underline;
}
.details-instance {
  font-size: 0.8rem;
  background-color: var(--surface-card);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--line-light);
}
.details-stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}
.details-description-wrapper {
  position: relative;
  background-color: var(--surface-card);
  border: 1px solid var(--line-light);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}
.details-description {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-secondary);
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.25s ease;
}
.details-description-wrapper.is-expanded .details-description {
  display: block;
  -webkit-line-clamp: unset;
  max-height: 60vh;
  overflow-y: auto;
}
.details-description-toggle {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 4px;
  background: none;
  border: none;
  color: var(--accent-neon);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 0 0 0;
  margin-top: 0.25rem;
  font-family: inherit;
  outline: none;
}
.details-description-toggle:hover {
  opacity: 0.85;
}
.details-description-wrapper .toggle-text-less,
.details-description-wrapper .toggle-icon-up {
  display: none;
}
.details-description-wrapper.is-expanded .toggle-text-more,
.details-description-wrapper.is-expanded .toggle-icon-down {
  display: none;
}
.details-description-wrapper.is-expanded .toggle-text-less,
.details-description-wrapper.is-expanded .toggle-icon-up {
  display: inline-flex;
}
.details-footer {
  display: flex;
  justify-content: flex-end;
}
.comments-section {
  padding: 1.5rem;
  background-color: var(--surface-dark);
}
.comments-title {
  margin: 0 0 1.25rem 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink-primary);
}
.comments-loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink-muted);
  font-size: 0.875rem;
  padding: 1.5rem 0;
}
.comments-loading .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line-light);
  border-top-color: var(--accent-neon);
  border-radius: 50%;
  animation: comment-spin 0.8s linear infinite;
}
@keyframes comment-spin {
  to {
    transform: rotate(360deg);
  }
}
.comments-empty {
  text-align: center;
  padding: 2rem 1rem;
  border: 1px dashed var(--line-light);
  border-radius: 12px;
  color: var(--ink-muted);
}
.btn-comment-action {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.825rem;
  color: var(--accent-neon);
  text-decoration: none;
  font-weight: 600;
}
.btn-comment-action:hover {
  text-decoration: underline;
}
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.comment-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.comment-avatar-fallback {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--surface-card);
  border: 1px solid var(--line-light);
  color: var(--accent-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.comment-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.comment-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.8rem;
}
.comment-author {
  font-weight: 700;
  color: var(--ink-primary);
}
.comment-host {
  color: var(--ink-muted);
}
.comment-time {
  color: var(--ink-muted);
  font-size: 0.75rem;
}
.comment-text {
  font-size: 0.875rem;
  color: var(--ink-secondary);
  line-height: 1.5;
  word-break: break-word;
}
.comment-text p {
  margin: 0 0 0.5rem 0;
}
.comment-text p:last-child {
  margin-bottom: 0;
}
.player-sidebar-col {
  padding: 1.25rem;
  background-color: var(--bg-dark);
  border-left: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}
.sidebar-title {
  margin: 0 0 1rem 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.sidebar-card {
  display: flex;
  gap: 0.65rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.15s ease;
  padding: 4px;
}
.sidebar-card:hover {
  background-color: color-mix(in srgb, var(--ink-primary) 3%, transparent);
}
.sidebar-thumb-wrapper {
  position: relative;
  width: 120px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background-color: #000;
  flex-shrink: 0;
}
.sidebar-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sidebar-duration {
  position: absolute;
  bottom: 0.25rem;
  right: 0.25rem;
  background-color: rgba(0, 0, 0, 0.8);
  color: var(--ink-primary);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 4px;
}
.sidebar-card-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
}
.sidebar-card-title {
  margin: 0 0 2px 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-card-channel {
  font-size: 0.75rem;
  color: var(--ink-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-card-views {
  font-size: 0.725rem;
  color: var(--ink-muted);
}
.zen-active .player-grid-layout {
  grid-template-columns: 1fr;
}
.zen-active .player-sidebar-col {
  display: none;
}
.maximized-active .player-header-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background-color: color-mix(in srgb, var(--surface-dark) 60%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 180;
  border-bottom: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.maximized-active:hover .player-header-bar {
  opacity: 1;
}
.maximized-active .player-grid-layout {
  grid-template-columns: 1fr;
  height: 100vh;
}
.maximized-active .player-main-col {
  height: 100vh;
  overflow: hidden;
}
.maximized-active .player-wrapper {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
}
.maximized-active .player-details,
.maximized-active .comments-section,
.maximized-active .player-sidebar-col {
  display: none;
}
@media (max-width: 900px) {
  .player-grid-layout {
    grid-template-columns: 1fr;
  }
  .player-sidebar-col {
    border-left: none;
    border-top: 1px solid var(--line-light);
    height: auto;
  }
}
.rate-buttons {
  display: inline-flex;
  gap: 6px;
  margin-left: 10px;
}
.rate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line-light);
  background: transparent;
  color: var(--ink-secondary);
  cursor: pointer;
}
.rate-btn:hover {
  color: var(--ink-primary);
  border-color: var(--ink-muted);
}
.rate-btn.is-active {
  background: var(--accent-glow);
  color: var(--accent-neon);
  border-color: var(--accent-neon);
}
.comment-compose-box {
  margin-bottom: 1rem;
}
.reply-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: var(--ink-secondary);
}
.reply-cancel {
  border: 0;
  background: transparent;
  color: var(--accent-neon);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.comment-input-area {
  width: 100%;
  resize: vertical;
  min-height: 56px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-light);
  background: var(--surface-input);
  color: var(--ink-primary);
  font: inherit;
  font-size: 0.9rem;
}
.comment-input-area:focus {
  outline: none;
  border-color: var(--line-focus);
}
.compose-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
.btn-post-comment {
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-neon);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.btn-post-comment:disabled {
  opacity: 0.6;
  cursor: default;
}
.comment-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 4px;
}
.comment-reply-btn,
.comment-replies-toggle {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.comment-reply-btn:hover,
.comment-replies-toggle:hover {
  color: var(--accent-neon);
}
.comment-replies {
  margin-top: 12px;
  padding-left: 16px;
  border-left: 2px solid var(--surface-border, rgba(255, 255, 255, 0.1));
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.comment-reply-item {
  margin: 0;
}
.mention-suggest {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
  border: 1px solid var(--line-light);
  border-radius: 10px;
  background: var(--surface-card, var(--surface-input));
  overflow: hidden;
}
.mention-suggest-item {
  text-align: left;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--ink-primary);
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}
.mention-suggest-item:hover {
  background: color-mix(in srgb, var(--accent-neon) 12%, transparent);
  color: var(--accent-neon);
}
.comment-text .mention {
  color: var(--accent-neon);
  text-decoration: none;
  font-weight: 600;
}
.comment-text .mention:hover {
  text-decoration: underline;
}

/* app/v/[id]/watch.css */
.watch {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px;
}
.watch-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}
.watch.watch-short .watch-player {
  max-width: 420px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
}
.watch-meta {
  padding: 16px 4px;
}
.watch-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 8px;
}
.watch-channel {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ink-muted);
  margin: 0 0 12px;
}
.watch-channel a {
  color: var(--ink-primary);
  font-weight: 600;
  text-decoration: none;
}
.watch-desc {
  white-space: pre-wrap;
  color: var(--ink-secondary);
}
.watch-missing {
  text-align: center;
  color: var(--ink-muted);
  padding: 64px 0;
}
.watch-comments {
  margin-top: 24px;
  padding: 0 4px;
}
.comments-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 12px;
}
.comment-compose {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.comment-input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  font: inherit;
}
.comment-submit {
  background: var(--accent-neon);
  color: var(--on-accent);
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
}
.comment-notice {
  color: var(--error-neon);
  margin: 8px 0 0;
}
.comment-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.comment {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.comment-author {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink-secondary);
}
.comment-body {
  color: var(--ink-primary);
}
.watch-owner-badge {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--error-neon) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--error-neon) 35%, transparent);
  color: var(--error-neon);
  font-size: 0.9rem;
}

/* app/watch/[id]/page.css */
.player-page-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
  width: 100%;
}
.loading-state {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink-secondary);
  font-size: 1.1rem;
  font-weight: 600;
}
.loading-state .spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--line-light);
  border-top-color: var(--accent-neon);
  border-radius: 50%;
  animation: loading-spin 0.8s linear infinite;
}
@keyframes loading-spin {
  to {
    transform: rotate(360deg);
  }
}

/* app/studio/edit/edit.css */
.edit-missing {
  color: var(--ink-secondary);
  padding: 48px 0;
}
.edit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
}
.edit-back {
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: 0.85rem;
}
.edit-back:hover {
  color: var(--ink-primary);
}
.edit-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 4px 0 0;
  color: var(--ink-primary);
}
.edit-head-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.edit-savestate {
  color: var(--ink-secondary);
  font-size: 0.85rem;
  min-width: 48px;
  text-align: right;
}
.edit-save-btn {
  background: var(--accent-neon);
  color: var(--ink-primary);
  border: none;
  border-radius: 999px;
  padding: 9px 20px;
  font-weight: 600;
  cursor: pointer;
}
.edit-save-btn:hover {
  filter: brightness(1.08);
}
.edit-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}
.edit-form {
  display: flex;
  flex-direction: column;
}
.edit-label {
  display: block;
  color: color-mix(in srgb, var(--ink-primary) 70%, var(--ink-secondary));
  font-size: 0.85rem;
  font-weight: 600;
  margin: 14px 0 6px;
}
.edit-input {
  width: 100%;
  background: var(--surface-dark);
  border: 1px solid #2a2c34;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink-primary);
  font-size: 0.92rem;
}
.edit-input:focus {
  outline: none;
  border-color: var(--accent-neon);
}
.edit-textarea {
  resize: vertical;
  min-height: 90px;
  font-family: inherit;
}
.edit-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.edit-hint {
  color: var(--ink-secondary);
  font-size: 0.82rem;
  margin: 8px 0 0;
  line-height: 1.4;
}
.edit-vis {
  border: 1px solid var(--line-light);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 18px 0 6px;
}
.edit-vis legend {
  padding: 0 6px;
}
.edit-radio,
.edit-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: color-mix(in srgb, var(--ink-primary) 70%, var(--ink-secondary));
  font-size: 0.9rem;
  padding: 6px 0;
  cursor: pointer;
}
.edit-check {
  margin-top: 6px;
}
.edit-replace {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
}
.edit-sub {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-primary);
  margin: 0 0 6px;
}
.edit-replace-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid var(--line-light);
  background: var(--surface-input);
  color: var(--ink-primary);
  font-weight: 600;
  cursor: pointer;
}
.edit-replace-btn:hover {
  background: var(--line-light);
}
.edit-side {
  display: flex;
  flex-direction: column;
}
.edit-preview {
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/9;
  margin-bottom: 8px;
}
.edit-preview z-video-player,
.edit-preview video {
  width: 100%;
  height: 100%;
  display: block;
}
.edit-preview-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 16px;
}
.edit-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.edit-thumb-opt {
  position: relative;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-dark);
  cursor: pointer;
  aspect-ratio: 16/9;
}
.edit-thumb-opt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.edit-thumb-opt.sel {
  border-color: var(--accent-neon);
}
.edit-thumb-tick {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--accent-neon);
  color: var(--ink-primary);
  border-radius: 999px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.edit-thumb-upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid var(--line-light);
  background: var(--surface-input);
  color: var(--ink-primary);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}
.edit-thumb-upload:hover {
  background: var(--line-light);
}
@media (max-width: 900px) {
  .edit-body {
    grid-template-columns: 1fr;
  }
  .edit-side {
    order: -1;
  }
}

/* components/side-nav.css */
:host {
  display: block;
  width: 240px;
  height: 100%;
  background: var(--surface-dark);
  border-right: 1px solid var(--line-light);
  overflow-y: auto;
}
.sn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 10px 32px;
}
.sn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 4px 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent-neon);
  color: var(--ink-primary);
  font-weight: 600;
  text-decoration: none;
}
.sn-cta:hover {
  filter: brightness(1.08);
}
.sn-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sn-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 12px;
  border-radius: 10px;
  color: color-mix(in srgb, var(--ink-primary) 70%, var(--ink-secondary));
  text-decoration: none;
  font-size: 0.95rem;
}
.sn-item:hover {
  background: var(--surface-input);
  color: var(--ink-primary);
}
.sn-item.active {
  background: var(--surface-input);
  color: var(--ink-primary);
  font-weight: 600;
}
.sn-item-sub {
  color: var(--ink-secondary);
}
.sn-divider {
  height: 1px;
  background: var(--line-light);
  margin: 8px 6px;
}
