/* ============ Breaking news ticker ============ */
.ticker-wrap { position: relative; }
.ticker-track {
  animation: ticker 25s linear infinite;
}
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }
.ticker-track.ticker-paused { animation-play-state: paused; }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============ Line clamp ============ */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============ Card hover ============ */
.post-card img { transition: transform .4s ease; }
.post-card:hover img { transform: scale(1.06); }

/* ============ Review score badge ============ */
.score-badge {
  width: 46px; height: 46px; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px; color: #fff;
  background: conic-gradient(#22c55e var(--score, 80%), rgba(255,255,255,.15) 0);
  box-shadow: 0 0 0 3px #14171c;
}

/* ============ Full-bleed video background (เหมือน jarallax parallax video) ============ */
html, body { overflow-x: hidden; }
.full-bleed {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.video-bg-cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.video-bg-cover iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;      /* 16:9 */
  min-height: 100%;
  min-width: 177.78vh;  /* 16:9 กลับด้าน เพื่อให้ cover เสมอ */
  transform: translate(-50%, -50%);
}
/* ============ Rich content typography (dark theme) ============ */
.post-content { line-height: 1.85; }
.post-content p { margin-bottom: 1.1rem; }
.post-content h2, .post-content h3 { font-weight: 700; margin: 1.5rem 0 .75rem; color: #f3f4f6; }
.post-content img { border-radius: .5rem; margin: 1rem 0; }
.post-content a { color: #ff4438; text-decoration: underline; }
.post-content blockquote {
  border-left: 3px solid #e1251b;
  padding: .25rem 0 .25rem 1rem;
  color: #9ca3af;
  font-style: italic;
  margin: 1.25rem 0;
}
.post-content strong { color: #f3f4f6; }

/* ============ TL;DR summary box ============ */
.content-tldr,
.post-content .content-tldr {
  background: rgba(225,37,27,0.12);
  border-left: 4px solid #e1251b;
  padding: .9rem 1.1rem;
  border-radius: .375rem;
  margin: 1.25rem 0;
  color: #e5e7eb;
}
.content-tldr strong,
.post-content .content-tldr strong { color: #ff4438; }
.content-tldr ul { margin: 0; padding-left: 1.1rem; font-size: .9rem; line-height: 1.8; }
.content-tldr li { margin-bottom: .3rem; }

/* ============ Spec / comparison table ============ */
.post-content .content-spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: .9rem;
  overflow: hidden;
  border-radius: .5rem;
}
.post-content .content-spec-table th,
.post-content .content-spec-table td {
  border: 1px solid #1e2229;
  padding: .6rem .9rem;
  text-align: left;
  color: #d1d5db;
}
.post-content .content-spec-table th {
  background: #14171c;
  color: #f3f4f6;
  font-weight: 700;
}
.post-content .content-spec-table tr:nth-child(even) td {
  background: rgba(255,255,255,0.02);
}

/* ============ Pros & Cons box ============ */
.post-content .content-pros-cons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
@media (min-width: 640px) {
  .post-content .content-pros-cons { grid-template-columns: 1fr 1fr; }
}
.post-content .content-pros-cons .pros,
.post-content .content-pros-cons .cons {
  border-radius: .5rem;
  padding: 1rem 1.1rem;
  background: #14171c;
  border: 1px solid #1e2229;
}
.post-content .content-pros-cons .pros { border-left: 3px solid #22c55e; }
.post-content .content-pros-cons .cons { border-left: 3px solid #f59e0b; }
.post-content .content-pros-cons h4 {
  margin: 0 0 .5rem;
  font-size: .95rem;
  font-weight: 700;
}
.post-content .content-pros-cons .pros h4 { color: #4ade80; }
.post-content .content-pros-cons .cons h4 { color: #fbbf24; }
.post-content .content-pros-cons ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: .875rem;
  color: #d1d5db;
}
.post-content .content-pros-cons li { margin-bottom: .35rem; }

/* ============ Spec highlight grid (การ์ดสเปกเด่น) ============ */
.post-content .content-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  margin: 1.5rem 0;
}
@media (min-width: 640px) {
  .post-content .content-spec-grid { grid-template-columns: repeat(4, 1fr); }
}
.post-content .content-spec-grid .spec-card {
  background: #14171c;
  border: 1px solid #1e2229;
  border-radius: .5rem;
  padding: 1rem;
  transition: background .2s ease;
}
.post-content .content-spec-grid .spec-card:hover { background: #1e2229; }
.post-content .content-spec-grid .spec-icon { font-size: 1.5rem; line-height: 1; margin-bottom: .5rem; display: block; }
.post-content .content-spec-grid .spec-label {
  display: block;
  font-size: .7rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: .25rem;
}
.post-content .content-spec-grid .spec-value {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: #f3f4f6;
}

/* ============ Performance meters (แถบวัดสมรรถนะ) ============ */
.post-content .content-meters {
  background: #14171c;
  border: 1px solid #1e2229;
  border-radius: .75rem;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.post-content .content-meters .meter-title {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9ca3af;
  margin: 0 0 1rem;
  font-weight: 700;
}
.post-content .content-meter { margin-bottom: 1.1rem; }
.post-content .content-meter:last-child { margin-bottom: 0; }
.post-content .content-meter .meter-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: .4rem;
  font-size: .875rem;
}
.post-content .content-meter .meter-row .meter-name { color: #e5e7eb; }
.post-content .content-meter .meter-row .meter-pct { color: #ff4438; font-weight: 700; }
.post-content .content-meter .meter-track {
  height: 8px;
  background: #1e2229;
  border-radius: 999px;
  overflow: hidden;
}
.post-content .content-meter .meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #e1251b, #ff4438);
  border-radius: 999px;
}

/* ============ Photo gallery ============ */
.post-content .content-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  margin: 1.5rem 0;
}
@media (min-width: 640px) {
  .post-content .content-gallery { grid-template-columns: repeat(3, 1fr); }
}
.post-content .content-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: .5rem;
  border: 1px solid #1e2229;
  margin: 0;
}

/* ============ Final verdict box (พร้อม circular score gauge) ============ */
.post-content .content-verdict {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: #14171c;
  border: 1px solid #1e2229;
  border-radius: .75rem;
  padding: 1.5rem;
  margin: 2rem 0;
}
@media (min-width: 640px) {
  .post-content .content-verdict { flex-direction: row; align-items: center; }
}
.post-content .content-verdict .verdict-text { flex: 1; }
.post-content .content-verdict .verdict-text h3 {
  color: #f3f4f6;
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 .5rem;
}
.post-content .content-verdict .verdict-text p { color: #d1d5db; font-size: .9rem; margin: 0; }
.post-content .content-verdict .verdict-gauge {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  margin: 0 auto;
}
.post-content .content-verdict .verdict-gauge svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.post-content .content-verdict .verdict-gauge circle {
  fill: transparent;
  stroke-width: 10;
}
.post-content .content-verdict .verdict-gauge .track { stroke: #1e2229; }
.post-content .content-verdict .verdict-gauge .fill {
  stroke: #e1251b;
  stroke-linecap: round;
  stroke-dasharray: 377;
  /* stroke-dashoffset ตั้งค่าผ่าน inline style ต่อรายการ: 377 - (377 * คะแนน / 100) */
}
.post-content .content-verdict .verdict-gauge .gauge-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.post-content .content-verdict .verdict-gauge .gauge-num { font-size: 1.75rem; font-weight: 800; color: #fff; line-height: 1; }
.post-content .content-verdict .verdict-gauge .gauge-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: #ff4438; font-weight: 700; margin-top: .25rem; }

/* ============ Compare cards (การ์ดเลือกรถสำหรับเปรียบเทียบ) ============ */
.post-content .content-compare-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
@media (min-width: 640px) {
  .post-content .content-compare-cards { grid-template-columns: repeat(3, 1fr); }
}
.post-content .content-compare-cards .compare-card {
  position: relative;
  background: #14171c;
  border: 1px solid #1e2229;
  border-radius: .75rem;
  overflow: hidden;
  text-align: center;
}
.post-content .content-compare-cards .compare-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
  display: block;
}
.post-content .content-compare-cards .compare-card .compare-card-body { padding: .9rem; }
.post-content .content-compare-cards .compare-card h4 { color: #f3f4f6; font-weight: 800; font-size: .95rem; margin: 0; }
.post-content .content-compare-cards .compare-card .badge {
  position: absolute;
  top: .6rem;
  left: .6rem;
  background: #e1251b;
  color: #fff;
  font-size: .6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .3rem .55rem;
  border-radius: .25rem;
}

/* ============ Sectioned spec table (หัวข้อย่อยภายในตารางเดียว) ============ */
.post-content .content-spec-table .section-row th {
  background: #0b0d10;
  color: #ff4438;
  text-transform: uppercase;
  font-size: .7rem;
  letter-spacing: .06em;
  font-weight: 800;
  padding: .6rem .9rem;
}

/* ============ Score bars (แถบคะแนนเทียบหลายรุ่นในแท่งเดียว) ============ */
.post-content .content-score-bars {
  background: #14171c;
  border: 1px solid #1e2229;
  border-radius: .75rem;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.post-content .content-score-bars .score-bar-row { margin-bottom: 1.35rem; }
.post-content .content-score-bars .score-bar-row:last-child { margin-bottom: 0; }
.post-content .content-score-bars .score-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: .5rem;
  flex-wrap: wrap;
  gap: .25rem;
}
.post-content .content-score-bars .score-bar-label .name { color: #e5e7eb; font-weight: 700; font-size: .9rem; }
.post-content .content-score-bars .score-bar-label .legend { color: #6b7280; font-size: .7rem; font-family: 'Courier New', monospace; }
.post-content .content-score-bars .score-bar-track {
  display: flex;
  height: 1.75rem;
  border-radius: 999px;
  overflow: hidden;
  background: #1e2229;
}
.post-content .content-score-bars .score-bar-track .seg {
  height: 100%;
  border-right: 2px solid #14171c;
}
.post-content .content-score-bars .score-bar-track .seg:last-child { border-right: none; }

/* ============ Expert verdict quote box ============ */
.post-content .content-expert-verdict {
  background: #14171c;
  border: 1px solid #1e2229;
  border-radius: .75rem;
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 2rem 0;
}
.post-content .content-expert-verdict .icon { font-size: 2.25rem; line-height: 1; margin-bottom: .5rem; }
.post-content .content-expert-verdict h4 { color: #f3f4f6; font-weight: 800; font-size: 1.05rem; margin: .25rem 0 .75rem; }
.post-content .content-expert-verdict p { color: #9ca3af; font-style: italic; max-width: 34rem; margin: 0 auto; font-size: .9rem; line-height: 1.7; }

/* ============ Drop cap (ตัวอักษรแรกขนาดใหญ่) ============ */
.post-content .content-dropcap:first-letter {
  font-size: 3.5rem;
  font-weight: 800;
  color: #ff4438;
  float: left;
  line-height: .8;
  margin: .05em .15em 0 0;
}

/* ============ Pull quote (คำคมตัวใหญ่กลางบทความ) ============ */
.post-content .content-pullquote {
  position: relative;
  padding: 2rem 1.5rem;
  margin: 2rem 0;
  border-top: 1px solid #1e2229;
  border-bottom: 1px solid #1e2229;
  text-align: center;
}
.post-content .content-pullquote .quote-mark {
  position: absolute;
  top: -.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 5rem;
  color: rgba(225,37,27,0.25);
  font-family: Georgia, serif;
  line-height: 1;
  user-select: none;
}
.post-content .content-pullquote blockquote {
  font-size: 1.3rem;
  font-style: italic;
  color: #f3f4f6;
  font-weight: 700;
  margin: 1.5rem 0 0;
  line-height: 1.5;
}
.post-content .content-pullquote cite {
  display: block;
  margin-top: 1rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #ff4438;
  font-style: normal;
}

/* ============ Chart/data image พร้อมคำบรรยาย ============ */
.post-content .content-chart-image {
  margin: 1.5rem 0;
  border: 1px solid #1e2229;
  border-radius: .5rem;
  overflow: hidden;
}
.post-content .content-chart-image img { width: 100%; display: block; margin: 0; border-radius: 0; }
.post-content .content-chart-image .caption {
  background: #14171c;
  padding: .6rem 1rem;
  text-align: center;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #9ca3af;
}

/* ============ Key insights box (กล่องประเด็นสำคัญแบบเลขลำดับ) ============ */
.post-content .content-insights {
  background: #14171c;
  border: 1px solid #1e2229;
  border-radius: .75rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.post-content .content-insights .insights-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  color: #f3f4f6;
  padding-bottom: .75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #1e2229;
}
.post-content .content-insights .insight-item { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.post-content .content-insights .insight-item:last-child { margin-bottom: 0; }
.post-content .content-insights .insight-num { font-size: 1.5rem; font-weight: 800; color: rgba(225,37,27,0.45); flex-shrink: 0; line-height: 1; }
.post-content .content-insights .insight-body h5 { color: #f3f4f6; font-weight: 700; font-size: .9rem; margin: 0 0 .25rem; }
.post-content .content-insights .insight-body p { color: #9ca3af; font-size: .85rem; margin: 0; }

/* ============ Bento grid gallery (1 ภาพใหญ่ + 2 ภาพเล็ก) ============ */
.post-content .content-bento-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: .5rem;
  height: 320px;
  margin: 1.5rem 0;
}
@media (min-width: 640px) {
  .post-content .content-bento-gallery { grid-template-columns: repeat(3, 1fr); height: 420px; }
}
.post-content .content-bento-gallery .bento-main {
  grid-column: span 2 / span 2;
  grid-row: span 2 / span 2;
}
.post-content .content-bento-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: .5rem;
  margin: 0;
  border: 1px solid #1e2229;
}

/* ============ Editor's verdict box (บูลเลตแต้ม + คำคมปิดท้าย + ป้ายริบบิ้น) ============ */
.post-content .content-editor-verdict {
  position: relative;
  background: #14171c;
  border: 1px solid #1e2229;
  border-radius: .75rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
  overflow: hidden;
}
.post-content .content-editor-verdict .ribbon {
  position: absolute;
  top: 0;
  right: 0;
  background: #e1251b;
  color: #fff;
  font-size: .6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .35rem .8rem;
}
.post-content .content-editor-verdict h4 {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #f3f4f6;
  font-weight: 800;
  font-size: 1rem;
  margin: 0 0 1rem;
}
.post-content .content-editor-verdict ul { list-style: none; margin: 0; padding: 0; }
.post-content .content-editor-verdict li {
  display: flex;
  gap: .5rem;
  color: #d1d5db;
  font-size: .9rem;
  margin-bottom: .6rem;
  align-items: flex-start;
}
.post-content .content-editor-verdict li:last-child { margin-bottom: 0; }
.post-content .content-editor-verdict li .dot { color: #ff4438; flex-shrink: 0; }
.post-content .content-editor-verdict .quote {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #1e2229;
  font-style: italic;
  color: #9ca3af;
  font-size: .85rem;
}

/* ============ Numbered section header (01. หัวข้อ) ============ */
.post-content .content-section-num {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 2rem 0 1rem;
}
.post-content .content-section-num .num-line { width: 3rem; height: 2px; background: #e1251b; flex-shrink: 0; }
.post-content .content-section-num h2 { margin: 0; text-transform: uppercase; letter-spacing: .03em; font-size: 1.1rem; }

/* ============ Pro Tip callout ============ */
.post-content .content-pro-tip {
  background: #14171c;
  border: 1px solid #1e2229;
  border-radius: .75rem;
  padding: 2rem;
  text-align: center;
  margin: 1.5rem 0;
}
.post-content .content-pro-tip .tip-icon { font-size: 3rem; line-height: 1; margin-bottom: .5rem; display: block; }
.post-content .content-pro-tip .tip-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #ff4438; font-weight: 800; margin: 0 0 .25rem; }
.post-content .content-pro-tip .tip-value { font-size: 1.25rem; font-weight: 800; color: #f3f4f6; margin: 0; }

/* ============ Tip cards (การ์ด 3 คอลัมน์ ไอคอน+หัวข้อ+คำอธิบาย) ============ */
.post-content .content-tip-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
@media (min-width: 640px) {
  .post-content .content-tip-cards { grid-template-columns: repeat(3, 1fr); }
}
.post-content .content-tip-cards .tip-card {
  background: #14171c;
  border: 1px solid #1e2229;
  border-radius: .5rem;
  padding: 1.1rem;
  transition: border-color .2s ease;
}
.post-content .content-tip-cards .tip-card:hover { border-color: #e1251b; }
.post-content .content-tip-cards .tip-icon { font-size: 1.5rem; margin-bottom: .5rem; display: block; }
.post-content .content-tip-cards h4 { color: #f3f4f6; font-weight: 700; font-size: .85rem; text-transform: uppercase; margin: 0 0 .4rem; }
.post-content .content-tip-cards p { color: #9ca3af; font-size: .8rem; margin: 0; line-height: 1.6; }

/* ============ Highlight box (กล่องเน้นข้อดี/ประเด็นสำคัญ) ============ */
.post-content .content-highlight-box {
  background: #1e2229;
  border-right: 3px solid #e1251b;
  border-radius: .375rem;
  padding: .9rem 1.1rem;
  margin: 1.25rem 0;
  font-size: .9rem;
  color: #e5e7eb;
  font-weight: 500;
}

/* ============ Interactive checklist ============ */
.post-content .content-checklist {
  background: #0b0d10;
  border: 1px solid #1e2229;
  border-radius: .75rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.post-content .content-checklist .checklist-title { text-align: center; margin-bottom: 1.25rem; }
.post-content .content-checklist .checklist-title h4 { color: #f3f4f6; font-weight: 800; font-size: 1.1rem; margin: 0 0 .25rem; }
.post-content .content-checklist .checklist-title p { color: #6b7280; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; margin: 0; }
.post-content .content-checklist .checklist-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 640px) {
  .post-content .content-checklist .checklist-grid { grid-template-columns: 1fr 1fr; gap: 0 2rem; }
}
.post-content .content-checklist .checklist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .65rem 0;
  border-bottom: 1px solid #1e2229;
  font-size: .875rem;
  color: #e5e7eb;
}
.post-content .content-checklist .checklist-item label { display: flex; align-items: center; gap: .6rem; cursor: pointer; }
.post-content .content-checklist .checklist-item input[type=checkbox] { width: 1.1rem; height: 1.1rem; accent-color: #e1251b; cursor: pointer; }
.post-content .content-checklist .freq { font-size: .65rem; color: #6b7280; text-transform: uppercase; }

/* Scrollbar for admin tables on small screens */
.admin-scroll::-webkit-scrollbar { height: 8px; }
.admin-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
