/* ============================
   1) HORIZONTAL SCROLL TABS
============================ */
.tabs-wrapper {
  position: relative;
  overflow: hidden;
  margin: 30px -14px;
  background:fff;
}
.nav-tabs {
  font-size: 15px;
  display: flex;
  gap: 15px;
  justify-content: flex-start;
  margin: 0;
  padding: 10px 12px;
  font-family: sans-serif;
  border-top: 1px solid #d2d2d2;
  border-bottom: 1px solid #d2d2d2;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.nav-tabs::-webkit-scrollbar {
  display: none;
}
.tab-link {
  flex: 0 0 auto;
  text-decoration: none;
  color: #444;
  padding: 6px 18px;
  border-radius: 20px;
  background-color: #f0f0f0;
  transition: background-color .3s, color .3s;
  font-weight: 600;
  scroll-snap-align: start;
  white-space: nowrap;
}
.tab-link.active,
.tab-link:hover {
  background-color: #007bff;
  color: #fff;
}
.tab-link.active {
  font-weight: 700;
}
.tabs-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(to left, white 40%, transparent);
  z-index: 2;
}

/* ============================
   2) VIDEO SECTION
============================ */
.videos {
  padding:0;
  margin-top: 10px;
}
.videos h3 {
  margin-bottom: 12px;
  font-weight: 600;
}
.video-item {
  position: relative;
  margin-bottom: 22px;
}
.video-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  transition: transform 0.3s ease;
}
.video-item img:hover {
  transform: scale(1.02);
}
.video-item .timer {
  position: absolute;
  top: 6px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 3px;
}
.video-item .title {
  font-size: 16px;
  font-weight: 600;
  margin-top: 8px;
  color: #111;
  padding-left:10px;
}
.video-item .info {
  font-size: 13px;
  color: #666;
  padding-left:10px;
}
.shorts-row::-webkit-scrollbar,
.topics::-webkit-scrollbar {
  display: none;
}

/* ============================
   3) COMMENTS & REPLIES
============================ */
.comments-section {
  background: #f6f7fa;
  border-radius: 10px;
  padding: 14px;
  overflow: hidden;
  transition: all 0.4s ease;
  max-width: 520px;
  margin: 20px auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  cursor: pointer;
}
.comments-header {
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
}
.comment-box {
  font-size: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  opacity: 0;
  transform: translateY(10px);
  animation: slideIn 0.6s ease forwards;
  transition: all 0.3s ease;
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  margin-bottom: 18px;
}
.comment-box:hover {
  background: #fdfdfd;
}
@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#activeComment {
  border-radius: 10px;
  background: #fff !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  border: none !important;
  padding: 0 !important;
  margin-bottom: 14px;
}
#activeComment .comment-box {
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
  margin: 0 !important;
}
.user-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.comment-content {
  flex: 1;
}
.username {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.username .author-tag {
  background: #007bff;
  color: #fff;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 4px;
}
.comment-text {
  font-size: 14px;
  color: #222;
  padding-left: 8px;
}
.all-comments {
  display: none;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}
.comments-section.open .all-comments {
  display: flex;
}
.replies {
  display: flex;
  flex-direction: column;
  margin-left: 55px;
  margin-top: -10px;
  gap: 12px;
  position: relative;
  padding-bottom: 10px;
}
.replies::before {
  content: "";
  position: absolute;
  left: -32px;
  top: -22px;
  width: 30px;
  height: 45%;
  border-left: 3px solid #007bff;
  border-bottom: 3px solid #007bff;
  border-radius: 0 0 0 25px;
}
.replies .reply-box {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.replies .reply-box .user-img {
  width: 30px;
  height: 30px;
}
.replies .reply-box .comment-content {
  background: linear-gradient(180deg, #ffffff, #f3f3f3);
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.replies .reply-box .username {
  font-size: 12px;
  margin-bottom: 3px;
}
.replies .reply-box .comment-text {
  font-size: 12px;
  color: #444;
}
.comment-box.expanded {
  background: #fffefc;
  transform: scale(1.01);
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}
.reply-wrapper {
  width: 100%;
  display: block;
}

/* ============================
   4) CARD + HERO + SLIDER
============================ */
.card {
  width: 100%;
  height: auto;
  max-width: 750px;
  margin: 0 auto;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

/* HERO WRAP */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8.7;
  overflow: hidden;
}

/* HERO IMAGES (BASE) */
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* 🔥 SLIDER CORE */
  opacity: 0;
  transition: opacity .5s ease-in-out;
  z-index: 0;
}

/* ACTIVE SLIDE */
.hero img.active {
  opacity: 1;
  z-index: 1;
}

/* INFO SECTION */
.info-section {
  background: #f6f7fa;
  padding: 10px 15px 10px;
  border-radius: 0 0 10px 10px;
}

.top-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

h3 {
  font-size: 20px;
  font-weight: 700;
  color: #555;
  margin: 0;
}

p {
  font-size: 14px;
  color: #555;
  margin: 0;
}

/* SUBSCRIBE BUTTON */
.subscribe-btn {
  background: #000;
  color: #fff;
  border: none;
  padding: 10px 30px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s, transform 0.1s;
}

.subscribe-btn:hover {
  background: #222;
  transform: scale(1.03);
}

.subscribe-btn.subscribed {
  background: #555;
}

/* MOBILE */
@media (max-width: 600px) {
  h3 {
    font-size: 17px;
  }
  .subscribe-btn {
    padding: 9px 24px;
    font-size: 14px;
  }
}


/* ============================
   5) BANNER ANIMATION
============================ */
.banner-wrap {
  position: relative;
  width: 94%;
  height: 60vw;
  max-height: 430px;
  margin: 30px auto 0;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(40px);
  opacity: 0;
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.banner-wrap.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.5s ease-out, transform 2s ease-out;
}

.banner-img.fade-in {
  opacity: 1;
  transform: scale(1);
}

.banner-number {
  position: absolute;
  left: 20px;
  top: 20px;
  font-size: 20px;
  font-weight: 600;
  background: #f9f9f9;
  color: #555;
  padding: 6px 12px;
  border-radius: 8px;
  z-index: 2;
}

.banner-info {
  background: #f6f6fa;
  padding: 16px 24px;
  border-radius: 0 0 8px 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
  width: 94%;
  margin: 0 auto 40px;
}

.banner-info.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.banner-info p {
  color: #444;
  font-size: 15px;
  margin: 0;
  font-weight: 600;
}

/* ============================
   6) POLL CARD
============================ */
.poll-card {
  width: 95%;
  max-width: 500px;
  margin: 20px auto;
  padding: 15px;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 0 10px #0003;
  font-family: sans-serif;
}
.poll-title {
  text-align: center;
  font-size: 20px;
  margin-bottom: 15px;
}
.poll-wrap {
  display: flex;
  gap: 10px;
}
.poll-item {
  width: 50%;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: 0.25s;
}
.poll-item:hover {
  transform: scale(1.03);
}
.poll-item img {
  width: 100%;
  border-radius: 8px;
}
.select-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: #00c851;
  color: #fff;
  border-radius: 50%;
  font-size: 17px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0.5);
  transition: 0.3s;
}
.poll-item.selected .select-icon {
  opacity: 1;
  transform: scale(1);
}
.poll-bar {
  width: 100%;
  height: 8px;
  margin-top: 8px;
  background: #dcdcdc;
  border-radius: 10px;
  overflow: hidden;
}
.bar-fill {
  width: 0%;
  height: 100%;
  background: #2196f3;
  border-radius: 10px;
  transition: width 1s;
}
.winner-bar .bar-fill {
  background: #00c851;
}
.percent {
  margin-top: 6px;
  font-size: 14px;
  font-weight: bold;
  color: #666;
}
.winner-text {
  font-weight: bold;
  color: #00c851;
}
.poll-message {
  margin-top: 20px;
  text-align: center;
  font-size: 17px;
  font-weight: bold;
  color: #ff0066;
  display: none;
  opacity: 0;
  transform: translateY(30px);
  transition: 0.5s ease;
}
.poll-message.show {
  opacity: 1;
  transform: translateY(0);
}
.crown {
  font-size: 15px;
}