/* Shared container styles */
body:has(.feed-container),
html:has(.feed-container) {
  overflow: hidden;
  height: 100vh;
  background: transparent;
}

main:has(.feed-container) {
  overflow: hidden;
  height: 100vh;
  position: relative;
  background: transparent;
}

.feed-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: linear-gradient(135deg, rgba(0, 0, 20, 0.95) 0%, rgba(102, 34, 204, 0.85) 100%);
}

.feed-container::-webkit-scrollbar {
  display: none;
}

.video-slide {
  position: relative;
  width: 100%;
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  gap: 2rem;
  padding: 2rem;
}

.video-wrapper {
  position: relative;
  flex: 1;
  max-width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-wrapper video {
  width: 85%;
  height: 85%;
  max-width: 85%;
  max-height: 85%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 0;
  border: none;
}

.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video-play-overlay .play-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

@media (max-width: 767px) {
  .video-play-overlay .play-icon {
    width: 60px;
    height: 60px;
  }
}

.video-sidebar {
  position: relative;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

.video-info {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.video-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.video-description {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.video-overlay {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  border-radius: 0 0 12px 12px;
}

.video-overlay h3 {
  margin: 0;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: white;
}

.video-overlay p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.video-overlay .cta {
  display: inline-block;
  background: var(--cta);
  color: white;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  margin-top: 0.5rem;
}

.video-actions-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.video-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0.75rem;
  cursor: pointer;
  color: var(--text);
  transition: all 0.2s;
  font-size: 0.9rem;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.action-btn .icon {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn .icon-img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

.action-btn .count {
  font-size: 0.75rem;
  font-weight: 600;
}

.action-btn[data-liked="true"] {
  background: rgba(238, 66, 102, 0.2);
  border-color: var(--cta);
}

.action-btn[data-liked="true"] .icon {
  filter: grayscale(0);
}

/* Desktop action buttons - removed duplicate, handled in main desktop section */

.course-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.course-card-left {
  display: none;
}

.course-thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg);
}

.course-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--primary);
}

.course-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.course-info h4 {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
}

.course-description-text {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.course-price {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cta);
  margin: 0;
}

.add-to-cart-btn {
  background: var(--cta);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.6rem;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.add-to-cart-btn:hover {
  background: #d63a5a;
  transform: scale(1.02);
}

.comments-section {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  max-height: 400px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Desktop comments - positioned on the right */
@media (min-width: 768px) {
  .comments-section {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    max-height: 70vh;
    border-radius: 12px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
}

.comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comments-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.close-comments-btn {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.close-comments-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  transform: rotate(90deg);
}

.comments-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  min-height: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.comments-list::-webkit-scrollbar {
  display: none;
}

.comment-item {
  padding: 0.75rem;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: none;
}

.comment-item:hover {
  background: var(--bg);
  border-color: rgba(255, 255, 255, 0.05);
}

.comment-author {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.comment-content {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.comment-time {
  font-size: 0.7rem;
  color: var(--muted);
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.comment-input {
  width: 100%;
  padding: 0.625rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg);
  color: var(--text);
  font-size: 0.85rem;
  resize: vertical;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 34, 204, 0.1);
}

.comment-submit-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.625rem 1.25rem;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(102, 34, 204, 0.3);
}

.comment-submit-btn:hover {
  background: #5522aa;
  transform: none;
  box-shadow: 0 6px 16px rgba(102, 34, 204, 0.4);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 2px solid var(--accent);
  border-radius: 20px 20px 0 0;
  padding: 1.5rem;
  z-index: 1001 !important;
  transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 60vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  pointer-events: auto;
}

.mobile-menu.active {
  bottom: 56px !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 1001 !important;
  pointer-events: auto !important;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #1f1f3d;
}

.mobile-menu-header h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
}

.close-mobile-menu-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-description {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #1f1f3d;
}

.mobile-menu-description p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.mobile-menu-actions {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  justify-content: space-around;
}

.mobile-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: var(--bg);
  border: 1px solid #1f1f3d;
  border-radius: 12px;
  padding: 0.75rem;
  cursor: pointer;
  color: var(--text);
  transition: all 0.2s;
  flex: 1;
  min-width: 0;
}

.mobile-action-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: scale(1.02);
}

.mobile-action-btn .icon {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-action-btn .icon-img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

.mobile-action-btn .label {
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
}

.mobile-action-btn .count {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
}

.mobile-action-btn[data-liked="true"] {
  background: rgba(238, 66, 102, 0.1);
  border-color: var(--cta);
}

.mobile-action-btn[data-liked="true"] .icon {
  filter: grayscale(0);
}

.course-card-mobile {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #1f1f3d;
  background: var(--bg);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  gap: 1rem;
}

/* Mobile comments menu */
.mobile-comments-menu {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 2px solid var(--accent);
  border-radius: 20px 20px 0 0;
  padding: 1.5rem;
  z-index: 1002 !important;
  transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  pointer-events: auto;
}

.mobile-comments-menu.active {
  bottom: 56px !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 1002 !important;
  pointer-events: auto !important;
}

.mobile-comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #1f1f3d;
}

.mobile-comments-header h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
}

.close-mobile-comments-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-comments-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
  min-height: 200px;
}

.mobile-comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid #1f1f3d;
}

.mobile-comment-input {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #1f1f3d;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  resize: vertical;
  font-family: inherit;
}

.mobile-comment-submit-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-comment-submit-btn:hover {
  background: #5522aa;
}

/* Desktop */
@media (min-width: 768px) {
  .mobile-menu,
  .mobile-menu.active,
  .mobile-comments-menu,
  .mobile-comments-menu.active {
    display: none !important;
  }

  .video-slide {
    padding: 0 !important;
    padding-left: clamp(1rem, 2vw, 2rem) !important;
    padding-right: clamp(1rem, 2vw, 2rem) !important;
    padding-bottom: clamp(1rem, 2vw, 2rem) !important;
    gap: clamp(1rem, 2vw, 2rem);
    justify-content: flex-start !important;
    align-items: flex-start !important;
    max-width: 1800px;
    margin: 0 auto;
  }

  /* Course card on the left - beautiful card design */
  .course-card-left {
    display: flex;
    flex-direction: column;
    width: clamp(300px, 24vw, 380px);
    height: calc(100vh - 70px);
    padding: clamp(1.5rem, 2.5vw, 2.5rem);
    gap: 1.25rem;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 0;
    background: rgba(20, 20, 30, 0.7);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    transition: none;
  }

  .course-card-left:hover {
    transform: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  }

  .course-card-left::-webkit-scrollbar {
    display: none;
  }

  .course-no-course {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 0;
    min-height: 200px;
  }

  .course-no-course-icon {
    font-size: 3rem;
    opacity: 0.5;
  }

  .course-no-course-text {
    font-size: 0.95rem;
    color: var(--muted);
    text-align: center;
    margin: 0;
    line-height: 1.5;
  }

  .course-card-left .course-thumbnail {
    width: 100%;
    height: 200px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  }

  .course-card-left .course-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .course-card-left .course-info h4 {
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    font-weight: 600;
    margin: 0;
    color: var(--text);
    line-height: 1.4;
  }

  .course-card-left .course-description-text {
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    line-height: 1.6;
    margin: 0;
    color: var(--muted);
  }

  .course-card-left .course-price {
    font-size: clamp(1.5rem, 1.8vw, 1.75rem);
    font-weight: 700;
    margin: 0.5rem 0 0 0;
    color: var(--cta);
  }

  .course-card-left .add-to-cart-btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.5rem;
    border-radius: 10px;
    transition: all 0.2s ease;
  }

  .course-card-left .add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 66, 102, 0.4);
  }

  /* Video moved more to the left */
  .video-wrapper {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    height: calc(100vh - 70px);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    align-self: flex-start;
    margin: 0;
    padding: 0;
    margin-top: 0;
  }

  .video-wrapper video {
    width: auto;
    height: calc(100vh - 70px);
    max-width: clamp(320px, 35vw, 520px);
    max-height: calc(100vh - 70px);
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 0;
    border: none;
    margin: 0;
    padding: 0;
  }

  /* Sidebar on the right - beautiful card design */
  .video-sidebar {
    width: clamp(300px, 24vw, 380px);
    height: calc(100vh - 70px);
    padding: clamp(1.5rem, 2.5vw, 2.5rem);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 0;
    background: rgba(20, 20, 30, 0.7);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .video-sidebar::-webkit-scrollbar {
    display: none;
  }

  .video-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .video-title {
    font-size: clamp(1.25rem, 1.5vw, 1.5rem);
    font-weight: 600;
    margin: 0;
    color: var(--text);
    line-height: 1.3;
  }

  .video-description {
    font-size: clamp(0.9rem, 1vw, 1rem);
    margin: 0;
    line-height: 1.7;
    color: var(--muted);
  }

  .video-overlay {
    display: none !important;
  }

  /* Action buttons in sidebar - beautiful design */
  .video-sidebar .video-actions-container {
    position: relative;
    width: 100%;
    margin-top: 0.5rem;
  }

  .video-sidebar .video-actions {
    flex-direction: row;
    gap: 1.25rem;
    align-items: center;
    justify-content: flex-start;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .action-btn {
    background: transparent !important;
    border: none !important;
    padding: 0.75rem;
    gap: 0.5rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .action-btn:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    transform: translateY(-2px) scale(1.05);
  }

  .action-btn .icon {
    font-size: 2.25rem;
    transition: transform 0.2s ease;
  }

  .action-btn:hover .icon {
    transform: scale(1.1);
  }

  .action-btn .icon-img {
    width: 2.25rem;
    height: 2.25rem;
    transition: transform 0.2s ease;
  }

  .action-btn:hover .icon-img {
    transform: scale(1.1);
  }

  .action-btn .count {
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.25rem;
    color: var(--muted);
  }

  .action-btn[data-liked="true"] .icon-img {
    filter: drop-shadow(0 0 8px rgba(238, 66, 102, 0.6));
  }

  .action-btn[data-liked="true"] .count {
    color: var(--cta);
  }

  /* Hide old course card in sidebar on desktop */
  .video-sidebar .course-card:not(.course-card-left) {
    display: none;
  }

  /* Comments section - always visible, aligned with video-sidebar */
  .comments-section {
    position: relative !important;
    width: clamp(300px, 24vw, 380px) !important;
    height: calc(100vh - 70px) !important;
    max-height: none !important;
    border-radius: 0 !important;
    z-index: 1;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
    padding: clamp(1.5rem, 2.5vw, 2.5rem) !important;
    background: rgba(20, 20, 30, 0.7) !important;
    backdrop-filter: blur(10px);
    border: none;
    display: flex !important;
    flex-direction: column;
    gap: 1.5rem;
    align-self: flex-start;
    flex-shrink: 0;
    margin-top: 0 !important;
    /* Undo older desktop rules (top/transform) so it lines up with the sidebar */
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    transition: none;
  }

  .comments-section:hover {
    transform: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  }

  .comments-section::-webkit-scrollbar {
    display: none;
  }
}

/* Smaller laptop screens - additional scaling */
@media (min-width: 768px) and (max-width: 1280px) {
  .video-slide {
    padding: clamp(0.75rem, 1.5vw, 1.5rem);
    gap: clamp(0.75rem, 1.5vw, 1.5rem);
  }

  .course-card-left {
    width: clamp(260px, 22vw, 340px);
    height: calc(100vh - 70px);
    padding: clamp(1.25rem, 2vw, 2rem);
    margin-top: 0;
  }

  .video-sidebar {
    width: clamp(260px, 22vw, 340px);
    height: calc(100vh - 70px);
    padding: clamp(1.25rem, 2vw, 2rem);
    margin-top: 0;
  }

  .comments-section {
    width: clamp(260px, 22vw, 340px) !important;
    height: calc(100vh - 70px) !important;
    max-height: none !important;
    padding: clamp(1.25rem, 2vw, 2rem) !important;
    margin-top: 0 !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
  }

  .video-wrapper video {
    max-width: clamp(280px, 32vw, 450px);
  }
}

/* Mobile */
@media (max-width: 767px) {
  .feed-container {
    height: calc(100vh - 56px);
    background: #000000;
  }

  .video-slide {
    height: calc(100vh - 56px);
    flex-direction: column;
    padding: 0;
    gap: 0;
    justify-content: flex-start;
    align-items: center;
    background: #000000;
  }

  .video-wrapper {
    flex: 1;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    margin: 0;
  }

  .video-wrapper video {
    width: 100% !important;
    height: 95% !important;
    max-width: 100% !important;
    max-height: 95% !important;
    aspect-ratio: unset !important;
    object-fit: center;
  }

  .video-info {
    display: none !important;
  }

  .video-overlay {
    border-radius: 0;
    bottom: 0 !important;
    padding-bottom: calc(1rem + 56px) !important;
    z-index: 10;
    display: block !important;
  }

  .video-overlay .cta {
    display: block !important;
    text-align: center;
    width: 100%;
    max-width: 100%;
    margin-top: 0.75rem;
  }

  .video-sidebar {
    display: none;
  }

  .mobile-menu {
    display: flex !important;
  }

  .course-card-left {
    display: none !important;
  }

  .course-card {
    min-width: 200px;
    flex-shrink: 0;
  }

  .comments-section {
    position: fixed;
    bottom: 56px;
    left: 0;
    right: 0;
    max-height: 50vh;
    border-radius: 12px 12px 0 0;
    z-index: 100;
  }
}
