:root {
  --topbar-height: 60px;
  --bottombar-height: 60px;
  --usable-height: calc(100vh - var(--topbar-height) - var(--bottombar-height)); /* viewport minus top & bottom bars */
}

/* ============================
   ⬆️ SHARED LAYOUT FRAME
   ============================ */
#appContent {
  position: absolute;
  top: var(--topbar-height);
  bottom: var(--bottombar-height);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: 0;
}

.content-section h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  margin: 0 0 2px;
  flex-shrink: 0;
}

/* Fix margin above section titles */
#promoSection h2,
#clipSection h2 {
  margin-top: 0;
}

.content-section p {
  font-size: 1rem;
  color: #555;
  margin: 0 0 8px;
  flex-shrink: 0;
}

/* ============================
   📰 PROMO SECTION (NEWS)
   ============================ */
#promoSection {
  flex: none;
  height: calc(var(--usable-height) * 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 8px 10px 2px;
  box-sizing: border-box;
}

#newsSwiperWrapper {
  flex: 1;
  position: relative;
  width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
  overflow-x: hidden; /* prevent horizontal scroll */
}

.news-swiper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  text-decoration: none;
  color: inherit;
}

.news-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;       /* Fill container */
  margin: 0;         /* Reset margins */
  height: 80%;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s ease, opacity 0.3s ease;
  will-change: transform;
  z-index: 0;
  text-decoration: none; /* ✅ Remove underline */
  color: inherit;        /* ✅ Keep text color consistent */
}

.news-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-title {
  flex: none;
  height: 30%;
  padding: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #333;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Active, previous, next states */
.news-card.active {
  z-index: 10;
  transform: translate(0, 0) scale(1);
  opacity: 1;
}
.news-card.prev {
  z-index: 5;
  transform: translateY(15px) scale(0.95);
  opacity: 0.6;
}
.news-card.next {
  z-index: 1;
  transform: translateY(30px) scale(0.9);
  opacity: 0.3;
}

/* Dot indicator style (you’ll fill this later) */
.dot-indicator {
  position: absolute;
  bottom: 55px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 20;
}

.dot-indicator .dot {
  width: 8px;
  height: 8px;
  background-color: #bbb;
  border-radius: 50%;
  opacity: 0.5;
  transition: opacity 0.3s, transform 0.3s;
}

.dot-indicator .dot.active {
  background-color: #ffffff;
  opacity: 1;
  transform: scale(1.2);
}


/* ============================
   🎥 CLIP SECTION (VIDEOS)
   ============================ */
#clipSection {
  flex: none;
  height: calc(var(--usable-height) * 0.37);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 8px 10px 2px 10px;
  box-sizing: border-box;
}

.clip-slider {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 50vw;
  scroll-padding-right: 50vw;
  padding: 4px 0 0 0;
  margin: 0 10px;
}

.clip-container {
  display: flex;
  gap: 12px;
  padding-left: 10px;
  padding-right: 10px;
  height: 100%;
}

.clip-card {
  flex: 0 0 100%;
  height: 90%;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  position: relative;
  scroll-snap-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.clip-card iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.clip-card[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 0.7rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.clip-card[data-tooltip]:hover::after {
  opacity: 1;
}

/* ============================
   📊 MINI REPORT SECTION
   ============================ */
#miniReportSection {
  flex: none;
  height: calc(var(--usable-height) * 0.25);
  overflow-y: auto;
  padding: 12px 10px;
  box-sizing: border-box;
}

#miniReportSection::-webkit-scrollbar {
  width: 6px;
}

#miniReportSection::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}

#promoSection {
  background-color: #ffe4e1; /* Light pink */
}

#clipSection {
  background-color: #e0ffff; /* Light cyan */
}

#miniReportSection {
  background-color: #c6f7c6; /* Honeydew green */
}
