/**
 * Golcam Video Player Page
 * Modern, responsive design for video playback page
 * Last update: June 4, 2025
 */

:root {
  /* Color variables */
  --primary-color: #2c539e;
  --primary-dark: #10357d;
  --primary-light: #3d89db;
  --accent-color: #e53935;
  --text-color: #333333;
  --text-light: #666666;
  --bg-color: #f5f7fa;
  --card-bg: #ffffff;
  --border-color: #e1e8ed;
  
  /* Shadows */
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --btn-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  
  /* Transitions */
  --transition: all 0.3s ease;
  
  /* Border radius */
  --border-radius: 8px;
  --border-radius-sm: 4px;
}

/* Main container styles */
.gc-video-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 0;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Main content area - left side */
.gc-video-main-content {
  flex: 1;
  min-width: 0;
  width: calc(70% - 10px); /* Exact width calculation for desktop */
  max-width: calc(70% - 10px);
}

/* Sidebar - right side */
.gc-video-sidebar {
  width: 30%;
  min-width: 300px;
  flex-shrink: 0;
}

/* Video player container */
.gc-video-player-wrapper {
  position: relative;
  width: 100%;
  background-color: #000;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--card-shadow);
}

/* Video player responsive container */
.gc-video-player {
  position: relative;
  width: 100%;
  background-color: #000;
}

.gc-video-player video {
  width: 100%;
  display: block;
}

/* MediaElement player customizations */
.mejs__overlay-button {
  border: 0 !important;
}

.mejs__container {
  max-width: 100%;
}

/* Video info card */
.gc-video-info-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 20px;
  margin-bottom: 20px;
}

.gc-video-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 15px 0;
  color: var(--text-color);
  line-height: 1.3;
}

.gc-video-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 15px;
}

.gc-video-views {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
}

/* Video actions and likes */
.gc-video-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.gc-action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-light);
  background: none;
  border: none;
  padding: 6px 10px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
}

.gc-action-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.gc-action-btn i {
  font-size: 18px;
}

.gc-action-btn.liked {
  color: var(--primary-color);
}

.gc-action-btn.disliked {
  color: var(--accent-color);
}

/* Like progress bar */
.gc-likes-progress {
  height: 3px;
  background-color: #f2f2f2;
  border-radius: 3px;
  overflow: hidden;
  width: 100%;
  margin-top: 5px;
  position: relative;
}

.gc-likes-bar {
  height: 100%;
  background-color: var(--primary-light);
  border-radius: 3px;
  position: absolute;
  left: 0;
  top: 0;
}

.gc-dislikes-bar {
  height: 100%;
  background-color: var(--accent-color);
  border-radius: 3px;
  position: absolute;
  right: 0;
  top: 0;
}

/* User information section */
.gc-video-user-section {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.gc-user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.gc-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gc-user-info {
  flex-grow: 1;
  min-width: 0;
}

.gc-user-name {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 3px 0;
  color: var(--text-color);
  text-decoration: none;
}

.gc-user-date {
  font-size: 13px;
  color: var(--text-light);
}

.gc-user-buttons {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.gc-btn {
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.gc-btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.gc-btn-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: var(--btn-shadow);
}

.gc-btn-danger {
  background-color: var(--accent-color);
  color: white;
}

.gc-btn-danger:hover {
  background-color: #c62828;
  box-shadow: var(--btn-shadow);
}

/* Social sharing section */
.gc-social-share {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.gc-social-share h4 {
  margin: 0 0 15px 0;
  font-size: 16px;
  color: var(--text-color);
}

/* Custom sharing system */
.gc-social-share .has-shadow {
  box-shadow: none !important;
  padding: 0 !important;
}

/* Basic jsSocials overrides */
.gc-social-share .jssocials-shares {
  margin: 0.5em 0 !important;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.gc-social-share .jssocials-share {
  margin: 0.5em !important;
}

.gc-social-share .jssocials-share-link {
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  padding: 0;
  text-decoration: none;
  color: white;
  position: relative;
}

.gc-social-share .jssocials-share-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--btn-shadow);
  opacity: 1;
}

/* Custom icons using Font Awesome classes */
.gc-social-share .jssocials-share-facebook .jssocials-share-link {
  background-color: #3b5998;
}

.gc-social-share .jssocials-share-facebook .jssocials-share-link:before {
  font-family: "Font Awesome 5 Free";
  content: "\f39e";
  font-size: 20px;
}

.gc-social-share .jssocials-share-twitter .jssocials-share-link {
  background-color: #1da1f2;
}

.gc-social-share .jssocials-share-twitter .jssocials-share-link:before {
  font-family: "Font Awesome 5 Free";
  content: "\f099";
  font-size: 20px;
  font-weight: 900;
}

.gc-social-share .jssocials-share-whatsapp .jssocials-share-link {
  background-color: #25d366;
}

.gc-social-share .jssocials-share-whatsapp .jssocials-share-link:before {
  font-family: "Font Awesome 5 Free";
  content: "\f232";
  font-size: 20px;
  font-weight: 900;
}

.gc-social-share .jssocials-share-email .jssocials-share-link {
  background-color: #ea4335;
}

.gc-social-share .jssocials-share-email .jssocials-share-link:before {
  font-family: "Font Awesome 5 Free";
  content: "\f0e0";
  font-size: 18px;
  font-weight: 900;
}

.gc-social-share .jssocials-share-pinterest .jssocials-share-link {
  background-color: #bd081c;
}

.gc-social-share .jssocials-share-pinterest .jssocials-share-link:before {
  font-family: "Font Awesome 5 Free";
  content: "\f0d2";
  font-size: 18px;
  font-weight: 900;
}

/* Hide original jsSocials logo */
.gc-social-share .jssocials-share-logo {
  display: none;
}

/* Video description section */
.gc-video-description {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 20px;
  margin-bottom: 20px;
}

.gc-video-description h4 {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: var(--text-color);
}

.gc-description-text {
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.5;
  font-size: 14px;
}

.gc-video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.gc-video-tag {
  background-color: #f2f2f2;
  border-radius: 15px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
}

.gc-video-tag:hover {
  background-color: var(--primary-light);
  color: white;
}

/* Comments section */
.gc-comments-section {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 20px;
  margin-bottom: 20px;
}

.gc-comments-section h4 {
  margin: 0 0 15px 0;
  font-size: 16px;
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

/* Ensure compatibility with the existing comment system */
.gc-comments-content .comment-avatar img {
  border-radius: 50%;
  width: 50px;
  height: 50px;
  object-fit: cover;
}

.gc-comments-content .comment {
  display: flex;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.gc-comments-content .comment:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.gc-comments-content .comment-inner {
  flex: 1;
  padding-left: 15px;
}

.gc-comments-content .comment-author {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 5px;
}

.gc-comments-content .comment-text {
  color: var(--text-light);
  margin-bottom: 5px;
  line-height: 1.5;
}

.gc-comments-content .comment-meta {
  font-size: 12px;
  color: var(--text-light);
}

/* Enhanced comment form */
.gc-comments-form {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.gc-comments-form-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-color);
}

.gc-comments-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  resize: vertical;
  min-height: 100px;
  margin-bottom: 15px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.gc-comments-form textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(44, 83, 158, 0.2);
}

.gc-comments-form textarea::placeholder {
  color: #999;
}

.gc-comments-form textarea.not-logged {
  background-color: #f9f9f9;
  color: #888;
}

.gc-comments-form button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gc-comments-form button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.gc-comments-form button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.gc-comments-form button i {
  margin-right: 8px;
}

.gc-comments-login-message {
  display: flex;
  align-items: center;
  margin-top: 10px;
  background-color: #f9f9f9;
  padding: 10px 15px;
  border-radius: var(--border-radius-sm);
  font-size: 14px;
  color: var(--text-light);
}

.gc-comments-login-message i {
  margin-right: 10px;
  color: var(--primary-color);
}

.gc-comments-login-message a {
  color: var(--primary-color);
  font-weight: 600;
  margin-left: 5px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.gc-comments-login-message a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Related videos in sidebar */
.gc-related-videos {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 20px;
  margin-bottom: 20px;
  position: sticky;
  top: 80px; /* Stick below navbar */
}

.gc-related-videos h4 {
  margin: 0 0 20px 0;
  font-size: 18px;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-color);
  position: relative;
}

.gc-related-videos h4:before {
  content: '\f1c8'; /* Font Awesome play-circle icon */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 20px;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(44, 83, 158, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.gc-related-videos h4:hover:before {
  transform: scale(1.1);
  background: var(--primary-color);
  color: white;
}

/* === ITEM POST GRID REVISION === */
.item-post {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 420px;
  min-width: 260px;
  overflow: hidden;
  background: #fff;
  border-radius: 10px;
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

/* Add staggered animation delays for each item */
.item-post:nth-child(1) { animation-delay: 0.1s; }
.item-post:nth-child(2) { animation-delay: 0.2s; }
.item-post:nth-child(3) { animation-delay: 0.3s; }
.item-post:nth-child(4) { animation-delay: 0.4s; }
.item-post:nth-child(5) { animation-delay: 0.5s; }
.item-post:nth-child(n+6) { animation-delay: 0.6s; }

.item-post .title-wrapper {
  grid-row: 1;
  background: #6391c2;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  padding: 0px;
  height: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  justify-content: center;
}
span.seen-badge {
  display: block;
  position: absolute;
  margin-top: -14px;
  /* background: yellow; */
}
.item-post .media-row,
.item-post .meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  gap: 0;
}
.item-post .thumb-cell, .item-post .avatar-cell, .item-post .category-cell, .item-post .user-cell {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.item-post .thumb-cell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  min-height: 80px;
}
.item-post .thumb-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.item-post .avatar-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16/9;
  background: #e3eefa;
  position: relative;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
.item-post .user-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid #2c539e;
  object-fit: cover;
  background: #fff;
  display: block;
}
.item-post .category-cell {
  background: #586787;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 100%;
}
.item-post .user-cell {
  background: #c4d7ff;
  color: #2d323a;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 100%;
  padding: 4px;
}
.item-post .views-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: #22222291;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 4px;
  z-index: 2;
}
@media (max-width: 600px) {
  .item-post {
    max-width: 100%;
    min-width: 0;
    font-size: 15px;
  }
  .item-post .title-wrapper {
    font-size: 14px;
    padding: 5px !important;
    height: 27px;
  }
  .item-post .avatar-cell {
    aspect-ratio: 16/9;
  }
  .item-post .user-avatar {
    max-width: 64px;
    max-height:64px;
    width: 90%;
    height: 90%;
  }
  .item-post .meta-row {
    height: 28px;
  }
  .item-post .category-cell, .item-post .user-cell {
    font-size: 13px;
    padding: 0 6px;
  }
  .item-post .media-row,
  .item-post .meta-row {
    grid-template-columns: 1fr 1fr;
  }
}
/* === FINE ITEM POST GRID REVISION === */

/* Layout for related videos section */
.gc-related-videos .video-related ul {
  display: flex;
  flex-direction: column;
  gap: 35px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gc-related-videos .video-related li {
  margin: 0;
  padding: 0;
  border: none;
}

.gc-related-videos .video-related li a {
  display: block;
  text-decoration: none;
  width: 100%;
  height: 100%;
}

.item-post .item-link {
  display: flex;
  width: 100%;
  text-decoration: none;
}

/* Compatibility with existing related video system */
.gc-related-videos .video-related {
  margin-top: 0 !important;
}

.gc-related-videos .video-related ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gc-related-videos .video-related li {
    display: flex;
    transition: var(--transition);
}

.gc-related-videos .video-related li:hover {
  transform: translateY(-2px);
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.gc-related-videos .video-related li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.gc-related-videos .video-related li a {
  display: flex;
  width: 100%;
  text-decoration: none;
}

.gc-related-videos .thumb {
  flex-shrink: 0;
  margin-right: 10px;
  position: relative;
  width: 120px !important;
  height: 77px !important;
  overflow: hidden;
  border-radius: var(--border-radius-sm);
  width: 100% !important;
}

.gc-related-videos .thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  transition: transform 0.3s ease;
}

.gc-related-videos .video-related li:hover .thumb img {
  transform: scale(1.05);
}

.gc-related-videos .thumb .thumb-overlay {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 3px;
  font-weight: 500;
}

.gc-related-videos .info-block {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.gc-related-videos .title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 5px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.gc-related-videos .video-related li:hover .title {
  color: var(--primary-color);
}

.gc-related-videos .user {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  margin-bottom: 3px;
}

.gc-related-videos .user i {
  font-size: 14px;
  margin-right: 4px;
  opacity: 0.7;
}

.gc-related-videos .views {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  align-items: center;
}

.gc-related-videos .views i {
  font-size: 14px;
  margin-right: 4px;
  opacity: 0.7;
}

/* Support for ajax loading spinner */
.cp-spinner {
  margin: 30px auto;
  display: block;
  width: 40px;
  height: 40px;
  position: relative;
}

.cp-flip {
  transform-style: preserve-3d;
  perspective: 10em;
}

.cp-flip:before {
  width: 30px;
  height: 30px;
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  background-color: var(--primary-color);
  border-radius: 3px;
  animation: cp-flip-animate 1s ease-in-out infinite;
}

@keyframes cp-flip-animate {
  0% {
    transform: rotateY(0deg) rotateX(0deg);
  }
  50% {
    transform: rotateY(180deg) rotateX(0deg);
  }
  100% {
    transform: rotateY(180deg) rotateX(180deg);
  }
}

/* Fix for potential empty elements */
.related-with-list:empty,
.ajaxreqRelated:empty {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBmaWxsPSIjYjBiMGIwIiBkPSJNMTIsMkExMCwxMCAwIDAsMCAwLDEyQTEwLDEwIDAgMCwwIDEyLDIyQTEwLDEwIDAgMCwwIDIyLDEyQTEwLDEwIDAgMCwwIDEyLDJNMTIsNEE4LDggMCAwLDEgMjAsMTJBOCw4IDAgMCwxIDEyLDIwQTgsOCAwIDAsMSA0LDEyQTgsOCAwIDAsMSAxMiw0TTEyLDEwLjVBMS41LDEuNSAwIDAsMCAxMC41LDEyQTEuNSwxLjUgMCAwLDAgMTIsMTMuNUExLjUsMS41IDAgMCwwIDEzLjUsMTJBMS41LDEuNSAwIDAsMCAxMiwxMC41TTE3LDE2LjVDMTYuMTEsMTYgMTUuMjYsMTUuNSAxNCwxNS41QzEyLjUzLDE1LjUgMTEuMzUsMTYgMTAuNDEsMTYuNUM5LjUsMTcgOC41LDE3LjUgNywxNy41VjE5QzguNSwxOSA5LjY4LDE4LjUgMTAuNjUsMThDMTEuNTcsMTcuNSAxMi40MiwxNyAxNCwxN0MxNS41LDE3IDE2LjcsMTcuNSAxNy44LDE4VjE2LjVNNywxNS41QzguNSwxNS41IDkuNjYsMTUgMTAuNTgsMTQuNUMxMS41LDE0IDEyLjM5LDEzLjUgMTQsMTMuNUMxNS41LDEzLjUgMTYuNjEsMTQgMTcuNjksMTQuNUMxOC42MSwxNSAxOS41LDE1LjUgMjEsMTUuNVYxNEMxOS41LDE0IDE4LjQsMTMuNSAxNy40NiwxM0MxNi41LDEyLjUgMTUuNSwxMiAxNCwxMkMxMi41LDEyIDExLjMxLDEyLjUgMTAuNCwxM0M5LjUsMTMuNSA4LjY1LDE0IDcsMTRWMTUuNVoiIC8+PC9zdmc+');
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.5;
}

/* Loading animation for ajax related videos */
.ajaxreqRelated {
  min-height: 300px;
  position: relative;
  transition: opacity 0.3s ease;
}

.ajaxreqRelated:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 1;
}

/* Responsive adjustments */
@media (min-width: 993px) {
  /* Ensure two column layout on desktop */
  .gc-video-container {
    display: flex;
    flex-wrap: nowrap;
  }
  
  .gc-related-videos {
    top: 0px; /* Stick below navbar */
  }

  .gc-video-main-content {
    width: 70%;
    max-width: 70%;
    flex: 0 0 70%;
  }
  
  .gc-video-sidebar {
    width: 30%;
    flex: 0 0 30%;
  }
}

@media (max-width: 992px) {
  /* Adjust main layout */
  .gc-video-container {
    flex-direction: column;
    gap: 15px;
  }
  
  .gc-video-main-content, 
  .gc-video-sidebar {
    width: 100%;
    max-width: 100%;
  }
  
  /* Adjust user section */
  .gc-video-user-section {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .gc-user-buttons {
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
  }
  
  .gc-btn {
    flex: 1;
  }
  
  /* Related videos in sidebar become grid */
  .gc-related-videos .video-related li {
    display: inline-block;
    width: calc(50% - 10px);
    vertical-align: top;
    margin-right: 10px;
  }
  
  .gc-related-videos .video-related li a {
    display: block;
  }
  
  .gc-related-videos .thumb {
    width: 100% !important;
    height: 120px !important;
    margin-bottom: 8px;
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  /* Further adjustments for smaller screens */
  .gc-video-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .gc-video-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  /* Smaller related video items */
  .gc-related-videos .video-related li {
    width: 100%;
    margin-right: 0;
  }
  
  .gc-related-videos .thumb {
    width: 120px !important;
    height: 68px !important;
    margin-bottom: 0;
    margin-right: 10px;
    float: left;
  }
  
  .gc-related-videos .video-related li a {
    display: flex;
  }

  /* Mobile Video Player Styles */
  .gc-video-container {
    padding-top: calc(56.25vw + 60px) !important; /* Spazio per il player fixed + menu */
  }

  .gc-video-player-wrapper {
    position: fixed;
    top: 60px; /* Altezza del menù fixed */
    left: 0;
    width: 100%;
    z-index: 100;
    background: #000;
  }

  .gc-video-player {
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
  }

  .gc-video-player video {
    border-radius: 0 !important;
    width: 100% !important;
    height: auto !important;
    max-height: 56.25vw !important; /* Aspect ratio 16:9 */
  }

  /* Il contenuto principale scorre normalmente */
  .gc-video-main-content {
    margin-top: 0 !important;
  }
}

@media (max-width: 480px) {
  /* Mobile specific adjustments */
  .gc-video-title {
    font-size: 18px;
  }
  .gc-video-player-wrapper {
    border-radius: 0px;
  }
  .subscriber {
    font-size: 11px;
    border-radius: 17px;
  }

  .gc-video-container {
    padding: 10px;
    padding-top: calc(56.25vw) !important; /* Mantiene lo spazio per player + menu */
  }
  
  /* Rimuovo gli stili sticky non necessari */
  .gc-video-player-wrapper.sticky {
    position: fixed;
    top: 60px;
    left: 0;
    z-index: 100;
  }
  
  .gc-video-actions {
    justify-content: space-around;
  }
  
  .gc-action-btn span {
    display: none;
  }
  
  .gc-action-btn i {
    font-size: 20px;
  }

  .gc-related-videos h4 {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
  }
  
  .gc-related-videos h4:before {
    font-size: 18px;
    width: 32px;
    height: 32px;
  }
}

/* Utility classes */
.flex-grow {
  flex-grow: 1;
}

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

/* Fixes for mediaelement player */
.mejs__controls {
  z-index: 3 !important;
}

.mejs__overlay {
  z-index: 2 !important;
}