.watch-wrap {
  padding: 12px;
}

.video-div {
  display: flex;
  flex-direction: column;
  gap: 12px;
    position: relative;
    top: 40px;
}

.video-wrapper {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  display: block;
}

.video-ui {
  opacity: 1;
  transition: opacity 0.25s ease;
}

.video-ui.hidden {
  opacity: 0;
  pointer-events: none;
}

.yt-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  pointer-events: none;
}

.yt-center .yt-round {
  pointer-events: auto;
  height: 72px;
  width: 72px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  display: grid;
  place-items: center;
}

.yt-center .yt-round i {
  font-size: 28px;
}

.yt-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.55));
}

.yt-time {
  color: #fff;
  font-variant-numeric: tabular-nums;
  min-width: 120px;
}

.yt-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.yt-act {
  height: 36px;
  min-width: 36px;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: grid;
  place-items: center;
  padding: 0 10px;
}

.yt-scrub {
  flex: 1;
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
}

.yt-track {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
}

.yt-buffered {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: rgba(255,255,255,0.45);
  border-radius: 999px;
  width: 0%;
}

.yt-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 999px;
  width: 0%;
  background: linear-gradient(90deg, #ff4d4d, #ff7a00);
}

.yt-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 14px;
  width: 14px;
  border-radius: 50%;
  background: #fff;
  left: 0%;
}

.yt-tooltip {
  position: absolute;
  bottom: 20px;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}

.yt-tooltip.show {
  opacity: 1;
}

.watch-title {
  margin: 4px 0 0 0;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
}

.watch-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wm-author {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.wm-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #222;
  flex: 0 0 auto;
}

.wm-texts {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.wm-name {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wm-sub {
  color: #bbb;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 18px;
  background: #222;
  color: #fff;
  border: 1px solid #333;
  cursor: pointer;
}

.pill i {
  font-size: 16px;
}

.pill.liked {
  color: #ff3860;
}

.pill.save-btn.saved {
  color: #ffd700;
  border-color: #ffd700;
}

.pill.save-btn.saved i {
  color: #ffd700;
}

.comments-section {
  margin-top: 8px;
  background: #303030;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 12px;
}

.comments-text {
  margin: 0 0 8px 0;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.comments-count {
  font-size: 14px;
  color: #acacac;
  margin-left: 8px;
    position: relative;
    bottom: 0.6px;
}

.comments-list {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.comment {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 8px 12px;
  align-items: start;
  background: #252525;
  border-radius: 10px;
  padding: 10px;
}

.avatar_2 {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #222;
  grid-row: 1 / span 2;
}

.comment-username-container {
  display: flex;
  align-items: center;
  gap: 6px;
}

.comment-channel {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.comment-galochka {
  color: #1ea1f1;
}

.data-text {
  color: #888;
  font-size: 12px;
}

.comment-body {
  grid-column: 2 / -1;
  color: #ddd;
  margin: 2px 0 0 0;
  white-space: pre-wrap;
}

.delete_button_2 {
  align-self: start;
  height: 32px;
  padding: 0 10px;
  background: #ff3030;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  width: 70px;
}

.comment-input {
  width: 80%;
  background: #292929;
  color: #fff;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 14px;
  outline: none;
  height: 40px;
  box-sizing: border-box;
}

.submit-btn {
  margin-top: 8px;
  height: 40px;
  padding: 0 14px;
  background: #292929;
  color: #fff;
  border: 1px solid #333;
  border-radius: 10px;
  cursor: pointer;
}

.share-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: rgba(17,17,17,0.95);
  color: #fff;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 12px;
  display: none;
  gap: 8px;
  align-items: center;
  z-index: 1001;
  backdrop-filter: blur(8px);
}

.share-panel.open {
  display: flex;
}

.share-panel input {
  flex: 1;
  min-width: 280px;
  background: #0e0e0e;
  border: 1px solid #333;
  color: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  outline: none;
}

.share-panel button {
  height: 36px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  border: 1px solid #333;
  background: #1a1a1a;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
}

.share-panel img {
  height: 18px;
  width: 18px;
  display: block;
}

.search-form {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  padding: 5px 10px;
  background: transparent;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  box-sizing: border-box;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 15px;
  font-size: 16px;
  background: transparent;
  color: #fff;
}

.search-input::placeholder {
  color: #fff;
}

.search-button {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  padding: 8px 15px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  height: 40px;
  width: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
}

.search-button i {
  font-size: 18px;
  color: #fff;
}

.wm-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wm-galochka {
    background-color: #00b8ff;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: white;
}

.comments-section {
  max-height: 330px;
  display: flex;
  flex-direction: column;
}

.comments-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.comment {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 8px 12px;
  align-items: start;
  background: #252525;
  border-radius: 10px;
  padding: 10px;
  box-sizing: border-box;
  overflow: hidden;
}

.comment {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 8px 12px;
  align-items: start;
  background: #252525;
  border-radius: 10px;
  padding: 10px;
  box-sizing: border-box;
  overflow: visible;
  word-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

.comment-body {
  grid-column: 2 / -1;
  color: #ddd;
  margin: 2px 0 0 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  word-break: break-word;
}