.ytpa-widget {
  --ytpa-bg: #0f0f0f;
  --ytpa-surface: #181818;
  --ytpa-surface-2: #272727;
  --ytpa-text: #f1f1f1;
  --ytpa-muted: #aaa;
  --ytpa-border: rgba(255,255,255,0.08);
  display: grid;
  gap: 18px;
  align-items: start;
}

.ytpa-widget.ytpa-theme-light {
  --ytpa-bg: #ffffff;
  --ytpa-surface: #ffffff;
  --ytpa-surface-2: #f2f2f2;
  --ytpa-text: #0f0f0f;
  --ytpa-muted: #606060;
  --ytpa-border: rgba(0,0,0,0.08);
}

.ytpa-layout-side {
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
}

.ytpa-layout-stack {
  grid-template-columns: 1fr;
}

.ytpa-player-shell,
.ytpa-sidebar {
  background: var(--ytpa-bg);
  color: var(--ytpa-text);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--ytpa-border);
}

.ytpa-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.ytpa-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.ytpa-player-info {
  padding: 16px;
  background: var(--ytpa-bg);
  border-top: 1px solid var(--ytpa-border);
}

.ytpa-current-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  color: var(--ytpa-text);
}

.ytpa-player-actions {
  padding: 12px 16px;
  border-top: 1px solid var(--ytpa-border);
  background: var(--ytpa-surface);
}

.ytpa-open-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ytpa-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.ytpa-sidebar-head {
  padding: 16px 16px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0));
  border-bottom: 1px solid var(--ytpa-border);
}

.ytpa-title {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ytpa-text);
}

.ytpa-description {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ytpa-muted);
}

.ytpa-list {
  padding: 8px;
  display: grid;
  gap: 6px;
  overflow-y: auto;
  overflow-x: hidden;
}

.ytpa-item {
  display: grid;
  grid-template-columns: 22px 120px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  min-height: 86px;
  border: 0;
  background: transparent;
  color: var(--ytpa-text);
  text-align: left;
  cursor: pointer;
  border-radius: 12px;
}

.ytpa-item:hover,
.ytpa-item.is-active {
  background: var(--ytpa-surface-2);
}

.ytpa-item-index {
  font-size: 12px;
  color: var(--ytpa-muted);
  text-align: center;
}

.ytpa-thumb-wrap {
  position: relative;
  display: block;
  width: 120px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.ytpa-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ytpa-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ytpa-item-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ytpa-text);
}

.ytpa-item-channel {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  color: var(--ytpa-muted);
}

.ytpa-empty {
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff4e5;
  color: #7a4b00;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .ytpa-layout-side {
    grid-template-columns: 1fr;
  }
}
