/* style.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Prompt', sans-serif;
  color: #1A120B;
  line-height: 1.6;
  background: #F9F8F6;
}

a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}
a:hover {
  color: #E30613;
}

img {
  max-width: 100%;
  display: block;
  position: relative;
  overflow: hidden;
}


/* ===== Top Social Bar ===== */
.top-social-bar {
  background: #111;
  color: #ccc;
  font-size: 12px;
  border-bottom: 1px solid #222;
  padding: 3px 0;
}
.top-social {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 15px;
  max-width: 1200px;
  margin: auto;
}
.date-time { 
  font-size: 12px; 
  color: #aaa; 
}
#current-time {
  color: #E30613;   /* แดง */
  font-weight: bold;
  margin-left: 5px;
}
.top-social-icons { 
  display: flex; 
  gap: 8px; 
}
.top-social-icons a {
  display: inline-flex;       /* ทำให้เป็น flex */
  justify-content: center;    /* จัดไอคอนกลางวงกลม */
  align-items: center;
  width: 22px;                /* ขนาดวงกลมเล็ก */
  height: 22px;
  background: #222;           /* วงกลมสีเข้ม */
  border-radius: 50%;         /* ทำให้เป็นวงกลม */
  color: #fff;
  font-size: 12px;            /* ขนาดไอคอน */
  transition: 0.3s;
}

.top-social-icons a:hover {
  background: #E30613;        /* วงกลมแดงตอน hover */
  color: #fff;                /* ไอคอนขาว */
}

/* ===== Header ===== */
header {
  background: #000;
  border-bottom: 2px solid #222;
  position: sticky;
  top: 0;    
  z-index: 4000;
}

.top-bar {
  max-width: 1200px;
  margin: auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 30px;
  font-weight: 700;
  color: #E30613;
}
nav {
  display: flex;
  gap: 20px;
}
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* ===== Hero ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 10px;
}

.main-news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 15px;
}

.main-article {
  position: relative;
  overflow: hidden;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  display: none;
  text-align: center;
}

.slide img {
  width: 100%;
  height: 480px;
  border-radius: 8px;
}

.slide h1 {
  font-size: 1.4rem;
  margin-top: 10px;
  color: #fff;
}

.slide.active {
  display: block;
  animation: fade 0.8s ease-in-out;
}

@keyframes fade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* ปุ่มเลื่อน */
.controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.controls button {
  background: rgba(0,0,0,0.6);
  border: none;
  color: white;
  padding: 8px 12px;
  font-size: 30px;
  cursor: pointer;
  transition: background 0.3s;
}

.controls button:hover {
  background: rgba(0,0,0,0.9);
}

/* ข่าวข้าง */
.side-news {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-article {
  display: flex;
  gap: 10px;
  align-items: center;
}

.side-article img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 6px;
}

.side-article h2 {
  font-size: 1rem;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

/* ===== Layout ===== */
.container {
  max-width: 1200px;
  margin: 20px auto;
  display: flex;
  gap: 20px;
  padding: 0 10px;
}

.content { 
  flex: 3; 
  font-size: 1.1rem;
}

.content p { 
  margin-bottom: 15px;
}

.meta{
  font-size: 1rem;
}

.content h2{
  color: #E30613;
}

.headline{
  margin: 20px 0;
  font-size: 2.2rem;
  color: #E30613;
}

.share {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}

.share a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  transition: 0.3s;
}

/* Facebook */
.share .fb { background: #1877f2; }
.share .fb:hover { background: #0d5ac7; }

/* Twitter */
.share .tw { background: #1da1f2; }
.share .tw:hover { background: #0d8ddb; }

/* LINE */
.share .ln { background: #06c755; }
.share .ln:hover { background: #04a844; }


.pageview-counter {
  margin: 20px 0;
  padding: 10px 15px;
  background: #1a1a1a;
  color: #E30613;
  font-weight: bold;
  border-radius: 6px;
  display: inline-block;
  font-size: 16px;
}
.pageview-counter span {
  font-size: 20px;
  color: #fff;
  margin-left: 5px;
}

.ad-banner {
  background: #333;
  text-align: center;
  padding: 20px;
  margin: 20px 0;
  color: #aaa;
  border: 1px solid #fff;
}


.match-result {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-size: 22px;
  font-weight: bold;
  margin: 20px 0;
  color: #fff;
}

.team {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-logo {
  width: 50px;
  height: 50px;
  padding: 2px;
  background: #fff;
  border-radius: 10%;   /* ทำให้เป็นวงกลม */
  object-fit: cover;    /* ครอบภาพให้พอดี */
  border: 2px solid #e5e7eb; /* เสริมความสวยงาม */
}


.match-result {
  background: #1a1a1a;
  padding: 15px;
  text-align: center;
  border-radius: 6px;
}

.score { font-size: 18px; font-weight: bold; color: #E30613; }

.video-wrapper {
  width: 100%;      /* กว้างเต็มพื้นที่ */
  max-width: 800px; /* จำกัดความกว้างสูงสุด */
  margin: auto;     /* จัดให้อยู่ตรงกลาง */
}

.video-wrapper iframe {
  width: 100%;     /* กว้างเต็ม wrapper */
  height: 450px;   /* กำหนดสูงเอง */
  border: none;
}

.youtube-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  margin: 20px 0;
  overflow: hidden;
  border-radius: 12px; /* ถ้าอยากให้มุมโค้ง */
}

.youtube-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.youtube {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 24px 0;
}

.youtube iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== Sidebar ===== */
.sidebar { 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
  gap: 20px; 
}
.analysis-box, .promo-box { 
  padding: 20px; 
  border-radius: 6px; 
}
.analysis-box { 
  background: #E30613; 
  color: #fff; 
}
.promo-box { 
  background: #E30613; 
  border: 2px solid #222; 
}

/* ความพร้อม */
.readiness {
  margin: 2rem 0;
}

.readiness h3 {
  color: #e10600;
  margin-bottom: 1rem;
}

.team-readiness {
  display: column;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.liverpool {
  color: #e10600;
}

.chelsea {
  color: #1a73e8;
}

/* คาดการณ์ */
.prediction {
  margin: 2rem 0;
  text-align: center;
  margin-left: 10px;
}

.match-pred {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.match-pred img {
  width: 80px;
  height: 39px;
  margin: 0 10px;
}

.vs {
  font-size: 2rem;
  font-weight: bold;
}

.match-time {
  color: #ffcc00;
}

/* รายชื่อ */
.players h3,
.stats h3 {
  color: #e10600;
  margin-bottom: 1rem;
}

.players ul,
.stats ul {
  list-style: none;
}

.players li,
.stats li {
  margin-bottom: 0.5rem;
}

ul .bullet{
  list-style: disc;       /* bullet แบบวงกลม */
  list-style-position: inside; /* bullet อยู่ข้างในข้อความ */
  font-size: 1.2rem;     /* ขนาดตัวอักษรของ li */
  margin-bottom: 0.5rem; /* เว้นระยะบรรทัด */
  line-height: 1.5rem;
}

ul.bullet {
  list-style: disc;
  padding-left: 20px;
  margin: 10px 0;
}

ul.bullet li {
  margin-bottom: 6px;
  line-height: 1.6;
}



.article-image {
  margin: 16px 0;
}

.article-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.article-image figcaption {
  font-size: 14px;
  color: #666;
  margin-top: 6px;
  text-align: center;
}

.pl-poster {
  max-width: 1000px;
  margin: 30px auto;
  overflow: hidden;
}

/* รูป */
.pl-poster img {
  width: 100%;
  height: auto;
  display: block;
}

.pl-poster figcaption{
  font-size: 14px;
  color: #666;
  margin-top: 6px;
  text-align: center;
}


/* แท็กท้ายบทความ */
.post-tags {
  margin: 30px 0;
  padding-top: 15px;
  border-top: 2px solid #eee;
  font-family: 'Prompt', sans-serif;
}

.post-tags .tag-title {
  display: block;
  font-weight: 600;
  color: #222;
  margin-bottom: 12px;
  font-size: 16px;
}

.post-tags a {
  display: inline-block;
  background: #e63946;
  color: #fff;
  padding: 8px 16px;
  border-radius: 25px;
  margin: 5px 8px 5px 0;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.post-tags a:hover {
  background: #b91c1c;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* ===== Quote Title ===== */
.quote-title {
  font-size: 1.55rem;
  font-weight: 600;
  margin: 24px 0 10px;
  color: #111;
}

/* ===== Base Quote Style ===== */
article.content section.players .quote {
  font-size: 1.15rem;
  line-height: 1.75;
}

article.content section.players .quote-title {
  font-size: 1.3rem;
}

article .readiness .quote-title {
  font-size: 1.3rem;
}

.quote {
  position: relative;
  padding: 14px 18px;
  margin: 14px 0;
  border-left: 5px solid #ccc;
  background: #fafafa;
  font-size: 1.55rem;
  line-height: 1.75;
  color: #222;
  border-radius: 6px;
}

.quote a{
  color: #e63946;
  font-size: 1.2rem;
  font-weight: 600;
}

.quote a:hover{
  text-decoration: underline;
  color: #333;
}

/* Quote Icon */
.quote::before {
  content: "“";
  position: absolute;
  left: 10px;
  top: -8px;
  font-size: 3rem;
  color: rgba(0,0,0,0.08);
}

/* ===== Liverpool Quote (Red Theme) ===== */
.quote.liverpool {
  border-left-color: #c8102e; /* Liverpool Red */
  background: #fff5f7;
}

.quote.liverpool::before {
  color: rgba(200,16,46,0.15);
}

/* ===== Opponent Quote (Neutral / Dark) ===== */
.quote.opponent {
  border-left-color: #1e1e1e;
  background: #f5f5f5;
}

.quote.opponent::before {
  color: rgba(0,0,0,0.12);
}

/* แมนฯ ยูไนเต็ด */
blockquote.quote.manutd {
  border-left-color: #da291c;
  background: #fff4f4;
}
blockquote.quote.manutd a {
  color: #da291c;
}

/* อาร์เซน่อล */
blockquote.quote.arsenal {
  border-left-color: #ef0107;
  background: #fff5f5;
}
blockquote.quote.arsenal a {
  color: #ef0107;
}

/* แมนฯ ซิตี้ */
blockquote.quote.mancity {
  border-left-color: #6cabdd;
  background: #f3f9ff;
}
blockquote.quote.mancity a {
  color: #1c2c5b;
}


/* ส่วนแชร์บทความ */
.share-section {
  margin-top: 25px;
  font-family: 'Prompt', sans-serif;
}

.share-title {
  display: block;
  font-weight: 600;
  color: #222;
  margin-bottom: 10px;
  font-size: 16px;
}

.share-buttons a {
  display: inline-block;
  margin-right: 10px;
  padding: 8px 14px;
  border-radius: 25px;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  transition: all 0.3s ease;
}

.share-buttons a i {
  margin-right: 6px;
}

/* 🎨 ปุ่มแต่ละแพลตฟอร์ม */
.share-buttons a.facebook {
  background: #1877f2;
}

.share-buttons a.facebook:hover {
  background: #145dbf;
}

.share-buttons a.twitter {
  background: #000;
}

.share-buttons a.twitter:hover {
  background: #333;
}

.share-buttons a.line {
  background: #06c755;
}

.share-buttons a.line:hover {
  background: #04a747;
}

/* ===== Related News Section ===== */
/* คอลัมน์ท้ายบทความ 2x2 */
.end-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 10px;
  margin-bottom: 30px;
}

.end-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.end-item:hover {
  transform: translateY(-3px);
}

.end-item img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: center top;
}

.end-item h4 {
  font-size: 18px;
  padding: 10px 12px;
  color: #111;
  line-height: 1.4;
}

.related-news h3 {
    font-size: 1.7rem;
    font-weight: bold;
    margin-bottom: 0;
    color: #e10600; /* ปรับสีตามธีมเว็บ */
}

.ad-item .ad-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 83.33%; /* 250/300 = 0.8333 => รักษาสัดส่วน 300x250 */
    height: 0;
}

.ad-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}


:root{
  --bg: #fbf7f3;                 /* page background (cream) */
  --card-bg: #fff;               /* inner card */
  --text: #222;
  --muted: #6d6d6d;
  --accent: #c60d0d;             /* red brand color */
  --accent-dark: #9a0b0b;
  --shadow: rgba(0,0,0,0.06);
  --radius: 14px;
  --small-radius: 10px;
  --border: rgba(0,0,0,0.08);
}

/* Base layout */
.comments-section{
  background: var(--bg);
  padding: 28px 20px;
  color: var(--text);
  margin-top: 20px;
  font-family: 'Prompt', system-ui, Arial, sans-serif;
}

/* Title */
.comments-title{
  color: var(--accent);
  font-size: 2rem;
  margin: 0 0 18px 0;
  font-weight: 800;
}

/* Policy banner */
.policy-banner{
  display: flex;
  gap: 18px;
  align-items: center;
  background: linear-gradient(#fff,#fff);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 4px 18px var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.policy-content{
  flex: 1;
}

.policy-heading{
  margin: 0 0 8px 0;
  font-size: 1.25rem;
  color: #2f2f2f;
}

.policy-text{
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  max-width: 760px;
}

.policy-link{
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.login-link{
    color: #000;
  }

.social-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.social-title {
  width: 100%;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #333;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  height: 40px; /* ให้ทุกปุ่มสูงเท่ากัน */
  line-height: 1;
  box-sizing: border-box;
  transition: transform .12s ease, box-shadow .12s ease;
  cursor: pointer;
}


/* Facebook */
.btn-social.fb {
  background: #1877F2;
}
.btn-social.fb i {
  font-size: 1.45rem;
  position: relative;
  top: 1px;
}

/* X */
.btn-social.x {
  background: #000;
}
.btn-social.x i {
  font-size: 1.4rem;
  position: relative;
  top: -1px; /* แก้ปัญหาไอคอน X ตก */
}

/* TikTok */
.btn-social.tt {
  background: #000;
}
.btn-social.tt svg {
  width: 22px;
  height: 22px;
  position: relative;
  top: 0px;
}

/* YouTube */
.btn-social.yt {
  background: #FF0000;
}
.btn-social.yt i {
  font-size: 1.45rem;
  position: relative;
}

/* Hover */
.btn-social:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
  color: #fff;
}

/* Policy button */
.policy-actions{
  /* align to right on wide screens */
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  border-radius: 999px;
  border: none;
  padding: 12px 32px;
  font-weight: 700;
  font-size: 1rem;
}

/* Got it styling */
.btn-gotit{
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
.btn-gotit:active{ background: var(--accent-dark); }

/* Comments header (count + login) */
.comments-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin: 6px 0 18px 0;
}
.comments-count{ font-size:1.125rem; color: #222; }
.comments-count strong{ font-weight:700; margin-right:6px; }
.comments-login{ display:flex; align-items:center; gap:10px; color: var(--muted); }
.comments-login .notif{
  background: #ff7b85;
  color:#fff;
  border-radius:50%;
  height:22px; width:22px;
  display:inline-grid; place-items:center;
  font-weight:700; font-size:0.85rem;
}

/* Comment form */
.comment-form{
  display:flex;
  gap:14px;
  align-items:flex-start;
  margin-bottom: 18px;
}
.comment-avatar img{
  width:48px; height:48px; border-radius:50%;
  object-fit:cover;
  border: 2px solid rgba(0,0,0,0.04);
  background: #fff;
}
.comment-input-wrap{
  flex:1;
}
.comment-input{
  width:100%;
  min-height:56px;
  max-height:180px;
  resize:vertical;
  padding:16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  background: var(--card-bg);
  box-shadow: 0 2px 6px var(--shadow);
  font-size: 1rem;
  color: var(--text);
}
.comment-form-actions{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:8px;
}
.btn-submit{
  background: var(--accent);
  color:#fff;
  padding:8px 16px;
  border-radius:10px;
  font-weight:700;
  border: none;
}
.auth-hint{
  color:var(--muted);
  font-size:0.85rem;
  margin-left:12px;
}

/* Divider */
.comments-divider{
  border: none;
  height: 1px;
  background: var(--border);
  margin: 18px 0;
}

/* Comment list */
.comment-list{
  list-style:none;
  padding:0;
  margin:0;
  display:block;
}
.comment-item{
  display:flex;
  gap:12px;
  padding:12px 8px;
  border-radius: 10px;
  align-items:flex-start;
  transition: background .12s;
}
.comment-item + .comment-item{ margin-top:10px; }
.comment-item:hover{ background: rgba(0,0,0,0.02); }
.comment-item-avatar{
  width:44px; height:44px; border-radius:50%; object-fit:cover;
}
.comment-item-body{ flex:1; }
.comment-item-meta{ font-size:0.92rem; color:var(--text); margin-bottom:6px; }
.comment-item-meta .time{ color:var(--muted); font-weight:400; margin-left:8px; }
.comment-item-text{ color:var(--muted); line-height:1.45; }


/* agoda */
.agoda-banner {
    width: 100%;
    max-width: 700px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.agoda-search-input {
    padding: 10px;
    width: 240px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.agoda-search-btn {
    padding: 7px 12px;
    border: none;
    background: #1a73e8;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 4px;
}

.agoda-search-btn:hover {
    background: #125abc;
}

/* agoda */
.agoda-button {
    background: #1a73e8;
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-size: 20px;
    margin-bottom: 30px;
}

.agoda-button:hover {
    background: #125abc;
}

/* ====== aside ====== */
.sidebar-news {
  padding: 16px;
  border-radius: 8px;
}


.sidebar-news h3 {
  margin-bottom: 12px;
  font-size: 2rem;
  border-left: 4px solid #f00;
}

.sidebar-news h3 {
  position: relative;
  padding-left: 10px; /* จากเดิม 14px เพิ่มระยะออก */
}


.mini-news {
  margin-bottom: 16px;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 12px;
}

.mini-news img.news-thumb {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 8px;
  transition: transform 0.2s ease;
}

.mini-news img:hover{
  transform: translateY(-10px);
}

.mini-news a{
  color: #000;
}

.ad-box img {
  width: 100%;
  margin-top: 10px;
  border: 2px dashed #bbb;
  border-radius: 6px;
}

/* ===== Footer ===== */
.footer {
  background: #121212;
  color: #ccc;
  margin-top: 40px;
  font-size: 14px;
  border-top: 3px solid #E30613;
}
.footer-container {
  max-width: 1200px;
  margin: auto;
  padding: 30px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
}
.footer-about p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: #aaa;
}
.footer-links h3, .footer-contact h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #fff;
}
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #ccc; }
.footer-links a:hover { color: #E30613; }
.footer-contact p { margin: 5px 0; font-size: 13px; }
.footer-social-icons {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}
.footer-social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background: #222;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  transition: 0.3s;
}
.footer-social-icons a:hover { background: #E30613; }
.footer-bottom {
  border-top: 1px solid #222;
  text-align: center;
  padding: 15px 20px;
  color: #888;
  font-size: 13px;
}

/* FORCE hide mobile menu on large desktop too (put at VERY END of main.css) */
@media (min-width: 1025px) {
  /* ครอบคลุม selectors ทุกแบบที่อาจถูกใช้ */
  #mobile-menu-toggle,
  button[id*="mobile"],
  button[class*="hamburg"],
  .hamburger,
  .menu-toggle,
  .mobile-hamburger,
  .mobile-menu-button,
  [data-mobile-menu],
  [aria-controls*="mobile"],
  #mobile-dropdown,
  .mobile-dropdown,
  .mobile-dropdown-inner,
  .mobile-nav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    max-height: 0 !important;
    overflow: hidden !important;
    width: 0 !important;
    height: 0 !important;
  }

  /* ป้องกัน pseudo elements */
  .hamburger::before, .hamburger::after, #mobile-menu-toggle::before, #mobile-menu-toggle::after {
    display: none !important;
    content: none !important;
  }
}

/* ---------- Responsive ---------- */

/* Tablet (768px–1024px) → 2 คอลัมน์เล็กลง */
@media (max-width: 1024px) and (min-width: 768px) {
  .container {
    padding: 1.5rem;
  }

  .headline {
    font-size: 1.3rem;
  }

  .team-readiness {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .match-pred img {
    width: 60px;
  }

  .vs {
    font-size: 1.5rem;
  }

  .container {
    grid-template-columns: 3fr 2fr; /* สัดส่วนเล็กลง */
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .headline {
    font-size: 1.2rem;
  }

  .content {
    font-size: 0.95rem;
  }

  .youtube {
    max-width: 640px;   /* พอดีกับแท็บเล็ต */
    margin: 1rem auto;
  }

  .comments-section{
    padding: 28px 32px;
  }
  .comments-title{ font-size: 2rem; }
  .policy-banner{ padding: 20px; gap: 20px; }
  .policy-heading{ font-size: 1.25rem; }
  .policy-text{ font-size: 1rem; }
}



/* ================================================= */
/* 📱 MOBILE ONLY (<= 768px)                          */
/* ================================================= */
@media (max-width: 768px) {

  /* ---------- Layout หลัก ---------- */
  .container {
    display: flex;
    flex-direction: column;
    padding: 0 10px;
  }

  .news-article {
    padding: 15px;
  }

  .sidebar {
    margin-top: 20px;
  }

  /* ---------- Typography ---------- */
  .headline {
    font-size: 1.5rem;
  }

  .meta {
    font-size: 0.8rem;
  }

  /* ---------- Header / Navigation ---------- */
  body.menu-open .top-social-bar {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .top-bar {
    position: relative;
    z-index: 3001;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #000;
  }

  .top-bar .main-nav {
    display: none;
  }

  .hamburger {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
  }

  .hamburger-line {
    width: 26px;
    height: 3px;
    margin: 3px 0;
    background: #fff;
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
  }

  .hamburger.open .hamburger-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }
  .hamburger.open .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open .hamburger-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  /* ---------- Mobile Dropdown ---------- */
  .mobile-dropdown {
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.75);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .35s ease, opacity .25s ease;
    z-index: 9999;
    backdrop-filter: blur(8px);
  }

  .mobile-dropdown.open {
    max-height: 520px;
    opacity: 1;
  }

  .mobile-dropdown-inner a {
    display: block;
    padding: 14px 16px;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
  }

  /* ---------- Hero / News Grid ---------- */
  .main-news-grid {
    grid-template-columns: 1fr;
  }

  .main-article img {
    width: 100%;
    height: 220px;
    object-fit: cover;
  }

  .main-article h1 {
    font-size: 18px;
  }

  /* ---------- Match / Stats ---------- */
  .team-readiness {
    grid-template-columns: 1fr;
  }

  .match-pred {
    flex-direction: column;
    gap: 1rem;
  }

  .match-pred img {
    width: 50px;
  }

  .vs {
    font-size: 1.2rem;
  }

  /* ---------- YouTube ---------- */
  .youtube {
    max-width: 100%;
    margin: 0.75rem 0;
    border-radius: 8px;
  }

  /* ---------- Related News ---------- */
  .end-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .end-item a {
    display: flex;
    flex-direction: column;
  }

  .end-item img {
    width: 100% !important;   /* ✅ บังคับเต็มแถว */
    max-width: 100% !important;
    height: auto;
    display: block;
  }

  .end-item h4 {
    font-size: 1.3rem;
    line-height: 1.5;
    padding: 10px  0;
    margin: 0;
  }

  /* ---------- Footer ---------- */
  .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .footer-social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
  }

}



  @media (max-width: 576px) {
  .related-news h3 {
    font-size: 18px;
  }
}



  @media (max-width: 480px) {
  blockquote.quote a {
    word-break: break-word;
  }

  blockquote.quote {
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
    margin: 14px 0;
  }
}

/* ✅ ปิดเมนูมือถือทั้งหมดบน Tablet & Desktop */
@media (min-width: 769px) {
  /* ปุ่มแฮมเบอร์เกอร์ */
  #mobile-menu-toggle,
  .hamburger,
  .menu-toggle,
  .mobile-hamburger,
  .mobile-menu-button {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* เมนูดรอปดาวน์มือถือ */
  #mobile-dropdown,
  .mobile-dropdown,
  .mobile-dropdown-inner {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    max-height: 0 !important;
    overflow: hidden !important;
  }
}

