.video-container {
  width: 100%;
  max-width: 980px;
  margin: 25px auto 45px;
  padding: 0 16px;
  box-sizing: border-box;
}

.video-container h1 {
  text-align: center;
  color: #fff;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  margin: 25px auto 20px;
  text-shadow: 0 0 18px rgba(255,42,168,0.45);
}

.video-player,
.video-description,
.video-actions,
.video-favorite-block,
.video-taxonomy,
.video-views,
.video-back,
.video-comments,
.video-recommendations {
  width: 100%;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.video-player {
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.video-container video {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: #000;
  display: block;
  margin: 0 auto;
  object-fit: cover;
  max-height: none;
}

.video-player.playing {
  aspect-ratio: auto;
}

.video-player.playing video {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
}

.video-description {
  margin-top: 25px;
  padding: 22px 24px;
  color: #ddd;
  line-height: 1.7;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,42,168,0.18);
  border-radius: 14px;
}

.video-actions {
  margin-top: 20px;
  text-align: center;
}

.video-inline-form {
  display: inline;
}

.video-like-count {
  margin-top: 8px;
  color: #ccc;
  text-align: center;
}

.video-favorite-block {
  text-align: center;
  margin-top: 20px;
}

.video-taxonomy {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.video-taxonomy-label {
  color: #ff2aa8;
}

.video-taxonomy-link {
  background: #ff2aa8;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: .85rem;
  text-decoration: none;
}

.video-views {
  color: #ccc;
  font-size: 0.9rem;
  margin-top: 18px;
  text-align: center;
}

.video-back {
  margin-top: 25px;
  text-align: center;
}

.video-access-denied {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  text-align: center;
}

.video-access-box {
  border: 2px solid #ff2aa8;
  padding: 40px;
  border-radius: 12px;
  max-width: 520px;
  background: #111;
  color: #fff;
}

.video-access-title {
  color: #ff2aa8;
  font-size: 1.6rem;
  margin-bottom: 25px;
}

.video-access-text {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 25px;
}

.video-highlight {
  color: #ff2aa8;
}

.video-access-button {
  font-size: 1rem;
  padding: 10px 25px;
}

.video-comments {
  margin-top: 40px;
  margin-bottom: 20px;
}

.video-comments h2 {
  color: #ff2aa3;
  margin-bottom: 18px;
  text-align: center;
}

.comment-form textarea {
  width: 100%;
  min-height: 110px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,42,163,0.35);
  background: #1f1f1f;
  color: #fff;
  resize: vertical;
  box-sizing: border-box;
}

.comment-form button {
  display: block;
  margin: 14px auto 28px;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comment-item {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,42,163,0.18);
  border-radius: 14px;
  padding: 14px 16px;
}

.comment-item strong {
  display: block;
  color: #ff2aa3;
  margin-bottom: 6px;
}

.comment-item p {
  margin: 0 0 8px;
  color: #eee;
  line-height: 1.45;
  white-space: normal;
}

.comment-item small {
  color: #aaa;
  font-size: 12px;
}

.comment-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.comment-delete-form {
  margin: 0;
}

.comment-delete-btn {
  background: transparent;
  border: none;
  color: #ff5fae;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}

.comment-delete-btn:hover {
  text-decoration: underline;
}

.admin-reply {
  margin-top: 12px;
  padding: 12px 14px;
  border-left: 3px solid #ff2aa3;
  background: rgba(255,42,163,0.08);
  border-radius: 10px;
}

.admin-reply strong {
  color: #ff2aa3;
  margin-bottom: 4px;
}

.admin-reply p {
  margin: 4px 0 0;
  color: #fff;
}

.comment-disclaimer {
  font-size: 11px;
  color: #666;
  margin-top: 10px;
  line-height: 1.4;
  text-align: center;
}

.video-recommendations {
  margin-top: 35px;
  text-align: center;
}

.video-recommendations h2 {
  color: #ff2aa8;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.video-recommendations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.video-recommendation-card {
  background: #111;
  border: 1px solid rgba(255,42,168,0.5);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
}

.video-recommendation-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.video-recommendation-card span {
  display: block;
  padding: 10px;
  font-weight: bold;
}

@media (max-width: 700px) {
  .video-container {
    padding: 0 10px;
    margin-top: 12px;
  }

  .video-container h1 {
    font-size: 1.35rem;
  }

  .video-container video {
    max-height: 58vh;
    border-radius: 10px;
  }

  .video-description {
    padding: 16px;
    font-size: 0.95rem;
  }

  .video-comments {
    margin-top: 30px;
  }

  .comment-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}