.content-slider-wrapper{
     padding: 60px 40px;
    font-family: 'Roboto', sans-serif;
    color: #1a1a1a;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}
.section.content-slider-container > .content-slider-wrapper{
    background-image: url(/icons/channel-guide-bg-image.jpg);
    background-color: #f5f5f5;
    background-repeat: no-repeat;
    background-size: 100%;
    width: 100%;
    padding: 0;
}
.content-slider-heading {
  text-align: center;
  margin-bottom: 40px;
}

/* Tabs Nav */
.content-slider-tab-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  padding-bottom: 10px;
}

.content-slider-tab-nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 30px;
}

.content-slider-tab-nav li {
  font-size: 14px;
  font-weight: 500;
  color: #828282;
  cursor: pointer;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
      letter-spacing: .7px;
      margin-bottom: 12px;
}

.content-slider-tab-nav li.active {
  color: #fff;
}

.content-slider-tab-nav li.active::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #f24b26;
}

.content-slider-channel-guide {
  cursor: pointer;
    gap: 8px;
    align-items: center;
    color: #f04c23;
    display: flex;
    font-size: 14px;
    font-style: normal;
    justify-content: center;
    letter-spacing: .05em;
    line-height: 40px;
    text-align: right;
    text-transform: uppercase;
}
.content-slider-channel-guide a {
  color: #f04c23;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.content-slider-channel-guide .icon-tv-orange {
  display: flex;
  color: #f04c23;
}

.content-slider-channel-guide-mobile {
  display: none;
}
/* Panel management */
.content-slider-panel {
  display: none;
}

.content-slider-panel.active {
  display: block;
}

.content-slider-synced-container {
  display: flex;
  gap: 20px;
  height: 500px;
  /* Fixed height for desktop to prevent infinite growth */
  align-items: stretch;
}

.content-slider-left {
  flex: 1;
  /* Larger preview */
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  min-width: 0;
  /* Critical for flex items with swiper */

}

.content-slider-right {
  flex: 1;
  /* Grid area */
  position: relative;
  overflow: hidden;
  min-width: 0;
}

/* Slide styles - Fix for infinite enlargement */
.preview-visual,
.card-visual {
  width: 100%;
  height: 100%;
}

.preview-visual img,
.card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensure images fill but don't stretch aspect ratio */
  display: block;
  border-radius: 5px;
  max-width: 100%;
  /* Safety against global width overrides */
}

.preview-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 1.5), transparent);
  display: flex;
  align-items: center;
  gap: 15px;
}

.preview-info .channel-logo img {
  width: 60px;
  height: auto;
}

.preview-info .title {
  color: #fff;
  font-size: 26px;
  font-weight: 400;
}

.preview-info .meta {
  font-size: 14px;
  color: #ffffff;
  border-left: 2px solid #ccc;
  padding-left: 10px;
  margin-left: 10px;
  display: inline-block;
}

/* Card styles */
.initializeGridRight .swiper-slide {
  position: relative;
  cursor: pointer;
  height: calc((100% - 14px) / 2) !important;
  /* For 2 rows grid */
  display: flex;
  flex-direction: column;
}

.initializeGridRight .swiper-slide::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 1.5), transparent);
  border-radius: 0 0 5px 5px;
  pointer-events: none;
  z-index: 1;
}

.card-info {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.card-info .channel-logo-small img {
  width: 40px;
}

.card-info .title {
  color: #fff;
  font-size: 26px;
  font-weight: 400;
}

.card-info .meta {
  font-size: 10px;
  color: #ffffff;
}

/* Overlay on Hover */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 5;
  border-radius: 6px;
  backdrop-filter: blur(5px);
  background: linear-gradient(158deg, rgba(255, 199, 0, .55), rgba(255, 0, 0, .55) 82.7%, rgba(255, 0, 138, .55));
  border-radius: 5px;
}

.initializeGridRight .swiper-slide:hover .card-overlay {
  opacity: 1;
}

.overlay-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  gap: 8px;
}
.overlay-btn span{
      letter-spacing: .55px;
      font-size: 11px;
      font-weight: 400;
      margin-top: 5px;
}
.overlay-btn span:first-child {
  background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    background-color: #fff;
    border: none;
    border-radius: 50%;
    color: #ff5a12;
    cursor: pointer;
    height: 40px;
    width: 40px;
}

.add-btn .icon-plus,
.preview-btn .icon-play {
  position: relative;
}

.add-btn .icon-plus::before {
  content: '';
  display: block;
  width: 28px;
  height: 28px;
  background: url('/icons/add-channel.svg') no-repeat center / contain;
}

.preview-btn .icon-play::before {
  content: '';
  display: block;
  width: 28px;
  height: 28px;
  background: url('/icons/play.svg') no-repeat center / contain;
}

/* Swiper custom scrollbar */
.grid-carousel-scrollbar {
  position: absolute;
  bottom: -30px !important;
  left: 50% !important;
  transform: translateX(-50%);
  width: 100px !important;
  height: 4px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 2px !important;
}

.grid-carousel-scrollbar .swiper-scrollbar-drag {
  background: #f24b26 !important;
}

/* Mobile Responsive */
@media (max-width: 648px) {
  .content-slider-wrapper {
    padding: 40px 15px;
  }

  .content-slider-heading h2 {
    font-size: 24px;
    padding: 0 50px;
  }

  .content-slider-left {
    display: none;
    /* Hide large preview on mobile */
  }

  .content-slider-right {
    width: 100% !important;
    height: auto;
    /* Reset grid height */
  }

  .initializeGridRight .swiper-wrapper {
    flex-wrap: nowrap;
    /* Disable grid wrap */
  }

  .initializeGridRight .swiper-slide {
    height: auto !important;
  }

  .content-slider-tab-nav ul {
    gap: 15px;
  }

  .content-slider-channel-guide {
    display: none;
  }

  .content-slider-channel-guide-mobile {
    display: flex;
    margin-top: 40px;
  }

  .content-slider-synced-container {
    height: 202px;
  }
  .section.content-slider-container > .content-slider-wrapper{
    background-size: cover;
  }
  .content-slider-tab-nav{
    justify-content: center;
            margin-bottom: 20px;
  }
}