/* ============================================================
   CLOUDPANG V4 homepage — black-dominant magazine
   sliding hero, tight spacing throughout
   ============================================================ */

main { background: var(--bg-obsidian); }

/* ===== HERO SLIDER — full-width, black background ===== */
.hero-slider {
  position: relative;
  background: var(--bg-obsidian);
  padding: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border-pearl);
}

.hero-track {
  position: relative;
  width: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.hero-slide-grid {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--gutter-desktop);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: center;
  min-height: 560px;
}

.hero-slide-text { padding: 32px 0; }

.hero-slide .eyebrow-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.hero-slide .eyebrow-row .live-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-slide .eyebrow-row .cat-th {
  font-family: var(--font-thai-body);
  font-size: 11px;
  color: var(--on-dark-muted);
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.hero-slide h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.hero-slide h1 em { font-style: italic; }

.hero-slide .h1-th {
  font-family: var(--font-thai-display);
  font-weight: 500;
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.2;
  color: var(--on-dark-secondary);
  margin-bottom: 24px;
}

.hero-slide .deck {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  color: var(--on-dark-secondary);
  margin-bottom: 12px;
  max-width: 480px;
}

.hero-slide .deck-th {
  font-family: var(--font-thai-body);
  font-size: 13px;
  line-height: 1.7;
  color: var(--on-dark-muted);
  max-width: 480px;
  margin-bottom: 28px;
}

.hero-slide .byline {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--on-dark-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-pearl);
  flex-wrap: wrap;
}

.hero-slide .byline strong {
  color: #FFFFFF;
  font-weight: 500;
}

.hero-slide .byline .sep {
  width: 14px;
  height: 1px;
  background: var(--border-pearl);
  display: inline-block;
}

.hero-slide-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  height: 100%;
  background: var(--bg-steel);
}

.hero-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide-image .corner-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--bg-obsidian);
  color: #FFFFFF;
  padding: 12px 16px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-right: 2px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.hero-slide-image .corner-tag .th {
  font-family: var(--font-thai-body);
  font-size: 10px;
  color: var(--on-dark-muted);
  text-transform: none;
  letter-spacing: 0.02em;
}

/* slider controls */
.slider-controls {
  position: absolute;
  bottom: 24px;
  right: var(--gutter-desktop);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
}

.slider-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.slider-dot {
  width: 24px;
  height: 2px;
  background: var(--border-pearl);
  cursor: pointer;
  transition: background 0.3s ease;
  border: none;
  padding: 0;
}

.slider-dot.active { background: var(--accent); width: 36px; }

.slider-arrows {
  display: flex;
  gap: 4px;
  margin-left: 16px;
}

.slider-arrow {
  width: 36px;
  height: 36px;
  background: var(--bg-steel);
  border: 1px solid var(--border-pearl);
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
}

.slider-arrow:hover { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }

/* ===== TICKER ===== */
.ticker {
  background: var(--bg-steel);
  color: #FFFFFF;
  padding: 12px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border-pearl);
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  animation: ticker-slide 60s linear infinite;
}

@keyframes ticker-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-label {
  background: var(--accent);
  color: #FFFFFF;
  padding: 4px 12px;
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 500;
  text-transform: uppercase;
  flex-shrink: 0;
  margin-left: var(--gutter-desktop);
}

.ticker-item { font-size: 13px; color: #FFFFFF; }

.ticker-item span {
  color: var(--on-dark-muted);
  margin-right: 10px;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.ticker-sep { color: var(--accent); font-size: 14px; }

/* ===== SECTION HEAD (dark) ===== */
.dark-section { padding: 56px 0 32px; background: var(--bg-obsidian); }
.dark-section + .dark-section { padding-top: 8px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-pearl);
  gap: 24px;
}

.section-head .lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.section-head .lead em { font-style: italic; color: var(--accent); }

.section-head .lead .th {
  font-family: var(--font-thai-display);
  display: block;
  font-size: 15px;
  color: var(--on-dark-secondary);
  font-weight: 500;
  margin-top: 4px;
  letter-spacing: 0;
}

.section-head .meta {
  font-size: 11px;
  color: var(--on-dark-secondary);
  letter-spacing: 0.06em;
  text-align: right;
  flex-shrink: 0;
}

.section-head .meta .th {
  font-family: var(--font-thai-body);
  display: block;
  font-size: 11px;
  color: var(--on-dark-muted);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

/* ===== TRIPTYCH (Living, Travel, Food) — dark ===== */
.triptych-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.triptych-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.triptych-card .img-wrap {
  aspect-ratio: 4/5;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--bg-steel);
}

.triptych-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.triptych-card:hover .img-wrap img { transform: scale(1.03); }

.triptych-card .cat-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.triptych-card .cat-label .th {
  font-family: var(--font-thai-body);
  font-size: 11px;
  color: var(--on-dark-muted);
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.triptych-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #FFFFFF;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.triptych-card:hover h3 { color: var(--accent); }

.triptych-card .tagline-en {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  color: var(--on-dark-secondary);
  margin-bottom: 4px;
  line-height: 1.5;
}

.triptych-card .tagline-th {
  font-family: var(--font-thai-body);
  font-size: 12px;
  color: var(--on-dark-muted);
  line-height: 1.5;
}

/* ===== FEATURE STRIP — dark ===== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--border-pearl);
}

.feature-row:first-child { border-top: 1px solid var(--border-pearl); }

.feature-row.flip .feature-image { order: 2; }
.feature-row.flip .feature-text { order: 1; }

.feature-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-steel);
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.feature-row:hover .feature-image img { transform: scale(1.02); }

.feature-text .cat-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.feature-text .cat-label .th {
  font-family: var(--font-thai-body);
  font-size: 11px;
  color: var(--on-dark-muted);
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.feature-text h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.feature-text h3 em { font-style: italic; }
.feature-text h3 a { color: inherit; transition: color 0.2s ease; text-decoration: none; }
.feature-text h3 a:hover { color: var(--accent); }

.feature-text .h3-th {
  font-family: var(--font-thai-display);
  font-size: 16px;
  color: var(--on-dark-secondary);
  margin-bottom: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.feature-text .deck {
  font-size: 14px;
  line-height: 1.65;
  color: var(--on-dark-secondary);
  margin-bottom: 16px;
  max-width: 480px;
}

.feature-text .meta {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--on-dark-secondary);
  display: flex;
  gap: 12px;
  align-items: center;
}

.feature-text .meta strong { color: #FFFFFF; font-weight: 500; }
.feature-text .meta .sep { width: 12px; height: 1px; background: var(--border-pearl); }

/* ===== ENTERTAINMENT BAND — accent zone with volt yellow stripe ===== */
.entertainment-band {
  background: var(--bg-obsidian);
  color: #FFFFFF;
  padding: 56px 0 32px;
  position: relative;
  border-top: 3px solid var(--accent-ent);
  border-bottom: 1px solid var(--border-pearl);
}

.entertainment-band[data-accent="volt"] .section-head .lead em { color: var(--accent-ent); }
.entertainment-band[data-accent="volt"] .triptych-card .cat-label { color: var(--accent-ent); }
.entertainment-band[data-accent="volt"] .triptych-card:hover h3 { color: var(--accent-ent); }
.entertainment-band[data-accent="volt"] .ent-feature-card .cat-label { color: var(--accent-ent); }
.entertainment-band[data-accent="volt"] .ent-feature-card:hover h3 { color: var(--accent-ent); }

.ent-band-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
}

.ent-feature-card,
.ent-band-grid .triptych-card {
  text-decoration: none;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
}

.ent-feature-card .img-wrap,
.ent-band-grid .triptych-card .img-wrap {
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--bg-steel);
  aspect-ratio: 16/10;
}

.ent-feature-card .img-wrap img,
.ent-band-grid .triptych-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.ent-feature-card:hover .img-wrap img,
.ent-band-grid .triptych-card:hover .img-wrap img { transform: scale(1.04); }

.ent-feature-card .cat-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ent);
  font-weight: 500;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.ent-feature-card .cat-label .th {
  font-family: var(--font-thai-body);
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.ent-feature-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #FFFFFF;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.ent-feature-card .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

/* ===== SCOREBOARD — dark cards on dark bg ===== */
.scoreboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.score-card {
  background: var(--bg-steel);
  color: #FFFFFF;
  border: 1px solid var(--border-pearl);
  padding: 18px;
  position: relative;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.score-card .meta {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--on-dark-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.score-card .meta .th {
  font-family: var(--font-thai-body);
  display: block;
  font-size: 10px;
  text-transform: none;
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.score-card .teams {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 14px;
  color: #FFFFFF;
  margin-bottom: 12px;
  line-height: 1.3;
}

.score-card .result {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1;
}

.score-card.live .result { color: var(--accent); }
.score-card.upcoming .result { color: var(--on-dark-muted); font-size: 22px; }

.score-card .result .status-tag {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: rgba(255, 45, 45, 0.12);
  padding: 3px 8px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ===== QUOTE STRIP — dark ===== */
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: center;
}

.quote-image {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-steel);
}

.quote-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-text .quote-mark {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 0.8;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 400;
  display: block;
}

.quote-text h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 14px;
  font-style: italic;
}

.quote-text .h3-th {
  font-family: var(--font-thai-display);
  font-size: 16px;
  color: var(--on-dark-secondary);
  margin-bottom: 18px;
  font-weight: 500;
  line-height: 1.5;
}

.quote-text p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--on-dark-secondary);
  margin-bottom: 20px;
  max-width: 540px;
}

.quote-text .author-line {
  font-size: 12px;
  color: var(--on-dark-muted);
  margin-bottom: 24px;
}

.quote-text .author-line strong {
  color: #FFFFFF;
  font-weight: 500;
}

.quote-text .read-more {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #FFFFFF;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  display: inline-block;
  font-weight: 500;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.quote-text .read-more .th {
  font-family: var(--font-thai-body);
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0.02em;
  margin-left: 8px;
  color: var(--on-dark-muted);
}

.quote-text .read-more:hover { color: var(--accent); }

/* ===== TRENDING ROW — dark ===== */
.trending-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trending-item {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.trending-item .num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: -0.04em;
}

.trending-item h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.3;
  color: #FFFFFF;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.trending-item:hover h4 { color: var(--accent); }

.trending-item .meta {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--on-dark-secondary);
  text-transform: uppercase;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-pearl);
}

/* ===== DUO ===== */
.duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.duo-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.duo-card .img-wrap {
  aspect-ratio: 16/10;
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--bg-steel);
}

.duo-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.duo-card:hover .img-wrap img { transform: scale(1.03); }

.duo-card .cat-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.duo-card .cat-label .th {
  font-family: var(--font-thai-body);
  font-size: 12px;
  color: var(--on-dark-muted);
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.duo-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #FFFFFF;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.duo-card:hover h3 { color: var(--accent); }

.duo-card .tagline-en {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--on-dark-secondary);
  line-height: 1.5;
  margin-bottom: 4px;
}

.duo-card .tagline-th {
  font-family: var(--font-thai-body);
  font-size: 12px;
  color: var(--on-dark-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .hero-slide-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 var(--gutter-tablet);
    min-height: auto;
  }
  .hero-slide-text { padding: 24px 0 16px; order: 2; }
  .hero-slide-image { order: 1; aspect-ratio: 16/10; }
  .ticker-label { margin-left: var(--gutter-tablet); }
  .triptych-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-row, .feature-row.flip {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 0;
  }
  .feature-row.flip .feature-image { order: 1; }
  .feature-row.flip .feature-text { order: 2; }
  .ent-band-grid { grid-template-columns: 1fr; gap: 28px; }
  .scoreboard-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { grid-template-columns: 1fr; gap: 28px; }
  .trending-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .duo-grid { grid-template-columns: 1fr; gap: 36px; }
  .slider-controls { right: var(--gutter-tablet); bottom: 16px; }
}

@media (max-width: 700px) {
  .hero-slide-grid { padding: 0 var(--gutter-mobile); gap: 12px; }
  .hero-slide-text { padding: 20px 0 12px; }
  .hero-slide-image { aspect-ratio: 4/3; }

  .hero-slide h1 { font-size: 30px; margin-bottom: 10px; }
  .hero-slide .h1-th { font-size: 16px; margin-bottom: 14px; }
  .hero-slide .deck { font-size: 14px; }
  .hero-slide .deck-th { font-size: 12px; margin-bottom: 18px; }
  .hero-slide .byline { padding-top: 14px; gap: 8px; font-size: 10px; }
  .hero-slide .eyebrow-row { margin-bottom: 16px; }

  .slider-controls { right: var(--gutter-mobile); bottom: 12px; }
  .slider-arrows { display: none; }

  .ticker-label { margin-left: var(--gutter-mobile); }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 24px;
    padding-bottom: 14px;
  }
  .section-head .lead { font-size: 22px; }
  .section-head .lead .th { font-size: 13px; }
  .section-head .meta { text-align: left; }

  .dark-section { padding: 40px 0 24px; }
  .feature-row, .feature-row:first-child { padding: 24px 0; }
  .entertainment-band { padding: 40px 0 24px; }

  .ent-feature-card h3 { font-size: 22px; }
  .ent-feature-card .tagline { font-size: 14px; }

  .scoreboard-grid { grid-template-columns: 1fr; gap: 12px; }

  .quote-text .quote-mark { font-size: 56px; }
  .quote-text h3 { font-size: 22px; }
  .quote-text .h3-th { font-size: 14px; }

  .trending-grid { grid-template-columns: 1fr; gap: 24px; }
  .trending-item .num { font-size: 44px; margin-bottom: 10px; }
  .trending-item h4 { font-size: 16px; }

  .duo-card h3 { font-size: 20px; }
}
