:root {
    --primary-red: #E31B23;
    --dark-bg: #222;
    --light-bg: #f4f4f4;
    --text-main: #333;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kanit', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

a.logo{
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ซ่อน Hamburger ในหน้าจอคอม */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.hamburger span {
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 10px;
    transition: all 0.3s ease;
}


/*** ===============
  Live Ticker 
  =========================== ***/
.live-ticker {
    background: #222;
    color: #fff;
    padding: 8px 0;
    font-size: 0.9rem;
    color: #fff;
    font-family: 'Kanit', sans-serif;
    overflow: hidden;
}

.live-ticker .container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.live-label {
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    margin-right: 10px;
    background: #d71920;
    color: #fff;
    font-weight: bold;
    animation: pulse 1.5s infinite;
    white-space: nowrap;
}

.live-track-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.live-track {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: live-move 30s linear infinite;
}

.live-track span {
    margin-right: 40px;
    font-weight: 500;
}

@keyframes live-move {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}
        
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/*** ================
 Header & Logo 
 ============================= ***/
header {
    background: #fff;
    border-bottom: 3px solid #E31B23;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 28px;
    font-weight: 800;
    text-decoration: none;
    color: #000; /* spot สีดำ */
    text-transform: lowercase; /* ถ้าต้องการแบบตัวเล็กทั้งหมด */
    font-style: normal;
}

.logo a span {
    color: #e60012; /* 24hrs สีแดง */
    font-weight: 900;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    margin-left: 25px;
    font-weight: 500;
    transition: 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    color: #E31B23;
}

/*** ===============
 Hero Section 
 =========================== ***/
.hero {
    position: relative;
    margin-top: 30px;
}

/* คุมขนาด Slider */
.main-slider {
    width: 100%;
    height: 500px; 
    border-radius: 15px;
    overflow: hidden;
}

/* แผ่นสไลด์แต่ละแผ่น */
.swiper-slide {
    position: relative;
    height: 100%;
    display: block; 
}

/* ใส่รูปภาพในสไลด์ */
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* Overlay ไล่เฉดดำให้อ่านหนังสือออก */
.swiper-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 70%);
    z-index: 1;
}

/* เนื้อหาที่ลอยบนรูป */
.hero-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 10;
    max-width: 800px;
    color: #fff;
}

.hero-content h2 {
    color: #ffffff !important;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 10px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8); 
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9); /* สีขาวนวลๆ ให้อ่านง่าย */
    font-size: 1.1rem;               /* ขนาดกำลังดีสำหรับคำโปรย */
    line-height: 1.5;
    margin-bottom: 20px;             /* เว้นระยะห่างก่อนถึงปุ่ม */
    max-width: 600px;                /* กันไม่ให้ข้อความยาวจนล้นจอคอม */
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8); /* เงาช่วยให้ตัวหนังสือลอยเด่นขึ้น */
}

/* แถม: ถ้าอยากทำเป็น "หมวดหมู่" ตัวหนาๆ เหนือหัวข้อข่าว */
.hero-content .category-tag {
    display: inline-block;
    background: #E31B23;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.badge {
    background: #E31B23;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/*** ===============
  ข่าวด่วน breaking-news 
================================ ***/
.ticker {
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
}

.ticker-track {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 30s linear infinite;
}

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

.breaking-news {
    background: #fff;
    color: #000;
    padding: 10px 0;
    font-size: 0.9rem;
    overflow: hidden;
}

.breaking-news .container {
    display: flex;
    align-items: center;
}

.breaking-news .label {
    font-weight: bold;
    margin-right: 15px;
    background: #E31B23;
    padding: 2px 8px;
    color: #fff;
}


/*** =============== 
    Layout Grid LATEST FOOTBALL
============================= ***/
.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.news-info h4 {
    font-size: 1.25rem;    /* ปรับให้ใหญ่ขึ้น (ประมาณ 20px) */
    font-weight: 700;      /* เพิ่มความหนาให้ดูเป็นหัวข้อข่าว */
    color: #333;           /* สีเข้มเน้นให้อ่านง่าย */
    line-height: 1.2;      /* เว้นบรรทัดให้ไม่เบียดกันเกินไป */
    margin-bottom: 8px;    /* ระยะห่างก่อนถึงส่วนเวลาและคำโปรย */
}

.news-item {
    background: #fff;
    display: flex;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    cursor: pointer;
}

.news-thumb {
    width: 200px; 
    min-width: 200px;
    height: 130px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-right: 15px; /* ย้ายจากอันบนมาไว้ที่นี่ */
}

/* เจาะจงไปที่รูปภาพในรายการข่าวล่าสุด */
.news-thumb img, 
.news-card-image img,
.news-item img {
    width: 100%;        /* ให้กว้างเต็มกล่องที่หุ้มอยู่ */
    height: 100%;       /* ให้สูงเต็มกล่องที่หุ้มอยู่ */
    object-fit: cover;  /* ไม้ตาย: ตัดส่วนเกินออกแทนการบีบรูป ให้รูปไม่ยืด */
    object-position: center;
    display: block;
}

/* แต่งลิงก์ที่ครอบแท็ก p */
.description-link {
    text-decoration: none; /* เอาขีดเส้นใต้ออก */
    display: block;        /* ทำให้พื้นที่การคลิกเต็มบรรทัด */
}

.description-link p {
    color: #666;           /* สีเทาสำหรับคำโปรย */
    line-height: 1.6;
    margin-top: 5px;
    transition: color 0.2s;
}

/* เอฟเฟกต์เวลาเอาเมาส์วาง (Hover) */
.description-link:hover p {
    color: #E31B23;           /* เปลี่ยนเป็นสีดำเข้มเวลาจะกด */
    text-decoration: underline; /* (ตัวเลือก) ให้มีขีดเส้นใต้เฉพาะตอนชี้ */
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.news-title a {
    text-decoration: none;
    color: #222;
    transition: 0.3s;
}

.news-title a:hover {
    color: #e60012;
}

.news-excerpt {
    font-size: 14px;
    color: #666;
    margin: 6px 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* แสดงแค่ 2 บรรทัดพอ */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item .news-info {
    flex: 1;                 /* ยืดพื้นที่ให้เต็มสิทธิ์ */
    display: flex;
    flex-direction: column;  /* เรียงของลงมาเป็นแนวตั้ง */
    gap: 10px;   /*เว้นระยะระหว่างหัวข้อกับคำโปรย */
}

/* ป้องกันการเลื่อนหน้าจอเบื้องหลังเมื่อเปิดเมนูเต็มจอ */
.no-scroll {
    overflow: hidden;
}


/*** ===================
 รวมปุ่ม button
 ===================================== ***/
/* จัดการกล่องเนื้อหาข่าว */
.news-info {
    display: flex;
    flex-direction: column;
    padding: 10px;
    position: relative;
}

/* 1. ตั้งค่าพื้นฐานให้ปุ่มชิดขวาและมี BG */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;               /* ระยะห่างระหว่างคำว่า "อ่านข่าวนี้" กับ ไอคอน */
    padding: 10px 25px;
    background-color: #d71920; /* สีพื้นหลังอ่อนๆ ตามรูป */
    color: #f8f8f8;            /* สีแดงประจำเว็บ */
    border-radius: 50px;       /* ทรงแคปซูล */
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    align-self: flex-end;      /* สั่งให้ปุ่มชิดขวา */
}

/* 3. เมื่อ Hover ที่ปุ่ม สั่งให้ i (ลูกศร) ขยับไปทางขวา */
.read-more:hover {
    background-color: #d71920; /* เปลี่ยน BG เป็นแดง */
    color: #fff;               /* เปลี่ยนตัวหนังสือเป็นขาว */
    border-color: #d71920;
    box-shadow: 0 4px 12px rgba(215, 25, 32, 0.2);
}

/* 2. ตั้งค่าให้ไอคอน i มีการเคลื่อนไหวที่นุ่มนวล */
.read-more i {
    transition: transform 0.3s ease; /* คุมความเร็วในการขยับ */
    font-size: 1rem;

}

.read-more:hover i {
    transform: translateX(8px); /* ลูกศรเด้งไปทางขวา 8px */
}

.btn-read-more {
    display: inline-block;
    background-color: #E31B23; /* สีแดงหลักของคุณ */
    color: #ffffff !important;
    padding: 10px 24px;       /* ขนาดที่กดง่ายทั้งในคอมและมือถือ */
    border-radius: 6px;       /* ความมนระดับมาตรฐาน */
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    width: fit-content;      /* กว้างเท่าเนื้อหาข้างใน */
}

.btn-read-more:hover {
    background-color: #b3151b; /* เปลี่ยนเป็นสีดำเวลา Hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* --- สไตล์ปุ่มปกติ --- */
.btn-main {
    display: inline-block;
    background: #E31B23;         /* แดงหลักของเว็บ */
    color: #ffffff !important;
    padding: 12px 28px;          /* เพิ่มขนาดให้กดง่ายขึ้น */
    text-decoration: none;
    border-radius: 6px;          /* มนกำลังดี */
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* แอนิเมชันแบบนุ่มนวล */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);              /* เงาจางๆ ตอนปกติ */
    border: 2px solid transparent;                         /* เผื่อไว้ทำเส้นขอบ */
    cursor: pointer;
}

/* --- เอฟเฟกต์ตอน Hover (เอาเมาส์ชี้) --- */
.btn-main:hover {
    background: #ffffff;           /* เปลี่ยนพื้นหลังเป็นขาว */
    color: #E31B23 !important;     /* เปลี่ยนตัวหนังสือเป็นแดง */
    border-color: #E31B23;         /* เพิ่มเส้นขอบแดง */
    transform: translateY(-5px);    /* ปุ่มลอยขึ้น 5px */
    box-shadow: 0 10px 20px rgba(227, 27, 35, 0.3); /* เงาสีแดงจางๆ ฟุ้งๆ */
}

/* --- เอฟเฟกต์ตอนคลิก (Active) --- */
.btn-main:active {
    transform: translateY(-2px);    /* ยุบลงไปนิดนึงเหมือนโดนกดจริง */
    box-shadow: 0 5px 10px rgba(227, 27, 35, 0.2);
}

.btn-main i {
    margin-left: 8px;
    transition: transform 0.3s ease; /* ให้ลูกศรขยับนุ่มๆ */
}

.btn-main:hover i {
    transform: translateX(5px); /* เมื่อเอาเมาส์ชี้ ลูกศรจะขยับไปทางขวา 5px */
}


/*** ==================== 
Sidebar Layout สไตล์สำหรับ (Aside)
============================ ***/
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* กล่องพื้นเทาแบบในภาพ */
.standings-box {
    background: #f3f3f3;
    padding: 25px;
    border-radius: 18px;
}

/* หัวข้อ */
.standings-box h3 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 20px;
}

/* ตาราง */
.standings-table {
    width: 100%;
}

.st-header,
.st-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

.st-header {
    font-weight: 800;
    color: #e10600;
    border-bottom: 1px solid #ddd;
}

.st-row {
    font-size: 20px;
    font-weight: 600;
    border-bottom: 1px solid #e5e5e5;
}

.st-rank {
    width: 50px;
}

.st-team {
    flex: 1;
}

.st-pts {
    width: 60px;
    text-align: right;
}

/* ดูทั้งหมด */
.view-all {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-weight: 700;
    color: #999;
    text-decoration: none;
}

.view-all:hover {
    color: #e10600;
}

/* คอนเทนเนอร์หลักของรายการข่าวใน Aside */
.trending-news {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trending-news li {
    border-bottom: 1px solid #eee; /* ขีดเส้นคั่นบางๆ */
}

.trending-news li:last-child {
    border-bottom: none;
}

/* ปรับแต่งแท็ก a ให้เป็นกล่องที่กดได้ทั้งแถว */
.trending-news li a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease; /* ให้เวลาเปลี่ยนสีดูนุ่มนวล */
    gap: 12px;
    align-items: center;
    border-radius: 8px;
    background: #ffffff;
    margin-top: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* เงาให้ดูมีมิติ */
}

/* เอฟเฟกต์ตอน Hover (เอาเมาส์ชี้) */
.trending-news li a:hover {
    background-color: #fcfcfc;
    color: #E31B23; /* เปลี่ยนเป็นสีแดงประจำเว็บคุณ */
    padding-left: 20px; /* ขยับไปทางขวานิดๆ ให้ดูมีลูกเล่น */
}

/* ตัวเลขหน้าข่าว (ถ้าอยากมี) */
.news-num {
    font-weight: 700;
    color: #ccc;
    font-size: 1.2rem;
    min-width: 20px;
}

.trending-news li a:hover .news-num {
    color: #E31B23; /* เลขเปลี่ยนสีตามเมื่อ hover */
}

.trending-news p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 500;
}

/* ตกแต่งตารางย่อใน Sidebar */
.sidebar-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-top: 10px;
}

.sidebar-table th {
    text-align: left;
    color: #888;
    padding: 8px 5px;
    border-bottom: 1px solid #eee;
}

.sidebar-table td {
    padding: 10px 5px;
    border-bottom: 1px solid #f9f9f9;
}

/* เน้นสีให้ทีมที่กำลังพรีวิว */
.sidebar-table tr.highlight {
    background: #fff5f5;
    font-weight: bold;
}

.view-full {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    margin-top: 15px;
    color: #d71920;
    text-decoration: none;
    font-weight: 500;
}

/* ส่วนของช่องถ่ายทอดสด */
.channel-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.channel-item img {
    height: 20px;
    object-fit: contain;
}

/*** ================== 
 TV GUIDE STYLES 
 =========================== ***/
.tv-guide {
    margin-top: 25px; /* เว้นระยะห่างจากตารางคะแนนด้านบน */
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* พรีเมียร์ลีก (คลาส .pl) -> ใช้สีม่วงเข้มพรีเมียร์ลีก (หรือปรับเป็นสีแดงธีมเว็บตามชอบได้ครับ) */
.live-league.pl {
    background-color: #240026 !important; /* สีม่วงเอกลักษณ์ของพรีเมียร์ลีก */
    color: #ffffff ;            /* ตัวหนังสือสีขาว */
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
}

/* ลาลีกา (คลาส .ll) -> ใช้สีดำ-แดงสไตล์ลาลีกา */
.live-league.ll {
    background-color: #ef4136 !important; /* สีแดงสว่างลาลีกา */
    color: #ffffff !important;            /* ตัวหนังสือสีขาว */
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
}

/* ลีกอื่นๆ ที่ไม่มีคลาส (Fallback) -> ใช้สีเทาเข้มพื้นฐาน */
.live-league {
    background-color: #4c1130; 
    color: #ffffff;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
}

.guide-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
}

.guide-item:last-of-type {
    border-bottom: none; /* เส้นสุดท้ายไม่ต้องมี */
}

.guide-item:hover {
    background: #fdfdfd;
}

.guide-time {
    background: #E31B23; /* สีแดงของเว็บคุณ */
    color: #fff;
    padding: 4px 8px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.85rem;
    min-width: 55px;
    text-align: center;
    margin-right: 15px;
}

.guide-detail {
    display: flex;
    flex-direction: column;
}

.guide-match {
    font-weight: 500;
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 2px;
}

.guide-channel {
    font-size: 0.8rem;
    color: #777;
    display: flex;
    align-items: center;
    gap: 5px;
}

.guide-channel i {
    color: #E31B23; /* ไอคอนทีวีสีแดง */
    font-size: 0.75rem;
}

/* ปรับหัวข้อให้เหมือนกับส่วนอื่น */
.tv-guide h3 span {
    font-size: 0.7rem;
    color: #999;
    display: block;
    font-weight: 300;
}

/* --- Analysis Page Styling --- */
.page-header {
    text-align: left; /* ทำให้ข้อความในส่วนนี้ชิดซ้าย */
    padding: 40px 0;
}

.page-header p {
    font-size: 1.35rem; /* เพิ่มขนาดข้อความใน <p> */
    line-height: 1.5; /* ปรับระยะห่างบรรทัด */
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 8px 20px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
    font-family: inherit;
}

.tab-btn.active, .tab-btn:hover {
    background: #E31B23;
    color: #fff;
    border-color: #E31B23;
}


/*** =======================
  จัด Layout แบ่งซ้าย (วิดีโอใหญ่) ขวา (วิดีโอเล็ก 3 อัน) 
================================================ ***/
/* ตัวหุ้มวิดีโอ */
.video-left .video-right {
    position: relative;
    padding-bottom: 56.25%; /* สัดส่วน 16:9 (9 หาร 16 = 0.5625) */
    height: 0;
    overflow: hidden;
    border-radius: 12px; /* ให้มนเท่ากับ Card อื่นๆ */
    background: #000;
}

/* สั่งให้ iframe ยืดเต็มพื้นที่ของตัวหุ้ม */
.video-left iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

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

.highlight-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr); /* หน้าจอคอมเรียง 3 */
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}

/* Highlight Grid System */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.hl-card {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.hl-card:hover {
    transform: translateY(-5px);
}

.hl-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.hl-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ปุ่ม Play ตรงกลางรูป */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(215, 25, 32, 0.9); /* สีแดง SPOT24HRS */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hl-card:hover .play-overlay {
    opacity: 1;
}

.hl-info { padding: 15px; }
.hl-title { font-size: 1rem; line-height: 1.4; margin-top: 8px; }
.hl-title a { color: #fff; text-decoration: none; }
.hl-meta { font-size: 0.8rem; color: #aaa; display: flex; justify-content: space-between; }
.hl-league { color: #d71920; font-weight: bold; }

.video-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* ฝั่งซ้ายกว้าง 2 ส่วน ขวากว้าง 1 ส่วน */
    gap: 20px;
    margin-top: 20px;
}

/* ปรับหัวข้อวิดีโอ */
.video-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* ปรับขนาดฟอนต์ของวิดีโอเล็กฝั่งขวาให้เล็กลงหน่อย */
.video-right .video-title {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.video-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    cursor: pointer;

    /* --- ส่วนที่ทำให้สมูท --- */
    /* 1. ใส่ Transition ไว้ที่ตัวหลัก (ไม่ใช่ตอน hover) */
    /* ใช้ cubic-bezier จะทำให้นุ่มกว่า ease ปกติ (เริ่มช้า กลางเร็ว จบช้า) */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    
    /* 2. บอก Browser ให้เตรียมตัวขยับ จะช่วยลดอาการกระตุก */
    will-change: transform; 
    
    /* 3. ใส่เงาจางๆ ไว้รอเลย เพื่อให้ตอน hover เงาค่อยๆ เข้มขึ้น ไม่ใช่โผล่มาดื้อๆ */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.video-card:hover {
    /* ลอยขึ้นแบบนุ่มๆ */
    transform: translateY(-8px); 
    
    /* เงาฟุ้งและจางลงตามระยะที่ลอยขึ้น */
    box-shadow: 0 15px 30px rgba(0,0,0,0.15); 
}

.video-container:hover .video-title { color: #E31B23; }


/*** ================== 
วิเคราะห์บอลจิงจัง analysis (มี css คลุม header title-container)
============================================= ***/
/* ใช้ตัวนี้ตัวเดียว คลุมทุกหน้า */
.title-container {
    border-left: 8px solid #d71920; 
    padding-left: 25px;
    margin-bottom: 35px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.title-container h1 {
    font-size: 2.2rem;
    margin: 0;
    line-height: 1.1;
    color: #222;
    font-weight: 800;
}

.title-container span {
    font-size: 0.95rem;
    color: #d71920;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
}

.archive-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
    margin-top: 20px;
}

/* ส่วน Grid ภายในเนื้อหาหลัก (Desktop 2 Columns) */
.analysis-grid-2cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* แบ่งเป็น 2 คอลัมน์เท่ากัน */
    gap: 20px;
}

/* เขียนครั้งเดียว ใช้ได้ทุกหน้า บอลไทย ยุโรป analysis transfer */
.analysis-preview {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* ล็อกให้แสดงผลแค่ 2 บรรทัด */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 15px;
}

.analysis-preview strong {
    color: #f39c12;
}

.analysis-card-new {
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #f9f9f9;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.analysis-card-new:hover {
    transform: translateY(-5px);
    border-color: #E31B23;
}

/* ตัวเสริม: พื้นหลังเทา */
.analysis-preview.bg-gray {
    background: #f9f9f9;
}

/* ตัวเสริม: ตัดตัวหนังสือเหลือ 2 บรรทัด */
.analysis-preview.line-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: auto; /* ล้างค่า min-height เดิมออก */
}

.card-header {
    display: flex;
    justify-content: space-between; 
    align-items: center;            
    width: 100%;
    margin-bottom: 25px;
    padding: 10px;
}

/* แบบมาตรฐาน */
.league-badge {
    padding: 4px 12px;
    font-size: 0.9rem;
    font-weight: 500;       /* น้ำหนักกำลังสวย อ่านง่าย */
    background: #f0f0f0;   /* พื้นหลังเทาอ่อน */
    color: #333;
    border-radius: 20px;
    min-width: 80px;
    text-align: center;
    display: inline-block;
    letter-spacing: 0.5px;
}


/* ถ้าอยากให้ลอยทับรูป (ใช้เฉพาะจุด) */
.card-image-wrap .league-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #d71920;
    color: #fff;
}

/* --- สไตล์เวลาการแข่งขัน --- */
.match-time {
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;       /* ใช้ 500 เท่ากันเพื่อให้ดีไซน์ไปในทิศทางเดียวกับ Badge */
    font-size: 0.9rem;
    color: #333;
    display: inline-block;
    min-width: 80px;
    text-align: center;
}

.league-badge, .match-time {
    margin: 0 !important; 
    padding: 6px 14px; /* เพิ่ม padding อีกนิดให้ Badge ดูอวบสวยขึ้น */
    font-weight: 600;  /* ปรับเป็น 600 ให้ดูเด่นชัดขึ้นอีกระดับ */
    border-radius: 50px; /* เป็นทรงมนแคปซูลสวยๆ */
}

.match-vs-area {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
}

.vs-circle {
    background: #d71920;
    color: #fff;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.8rem;
}

.team-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
}

.team-side img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.team-side span {
    margin-top: 8px;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
}

.card-action-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.star-rating {
    color: #ffcc00;
    display: inline-block;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 25px;
    margin-bottom: 50px;
    align-items: stretch; /* ให้กล่องในแถวเดียวกันสูงเท่ากันเสมอ */
}

.analysis-item {
    background: #fff;
    border-radius: 12px;
    /* แก้ตรงนี้: บน 25px, ซ้าย-ขวา 20px, ล่าง 20px */
    padding: 25px 20px 20px 20px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 5px solid #333;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden; /* กันส่วนเกินล้นขอบมน */
}

.analysis-item:hover { transform: translateY(-5px); }

.analysis-item.hot-match {
    margin-top: 20px;
    border-top-color: #E31B23;
    grid-column: span 1; /* สามารถปรับเป็น span 2 ได้ถ้าต้องการให้คู่เอกตัวใหญ่ */
}

.match-tag {
    position: absolute;
    top: 10px;
    right: 15px;
    background: #E31B23;
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: bold;
}

.league-name {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 20px;
}


.short-analysis {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: #555;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.confidence { font-size: 0.85rem; }
.confidence span { color: #ffcc00; }

/* การจัดวาง Grid */
.news-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

/* ข่าวเด่นอันแรกให้เต็มแถวบนเดสก์ท็อป */
.news-card.featured {
    grid-column: 1 / -1;
    display: flex;
    gap: 30px;
    background: #f9f9f9;
}

.news-card.featured .card-img {
    flex: 1;
}

.news-card.featured .card-content {
    flex: 1;
    padding: 20px;
}


/*** ============ 
 หัวข้อส่วนต่างๆ(บอลไทย)
 ======================== ***/
/* --- ส่วนนี้เขียนครั้งเดียว ใช้ได้ทั้งบอลไทย/บอลยุโรป/หน้า Archive --- */
.analysis-card-new {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    overflow: hidden; /* เพิ่มเพื่อให้รูปไม่ล้นขอบมน */
}

.analysis-card-new, .analysis-item {
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.3s ease;
}

.analysis-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.analysis-card-new .card-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.analysis-card-new .card-content {
    padding: 20px;
}

/* หัวข้อข่าว */
.analysis-card-new .card-title {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    line-height: 1.4;
    color: #222;
}

/* เอฟเฟกต์ตอนเอาเมาส์ชี้กล่อง (แถมให้เพื่อความสวย) */
.analysis-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #222;
}

.section-title i {
    color: #d71920;
}

/* ส่วนแสดงผลบอลแบบบรรทัด */
.thai-result-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    font-weight: 500;
}

.result-item .score {
    background: #222;
    color: #fff;
    padding: 2px 12px;
    border-radius: 4px;
    font-family: 'monospace';
}


/*** ============ 
 หัวข้อส่วนต่างๆ(บอลยุโรป)
 ======================== ***/
/* รูปภาพในกล่องข่าว */
.analysis-card-new .card-thumb img {
    width: 100%;
    height: 220px; /* ปรับความสูงให้เหมาะกับจอ Desktop */
    object-fit: cover;
    display: block;
}

/* ส่วนเนื้อหาภายใน */
.analysis-card-new .card-content {
    padding: 20px;
}

/* หัวข้อข่าว */
.analysis-card-new .card-title {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    line-height: 1.4;
    color: #222;
}

 /* การ์ดเลือกลีกแบบย่อ */
.league-nav-cards {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    padding: 5px 2px 15px 2px;
    overflow-x: auto; /* เปิดการเลื่อนในแนวนอน */
    scrollbar-width: none; /* ซ่อน scrollbar สำหรับ Firefox */
    -ms-overflow-style: none; /* ซ่อน scrollbar สำหรับ IE/Edge */
}

/* ซ่อน scrollbar สำหรับ Chrome/Safari */
.league-nav-cards::-webkit-scrollbar {
    display: none;
}

/* สไตล์ของแต่ละปุ่มลีก */
.league-mini-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    padding: 8px 16px;
    border-radius: 50px; /* ทรงแคปซูล */
    border: 1px solid #eee;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap; /* ป้องกันตัวอักษรขึ้นบรรทัดใหม่ */
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

/* จัดการรูปโลโก้ลีก */
.league-mini-card img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* เอฟเฟกต์เมื่อ Hover หรือ Active */
.league-mini-card:hover {
    border-color: #d71920;
    color: #d71920;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(215, 25, 32, 0.1);
}

.league-mini-card:active {
    transform: scale(0.95);
}

/* โปรแกรมถ่ายทอดสด */
.euro-schedule {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #f4f4f4;
}

.league-tag {
    font-size: 0.7rem;
    font-weight: bold;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    min-width: 30px;
    text-align: center;
}

.league-tag.pl { background: #3d195b; } /* Premier League Color */
.league-tag.ll { background: #ee252e; } /* La Liga Color */

.schedule-item .teams {
    flex: 1;
    padding: 0 20px;
    font-weight: 500;
}

.schedule-item .time {
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: bold;
}

/* ดาวซัลโวใน Sidebar */
.top-scorers {
    list-style: none;
    padding: 0;
}

.top-scorers li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dotted #ddd;
    font-size: 0.9rem;
}

/*** ============ 
 Transfer News(ข่าวย้ายทีม)
 ================================ ***/
 /* ตารางตลาดซื้อขาย */
.transfer-table-wrapper {
    overflow-x: auto;
}

.transfer-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.transfer-table th {
    background: #f8f8f8;
    text-align: left;
    padding: 12px;
    font-size: 0.85rem;
    color: #666;
    border-bottom: 2px solid #eee;
}

.transfer-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.transfer-table .fee {
    font-weight: bold;
    color: #28a745; /* สีเขียวสำหรับราคา */
}

/* สถานะตลาดใน Sidebar */
.market-status p {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-weight: 500;
}

.status-open { color: #28a745; font-weight: bold; }
.status-closed { color: #dc3545; font-weight: bold; }

/* คอนเทนเนอร์หลัก */
.hot-topic-header {
    margin: 40px 0 25px; /* ระยะห่าง บน-ล่าง */
    position: relative;
    border-bottom: 2px solid #eee; /* เส้นจางๆ ยาวเต็มความกว้าง */
    padding-bottom: 10px;
}

/* หัวข้อและไอคอน */
.hot-topic-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 800;
    color: #222;
    margin: 0;
}

/* ตกแต่งไอคอนเป็นพิเศษ */
.hot-topic-title i {
    color: #f39c12; /* สีส้มทอง ให้ความรู้สึกเป็นประเด็นร้อน/ข่าวลือ */
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 4px rgba(243, 156, 18, 0.2));
}

/* เส้นสีแดงหนาเฉพาะใต้หัวข้อ */
.red-line-short {
    position: absolute;
    bottom: -2px; /* ทับเส้นสีเทาพอดี */
    left: 0;
    width: 80px; /* ความยาวเส้นแดง */
    height: 4px;
    background: #d71920;
    border-radius: 2px;
}

/* คอนเทนเนอร์ Grid 2 คอลัมน์ */
.analysis-grid-2cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 20px;
}

/* ส่วนหุ้มรูปภาพ */
.card-image-wrap {
    position: relative;
    width: 100%;
    height: 220px; /* ล็อคความสูงรูปให้เท่ากันทุกกล่อง */
    overflow: hidden;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* รูปไม่ยืดแน่นอน */
}


/* ส่วนเนื้อหา */
.card-info {
    padding: 20px;
}

.card-info h3 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin: 0 0 12px 0;
    color: #222;
    font-weight: 700;
}

 /*** ==============================
    SPORTS OPINION STYLE 
================================== ***/

/* หัวข้อ Section แบบ Sky */
.sky-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.sky-red-bar {
    width: 6px;
    height: 30px;
    background: #d71920; /* แดง Sky Sports */
}

.sky-section-header h2 {
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* การจัดวาง Grid */
.opinion-sky-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* การ์ดบทความ */
.opinion-sky-card {
    background: #fff;
    border-radius: 4px; /* Sky ไม่ชอบความมนมาก */
    overflow: hidden;
    transition: 0.3s;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.opinion-sky-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* ส่วนรูปผู้เขียน/รูปประกอบ */
.sky-author-wrapper {
    width: 100%;
    height: 250px;
    background: #f4f4f4;
    overflow: hidden;
    position: relative;
}

.sky-author-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top; /* เน้นใบหน้าผู้เขียน */
    transition: transform 0.5s ease;
}

.opinion-sky-card:hover .sky-author-img {
    transform: scale(1.05);
}

/* เนื้อหา */
.sky-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sky-tag {
    color: #d71920;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.sky-title {
    font-size: 1.4rem;
    line-height: 1.3;
    font-weight: 800;
    margin-bottom: 15px;
}

.sky-title a {
    text-decoration: none;
    color: #222;
}

.sky-title a:hover {
    color: #d71920;
}

.sky-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ส่วนชื่อผู้เขียนด้านล่าง */
.sky-meta {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #888;
}

.sky-author-name strong {
    color: #222;
}


/*** ============ 
 TV (ถ่ายทอดสด)
 ======================== ***/
/* การ์ดรายการสด - ปรับความกระชับ */
.day-header {
    background: #222;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    margin-bottom: 15px;
    margin-top: 20px;
}

/* การ์ดโดยรวม */
.live-card {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid #d71920; /* ขอบส้ม spot24hrs */
    border-radius: 8px;
    background: #fff;
    margin-bottom: 8px;
    gap: 15px; /* ระยะห่างระหว่างก้อนข้อมูล */
}

/* 1. เวลาและลีก - ขยับชิดหน้า */
.live-time {
    font-size: 1.1rem;
    font-weight: 800;
    color: #d71920;
    min-width: 55px; /* ล็อกความกว้างเวลาให้เท่ากันทุกแถว */
}

.live-league {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
    white-space: nowrap;
}
.live-league.pl { background: #3d195b; } /* พรีเมียร์ลีก */
.live-league.ll { background: #ee252e; } /* ลาลีกา */

/* 2. พื้นที่การแข่งขัน - ล็อกให้โลโก้ไม่ระเบิด */
.live-match {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 120px; /* ล็อกพื้นที่ทีมเหย้า/เยือนให้เท่ากัน VS จะได้อยู่ตรงกลาง */
}

/* จัดทิศทางทีมเหย้า-เยือน */
.live-match .team-info:first-child { flex-direction: row-reverse; text-align: left; }
.live-match .team-info:last-child { justify-content: flex-start; text-align: left; }

/* กรงล็อกขนาดโลโก้ (สำคัญมาก) */
.logo-wrapper {
    width: 25px;  /* บังคับขนาดโลโก้เล็กลงตามสั่ง */
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* รูปจะอยู่ในกรง 25px ไม่ล้นออกมาทับกันอีก */
}

.team {
    font-size: 0.9rem;
    font-weight: 600;
}

.vs {
    font-size: 0.7rem;
    font-weight: bold;
    color: #ccc;
    width: 30px;
    text-align: center;
}

/* 3. ช่องถ่ายทอดสด - ดันไปชิดขวา */
.live-channel {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 1px solid #eee;
    padding-left: 15px;
    min-width: 150px;
    justify-content: flex-end;
}

.live-channel img {
    height: 20px; /* ล็อกความสูงโลโก้ช่อง */
    width: auto;
}

.channel-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #333;
}

/* ปุ่มวิเคราะห์กูรู */
.analysis-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    color: #d71920; /* สีส้มหลักของเว็บ */
    border: 1.5px solid #d71920;
    padding: 5px 12px;
    border-radius: 20px; /* ทรงแคปซูลดู Modern */
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-left: 10px;
}

.analysis-btn i {
    font-size: 0.75rem;
}

.analysis-btn:hover {
    background: #d71920;
    color: #fff;
    box-shadow: 0 3px 8px rgba(255, 152, 0, 0.3);
}

/* กล่องแม่ที่คุมช่อง VS หรือ สกอร์ */
.match-vs-area {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px; /* ให้พื้นที่ตรงกลางกว้างพอ */
}


/* กล่องสกอร์ สีดำ-ทอง สไตล์ SPOT24HRS */
.score-area {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a; 
    color: #ffcc00;      
    
    /* ปรับขนาดตรงนี้ */
    font-size: 1.1rem;   /* ลดขนาดตัวเลขลงมาให้พอดีตา */
    padding: 2px 15px;   /* ลดระยะห่างบน-ล่าง */
    min-width: 50px;     /* บีบความกว้างให้เล็กลง */
    height: 32px;        /* ลดความสูงกล่อง */
    
    border-radius: 3px;
    margin: 0 10px;
    white-space: nowrap;
    border-bottom: 2px solid #e21a22; /* เส้นบางลงหน่อย */
}

.channel-grid {
    display: flex;
    flex-direction: column; /* สั่งให้เรียงลงมาเป็นแถวเดียว */
    gap: 4px;              /* ระยะห่างระหว่างไอคอนแต่ละช่อง */
    align-items: center;    /* จัดให้อยู่กึ่งกลางในแนวตั้ง */
    justify-content: center;
    padding: 0;         /* เพิ่มพื้นที่ว่างบนล่างนิดหน่อย */
    width: 100px;            /* ล็อกความกว้างของคอลัมน์ช่องไว้ */
}

.ch-icon img {
    width: 100px;           /* ขนาดเล็กลงแต่ยังมองเห็นชัด (ประมาณ 24-28px) */
    height: auto;
    display: block;
    object-fit: contain;
}

.ch-icon img:hover {
    filter: grayscale(0%);
    transform: scale(1.1); /* ขยายเล็กน้อยตอนเอาเมาส์ชี้ */
}


/*** ============ 
 ปรับแต่ง Analysis Detail Page
 ======================== ***/
 /* การ์ดบทวิเคราะห์หลัก */
.analysis-article-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 30px;
}

/* ส่วนหัวแมตช์ */
.analysis-match-header {
    background: linear-gradient(135deg, #222 0%, #444 100%);
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

.league-tag-large {
    background: #d71920;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.match-vs-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.team-info img {
    width: 80px;
    height: 80px;
}

.vs-text {
    font-size: 2rem;
    font-weight: 800;
    color: #ffcc00;
}

.match-time-place {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #ccc;
}

/* ส่วนเนื้อหา */
.analysis-body {
    padding: 30px;
    line-height: 1.8;
    color: #444;
}

.analysis-body h3 {
    margin: 25px 0 15px;
    color: #222;
    border-left: 4px solid #d71920;
    padding-left: 15px;
}

/* กล่องฟันธง */
.prediction-box {
    background: #fff9f9;
    border: 2px dashed #d71920;
    border-radius: 15px;
    padding: 25px;
    margin-top: 40px;
    text-align: center;
}

.prediction-label {
    font-weight: bold;
    color: #d71920;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.prediction-result {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000;
}

.confidence-stars {
    color: #ffcc00;
}

/* กล่องครอบทั้งหมด */
.matchday-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
}

/* หัวข้อวันที่ */
.match-date {
    font-size: 1.2rem;
    color: #111111;
    margin: 30px 0 15px 0;
    padding-bottom: 5px;
    border-bottom: 2px solid #eaeaea;
    position: relative;
}

/* เส้นใต้หัวข้อวันที่แอบเก๋ด้วยสีแดง */
.match-date::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #e50914; /* สีแดงสปอร์ต */
}

/* ตัวครอบลิสต์รายการ */
.match-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* แต่ละคู่การแข่งขัน */
.match-list li {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* รองรับการตัดบรรทัดบนมือถือ */
    padding: 15px 20px;
    margin-bottom: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #e50914; /* แถบสีแดงสุดเท่ */
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* เอฟเฟกต์เวลาเอาเมาส์ไปชี้ */
.match-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    background-color: #f1f3f5;
}

/* เวลาแข่งขัน (Kickoff Time) */
.kickoff-time {
    font-size: 1.1rem;
    color: #e50914;
    font-weight: 700;
    min-width: 90px;
}

/* คู่แข่งขัน (Teams) */
.match-teams {
    font-size: 1.05rem;
    color: #212529;
    font-weight: 500;
    flex: 1; /* ขยายพื้นที่ตรงกลาง */
    min-width: 250px; /* ป้องกันการเบียดกันบนจอเล็ก */
}

/* ช่องถ่ายทอดสด (Live) */
.match-live {
    font-size: 0.95rem;
    color: #6c757d;
    text-align: right;
}

/* ไฮไลท์คำว่า ถ่ายทอดสด ให้เด่นขึ้น */
.match-live strong {
    color: #495057;
    font-weight: 600;
}

/* กล่องครอบไฮไลท์ */
.highlight-container {
    background-color: #fffafb; /* พื้นหลังขาวอมแดงจางๆ ให้ดูซอฟต์ */
    border: 1px solid #f5d6d6;
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
}

/* หัวข้อใหญ่ */
.highlight-title {
    color: #e50914; /* สีแดงหลักของเว็บ */
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 20px;
}

/* ตัวรายการ */
.highlight-list {
    padding-left: 20px;
    margin: 0;
}

.highlight-list li {
    font-size: 1.1rem;
    line-height: 1.8; /* เพิ่มช่องไฟระหว่างบรรทัดให้อ่านง่าย */
    color: #333333;
    margin-bottom: 18px; /* ระยะห่างระหว่างข้อ 1, 2, 3 */
}

/* ดึงความเด่นให้หัวข้อย่อย */
.highlight-list li strong {
    color: #111111;
}



/*** ============ 
 ปรับแต่ง Pagination 
 ======================== ***/
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap; /* รองรับมือถือถ้าเลขหน้าเยอะ */
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    text-decoration: none;
    color: #ffffff;
    background-color: #2c2c2c; /* สีเทาเข้มเข้ากับ Dark Mode */
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination a.active {
    background-color: #d71920; /* สีแดงเน้นหน้าปัจจุบัน */
    border-color: #2c2c2c;
    color: #fff;
    cursor: default;
    pointer-events: none; /* กดซ้ำไม่ได้ */
}

/* เอฟเฟกต์ตอนเอาเมาส์ไปชี้ (Hover) */
.pagination a:hover {
    background-color: #d71920; /* สีแดงแบรนด์ SPOT24HRS */
    color: #fff;
    transform: translateY(-2px);
}

/* ปรับแต่งลูกศรให้ดูพิเศษหน่อย */
.pagination a:first-child, 
.pagination a:last-child {
    font-weight: bold;
    background-color: #1a1a1a;
}

/*** ===========================
 LATEST NEWS ข่าวล่าสุดรอบวัน
 =====================================***/
/* --- Latest News Grid Container --- */
.latest-news-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* --- ข่าวเด่น (Featured News) แบบแนวนอน --- */
.news-card.featured {
    display: grid;
    grid-template-columns: 1fr 1fr; /* ปรับสัดส่วนเป็น 50/50 เพื่อให้ดูเตี้ยลง */
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    max-height: 300px; /* ล็อคความสูงรวมของการ์ด */
}

.news-card.featured .card-img {
    height: 300px; /* ลดความสูงรูปจาก 400px เหลือ 320px */
    position: relative;
}

.news-card.featured .card-content {
    padding: 25px; /* ลด Padding ลงเพื่อให้เนื้อหากระชับ */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-card.featured h2 {
    font-size: 1.5rem; /* ลดขนาดฟอนต์หัวข้อลงเล็กน้อยให้รับกับความสูงใหม่ */
    margin: 10px 0;
    line-height: 1.4;
}

.news-card.featured p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    /* คุมบรรทัดเนื้อหาไม่ให้ยาวจนดันปุ่มหาย */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ปรับปุ่มให้ชิดขวาล่างตามดีไซน์เดิมที่คุณชอบ */
.news-card.featured .read-more {
    align-self: flex-end; 
    margin-top: auto;
}

/* --- โซนข่าวทั่วไป (Archive Grid) 2 คอลัมน์ --- */
.news-archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.news-archive-grid .news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.news-archive-grid .card-img {
    height: 220px;
    position: relative;
}

.news-archive-grid .card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-archive-grid h3 {
    font-size: 1.1rem;
    margin: 10px 0 20px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- องค์ประกอบย่อย (รูปภาพ, แท็ก, เวลา) --- */
.card-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: 0.5s;
}

.category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #E31B23;
    color: #fff;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.time {
    font-size: 0.85rem;
    color: #888;
}

/*** ================
 standings  
 ========================= ***/
.standings-container {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 50px;
    min-height: 600px; /* จองพื้นที่ไว้กันหน้ากระตุกเวลาโหลด */
}

.league-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    overflow-x: auto;
    padding-bottom: 10px;
    /* ซ่อน scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.league-selector::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.league-btn {
    padding: 8px 18px;
    background: #f4f4f4;
    border-radius: 50px; /* ทรงแคปซูลมนๆ จะเข้ากับหัวข้อข่าวมากกว่า */
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}


.league-btn:hover:not(.active) {
    background: #e0e0e0;
    color: #d71920;
    border-color: #eee;
}
        
.league-btn.active { background: #E31B23; color: #fff; }

.standings-container {
    background: #fff;
    padding: 15px; /* ลด padding ลงนิดหน่อยเพื่อให้ตารางมีพื้นที่กว้างขึ้น */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 50px;
    min-height: 600px;
    overflow: hidden; /* กันส่วนเกินของ Widget ล้นขอบมน */
}

/* คุมสไตล์ iframe หรือ div ที่ได้มาจากโค้ด Embed */
.standings-container iframe, 
.standings-container div {
    width: 100% !important; /* บังคับให้กว้างเต็มกล่องเสมอ */
    border: none !important;
}



/*** ================== 
 highlights 
 ============================ ***/
 .highlights-section {
    display: flex;
    flex-wrap: wrap; /* ยอมให้ตกบรรทัดได้เมื่อจอแคบมาก (Mobile) */
    gap: 30px;
    align-items: start;
}


.page-title-block h1 {
    font-size: 1.8rem;
    margin: 0;
    line-height: 1.1; /* ปรับให้ขีดหดลงมาพอดีหัวข้อ */
    color: #222;
    font-weight: 800;
    position: static; /* ป้องกันไม่ให้ ::before กลับมาแสดงผล */
}

.page-title-block span {
    display: block;
    font-size: 0.9rem;
    color: #d71920;
    margin-top: 2px;
    font-weight: 600;
    text-transform: uppercase;
}

.highlight-grid {
    flex: 1; /* กินพื้นที่ที่เหลือทางซ้าย */
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* วิดีโอ 2 คอลัมน์ตามที่คุณต้องการ */
    gap: 20px;
}

/* การ์ดวิดีโอ */
.hl-card {
    width: 100%; 
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.hl-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    cursor: pointer;
}

.hl-thumb img {
    width: 100%;
    height: 100%;
    /* เปลี่ยนจากคอนเทนต์ปกติเป็น cover */
    object-fit: cover; 
    /* จัดให้รูปอยู่กึ่งกลางเสมอ */
    object-position: center; 
    display: block;
    transition: 0.5s;
}

/* ป้องกันขอบดำที่อาจหลุดออกมาจากตัว container */
.hl-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #222; /* ใช้สีเทาเข้มแทนดำสนิทจะดูเนียนกว่า */
}

.hl-card:hover .hl-thumb img {
    transform: scale(1.05); /* รูปซูมเข้าเล็กน้อยตอน hover */
    opacity: 0.8;
}

/* ปุ่ม Play ตรงกลางรูป */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(215, 25, 32, 0.9); /* สีแดงประจำเว็บ */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: 0.3s;
}

.hl-card:hover .play-overlay {
    opacity: 1;
}

/* เวลาความยาววิดีโอ */
.hl-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 2px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
}

/* ส่วนรายละเอียดใต้รูป */
.hl-info {
    padding: 15px;
}

.hl-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-bottom: 8px;
    color: #888;
}

.hl-league {
    color: #888;
    font-weight: 600;
}

.hl-title {
    font-size: 1.05rem;
    line-height: 1.4;
    font-weight: 600;
    color: #222;
    /* คุมหัวข้อไม่ให้เกิน 2 บรรทัด */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hl-title a {
    text-decoration: none;
    color: #2c3e50; /* สีน้ำเงินเข้มดูพรีเมียม */
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease; /* ทำให้การเปลี่ยนสีดูนุ่มนวล */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* แสดงหัวข้อแค่ 2 บรรทัด */
    -webkit-box-orient: vertical;
}

/* สไตล์เมื่อเอาเมาส์ไปวาง (Hover) */
.hl-title a:hover {
    color: #e63946; /* เปลี่ยนเป็นสีแดงเมื่อ Hover */
    text-decoration: none;
}

/*** ==================
 MATCH SCHEDULE STYLES 
 =========================== ***/
.match-schedule {
    margin-top: 40px;
    margin-bottom: 40px;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.match-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
    border-top: 4px solid #E31B23; /* ใส่แถบสีแดงด้านบนให้ดูเท่ */
}

.match-card .league {
    font-size: 0.75rem;
    font-weight: bold;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.match-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.match-info .team {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 35%;
}

.match-info .team img {
    width: 45px;
    height: 45px;
    margin-bottom: 8px;
    object-fit: contain;
}

.match-info .team span {
    font-weight: bold;
    font-size: 0.95rem;
}

.match-info .time {
    background: #f8f8f8;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    color: #E31B23;
    font-size: 1.1rem;
    border: 1px solid #eee;
}

.stadium {
    font-size: 0.8rem;
    color: #999;
}


/* กำหนดรูปภาพพื้นหลังแยกตามคลาสที่คุณเขียนไว้ใน HTML */
/* ==========================================================================
   Categories Styling (Desktop & Global)
   ========================================================================== */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* จอใหญ่เรียงกัน 4 บล็อกพอดี */
    gap: 15px;
    width: 100%;
}

.cat-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ใส่แผ่นกรองแสงสีดำ เพื่อให้ตัวอักษรสีขาวโดดเด่นอ่านง่าย */
.cat-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    z-index: 1;
    transition: background 0.3s ease;
}

.cat-item span {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: bold;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* เอฟเฟกต์เมื่อเอาเมาส์ไปชี้ (Hover) */
.cat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.cat-item:hover::before {
    background: rgba(0, 0, 0, 0.2); /* สว่างขึ้นเล็กน้อยตอนชี้ */
}

/* --------------------------------------------------------------------------
   ผูกไฟล์รูปภาพเข้ากับคลาสตาม Slug ใน Database 
   (ตรวจสอบชื่อและที่อยู่ไฟล์ในโฟลเดอร์ assets/images/ ของคุณอีกครั้งนะครับ)
   -------------------------------------------------------------------------- */

/* 1. id: 1 | ข่าวฟุตบอล (football-news) -> ใช้ภาพนักเตะกำลังเลี้ยงบอล */
.cat-football-news {
    background-image: 
    linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)),
    url('../assets/images/player-market.jpg');
}

/* 2. id: 2 | ผลการแข่งขันฟุตบอล (football-results) -> ใช้ภาพถ้วยรางวัลและลูกบอล */
.cat-football-results {
    background-image: 
    linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)),
    url('../assets/images/football-tranfer.jpg');
}

/* 3. id: 3 | วิเคราะห์ฟุตบอล (football-analysis) -> ใช้ภาพลูกบอลบาเยิร์นบนสนามหญ้า */
.cat-football-analysis {
    background-image: 
    linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)),
    url('../assets/images/football-euro.jpg');
}

/* 4. id: 4 | ไทยลีก (thai-league) -> ใช้ภาพสตั๊ดสีแดงเหยียบลูกบอล */
.cat-thai-league {
    background-image: 
    linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)),
    url('../assets/images/thai-league.jpg');
}

/* =========================================
   สไตล์หน้าบทความ (Single Article Page)
   ========================================= */

/* Breadcrumb ทางนำชม */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap ; /* ปล่อยให้ขยับตามความกว้างจอได้อิสระ */
    font-size: 0.9rem; /* เพิ่มขนาดขึ้นเล็กน้อยให้อ่านง่ายเต็มตา */
    padding: 4px 0 !important;
    margin-bottom: 10px;
    color: #666666;
    width: 100%;
}

/* สไตล์ลิงก์เมนูนำทาง */
.breadcrumb a {
    color: #555555; /* เปลี่ยนเป็นสีเทาเข้มเพื่อให้ดูเรียบหรู ไม่แย่งซีนหัวข้อหลัก */
    text-decoration: none;
    white-space: nowrap;
    font-weight: 500;
}

/* ไฮไลต์สีแดงเฉพาะหมวดหมู่ย่อย (พรีเมียร์ลีก) ให้ดูเด่นสะดุดตา */
.breadcrumb a.breadcrumb-category {
    background: rgba(227, 27, 35, 0.08); /* พื้นแดงอ่อน */
    color: #e31b23; /* ตัวอักษรสีแดงหลักของเว็บ spot24hrs */
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
}

/* ไอคอนลูกศรระหว่างทาง */
.breadcrumb i {
    font-size: 0.65rem !important;
    color: #cccccc;
    margin: 0 8px !important;
}

/* หัวข้อข่าว */
.article-title {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #222;
}

.article-meta {
    margin-bottom: 25px;
    color: #888;
    font-size: 0.9rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.meta-item {
    margin-right: 15px;
}

/* รูปหลักและเนื้อหา */
.main-news-image {
    margin-bottom: 30px;
}

.main-news-image img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.article-entry {
    line-height: 1.8;
    color: #333;
    font-size: 1.1rem; /* ขนาดตัวอักษรอ่านง่ายสำหรับบทความ */
}

.article-entry p {
    margin-bottom: 20px;
}

.article-entry .lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: #000;
}

.article-entry h3 {
    font-size: 1.6rem;
    margin: 35px 0 15px;
    color: #222;
}

/* ส่วนแชร์ข่าว */
.share-article {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 2px solid #f4f4f4;
}

.share-btn {
    display: inline-block;
    padding: 8px 15px;
    margin-left: 10px;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
    font-size: 0.85rem;
}

.share-btn.fb { background: #3b5998; }
.share-btn.tw { background: #1da1f2; }


.article-title {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #1a1a1a;
    font-weight: 700;
}

.article-meta {
    margin-bottom: 25px;
    color: #888;
    font-size: 0.85rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.article-meta span {
    margin-right: 15px;
}

.main-news-image img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

.article-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
    margin-top: 25px;
}

.article-content p {
    margin-bottom: 20px;
}

/*** ================== 
 About Page Styling 
 ========================== ***/
.about-hero {
    padding: 60px 0 40px;
    text-align: center;
}

.about-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.about-hero h1 span {
    display: block;
    font-size: 1rem;
    color: #E31B23;
    letter-spacing: 2px;
}

.about-card {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.about-card .highlight {
    font-size: 1.3rem;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 20px;
    border-left: 4px solid #E31B23;
    padding-left: 15px;
}

/*** ================ 
 Contact Grid 
 ========================= ***/
.contact-container {
    padding: 60px 0;
    border-top: 1px solid #eee;
    margin-top: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #E31B23;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin-top: 25px;
}

.contact-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-list i {
    color: #E31B23;
    margin-right: 10px;
    width: 20px;
}

/*** ================ 
 Form Styles 
 ======================= ***/
.contact-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 15px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}

.submit-btn {
    background: #E31B23;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: 0.3s;
}

.submit-btn:hover {
    background: #1a1a1a;
}

/*** ================= 
 Privacy Mini 
 ========================= ***/
.privacy-mini {
    padding: 40px;
    background: #eee;
    border-radius: 10px;
    margin-bottom: 60px;
    font-size: 0.9rem;
    color: #666;
}

/*** ==================
 Contact Page Styling 
 ========================== ***/
.contact-header {
    text-align: center;
    padding: 60px 0 40px;
}

.contact-header h1 {
    font-size: 2.8rem;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.contact-header h1 span {
    display: block;
    font-size: 1rem;
    color: #E31B23;
    letter-spacing: 3px;
    font-weight: bold;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 80px;
}

/* Info Box Side */
.info-box {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.info-box i {
    font-size: 2rem;
    color: #E31B23;
    margin-bottom: 15px;
}

.info-box h3 {
    margin-bottom: 10px;
}

.social-connect {
    background: #1a1a1a;
    color: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

.social-links-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-item {
    width: 45px;
    height: 45px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.social-item:hover { transform: translateY(-5px); background: #E31B23; }

/*** ================
 Form Side 
 ========================= ***/
.contact-form-container {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.contact-form-container h2 {
    margin-bottom: 30px;
    border-bottom: 2px solid #f4f4f4;
    padding-bottom: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

input, textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #eee;
    background: #fdfdfd;
    border-radius: 8px;
    margin-bottom: 15px;
    font-family: inherit;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #E31B23;
}

.btn-submit {
    background: #E31B23;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}

.btn-submit:hover { background: #1a1a1a; }


/* ==========================
   หน้าเปรียบเทียบการแข่งขัน (VS Page)
   ============================================ */
/* คอนเทนเนอร์หลักบทวิเคราะห์ */
.vs-preview-container {
    display: flex;
    flex-direction: column; /* บังคับเรียงลงมาตามแนวตั้ง */
    gap: 20px;
    margin-top: 20px;
}

.vs-preview-block {
    width: 100%;
}

.vs-preview-block h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: #222;
    font-weight: 700;
}

.vs-preview-block h4 img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* ใส่แถบสีข้างหัวข้อเพื่อให้ดูแยกฝั่งง่ายขึ้น */
.vs-preview-block.home-side h4 { border-left: 4px solid #E31B23; padding-left: 12px; }
.vs-preview-block.away-side h4 { border-left: 4px solid #00a398; padding-left: 12px; }

.vs-preview-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin: 0;
}

/* เส้นคั่นกลางจางๆ */
.vs-preview-divider {
    border: 0;
    border-top: 1px solid #f0f0f0;
    margin: 10px 0;
}

.match-vs-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #fff;
    padding: 30px 20px;
    border-radius: 20px;
    margin-bottom: 30px;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.match-info-top {
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffcc00;
    margin-bottom: 30px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.vs-battle-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.vs-team {
    flex: 1;
    text-align: center;
}

.vs-team img {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
}

.vs-team h2 {
    font-size: 1.8rem;
    margin: 15px 0;
}

.vs-center {
    flex: 0.5;
    text-align: center;
}

.vs-badge {
    background: #d71920;
    font-size: 2rem;
    font-weight: 800;
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block;
    transform: skewX(-10deg);
}

.match-stadium {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #ccc;
}

/* ฟอร์ม 5 นัดหลังสุด (W D L) */
.form-indicators {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
}

.form-indicators span {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #fff;
}

.form-indicators .w { background: #28a745; }
.form-indicators .d { background: #ffc107; color: #000; }
.form-indicators .l { background: #dc3545; }

/* การ์ดข้อมูล */
.vs-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.vs-card h3 {
    border-bottom: 2px solid #f4f4f4;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #d71920;
}

.h2h-table {
    width: 100%;
    border-collapse: collapse;
}

.h2h-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.h2h-table td:last-child {
    text-align: right;
    font-weight: 500;
}

/* กล่องวิดีโอวิเคราะห์ */
.analysis-video-box {
    border-top: 4px solid #d71920; /* เพิ่มขอบสีแดงด้านบนให้ดูเด่น */
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* อัตราส่วน 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
    margin-bottom: 15px;
}

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

.video-caption {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    border-left: 3px solid #eee;
    padding-left: 10px;
}

/* คอนเทนเนอร์หลักของ Lineup */
.lineup-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    background: #fcfcfc;
    padding: 20px;
    border-radius: 12px;
    position: relative;
}

.lineup-column {
    flex: 1;
}

.team-badge-small {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.team-badge-small img {
    width: 30px;
    height: 30px;
}

.team-badge-small span {
    font-weight: bold;
    font-size: 1rem;
    color: #333;
}

/* รายชื่อนักเตะ */
.player-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.player-list li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: #555;
    display: flex;
    align-items: center;
    border-bottom: 1px dashed #eee;
}

.home-lineup li { justify-content: flex-start; }
.away-lineup li { justify-content: flex-end; text-align: right; }

/* เบอร์เสื้อ */
.p-num {
    background: #eee;
    color: #333;
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    margin: 0 10px;
}

.home-lineup .p-num { order: -1; margin-left: 0; }
.away-lineup .p-num { order: 1; margin-right: 0; }

/* เส้นคั่นกลาง */
.lineup-vs-divider {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    color: #ddd;
    font-weight: 900;
    font-size: 2rem;
    padding: 10px;
    z-index: 1;
}

.away-lineup {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important; /* ดันก้อนเนื้อหาทั้งหมดไปขวา */
    width: 100% !important;
}

/* 2. บังคับให้หัวข้อทีมยืดเต็มและชิดขวา */
.away-lineup .team-badge-small {
    display: flex !important;
    justify-content: flex-end !important;
    width: 100% !important; 
    text-align: right !important;
}

/* 3. รายชื่อนักเตะ: ทำให้แต่ละแถวยืดเต็มพื้นที่ แล้วดันชื่อกับเบอร์ไปขวาสุด */
.away-lineup .player-list {
    width: 100% !important;
}

.away-lineup .player-list li {
    display: flex !important;
    justify-content: flex-end !important; /* ชิดขวาสุดแบบรูปสถิติ */
    width: 100% !important;
    gap: 12px;
    flex-direction: row !important; /* ชื่ออยู่ซ้าย เลขอยู่ขวา */
}

/* 4. จัดการเบอร์เสื้อให้อยู่ตำแหน่งสุดท้าย */
.away-lineup .p-num {
    order: 2 !important; /* มั่นใจว่าเบอร์อยู่หลังชื่อ */
    margin: 0 !important;
}

.text-end {
  text-align: right;
}

/* คอนเทนเนอร์หลัก */
.lineup-wrapper {
    display: flex;
    flex-wrap: wrap; /* ให้ขึ้นบรรทัดใหม่บนมือถือ */
    gap: 20px;
    width: 100%;
    padding: 15px;
}

/* ตั้งค่าพื้นฐานของแต่ละฝั่ง */
.team-lineup {
    flex: 1; /* แบ่งพื้นที่เท่ากันบน Desktop */
    min-width: 300px; /* บังคับขึ้นบรรทัดใหม่ถ้าจอแคบกว่า 300px (ในมือถือ) */
}

.team-lineup p {
    margin: 5px 0;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    font-size: 15px;
}

.lineup-simple {
    width: 100%;
    max-width: 700px; /* คุมความกว้างให้พอดีสายตา */
    margin: 0 auto;
    padding: 20px;
    background: #fff;
}

.team-block {
    margin-bottom: 20px;
}

.team-block h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-block p {
    margin: 8px 0;
    padding: 5px 0;
    border-bottom: 1px dashed #f0f0f0;
    font-size: 1rem;
}

.lineup-content {
    max-width: 100%;
    margin: 10px 0;
}

.team-section {
    padding: 15px;
    margin-bottom: 25px; /* เว้นระยะห่างระหว่างสองทีม */
    background: #fff;
}

.team-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333; /* เส้นใต้หัวข้อทีม */
}

.team-section p {
    margin: 8px 0;
    padding: 8px 0;
    border-bottom: 1px dashed #eee; /* เส้นประคั่นแต่ละตำแหน่ง */
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
}

/* ตกแต่งสีหัวข้อตามทีม (ถ้าต้องการ) */
.arsenal-border .team-title { border-color: #ef0107; color: #ef0107; }
.liverpool-border .team-title { border-color: #c8102e; color: #c8102e; }

/* ทำให้ตัวหนาดูเด่นขึ้น */
.team-section strong {
    color: #555;
    display: inline-block;
    min-width: 70px; /* จัดให้หัวข้อ GK, กองหลัง ตรงกัน */
}

/* คอนเทนเนอร์หัวข้อ */
.team-title {
    display: flex;
    align-items: center; /* จัดให้รูปกับข้อความอยู่กึ่งกลางแนวนอนร่วมกัน */
    gap: 10px;           /* ระยะห่างระหว่างข้อความกับรูป */
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: #c8102e;      /* สีแดงลิเวอร์พูล */
}

/* แยก CSS ของรูปออกมา */
.team-logo {
    width: 25px;         /* ปรับขนาดความกว้างที่นี่ */
    height: auto;        /* ให้ความสูงปรับตามสัดส่วน */
    object-fit: contain; /* ป้องกันรูปเบี้ยว */
    
    /* กรณีต้องการให้รูปดูเด่นขึ้น (เงาจางๆ) */
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.1)); 
}

hr {
    border: 0;
    border-top: 1px dashed #ddd; /* เส้นประสีเทาอ่อน */
    margin: 25px 0;             /* ระยะห่าง บน-ล่าง */
    height: 0;
}


/*** ========================
  FOOTER STYLES 
  =========================================== ***/
.main-footer {
    background: #1a1a1a; /* สีดำเข้ม */
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* แบ่งพื้นที่: เกี่ยวกับเรากว้างกว่าเพื่อน */
    gap: 40px;
    padding-bottom: 40px;
}

.footer-about .logo {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer-about p {
    color: #ccc;
    line-height: 1.6;
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.2rem;
    border-left: 3px solid #E31B23;
    padding-left: 10px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

/* ใส่ขีดแดงใต้หัวข้อใน Footer */
.footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: #E31B23;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
    transition: 0.3s;
}

.footer-links ul li a:hover {
    color: #E31B23;
    padding-left: 5px;
}


.footer-contact p {
    color: #bbb;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    background: #444;
    color: #fff;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 0.8rem;
    transition: 0.3s;
}

.social-icons a:hover {
    background: #E31B23;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid #333;
    color: #777;
    font-size: 0.9rem;
}


/* =========================================
   [2] ส่วนควบคุม Responsive (Media Query)
   ========================================= */
@media (max-width: 1024px) {
    .swiper-slide {
        height: 450px; /* ลดความสูงลงเล็กน้อยให้พอดีจอ Tablet */
        padding: 30px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem; /* ลดขนาดหัวข้อลง */
    }

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

    .hamburger {
        display: flex; /* แสดงปุ่ม 3 ขีด */
    }

    /* ตัวเมนูที่จะเลื่อนลงมา */
    #nav-menu {
        display: block; /* เปิดไว้เพื่อให้ Animation ทำงาน */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        border-bottom: 2px solid #E31B23;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        
        /* สั่งให้เริ่มต้นซ่อนแบบเลื่อนขึ้น */
        max-height: 0; 
        overflow: hidden;
        opacity: 0;
        transition: all 0.5s ease-in-out; /* ความนุ่มนวลในการเลื่อน */
    }

    /* เมื่อกดปุ่มแล้วสั่งเลื่อนลง */
    #nav-menu.show {
        max-height: 500px; /* ความสูงโดยประมาณของเมนู */
        opacity: 1;
    }

    #nav-menu ul {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    #nav-menu ul li {
        margin: 15px 0;
    }

    #nav-menu ul li a {
        margin-left: 0;
        font-size: 1.2rem;
    }

    /* ปรับขนาด Logo และ Header ในมือถือ */
    .logo { font-size: 1.5rem; }
    header { padding: 10px 0; }
    .live-ticker { font-size: 0.8rem; }

    /* Animation ปุ่มแฮมเบอร์เกอร์เป็นรูป X */
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}



@media screen and (max-width: 480px) {
    /* ปรับ Layout ข่าวให้เป็นแนวตั้ง */
    .news-container {
        display: grid;
        grid-template-columns: 1fr; /* แถวเดียว */
        gap: 15px;
        padding: 10px;
    }

    .news-card {
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .news-card img {
        width: 100%;
        height: 200px;
        object-fit: cover; /* ให้รูปไม่เบี้ยว */
    }

    .news-content {
        padding: 15px;
    }

    .news-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
        color: #222;
    }

    /* ปรับแต่งสำหรับมือถือ */
    .match-info .team span {
        font-size: 0.8rem;
    }
    .match-info .time {
        font-size: 0.9rem;
        padding: 5px 10px;
    }

}


/* ==========================================================================
   Mobile Responsive Styles (max-width: 768px)
========================================================================== */
@media (max-width: 768px) {
    /* 1. Global Container & Layout Setup */
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box;
    }
    
    main.container {
        display: flex;
        flex-direction: column;       /* บังคับทุกอย่างเรียงจากบนลงล่าง */
        gap: 25px;                    /* ระยะห่างระหว่างเซกชัน */
    }

    /* 1. คุมทุกเซกชันหลักบนหน้าแรกให้เว้นจากขอบจอ 15px เท่ากัน */
    .hero.container,
    .breaking-news .container,
    .video-section.container,
    .categories.container.tv-guide, {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 2. ปรับตัวสไลเดอร์ให้กว้างเต็มกล่องที่เว้นระยะแล้ว */
    .main-slider {
        width: 100% !important;
        border-radius: 12px; /* ทำขอบมนให้ดูทันสมัยเข้ากับธีมเว็บ */
        overflow: hidden;
    }

    /* 3. ปรับหัวข้อข่าวล่าสุดให้ขยับเข้ามาตรงกับเพื่อน */
    .title-container {
        padding-left: 10px !important; /* ปลด padding เดิมออกเพราะตัว container คุมให้แล้ว */
        margin-top: 20px;
        margin-bottom: 15px;
    }

    .main-slider, 
    .hero .swiper-slide {
        height: 230px !important;    /* 👈 เพิ่มความสูงจาก 240px เป็น 280px เพื่อให้มีพื้นที่โชว์เนื้อหา */
        background-size: cover;    
        background-position: center; 
        background-repeat: no-repeat;
    }


    /* 2. Hero Swiper Slider (ปรับปรุงใหม่) */
    .hero.container {
        padding-left: 0 !important;  /* ให้ตัวสไลด์ชิดขอบจอไปเลยจะดูเต็มตาขึ้น */
        padding-right: 0 !important;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        justify-content: flex-end; /* ดันเนื้อหาทั้งหมดลงไปกองด้านล่าง */
        height: 100%;
        width: 100%;
        box-sizing: border-box;
        text-align: left;
    }

    
    /* หัวข้อข่าวภายในสไลด์ */
    .hero-content h2 {
        font-size: 1.2rem !important; /* ขนาดกำลังพอดีคำสำหรับหน้าจอมือถือ */
        margin: 6px 0 !important;
        line-height: 1.4 !important;
        color: #ffffff !important;
        font-weight: bold;
        word-wrap: break-word;        /* สั่งให้ตัดคำเมื่อสุดหน้าจอ */
        overflow-wrap: break-word;
        display: -webkit-box;
        -webkit-line-clamp: 2;        /* 👈 แสดงผลได้สูงสุด 2 บรรทัด (ถ้าเกินจะตัดเป็น ...) */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* รายละเอียดข่าวย่อย */
    .hero-content p {
        font-size: 0.85rem !important;
        color: #dddddd !important;
        line-height: 1.4;
        margin: 0 0 12px 0 !important;
        display: -webkit-box;
        -webkit-line-clamp: 1;        /* แสดงแค่บรรทัดเดียวพอ เพื่อประหยัดพื้นที่ */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* ป้ายหมวดหมู่ข่าว */
    .badge {
        display: inline-block !important; /* เปลี่ยนจาก center/flex มาเป็นบล็อกปกติ */
        width: auto !important;           /* 👈 ปลดล็อกความกว้าง 15% ออก เพื่อไม่ให้ป้ายโดนบีบเบี้ยว */
        align-self: flex-start;          /* บังคับให้กว้างเท่าเนื้อหาคำว่า NEWS พอดี */
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
        margin-bottom: 8px !important;
        border-radius: 4px;
        text-align: center;
    }

    /* ปุ่มอ่านบทวิเคราะห์ */
    .hero-content .btn-main {
        padding: 6px 14px !important; /* เพิ่มพื้นที่กดให้ง่ายขึ้นบนมือถือ */
        font-size: 0.85rem !important;
        align-self: flex-start;       /* ปุ่มกว้างเท่าตัวอักษร ไม่ขยายเต็มจอ */
        border-radius: 5px;
    }

    /* ซ่อนหรือลดขนาดปุ่มลูกศรซ้าย-ขวาบนมือถือเพื่อไม่ให้บังตัวหนังสือมากเกินไป */
    .hero .swiper-button-next,
    .hero .swiper-button-prev {
        transform: scale(0.7); /* ย่อขนาดลูกศรลง 30% */
        opacity: 0.7;          /* โปร่งแสงนิดๆ จะได้ไม่บังเนื้อหาหลัก */
    }

    /* 4. แถบข่าวด่วน (Ticker) ปรับพื้นหลังขาวให้โมเดิร์นขึ้นและตรงแนว */
    .breaking-news {
        background: transparent !important; /* ปลดพื้นหลังเดิมถ้ามันดันล้น */
        width: 100% !important;
    }

    /* 3. Breaking News Ticker */
    .breaking-news .container {
        display: flex;
        flex-direction: column; /* แยกป้าย 'ข่าวด่วน' กับตัววิ่งให้อยู่คนละบรรทัด หรือต่อกัน */
        align-items: flex-start;
        gap: 5px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .breaking-news .label {
        width: auto;
        padding: 4px 8px;
        font-size: 0.85rem;
    }

    /* 4. Main Grid Area (News List + Sidebar) */
    .main-grid {
        display: flex;
        flex-direction: column; /* ถอด Grid/Flex ด้านข้างออก แล้วจับเรียงดิ่งลงมา */
        width: 100%;
        gap: 30px;
        padding: 0; /* ใส่ padding แทนตัว main ใหญ่ */
        box-sizing: border-box;
    }
    
    .news-list, 
    aside.sidebar { /* สมมติว่าในไฟล์ sidebar.php ครอบด้วย tag aside หรือคลาส sidebar */
        width: 100% !important; 
    }

    /* 5. News Items (รายการข่าวสาร) */
    .news-item {
        display: flex;
        flex-direction: column; /* รูปอยู่บน เนื้อหาอยู่ล่าง เพื่อความกว้าง 100% เต็มตา */
        gap: 12px;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid #eee;
        padding: 10px;
    }
    
    .news-thumb {
        width: 100% !important;
        height: 200px; /* กำหนดความสูงรูปภาพให้สมดุล */
        overflow: hidden;
        border-radius: 8px;
    }
    
    .news-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .news-info {
        width: 100% !important;
        padding: 0;
    }
    
    .news-title {
        font-size: 1.15rem;
        margin-bottom: 6px;
    }

    /* =============== 
    matches ตารางแข่งขัน
    ========================== */    
    /* 1. จัดโครงสร้างภาพรวม (Archive Layout) */
    .archive-layout {
        display: flex;
        flex-direction: column; /* เปลี่ยนจากเรียงซ้าย-ขวา เป็นเรียงบน-ล่าง */
        gap: 25px;
    }

    .tv-guide-content, 
    .sidebar {
        width: 100% !important; /* บังคับให้คอนเทนต์หลักและไซด์บาร์กว้างเต็มจอ */
    }

    /* ย้าย Sidebar ลงไปด้านล่างคอนเทนต์หลัก */
    .sidebar {
        order: 2; 
    }
    .tv-guide-content {
        order: 1;
    }

    /* 2. การ์ดโปรแกรมบอล (Live Card) */
    .live-card {
        display: flex;
        flex-direction: column; /* ยุบจากแนวนอนยาวๆ ให้เรียงเป็นแนวตั้ง */
        align-items: center;
        text-align: center;
        padding: 15px;
        gap: 12px;
        position: relative;
        border-radius: 8px;
    }

    /* จัดระเบียบแถวบน: เวลา และ ลีก */
    .live-time {
        font-size: 1.1rem;
        font-weight: bold;
    }
    
    .live-league {
        font-size: 0.85rem;
        padding: 3px 10px;
        border-radius: 20px;
    }

    /* 3. ส่วนคู่แข่งขัน (Live Match) */
    .live-match {
        display: flex;
        flex-direction: row; /* คงความเป็นแนวนอนไว้แต่ปรับสัดส่วน */
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 320px; /* จำกัดความกว้างไม่ให้แผ่กระจายเกินไป */
        margin: 5px 0;
    }

    /* กล่องข้อมูลทีม 1 และ ทีม 2 */
    .team-info {
        display: flex;
        flex-direction: column; /* เปลี่ยนให้โลโก้อยู่บน ชื่อทีมอยู่ล่าง เพื่อประหยัดพื้นที่ */
        align-items: center;
        flex: 1;
        gap: 6px;
    }

    .team-info .team {
        font-size: 0.9rem;
        font-weight: 500;
        word-break: break-word; /* ป้องกันชื่อทีมยาวแล้วหลุดขอบ */
        text-align: center;
    }

    .logo-wrapper img {
        width: 40px; /* ปรับขนาดโลโก้ทีมให้พอดีกับจอมือถือ */
        height: 40px;
        object-fit: contain;
    }

    /* ตรงกลาง: VS หรือ สกอร์ area */
    .match-vs-area {
        min-width: 60px;
        text-align: center;
    }

    .match-vs-area .vs {
        background-color: #e50914; /* สีแดงสปอร์ต (ปรับรหัสสีได้ตามชอบ) */
        color: #ffffff;            /* ปรับตัวอักษรเป็นสีขาวเพื่อให้ตัดกับพื้นหลัง */
        padding: 4px;         /* เพิ่มระยะขอบด้านใน */
        border-radius: 20px;       /* ทำขอบให้มนเป็นทรงแคปซูล */
        font-weight: bold;
        display: inline-block;     /* บังคับให้บ็อกซ์ขยายตาม Padding */
        box-shadow: 0 2px 5px rgba(229, 9, 20, 0.3); /* ใส่เงาสีแดงจางๆ ให้ดูมีมิติ */
    }

    .match-vs-area .score-area {
        font-size: 1.3rem; /* เน้นตัวเลขสกอร์ให้เห็นชัดเจน */
        font-weight: 800;
        letter-spacing: 2px;
    }

    /* 4. ช่องถ่ายทอดสดและสนามกีฬา (Live Channel) */
    .live-channel {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        font-size: 0.85rem;
        opacity: 0.9;
    }

    .live-channel img {
        height: 18px; /* ปรับขนาดไอคอนช่องถ่ายทอดสด (Monomax) ให้พอดี */
        width: auto;
    }

    /* 5. ปุ่มวิเคราะห์บอล (Analysis Button) */
    .analysis-btn {
        width: 100%; /* ปรับให้ปุ่มแผ่เต็มความกว้างของการ์ด กดง่ายด้วยนิ้วโป้งบนมือถือ */
        padding: 10px;
        text-align: center;
        font-size: 0.95rem;
        border-radius: 6px;
        display: block;
    }

    /* 6. ส่วนของ Sidebar (ช่องถ่ายทอดสดหลัก & บทวิเคราะห์) */
    .channel-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* บนมือถือให้เรียง 4 ช่องต่อ 1 แถวพอดีๆ */
        gap: 10px;
        justify-items: center;
    }

    .ch-icon img {
        width: 100%;
        max-width: 50px; /* จำกัดขนาดโลโก้ช่องในไซด์บาร์ */
        height: auto;
    }
    
    .trending-news li a p {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    /* 🎯 สั่งให้ทั้งทีมแรกและทีมสอง เรียงเป็นแนวตั้งบนลงล่างเหมือนกันเป๊ะ */
    .live-match .team-info:first-child,
    .live-match .team-info:last-child {
        flex-direction: column !important; /* 👈 บังคับเปลี่ยนเป็นแนวตั้ง */
        justify-content: center !important;
        text-align: center !important;
        gap: 6px !important;               /* ระยะห่างระหว่างโลโก้กับชื่อทีมบนมือถือ */
        width: auto !important;
    }



    /* =============== 
    Match VS Header 
    ========================== */
.match-vs-header {
    background: linear-gradient(135deg, #1f1f1f 0%, #111111 100%);
    border-radius: 12px;
    padding: 10px;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    border: 1px solid #2a2a2a;
    margin: 15px auto;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Prompt', sans-serif;
}

/* ลีก / วันที่ / เวลา (ย่อเล็กเพื่อประหยัดพื้นที่ดิ่ง) */
.match-info-top {
    font-size: 0.75rem;
    color: #cccccc;
    background: rgba(255, 255, 255, 0.08);
    display: inline-block;
    padding: 3px 12px;
    border-radius: 15px;
}

/* แถวจัดวางแนวนอนบนมือถือ */
.vs-battle-row {
    display: flex;
    flex-direction: row !important; /* บังคับให้อยู่แนวนอน ไม่แตกแถว */
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    width: 100%;
}

/* กล่องฝั่งทีมเหย้าและทีมเยือน */
.vs-team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 35%; /* แบ่งพื้นที่ซ้าย-ขวาให้เท่ากัน */
}

/* โลโก้ทีมบนมือถือ ห้ามใหญ่เกินไป */
.vs-team img {
    width: 48px !important;
    height: 48px !important;
    object-fit: contain;
}

/* ชื่อทีม ย่อขนาดให้พอดีจอ ไม่ล้นตัดบรรทัด */
.vs-team h2 {
    font-size: 0.9rem !important;
    font-weight: bold;
    margin: 0 !important;
    color: #ffffff;
    white-space: nowrap; /* ล็อกไม่ให้ชื่อทีมหักลงมาเป็น 2 บรรทัด */
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 100%;
}

/* 📊 จุดฟอร์ม 5 นัดหลังสุด (ย่อให้เล็กพอดีจอมือถือ) */
.form-indicators {
    display: flex;
    gap: 2px;
    margin-top: 2px;
}
.form-indicators span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    font-size: 0.6rem;
    font-weight: bold;
    border-radius: 3px;
    color: #ffffff;
}

/* 📊 จุดฟอร์ม 5 นัดหลังสุด (ปรับระยะห่างเพิ่มขึ้น) */
.form-indicators {
    display: flex;
    gap: 4px; /* 👈 เพิ่มระยะห่างระหว่างตัวอักษรแต่ละช่องเป็น 4px */
    margin-top: 2px;
}

.form-indicators span.w { background-color: #2e7d32; } /* ชนะ - เขียว */
.form-indicators span.d { background-color: #f5f5f5; } /* เสมอ - ส้ม */
.form-indicators span.l { background-color: #c62828; } /* แพ้ - แดง */


/* กล่องตรงกลาง (VS + สนาม) */
.vs-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 30%; /* พื้นที่กล่องกลาง */
    gap: 4px;
}

/* ป้ายสีแดง VS ตรงกลาง */
.vs-badge {
    background: #e31b23; /* สีแดงสปอร์ตประจำเว็บ */
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 900;
    font-style: italic;
    padding: 3px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(227, 27, 35, 0.3);
}

/* ชื่อสนามแข่ง */
.match-stadium {
    font-size: 0.65rem;
    color: #aaaaaa;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 100%;
}
   
/* จัดเลย์เอาต์หลักให้เรียงดิ่ง 100% และกระชับพื้นที่ */
.archive-layout {
    display: flex;
    flex-direction: column !important;
    gap: 20px !important;
    width: 100%;
    box-sizing: border-box;
}

.vs-main-content,
.sidebar {
    width: 100% !important; /* บังคับให้ทั้งเนื้อหาและไซด์บาร์เต็มจอ */
}

/* Breadcrumb นำทางบนมือถือ */
.breadcrumb {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important; /* ปล่อยให้ขยับตามความกว้างจอได้อิสระ */
    font-size: 0.85rem !important; /* เพิ่มขนาดขึ้นเล็กน้อยให้อ่านง่ายเต็มตา */
    padding: 4px 0 !important;
    margin-bottom: 10px !important;
    color: #666666;
    width: 100%;
}

/* สไตล์ลิงก์เมนูนำทาง */
.breadcrumb a {
    color: #555555; /* เปลี่ยนเป็นสีเทาเข้มเพื่อให้ดูเรียบหรู ไม่แย่งซีนหัวข้อหลัก */
    text-decoration: none;
    white-space: nowrap;
    font-weight: 500;
}

/* ไฮไลต์สีแดงเฉพาะหมวดหมู่ย่อย (พรีเมียร์ลีก) ให้ดูเด่นสะดุดตา */
.breadcrumb a.breadcrumb-category {
    background: rgba(227, 27, 35, 0.08); /* พื้นแดงอ่อน */
    color: #e31b23; /* ตัวอักษรสีแดงหลักของเว็บ spot24hrs */
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
}

/* ไอคอนลูกศรระหว่างทาง */
.breadcrumb i {
    font-size: 0.65rem !important;
    color: #cccccc;
    margin: 0 8px !important;
}

/* หัวข้อบทความหลัก (H1) ลดขนาดให้พอดีจอ ไม่เยื้องล้น */
.article-title {
    font-size: 1.4rem !important;
    line-height: 1.3 !important;
    font-weight: bold;
    color: #111111;
    margin: 8px 0 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ข้อมูลผู้เขียนและวันที่ */
.article-meta {
    display: flex;
    gap: 12px;
    color: #777777;
    font-size: 0.75rem !important;
    margin-bottom: 15px;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 10px;
}

/* กล่องการ์ดเนื้อหา (ความพร้อม, H2H, 11ตัวจริง, ฟันธง) */
.vs-card {
    background: #ffffff;
    border-radius: 8px !important;
    padding: 15px 12px !important; /* ลด padding ด้านในเพื่อไม่ให้บีบตัวหนังสือแคบ */
    margin-bottom: 15px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #ececec;
    box-sizing: border-box;
}

/* หัวข้อจำพวกวิเคราะห์ความพร้อม, สถิติการพบกัน (H3) */
.vs-card h3 {
    font-size: 1.1rem !important;
    margin-top: 0;
    margin-bottom: 15px !important;
    border-left: 4px solid #e31b23;
    padding-left: 8px !important;
    font-weight: bold;
    color: #111111;
}

/* ⚔️ โซนวิเคราะห์ความพร้อมเหย้า-เยือน */
.vs-preview-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vs-preview-block h4 {
    font-size: 1rem !important;
    font-weight: bold;
    margin-bottom: 10px !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* โลโก้ทีมในหัวข้อความพร้อม */
.vs-preview-block h4 img {
    width: 24px !important;
    height: 24px !important;
    object-fit: contain;
}

.vs-preview-content p {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    color: #333333;
    margin-bottom: 12px;
}

/* รายการเงื่อนไข/สถิตย่อย (Match List) */
.match-list {
    padding-left: 0px !important;
    margin: 10px 0 !important;
}
.match-list li {
    font-size: 0.85rem !important;
    line-height: 1.5;
    color: #444444;
    margin-bottom: 8px;
}

/* เส้นคั่นประธานความพร้อม */
.vs-preview-divider {
    border: 0;
    border-top: 1px dashed #dddddd;
    margin: 12px 0 !important;
}

/* 📊 ตารางสถิติ H2H บนมือถือ */
.h2h-table {
    width: 100% !important;
}
.h2h-table tr {
    border-bottom: 1px solid #f8f8f8;
}
.h2h-table td {
    padding: 8px 4px !important;
    font-size: 0.85rem !important;
}
.h2h-table td:first-child {
    color: #888888;
    width: 65px; /* ล็อกความกว้างคอลัมน์วันที่ไม่ให้ดันผลบอล */
}
.h2h-table td:last-child {
    font-weight: bold;
    color: #222222;
}

/* 👥 กล่อง 11 ตัวจริง และ แผงฟันธงบทสรุป */
.team-block h3.team-title {
    font-size: 1rem !important;
    border-left: none !important;
    padding-left: 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}
.team-block h3.team-title img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.team-block p {
    font-size: 0.85rem !important;
    line-height: 1.5;
    margin: 4px 0 !important;
}

/* สกอร์ที่คาดตอนฟันธง */
    .score-result {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        font-size: 1rem !important;
        font-weight: bold;
        margin-top: 10px;
    }

    .score-num {
        background: #e31b23;
        color: #ffffff;
        padding: 4px 12px;
        border-radius: 5px;
        font-size: 1.2rem !important;
        font-weight: 900;
    }

    /* =============== 
    Video Highlights Section 
    ========================== */
    .video-section.container {
        padding: 0 !important;
    }
    
    .video-grid {
        display: flex;
        flex-direction: column; /* ซ้าย (คลิปใหญ่) กับ ขวา (คลิปเล็ก) เรียงต่อกันลงมา */
        gap: 20px;
    }
    
    .video-left, 
    .video-right {
        width: 100% !important;
    }
    
    /* ควบคุมอัตราส่วนวิดีโอ YouTube (16:9) ไม่ให้เบี้ยวบนมือถือ */
    .video-card {
        position: relative;
        padding-bottom: 56.25%; /* อัตราส่วน 16:9 Aspect Ratio */
        height: 0;
        overflow: hidden;
        margin-bottom: 8px;
        border-radius: 8px;
    }
    
    .video-card iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        border: 0;
    }
    
    .video-title {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    /* 7. Categories Grid (หมวดหมู่แนะนำ) */
    .categories.container {
        padding: 0 !important;
    }
    
    .cat-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* บนมือถือแบ่งเป็น 2 คอลัมน์คู่กันกำลังสวย ไม่ยาวเกินไป */
        gap: 10px;
    }
    
    .cat-item {
        height: 80px; /* ปรับขนาดกล่องหมวดหมู่ให้กะทัดรัดขึ้น */
        font-size: 1rem;
    }
    
    /* 8. Title Components */
    .title-container {
        margin-bottom: 15px;
    }
    
    .title-container h1, 
    .title-container h2 {
        font-size: 1.3rem;
    }

    /*** ======================
     LATEST NEWS
     ====================== ***/
    .news-card.featured {
        display: flex;
        flex-direction: column;   /* เรียงรูปไว้บน ข้อความไว้ล่าง */
        height: auto !important;   /* 👈 ปลดล็อกให้กล่องยืดความยาวลงมาตามเนื้อหาได้อิสระ */
        max-height: none !important; /* ปลดล็อกเผื่อมีคำสั่ง max-height ค้างอยู่ */
        background: #ffffff;
        border-radius: 12px;
        overflow: hidden;         /* เก็บไว้ตัดขอบมนๆ ตรงสี่มุมของการ์ด */
    }

    /* 2. กล่องรูปภาพ: จุดนี้แหละที่เราต้อง "จำกัดความยาว" เพื่อไม่ให้รูปใหญ่เกินไป */
    .news-card.featured .card-img {
        position: relative;
        width: 100% !important;
        height: 200px !important;  /* 👈 จำกัดความสูงเฉพาะรูปภาพไว้ที่ 200px พอดีคำ */
        overflow: hidden;         /* ตัดรูปส่วนที่เกิน 200px ทิ้งไป (ไม่ให้ล้นไปทับข้อความ) */
    }

    /* 3. แท็กรูปภาพด้านในกล่องรูปภาพ */
    .news-card.featured .card-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;        /* สั่งให้รูปย่อตัวลงมาพอดีบล็อก 200px โดยไม่เสียสัดส่วน */
        object-position: center;
    }

    /* 4. กล่องข้อความด้านล่าง: ปล่อยให้มันกว้างยาวตามขนาดตัวหนังสือได้เลย */
    .news-card.featured .card-content {
        padding: 15px;
        width: 100% !important;
        height: auto !important;   /* ปล่อยให้ยืดตามความยาวของหัวข้อข่าว */
        box-sizing: border-box;
    }

    /* ป้ายแท็กหมวดหมู่ (เช่น Highlight) บนมือถือ */
    .news-card.featured .category-tag {
        position: absolute;
        top: 12px;
        left: 12px;
        padding: 4px 10px;
        font-size: 0.75rem;     /* ลดขนาดให้กระชับขึ้น */
        font-weight: bold;
        border-radius: 4px;
        z-index: 2;
    }

    /* วันเวลาที่อัปเดต */
    .news-card.featured .card-content .time {
        font-size: 0.8rem;
        color: #777777;
    }

    /* หัวข้อข่าว (H2) */
    .news-card.featured .card-content h2 {
        font-size: 1.25rem;
        line-height: 1.4;
        margin: 8px 0;
        color: #111111;
    }

    /* รายละเอียดเรื่องย่อ (P) */
    .news-card.featured .card-content p {
        font-size: 0.9rem;
        line-height: 1.6;
        color: #555555;
        margin-bottom: 15px;
    }

    /* ลิงก์ปุ่มกด "อ่านข่าวนี้" */
    .news-card.featured .card-content .read-more {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 0.85rem;
        font-weight: bold;
        text-decoration: none;
        margin-top: 5px;
        align-self: flex-start; /* บังคับให้ปุ่มกว้างเท่าตัวหนังสือ ไม่ขยายยาวเต็มจอ */
    }

    .news-archive-grid {
        grid-template-columns: 1fr; /* ข่าวทั่วไปเหลือ 1 คอลัมน์ */
    }

    /*** =================
     button Styling มือถือ
     =========================***/
    .read-more {
        display: inline-flex;
        align-items: center;
        background: #e31b23;
        color: #fff !important;
        padding: 8px 15px;
        border-radius: 5px;
        text-decoration: none;
        font-weight: bold;
        gap: 8px;
    }

    /*** =============== 
    About Page Styling 
    ============================ ***/
    .contact-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .about-card {
        padding: 20px;
    }


    /*** =================
      Contact Page Styling 
    =============================== */
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .form-row {
        grid-template-columns: 1fr;
        padding: 20px;
    }


    /***
     Footer
     ====================== ***/
    .footer-grid {
        /* เปลี่ยนจาก 3 คอลัมน์ เป็น 1 คอลัมน์ */
        grid-template-columns: 1fr; 
        gap: 30px;
        text-align: center; /* จัดตัวหนังสือให้อยู่กึ่งกลางเพื่อความสวยงามบนมือถือ */
    }

    .footer-about {
        padding: 0 10px;
    }

    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .footer-links h3, .footer-contact h3 {
        border-left: none;
        padding-left: 0;
    }

    /* ปรับเส้นแดงใต้หัวข้อให้อยู่ตรงกลางตามข้อความ */
    .footer-links h3::after, 
    .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-icons {
        justify-content: center; /* จัดไอคอนโซเชียลให้อยู่กลางหน้าจอ */
        margin-top: 15px;
    }

    .footer-bottom {
        font-size: 0.8rem; /* ลดขนาดฟอนต์ Copyright เล็กน้อย */
        padding: 20px 10px;
    }
}


/* จอ Tablet หรือจอขนาดกลาง (ลดเหลือแถวเดียวเพื่อให้ไม่อึดอัด) */
@media (max-width: 1200px) {
    .archive-layout {
        grid-template-columns: 1fr 280px;
    }
}


/* จอมือถือ (แถวเดียวทั้งหมด) */
@media (max-width: 992px) {
    .archive-layout {
        grid-template-columns: 1fr; /* Sidebar ลงไปข้างล่าง */
    }
    
    .analysis-grid-2cols {
        grid-template-columns: 1fr; /* เนื้อหาหลักเหลือแถวเดียว */
    }

    .page-title-block {
        padding: 30px 0;
    }

    .thai-result-row {
        font-size: 0.9rem;
    }
    
    .result-item {
        padding: 10px;
    }

    .league-nav-cards {
        padding-bottom: 15px;
    }
    
    .schedule-item .teams {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .highlight-grid {
        grid-template-columns: 1fr !important; /* วิดีโอเหลือ 1 ใบต่อแถว */
    }
    
    .sidebar {
        width: 100%; /* Sidebar เต็มจอ */
        order: 2;    /* ให้ Sidebar ไปอยู่หลังวิดีโอ */
    }

    .main-grid {
        grid-template-columns: 1fr; /* เมื่อจอเล็กลง ให้ Sidebar ลงไปอยู่ด้านล่าง */
    }
    
    .sidebar {
        margin-top: 20px;
    }
}

/* Responsive สำหรับหน้าจอมือถือขนาดเล็ก */
@media (max-width: 600px) {
    .match-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .match-live {
        text-align: left;
        width: 100%;
        padding-top: 5px;
        border-top: 1px dashed #dee2e6; /* เพิ่มเส้นคั่นแยกสัดส่วนบนมือถือ */
    }
}

/* Mobile */
@media (max-width: 600px) {
    .analysis-grid { 
        grid-template-columns: 1fr; 
    }
}


