.svetivid-video-section,
.svetivid-video-section * {
  box-sizing: border-box;
}

.svetivid-video-section {
  margin: 0 0 40px;
}

.svetivid-video-section-title {
  margin: 0 0 18px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  text-transform: uppercase;
  color: #1a1a2e;
}

.ytp-wrapper {
  display: flex;
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 100, 180, 0.10);
  border: 2px solid #b8d9f5;
}

.ytp-main {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ytp-main iframe,
.ytp-main .ytp-main-iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: none;
}

.ytp-now-playing {
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid #e0eef8;
}

.ytp-now-playing .label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.ytp-current-title-el {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.4;
}

.ytp-now-playing .channel {
  font-size: 12px;
  color: #c8a800;
  font-weight: 600;
  margin-top: 3px;
}

.ytp-sidebar {
  width: 20%;
  min-width: 250px;
  flex-shrink: 0;
  overflow-y: auto;
  max-height: 42rem;
  background: #f7fbff;
  border-left: 1px solid #d0e8f8;
}

.ytp-sidebar-header {
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #005B94;
  border-bottom: 1px solid #cce0f5;
  position: sticky;
  top: 0;
  z-index: 2;
}

.ytp-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
  border-bottom: 1px solid #eaf3fb;
  transition: background 0.15s;
  outline: none;
}

.ytp-item:hover {
  background: #ddeeff;
}

.ytp-item:focus-visible {
  background: #ddeeff;
  box-shadow: inset 0 0 0 2px #41b3e4;
}

.ytp-item.active {
  background: #cce4fb;
  border-left: 3px solid #41B3E4;
}

.ytp-thumb {
  width: 80px;
  height: 3.75rem;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background: #000;
}

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

.ytp-thumb .play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.15s;
}

.ytp-item:hover .play-icon,
.ytp-item.active .play-icon {
  opacity: 1;
}

.ytp-thumb .play-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.ytp-item-info {
  flex: 1;
  min-width: 0;
}

.ytp-item-title {
  font-size: 11.5px;
  font-weight: 500;
  color: #1a1a2e;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ytp-item.active .ytp-item-title {
  color: #41b3e4;
  font-weight: 700;
}

.ytp-item-channel {
  font-size: 10px;
  color: #c8a800;
  font-weight: 600;
  margin-top: 3px;
}

.now-badge {
  display: inline-block;
  font-size: 9px;
  background: #41B3E4;
  color: #fff;
  border-radius: 3px;
  padding: 1px 5px;
  margin-top: 3px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ytp-sidebar::-webkit-scrollbar {
  width: 5px;
}

.ytp-sidebar::-webkit-scrollbar-track {
  background: #f0f8ff;
}

.ytp-sidebar::-webkit-scrollbar-thumb {
  background: #b0cce8;
  border-radius: 3px;
}

@media (max-width: 1024px) {
  .ytp-sidebar {
    width: 28%;
    min-width: 220px;
  }
}

@media (max-width: 600px) {
  .svetivid-video-section-title {
    font-size: 18px;
  }

  .ytp-wrapper {
    flex-direction: column;
  }

  .ytp-sidebar {
    width: 100%;
    min-width: 0;
    max-height: 280px;
    border-left: none;
    border-top: 1px solid #d0e8f8;
  }
}