/* PlayTube Canvas - Performance & UI Optimizations */

/* ============ LOGO COLOR PROTECTION ============ */
/* Prevent any CSS effects from altering logo colors */
.canvas-nav .top-nav .left .brand .navbar-logo,
.canvas-nav .top-nav .left .brand .navbar-logo:visited,
.canvas-nav .top-nav .left .brand .navbar-logo:hover,
.canvas-nav .top-nav .left .brand .navbar-logo:focus,
.canvas-nav .top-nav .left .brand .navbar-logo:active {
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  text-decoration: none !important;
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  -webkit-filter: none !important;
}

.canvas-nav .top-nav .left .brand .navbar-logo img {
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  -webkit-filter: none !important;
  image-rendering: auto;
}

/* ============ PERFORMANCE ============ */

/* GPU-accelerated animations */
.card, .video-card, .thumbnail-preview, .btn, .modal, 
.sidebar, .navbar-findcond, .dropdown-menu {
  will-change: auto;
}

/* Smooth transitions for interactive elements */
a, button, .btn, input, select, textarea,
.card, .video-card, .nav-link, .dropdown-item {
  transition: all 0.2s ease-out;
}

/* Lazy-loaded image placeholder */
img[loading="lazy"] {
  background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}

[data-theme="dark"] img[loading="lazy"] {
  background: linear-gradient(110deg, #2a2a2a 8%, #333 18%, #2a2a2a 33%);
  background-size: 200% 100%;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============ UI POLISH ============ */

/* Smoother scrolling */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Better focus styles for accessibility */
*:focus-visible {
  outline: 2px solid var(--primary-color, #1890ff);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Video card hover effect */
.video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .video-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

/* Smooth thumbnail hover zoom */
.video-card .card-img-top,
.thumbnail-preview img,
.vid-img img {
  transition: transform 0.3s ease;
}

.video-card:hover .card-img-top,
.thumbnail-preview:hover img,
.vid-img:hover img {
  transform: scale(1.03);
}

/* Improved button hover effects */
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Loading bar animation */
#bar_loading {
  background: linear-gradient(90deg, var(--primary-color, #1890ff), #36d1dc, var(--primary-color, #1890ff));
  background-size: 200% auto;
  animation: loading-gradient 1.5s ease infinite;
  height: 3px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
}

@keyframes loading-gradient {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* Sidebar smooth transitions */
.side_bar_container {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modal animations */
.modal {
  transition: opacity 0.3s ease;
}

.modal .modal-content {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: scale(0.95) translateY(10px);
}

.modal.is-active .modal-content {
  transform: scale(1) translateY(0);
}

/* Dropdown animations */
.dropdown-menu {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.dropdown-menu.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Tooltip animations */
[data-tooltip]::after {
  transition: opacity 0.15s ease, transform 0.15s ease;
  transform: translateY(4px);
  opacity: 0;
}

[data-tooltip]:hover::after {
  transform: translateY(0);
  opacity: 1;
}

/* ============ MOBILE OPTIMIZATION ============ */

@media (max-width: 768px) {
  /* Reduce animations on mobile for performance */
  .video-card:hover {
    transform: none;
    box-shadow: none;
  }
  
  .btn:hover {
    transform: none;
  }
  
  /* Larger touch targets */
  .btn, a.nav-link, .dropdown-item {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Elastic overscroll on mobile */
  body {
    overscroll-behavior-y: contain;
  }
  
  /* Smoother mobile sidebar */
  .sidenav-overlay {
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
  }
}

/* ============ SKELETON LOADING ============ */

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
  border-radius: 4px;
}

[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg, #2a2a2a 25%, #333 37%, #2a2a2a 63%);
  background-size: 400% 100%;
}

@keyframes skeleton-loading {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  border-radius: 4px;
}

.skeleton-title {
  height: 20px;
  width: 60%;
  margin-bottom: 12px;
  border-radius: 4px;
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.skeleton-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
}

/* ============ REDUCED MOTION ============ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* ============ AUTO-HIDE HEADER ============ */

header {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.header-hidden {
  transform: translateY(-100%);
}

/* ============ MOBILE BOTTOM NAVIGATION ============ */

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--card-bg, #fff);
  border-top: 1px solid var(--border-color, #e5e5e5);
  z-index: 999;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px;
  transition: transform 0.3s ease;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .mobile-bottom-nav {
  background: var(--card-bg, #1a1a1a);
  border-top-color: var(--border-color, #333);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 0;
  min-width: 48px;
  flex: 1;
  color: var(--text-secondary, #606060);
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item svg {
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease;
}

.mobile-nav-item.active {
  color: var(--primary-color, #1890ff);
}

.mobile-nav-item.active svg {
  transform: scale(1.1);
}

.mobile-nav-item:hover {
  color: var(--primary-color, #1890ff);
  text-decoration: none;
}

.mobile-nav-item span {
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 64px;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }
  
  /* Add padding at bottom so content isn't hidden behind bottom nav */
  body {
    padding-bottom: 60px;
  }
  
  /* Hide desktop sidebar on mobile */
  .sidenav-guide {
    z-index: 1000;
  }
}

/* ============ MOBILE CATEGORIES DRAWER ============ */

.mobile-categories-drawer {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 60vh;
  background: var(--card-bg, #fff);
  border-radius: 16px 16px 0 0;
  z-index: 1001;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

[data-theme="dark"] .mobile-categories-drawer {
  background: var(--card-bg, #1a1a1a);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.mobile-categories-drawer.open {
  transform: translateY(0);
}

.mobile-categories-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 1000;
  transition: background 0.3s ease;
  pointer-events: none;
}

.mobile-categories-overlay.open {
  background: rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

@media (max-width: 768px) {
  .mobile-categories-drawer,
  .mobile-categories-overlay {
    display: block;
  }
}

.mobile-categories-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 8px;
  position: sticky;
  top: 0;
  background: inherit;
  z-index: 1;
}

.mobile-categories-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.close-categories {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-secondary, #606060);
  padding: 8px;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-categories:hover {
  background: var(--hover-bg, #f0f0f0);
}

.mobile-categories-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 8px 12px 24px;
}

.mobile-category-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--text-primary, #0f0f0f);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease;
  background: var(--bg-secondary, #f2f2f2);
}

[data-theme="dark"] .mobile-category-item {
  background: var(--bg-secondary, #272727);
  color: var(--text-primary, #f1f1f1);
}

.mobile-category-item:hover {
  background: var(--hover-bg, #e5e5e5);
  text-decoration: none;
  color: var(--primary-color, #1890ff);
}

[data-theme="dark"] .mobile-category-item:hover {
  background: var(--hover-bg, #383838);
}

/* ============ DESCRIPTION MARKDOWN STYLES ============ */

.description-text a.desc-link {
  color: var(--primary-color, #1890ff);
  word-break: break-all;
}

.description-text a.desc-link:hover {
  text-decoration: underline;
}

.description-text a.desc-hashtag {
  color: var(--primary-color, #1890ff);
  font-weight: 500;
}

.description-text a.desc-hashtag:hover {
  text-decoration: underline;
}

.description-text a.desc-timestamp {
  color: var(--primary-color, #1890ff);
  font-weight: 600;
  cursor: pointer;
  background: rgba(24, 144, 255, 0.08);
  padding: 1px 4px;
  border-radius: 4px;
}

.description-text a.desc-timestamp:hover {
  background: rgba(24, 144, 255, 0.16);
  text-decoration: none;
}

.description-text strong {
  font-weight: 700;
}

.description-text em {
  font-style: italic;
}

/* ============ YOUTUBE-STYLE SHORTS ============ */

/* Expandable description wrapper */
.shorts-desc-wrap {
  position: relative;
  margin-top: 6px;
  cursor: pointer;
  max-width: calc(100% - 10px);
}

/* Collapsed state: 1 line max (YouTube-style) */
.shorts-desc-content.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Expanded state: slides up like YouTube */
.shorts-desc-content.expanded {
  display: block;
  overflow: visible;
  max-height: 50vh;
  overflow-y: auto;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  white-space: normal;
  animation: slideUpDesc 0.3s ease-out;
}

@keyframes slideUpDesc {
  from { max-height: 22px; opacity: 0.7; }
  to { max-height: 50vh; opacity: 1; }
}

.shorts-desc-content.expanded::-webkit-scrollbar {
  width: 3px;
}

.shorts-desc-content.expanded::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
}

/* Title text inside description */
.shorts-desc-title {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  display: block;
  margin-bottom: 2px;
}

/* Description text */
.shorts-desc-text {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  word-break: break-word;
}

.shorts-desc-text a {
  color: #afdcff;
  text-decoration: none;
}

.shorts-desc-text a:hover {
  text-decoration: underline;
}

/* "More/Less" toggle */
.shorts-desc-toggle {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  margin-top: 2px;
  padding: 2px 0;
  user-select: none;
  transition: color 0.2s;
}

.shorts-desc-toggle:hover {
  color: #fff;
}

/* Bottom-sheet comments modal (YouTube-style) */
#shorts_comments_modal {
  position: fixed !important;
  top: auto !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 65vh !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 16px 16px 0 0 !important;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  z-index: 9999 !important;
  background: var(--content-bg, #1a1a1a) !important;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.4) !important;
}

#shorts_comments_modal.is-active {
  transform: translateY(0) !important;
}

/* Handle bar at top of bottom sheet */
#shorts_comments_modal .modal-content {
  border-radius: 16px 16px 0 0 !important;
  max-height: 65vh;
  display: flex;
  flex-direction: column;
}

#shorts_comments_modal .modal-content::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 4px;
  margin: 10px auto 0;
}

#shorts_comments_modal .card {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#shorts_comments_modal .card-heading {
  padding: 10px 16px !important;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

#shorts_comments_modal .card-heading h3 {
  font-size: 16px;
  font-weight: 600;
}

#shorts_comments_modal .card-body {
  overflow-y: auto;
  max-height: calc(65vh - 80px);
  padding: 0 16px 16px !important;
  -webkit-overflow-scrolling: touch;
}

/* Comment box inside bottom sheet */
#shorts_comments_modal .comment-box {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

#shorts_comments_modal .comment-box textarea {
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 14px;
  min-height: 40px;
  resize: none;
}

/* Desktop: center the bottom sheet for desktop screens */
@media (min-width: 992px) {
  #shorts_comments_modal {
    left: 50% !important;
    right: auto !important;
    width: 420px !important;
    transform: translateX(-50%) translateY(100%);
    border-radius: 16px 16px 0 0 !important;
  }
  
  #shorts_comments_modal.is-active {
    transform: translateX(-50%) translateY(0) !important;
  }
}

/* Overlay behind bottom-sheet */
#shorts_comments_modal + .modal-background,
.shorts-modal-overlay {
  background: rgba(0,0,0,0.5) !important;
  backdrop-filter: blur(2px);
}

/* ============ SHORTS HEADER BLUR/FADE ============ */
/* Make header transparent + blurred on shorts page */
body.is-shorts-page .canvas-nav,
body.is-shorts-page .canvas-nav.navbar-fixed-top {
  background: rgba(0,0,0,0.25) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: none !important;
  box-shadow: none !important;
  transition: background 0.3s ease;
}

/* Also target dark mode */
[data-theme="dark"] body.is-shorts-page .canvas-nav,
body.is-shorts-page [data-theme="dark"] .canvas-nav {
  background: rgba(0,0,0,0.35) !important;
}

/* ============ SHORTS VIDEO FIT ============ */
/* Video fills full viewport - bottom nav overlays on top */
body.is-shorts-page .is-shorts-swipe {
  height: 100vh !important;
  height: 100dvh !important;
  width: 100vw !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 50 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: #000 !important;
}

/* Short container fills the swiper slide exactly */
body.is-shorts-page .short_container {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  top: 0 !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body.is-shorts-page .short_container .video-stand {
  height: 100% !important;
  width: 100% !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

body.is-shorts-page .short_container .video-stand video,
body.is-shorts-page .swiper-wrapper video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}

body.is-shorts-page .is-shorts-swipe .swiper-slide {
  height: 100% !important;
  width: 100% !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: #000 !important;
}

/* Mobile-specific tweaks */
@media (max-width: 991px) {
  body.is-shorts-page .is-shorts-swipe {
    height: 100vh !important;
    height: 100dvh !important;
  }

  body.is-shorts-page .short_container {
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    transform: none !important;
  }

  /* Bottom nav on top of video */
  body.is-shorts-page .mobile_footer_container,
  body.is-shorts-page .mobile_footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 60 !important;
    background: rgba(0,0,0,0.85) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }

  /* Action buttons above bottom nav */
  body.is-shorts-page .shorts_events {
    position: absolute !important;
    right: 8px !important;
    bottom: 80px !important;
    z-index: 10 !important;
    top: auto !important;
    transform: none !important;
  }

  /* Shorts panel (info) above bottom nav */
  body.is-shorts-page .shorts_panel {
    padding-bottom: 70px !important;
  }
}

/* ============ DESKTOP SHORTS (YouTube-style portrait) ============ */
@media (min-width: 992px) {
  /* Center the swiper and limit height */
  body.is-shorts-page .is-shorts-swipe {
    max-width: 400px !important;
    width: 400px !important;
    margin: 0 auto !important;
    height: calc(100vh - 100px) !important;
    max-height: 760px !important;
    position: relative !important;
    border-radius: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  /* Short container */
  body.is-shorts-page .short_container {
    width: 100% !important;
    height: 100% !important;
    max-width: 420px !important;
    margin: 0 auto !important;
    position: relative !important;
    top: 0 !important;
    transform: none !important;
  }

  body.is-shorts-page .short_container .video-stand {
    height: 100% !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #000 !important;
  }

  /* Video: contain instead of cover on desktop */
  body.is-shorts-page .short_container .video-stand video,
  body.is-shorts-page .swiper-wrapper video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #000 !important;
  }

  /* Swiper slide rounded on desktop */
  body.is-shorts-page .is-shorts-swipe .swiper-slide {
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #000 !important;
  }

  /* Shorts action buttons positioning */
  body.is-shorts-page .shorts_events {
    position: absolute !important;
    right: -65px !important;
    bottom: 100px !important;
  }

  /* Shorts panel (bottom overlay) stays within video */
  body.is-shorts-page .shorts_panel {
    max-width: 420px !important;
  }

  /* Navigation arrows */
  body.is-shorts-page .swiper-button-prev,
  body.is-shorts-page .swiper-button-next {
    color: #fff !important;
    background: rgba(255,255,255,0.1) !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    backdrop-filter: blur(8px) !important;
    transition: background 0.2s ease !important;
  }

  body.is-shorts-page .swiper-button-prev:hover,
  body.is-shorts-page .swiper-button-next:hover {
    background: rgba(255,255,255,0.2) !important;
  }

  body.is-shorts-page .swiper-button-prev::after,
  body.is-shorts-page .swiper-button-next::after {
    font-size: 18px !important;
  }

  /* Main container full width on shorts page */
  body.is-shorts-page #main-container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  /* Row container centered */
  body.is-shorts-page .is-short.row {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    margin: 0 auto !important;
  }

  /* Shorts logo/title stays centered */
  body.is-shorts-page .shorts-logo {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: 10px !important;
    z-index: 10 !important;
  }
}

/* ============ SMOOTH SWIPING (iOS + Android) ============ */
/* GPU acceleration for swiper slides */
.is-shorts-swipe .swiper-wrapper {
  will-change: transform;
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
  -webkit-overflow-scrolling: touch;
}

.is-shorts-swipe .swiper-slide {
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overflow: hidden;
}

/* Smooth video rendering */
.short_container .video-stand video {
  will-change: auto;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Prevent iOS rubber-banding on shorts page */
body.is-shorts-page {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}

body.is-shorts-page .main-container,
body.is-shorts-page .main_content {
  overflow: hidden !important;
  padding-bottom: 0 !important;
}