:root {
  color-scheme: dark;
  --bg: #0f1419;
  --surface: #16202a;
  --surface-2: #1d2a35;
  --border: #2f3b46;
  --text: #e7eef5;
  --muted: #8b98a5;
  --accent: #1d9bf0;
  --accent-hover: #1a8cd8;
  --success: #00ba7c;
  --error: #f4212e;
  --radius: 16px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(29, 155, 240, 0.12), transparent 32%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1100px, calc(100% - 24px));
  margin: 0 auto;
}

.site-header,
.site-footer {
  padding: 32px 0;
}

.site-footer {
  text-align: center;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.lead,
.section-intro,
.disclaimer {
  color: var(--muted);
}

.form-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
  list-style: disc;
  padding-left: 28px;
}

.form-note li + li {
  margin-top: 4px;
}

.site-footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.download-form {
  display: grid;
  gap: 12px;
}

.download-form label {
  font-weight: 600;
}

.download-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: var(--text);
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  background: var(--accent-hover);
}

.button-secondary {
  border-color: var(--border);
  background: var(--surface-2);
}

.button-block {
  width: 100%;
}

.button-sm {
  padding: 8px 14px;
  font-size: 0.9rem;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-collection-wrap {
  position: relative;
}

.header-collection {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}

.header-collection.is-active {
  color: var(--accent);
  border-color: rgba(29, 155, 240, 0.5);
}

.header-collection-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.bottom-nav-label {
  text-align: center;
  line-height: 1.2;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bottom-nav-svg {
  display: grid;
  place-items: center;
}

.bottom-nav-svg svg {
  width: 22px;
  height: 22px;
}

.site-logo {
  color: inherit;
  text-decoration: none;
}

.site-logo:hover {
  color: var(--accent);
}

.status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
}

.status[data-type='error'] {
  color: var(--error);
}

.status[data-type='success'] {
  color: var(--success);
}

.turnstile-widget {
  min-height: 0;
  overflow: hidden;
}

.result,
.section {
  margin-top: 24px;
}

.section-actions {
  text-align: center;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.action-buttons .button {
  flex: 1 1 160px;
  max-width: 220px;
}

#ad-home-below-buttons,
.ad-home {
  width: 300px;
  max-width: 100%;
  min-height: 250px;
  margin: 20px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.video-feed .ad-home {
  margin: 12px auto 16px;
}

.ad-banner {
  width: 300px;
  max-width: 100%;
  min-height: 50px;
  margin: 16px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.ad-frame {
  width: 300px;
  height: 50px;
  border: 0;
  overflow: hidden;
  background: transparent;
}

.ad-banner[hidden],
.list-block[hidden],
#list-empty[hidden] {
  display: none !important;
}

.list-page {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-page > .list-block {
  margin: 0;
}

.list-block:not([hidden]) {
  min-height: 1px;
}

.ad-slot-between,
.list-stack > .ad-row {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 50px;
  margin: 4px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.list-stack {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}

.list-stack:has(> .thumb-card) {
  display: block;
  column-count: 2;
  -webkit-column-count: 2;
  column-gap: 2px;
  -webkit-column-gap: 2px;
}

.list-stack:has(> .thumb-card) > .thumb-card {
  display: inline-block;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  width: 100%;
  margin: 0 0 2px;
}

.list-stack:has(> .masonry-col) {
  display: flex;
  align-items: flex-start;
  column-count: auto;
  -webkit-column-count: auto;
  gap: 2px;
}

.masonry-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.masonry-col > .thumb-card {
  display: block;
  width: 100%;
  margin: 0;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.pagination-label {
  min-width: 6em;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.pagination-label[hidden],
.pagination .button[hidden] {
  display: none;
}

.section h2 {
  margin: 0 0 8px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-header h2,
.section-header h3 {
  margin: 0;
}

.collection-list-header {
  margin-top: 20px;
}

.collection-list-header h3 {
  font-size: 1rem;
  font-weight: 700;
}

.section-more-link {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.section-more-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.feed-intro {
  text-align: center;
}

.feed-intro h2 {
  margin: 0;
}

.feed-intro .tabs {
  justify-content: center;
  margin: 12px 0 8px;
}

.tab {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
}

.tweet-card,
.media-card,
.list-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.tweet-card {
  padding: 20px;
}

.tweet-header {
  display: flex;
  gap: 12px;
  align-items: center;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-placeholder,
.media-placeholder {
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--muted);
}

.avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.author-name,
.list-item-title {
  margin: 0;
  font-weight: 700;
}

.author-handle,
.media-subtitle,
.list-item-text {
  margin: 0;
  color: var(--muted);
}

.tweet-text {
  margin: 16px 0;
  white-space: pre-wrap;
}

.tweet-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
}

.tweet-stats div {
  display: grid;
  gap: 2px;
}

.tweet-stats dt {
  color: var(--muted);
  font-size: 0.85rem;
}

.tweet-stats dd {
  margin: 0;
  font-weight: 700;
}

.media-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.media-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 16px;
}

.media-preview img,
.media-placeholder {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 12px;
}

.variant-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.variant-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.variant-meta {
  display: flex;
  gap: 12px;
  color: var(--muted);
}

.variant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.list-stack .empty-state {
  grid-column: 1 / -1;
}

.thumb-card {
  background: var(--surface);
  border: none;
  border-radius: 0;
  overflow: hidden;
}

.thumb-card-media {
  position: relative;
}

.thumb-card-media::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  pointer-events: none;
  z-index: 1;
}

.thumb-card-handle {
  position: absolute;
  left: 8px;
  right: 72px;
  bottom: 8px;
  z-index: 2;
  display: block;
  margin: 0;
  padding: 0;
  font-size: 0.75rem;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.thumb-card-handle:hover {
  color: #fff;
  text-decoration: underline;
}

.author-handle a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.author-handle a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.tweet-header .author-handle a {
  color: var(--accent);
}

.user-profile {
  margin-bottom: 20px;
}

.user-profile-banner {
  margin: -20px -20px 0;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  max-height: 140px;
}

.user-profile-banner img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.user-profile-body {
  padding-top: 16px;
}

.user-profile-description {
  margin: 12px 0 0;
  color: var(--text);
  line-height: 1.5;
  white-space: pre-wrap;
}

.user-profile-stats {
  margin-top: 12px;
}

.avatar-lg {
  width: 64px;
  height: 64px;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  vertical-align: middle;
}

.thumb-wrap {
  position: relative;
  width: 100%;
}

.thumb-link {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: inherit;
  font: inherit;
  color: inherit;
}

.list-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
  background: var(--surface-2);
}

.list-thumb-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.75rem;
  aspect-ratio: 16 / 9;
}

.report-button {
  margin-top: 12px;
}

.rank-badge-overlay {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.duration-badge {
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 6px;
  pointer-events: none;
}

.empty-state {
  color: var(--muted);
}

.author-rank-list {
  display: grid;
  gap: 10px;
}

.author-rank-card {
  display: grid;
  grid-template-columns: auto 48px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.author-rank-card:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}

.author-rank-badge {
  min-width: 2rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  text-align: center;
}

.author-rank-body {
  min-width: 0;
}

.author-rank-body .author-name,
.author-rank-body .author-handle {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.author-rank-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: rgba(22, 32, 42, 0.96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.bottom-nav-item {
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 8px 4px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
}

.bottom-nav-item.is-active {
  color: var(--accent);
  background: rgba(29, 155, 240, 0.12);
}

.bottom-nav-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.bottom-nav-center {
  margin-top: -10px;
}

.bottom-nav-center-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
}

.bottom-nav-center-icon svg {
  width: 20px;
  height: 20px;
}

.bottom-nav-center.is-active .bottom-nav-center-icon {
  background: var(--accent-hover);
}

body.has-bottom-nav {
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}

@media (max-width: 720px) {
  .bottom-nav {
    display: grid;
  }

  .site-footer {
    padding-bottom: 8px;
  }

  main.container {
    width: 100%;
  }

  main > .card:not(.video-feed) {
    margin-left: 12px;
    margin-right: 12px;
  }

  .video-feed {
    padding: 8px 0 16px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .video-feed > *:not([id$='-list']):not(.ad-home):not(.ad-banner) {
    margin-left: 12px;
    margin-right: 12px;
  }

  .video-feed .ad-home,
  .video-feed .ad-banner {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 721px) {
  body.has-bottom-nav {
    padding-bottom: 0;
  }
}

@media (min-width: 721px) {
  .list-stack {
    grid-template-columns: repeat(3, 1fr);
  }

  .list-stack:has(> .thumb-card) {
    column-count: 3;
    -webkit-column-count: 3;
    column-gap: 8px;
    -webkit-column-gap: 8px;
  }

  .list-stack:has(> .thumb-card) > .thumb-card {
    margin-bottom: 8px;
    border-radius: 10px;
  }

  .list-stack:has(> .masonry-col) {
    gap: 8px;
  }

  .masonry-col {
    gap: 8px;
  }

  .masonry-col > .thumb-card {
    border-radius: 10px;
  }
}

@media (min-width: 960px) {
  .list-stack {
    grid-template-columns: repeat(4, 1fr);
  }

  .list-stack:has(> .thumb-card) {
    column-count: 4;
    -webkit-column-count: 4;
  }
}

@media (max-width: 720px) {
  .media-card {
    grid-template-columns: 1fr;
  }
}

.thumb-badges {
  position: absolute;
  right: 8px;
  left: auto;
  bottom: 8px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: none;
}

.thumb-card-actions {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  padding: 0;
}

.thumb-action {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}

.thumb-action:hover {
  border-color: transparent;
  color: #fff;
  background: rgba(0, 0, 0, 0.78);
}

.thumb-card-actions .thumb-action {
  flex: none;
  width: 28px;
}

.thumb-action-add.is-active,
.thumb-action.is-copied {
  color: var(--accent);
  background: rgba(0, 0, 0, 0.72);
}


.icon-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}

.icon-button.is-active,
[data-player-collection].is-active {
  color: var(--accent);
  border-color: rgba(29, 155, 240, 0.5);
}

.add-video-card,
.bulk-add {
  margin-top: 24px;
}

.bulk-add summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.bulk-add summary::-webkit-details-marker {
  display: none;
}

.bulk-add[open] summary {
  margin-bottom: 16px;
}

.download-form textarea {
  width: 100%;
  min-height: 160px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}

.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.bulk-log {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
}

.bulk-log-ok {
  color: var(--success);
}

.bulk-log-error {
  color: var(--error);
}

.continue-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.continue-card img,
.continue-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  background: var(--surface-2);
}

.continue-thumb-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.continue-label,
.continue-handle,
.continue-time {
  margin: 0;
}

.continue-label {
  font-weight: 700;
}

.continue-handle,
.continue-time {
  color: var(--muted);
  font-size: 0.9rem;
}

body.has-player-overlay {
  overflow: hidden;
}

.player-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: #000;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.player-overlay[hidden] {
  display: none !important;
}

.player-sheet {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
}

.player-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
}

.player-poster[hidden] {
  display: none !important;
}

.player-poster,
.player-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  pointer-events: none;
  touch-action: none;
}

.player-poster {
  z-index: 0;
}

.player-video {
  z-index: 1;
  /* Keep frames painting under UI overlays on iOS Safari. */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.player-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), transparent 18%),
    linear-gradient(transparent 62%, rgba(0, 0, 0, 0.72));
}

.player-back,
.player-chrome-bottom {
  pointer-events: auto;
}

.player-back {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top));
  left: 10px;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  cursor: pointer;
}

.player-chrome-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  display: grid;
  gap: 10px;
  padding: 16px 14px calc(16px + env(safe-area-inset-bottom));
}

.player-chrome-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.player-handle {
  min-width: 0;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.player-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}

.player-actions .icon-button {
  width: 36px;
  height: 36px;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
}

.player-actions .icon-button.is-active {
  color: var(--accent);
}

.player-progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  color: #fff;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.player-seek {
  width: 100%;
  accent-color: #fff;
}

.player-skip-hint {
  position: absolute;
  top: 50%;
  z-index: 7;
  display: grid;
  place-items: center;
  min-width: 72px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  transform: translateY(-50%);
}

.player-skip-hint.is-back {
  left: 18%;
}

.player-skip-hint.is-forward {
  right: 18%;
}

.player-skip-hint[hidden] {
  display: none !important;
}

.player-play-toggle {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 7;
  width: 64px;
  height: 64px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.4rem;
  pointer-events: none;
}

.player-play-toggle[hidden] {
  display: none !important;
}

.player-fallback {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  text-align: center;
}

.player-fallback[hidden] {
  display: none !important;
}

.player-fallback p {
  margin: 0;
  font-size: 0.9rem;
}

.button-danger {
  border-color: var(--error);
  color: var(--error);
  background: transparent;
}

.playlist-publish {
  margin-top: 24px;
}

.playlist-publish-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.playlist-edit {
  margin-top: 24px;
}

.playlist-edit summary {
  cursor: pointer;
  font-weight: 700;
}

.playlist-edit .download-form {
  margin-top: 12px;
}

.list-stack > .playlist-card {
  grid-column: 1 / -1;
}

.playlist-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}

.playlist-card:hover {
  border-color: var(--accent);
}

.playlist-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
}

.playlist-thumbs-1 {
  grid-template-columns: 1fr;
}

.playlist-thumbs img,
.playlist-thumb-empty {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.playlist-thumb-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.75rem;
}

.playlist-card-title,
.playlist-card-meta {
  margin: 0;
}

.playlist-card-title {
  font-weight: 700;
}

.playlist-card-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .playlist-card {
    grid-template-columns: 96px 1fr;
  }
}
