/* ============================================================
   CLOUDPANG V3 homepage
   tight top spacing, hero visible immediately on mobile
   ============================================================ */

/* ===== HERO — clean magazine cover, tight spacing ===== */
.hero {
  background: var(--bg-canvas);
  padding: 24px 0 0;
  position: relative;
}

.hero-grid {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--gutter-desktop);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: stretch;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 0 16px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-meta .live-dot {
  width: 8px;
  height: 8px;
  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-meta .live-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-primary);
  font-weight: 500;
}

.hero-meta .live-label .th {
  font-family: var(--font-thai-body);
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: 0.02em;
  margin-left: 8px;
  font-weight: 400;
}

.hero-meta .timestamp {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-left: auto;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-headline em { font-style: italic; font-weight: 400; }

.hero-headline-th {
  font-family: var(--font-thai-display);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1.2;
  color: var(--text-secondary);
  margin-bottom: 28px;
  letter-spacing: 0;
}

.hero-deck {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 24px;
}

.hero-deck-th {
  font-family: var(--font-thai-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 32px;
}

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

.hero-byline strong {
  color: var(--text-primary);
  font-weight: 500;
}

.hero-byline .sep {
  width: 16px;
  height: 1px;
  background: var(--text-muted);
  display: inline-block;
}

.hero-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
}

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

.hero-corner {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--bg-obsidian);
  color: #FFFFFF;
  padding: 12px 18px;
  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-corner .th {
  font-family: var(--font-thai-body);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0.02em;
}

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

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  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(--text-muted);
  margin-right: 12px;
  font-size: 11px;
  letter-spacing: 0.06em;
}

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

/* ===== SECTION HEAD (shared) ===== */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
  gap: 24px;
}

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

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

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

.section-head .meta {
  font-size: 12px;
  color: var(--text-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(--text-muted);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

/* ===== TRIPTYCH (Living, Travel, Food) ===== */
.triptych-section {
  padding: 96px 0 56px;
}

.triptych-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

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

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

.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: 12px;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

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

.triptych-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 12px;
  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: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  line-height: 1.5;
}

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

/* ===== FEATURE STRIP ===== */
.feature-strip {
  padding: 56px 0;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--hairline);
}

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

.feature-row.flip { grid-template-columns: 1fr 1fr; }
.feature-row.flip .feature-image { order: 2; }
.feature-row.flip .feature-text { order: 1; padding-right: 40px; }

.feature-row:not(.flip) .feature-text { padding-left: 40px; }

.feature-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.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: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.feature-text .cat-label .th {
  font-family: var(--font-thai-body);
  font-size: 12px;
  color: var(--text-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(28px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

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

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

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

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

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

/* ===== ENTERTAINMENT BAND ===== */
.entertainment-band {
  background: var(--bg-obsidian);
  color: #FFFFFF;
  padding: 96px 0;
  margin: 96px 0;
  position: relative;
}

.entertainment-band::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-ent);
}

.entertainment-band .container { padding: 0 var(--gutter-desktop); }

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

.ent-band-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.ent-band-head h2 em {
  font-style: italic;
  color: var(--accent-ent);
}

.ent-band-head h2 .th {
  font-family: var(--font-thai-display);
  display: block;
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  margin-top: 6px;
  letter-spacing: 0;
}

.ent-band-head .label {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent-ent);
  text-transform: uppercase;
  font-weight: 500;
  text-align: right;
  flex-shrink: 0;
}

.ent-band-head .label .th {
  font-family: var(--font-thai-body);
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  text-transform: none;
  letter-spacing: 0.02em;
  margin-top: 4px;
}

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

.ent-card {
  text-decoration: none;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
}

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

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

.ent-card:hover .img-wrap img { transform: scale(1.04); }

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

.ent-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-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #FFFFFF;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.ent-card.feature h3 { font-size: 32px; line-height: 1.15; }

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

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

.ent-card.feature .tagline { font-size: 17px; color: rgba(255,255,255,0.75); }

/* ===== SCOREBOARD ===== */
.scoreboard-section {
  padding: 80px 0;
}

.scoreboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

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

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

.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: 16px;
  color: #FFFFFF;
  margin-bottom: 16px;
  line-height: 1.3;
}

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

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

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

/* ===== QUOTE STRIP ===== */
.quote-strip {
  padding: 96px 0;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: center;
}

.quote-image {
  aspect-ratio: 4/5;
  overflow: hidden;
}

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

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

.quote-text h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-style: italic;
}

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

.quote-text p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 28px;
  max-width: 540px;
}

.quote-text .author-line {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.quote-text .author-line strong {
  color: var(--text-primary);
  font-weight: 500;
}

.quote-text .read-more {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-primary);
  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(--text-secondary);
}

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

/* ===== TRENDING ROW ===== */
.trending-section {
  padding: 96px 0;
  background: var(--hover-mist);
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

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

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

.trending-item h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

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

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

/* ===== DUO SECTION ===== */
.duo-section {
  padding: 96px 0 56px;
}

.duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

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

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

.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: 14px;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

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

.duo-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 12px;
  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: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 6px;
}

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

/* ===== RESPONSIVE — TIGHTER MOBILE TOP SPACING ===== */
@media (max-width: 1100px) {
  .hero { padding: 16px 0 0; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 var(--gutter-tablet);
  }
  .hero-text { padding: 8px 0; }
  .ticker-label { margin-left: var(--gutter-tablet); }
  .triptych-grid { grid-template-columns: 1fr; gap: 48px; }
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .feature-row.flip .feature-image { order: 1; }
  .feature-row.flip .feature-text { order: 2; padding-right: 0; }
  .feature-row:not(.flip) .feature-text { padding-left: 0; }
  .ent-band-grid { grid-template-columns: 1fr; gap: 40px; }
  .scoreboard-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { grid-template-columns: 1fr; gap: 40px; }
  .trending-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .duo-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 700px) {
  /* Hero — image first on mobile, no top whitespace */
  .hero { padding: 8px 0 0; }
  .hero-grid {
    padding: 0 var(--gutter-mobile);
    gap: 20px;
  }
  /* Show image FIRST on mobile so it's visible immediately */
  .hero-text { order: 2; padding: 0; }
  .hero-image-wrap { order: 1; aspect-ratio: 4/3; }

  .hero-meta { margin-bottom: 18px; }
  .hero-meta .timestamp { display: none; }
  .hero-headline { font-size: 32px; margin-bottom: 12px; }
  .hero-headline-th { font-size: 18px; margin-bottom: 16px; }
  .hero-deck { font-size: 15px; margin-bottom: 12px; }
  .hero-deck-th { font-size: 13px; margin-bottom: 20px; }
  .hero-byline { padding-top: 16px; gap: 10px; font-size: 11px; }

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

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

  .triptych-section { padding: 56px 0 32px; }
  .feature-strip { padding: 32px 0; }
  .feature-row, .feature-row:first-child { padding: 40px 0; }
  .quote-strip { padding: 56px 0; }
  .duo-section { padding: 56px 0 32px; }
  .entertainment-band { padding: 56px 0; margin: 56px 0; }
  .scoreboard-section { padding: 56px 0; }
  .trending-section { padding: 56px 0; }

  .ent-band-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .ent-band-head h2 { font-size: 28px; }
  .ent-band-head h2 .th { font-size: 15px; }
  .ent-band-head .label { text-align: left; }
  .ent-card.feature h3 { font-size: 24px; }
  .ent-card.feature .tagline { font-size: 15px; }

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

  .quote-text .quote-mark { font-size: 64px; margin-bottom: 16px; }
  .quote-text h3 { font-size: 24px; }
  .quote-text .h3-th { font-size: 15px; }

  .trending-grid { grid-template-columns: 1fr; gap: 28px; }
  .trending-item .num { font-size: 48px; margin-bottom: 12px; }
  .trending-item h4 { font-size: 17px; }

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