@font-face {
  font-family: 'AnakotmaiLight';
  src: url('fonts/Anakotmai-Light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html, body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: 'AnakotmaiLight', 'Sarabun', 'Prompt', 'Kanit', Tahoma, Arial, sans-serif;
  font-weight: normal;  /* ถ้าไฟล์ฟอนต์เป็น Light ควรเปลี่ยนเป็น normal */
  background: linear-gradient(135deg, #13132b 0%, #1a1c50 50%, #b31217 100%);
  background-attachment: fixed;
  font-size:16px;
}


/* --- NAVBAR --- */
.main-navbar {
  background: rgba(19, 19, 43, 0.98);
  box-shadow: 0 6px 28px 0 #000b, 0 1.5px 0 #b31217;
  padding: 0;
  min-height: 70px;
  z-index: 200;
  position: sticky;
  top: 0;
  width: 100%;
}
.nav-container {
  width: 95%;
  margin: 0 auto;
  padding: 0.3rem 0;
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 52px;
  width: auto;
  margin-right: 0.7rem;
  border-radius: 0;        /* ไม่มีกรอบ ไม่มีพื้นหลัง */
  background: none;
  box-shadow: none;
}
.nav-logo-text {
  font-size: 1.7rem;
  color: #fff;
  font-weight: bold;
  letter-spacing: 1px;
}
.navbar-nav {
  flex-direction: row;
  gap: 0.1rem;
}
.nav-link-custom {
  color: #fff !important;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  transition: color .18s, background .12s;
  border-radius: 0.4rem;
  padding: 0 0.45rem;
}
.nav-link-custom:hover,
.nav-link-custom:focus {
  color: #ff4669 !important;
  background: rgba(255,255,255,0.08);
}
.nav-divider {
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  opacity: 0.82;
  user-select: none;
  padding: 0 0.2rem;
}

.navbar-toggler {
  border: none;
  box-shadow: none;
  outline: none !important;
}

/* Responsive */
@media (max-width: 992px) {
  .nav-container { width: 99%; }
  .navbar-nav { flex-direction: column; align-items: flex-start; }
  .nav-link-custom { font-size: 1.15rem; padding: 0.42rem 0.12rem; }
  .nav-logo-img { height: 36px; }
  .nav-logo-text { font-size: 1.2rem; }
}

@media (max-width: 600px) {
  .main-navbar { min-height: 54px; }
  .nav-container { flex-direction: column; align-items: flex-start; width: 100%; padding: 0.4rem 0; }
  .nav-logo { margin-bottom: 0.15rem; }
  .nav-link-custom, .nav-divider { font-size: 1.08rem; }
  .nav-divider { display: none !important; }
}

.member-section-title {
  color: #fff;
  font-size: 2.2rem;
  font-weight: bold;
  text-align: center;
  margin-top: 2.8rem;
  letter-spacing: 1.5px;
  text-shadow: 1.5px 3px 7px #000a, 0 1px 0 #b31217;
}

@media (max-width: 600px) {
  .member-section-title {
    font-size: 1.3rem;
    margin-top: 1.5rem;
  }
}

.member-section {
  margin-top: 1.3rem; /* ขยับขึ้นใกล้ navbar */
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.member-invite-row {
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.22);
  border-radius: 1.5rem;
  padding: 2rem 2.2rem;
  min-width: 340px;
  max-width: 1200px;
  box-shadow: 0 3px 16px #0002;
}

.member-invite-msg {
  color: #fb7906;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 1px 2px 8px #0008;
  letter-spacing: .5px;
  padding-right: 0.8rem;
  white-space: nowrap;
}

.btn-reg, .btn-login {
  font-size: 1.14rem;
  padding: 0.62rem 1.5rem;
  border-radius: 1.5rem;
  font-weight: bold;
  border: none;
  transition: background .16s, color .18s, box-shadow .18s;
  box-shadow: 0 2px 8px #0002;
}
.btn-reg {
  background: linear-gradient(95deg,#63a69f,#1a2980);
  color: #fff;
}
.btn-reg:hover { background: linear-gradient(95deg,#1a2980,#63a69f); color: #fff; }
.btn-login {
  background: linear-gradient(95deg,#b31217,#003366);
  color: #fff;
}
.btn-login:hover { background: linear-gradient(95deg,#003366,#b31217); color: #fff; }

@media (max-width: 800px) {
  .member-section { margin-top: 0.8rem; }
  .member-invite-row {
    flex-direction: column;
    align-items: center;
    padding: 1.2rem 0.6rem;
  }
  .member-invite-msg {
    padding-right: 0;
    padding-bottom: 0.6rem;
    white-space: normal;
    text-align: center;
  }
  .btn-reg, .btn-login { width: 100%; margin-left: 0 !important; margin-bottom: 0.7rem; }
}

.modal-content {
  border-radius: 1.6rem;
  background: linear-gradient(135deg, #fff 92%, #dde6f2 100%);
  box-shadow: 0 5px 32px #00336640;
}
.modal-title {
  color: #003366;
  font-weight: bold;
  letter-spacing: 1px;
  font-size: 1.3rem;
}
.form-label { color: #003366; font-size: 1.12rem; font-weight: bold;}
.form-control:focus { border-color: #b31217; box-shadow: 0 0 0 0.12rem #b3121740; }
.input-group-text { background: #003366; color: #fff; border: none; }
@media (max-width: 600px) {
  .member-invite-row { padding: 0.6rem 0.7rem; font-size: 0.93rem;}
  .member-welcome { padding: 1.1rem 0.5rem 1.2rem 0.5rem; }
  .member-welcome-txt { font-size: 1.07rem; }
  .avatar-img { width: 38px; height: 38px; }
  .member-avatar { font-size: 1.1rem; }
}


.member-welcome-bar {
  background: linear-gradient(90deg,#b31217 10%,#1a1c50 120%);
  border-radius: 2.2rem;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 1px;
  box-shadow: 0 2px 16px #b3121766, 0 1.5px 0 #fff2;
  padding: 0.55rem 2.1rem 0.55rem 1.5rem;
  margin: 0 auto 2.3rem auto;
  width: fit-content;
  min-width: 290px;
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}/* === Mobile: แถบเชิญ + ปุ่ม === */
@media (max-width: 576px){
  .logo_invitebar{
    display: flex;
    flex-direction: column;         /* ข้อความอยู่ด้านบน */
    background: #c1121f;            /* กรอบพื้นแดง */
    border: 1px solid #920e1a;
    border-radius: 14px;
    padding: 12px;
    gap: .8rem;
  }

  /* ข้อความบนพื้นแดง ตัวอักษรขาว ขนาด 1.1rem */
  .logo_invitebar .logo_invite_msg{
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
  }

  /* ปุ่มให้อยู่ในแถวเดียวกัน */
  .logo_invitebar .btn{
    font-size: 1.1rem;
    border-radius: 10px;
    flex: 1;                        /* ขยายเท่าๆ กัน */
  }
  .logo_invitebar .btn-group{
    display: flex;
    gap: .6rem;
  }
}


.welcome-label {
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  margin-right: 0.2rem;
  letter-spacing: 0.5px;
}
.welcome-icon {
  color: #fff;
  font-size: 2.0rem;
  margin-right: 0.2rem;
}
.welcome-name {
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  margin-right: 1.5rem;
}

.menu-btn {
  font-size: 1.5rem;
  border-radius: 1.3rem;
  padding: 0.47rem 1.6rem;
  margin-bottom: 0 !important;
  font-weight: bold;
  border: none;
  box-shadow: 0 2px 8px #0001;
  transition: background .14s, color .14s, transform .12s;
  display: flex;
  align-items: center;
  margin-right: 0.5rem;
}
.profile-btn {
  background: #fff;
  color: #1976d2;
  border: 2px solid #1976d2;
}
.profile-btn:hover {
  background: #1976d2;
  color: #fff;
}
.campaign-btn {
  background: #fff;
  color: #388e3c;
  border: 2px solid #388e3c;
}
.campaign-btn:hover {
  background: #388e3c;
  color: #fff;
}
.rule-btn {
  background: #fff;
  color: #616161;
  border: 2px solid #616161;
}
.rule-btn:hover {
  background: #616161;
  color: #fff;
}
.logout-btn {
  background: #e53935;
  color: #fff;
  border: 2px solid #e53935;
}
.logout-btn:hover {
  background: #fff;
  color: #e53935;
  border-color: #e53935;
}

/* Responsive */
@media (max-width: 900px) {
  .member-welcome-bar {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.6rem 0.4rem;
    font-size: 1.13rem;
  }
  .welcome-label, .welcome-name { font-size: 1.13rem;}
  .welcome-icon { font-size: 1.3rem;}
  .menu-btn { font-size: 1.13rem; padding: 0.4rem 1rem; margin-bottom: 0.3rem !important;}
}

.logo_invitebar {
  background: linear-gradient(90deg, #191654 10%, #2465aa 50%, #b31217 100%);
  border-radius: 2.2rem;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 1px;
  box-shadow: 0 2px 16px #19165444, 0 1.5px 0 #fff2;
  padding: 0.7rem 2.1rem 0.7rem 1.5rem;
  margin: 0 auto 2.3rem auto;
  width: fit-content;
  min-width: 300px;
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.logo_invite_msg {
  color: #ff9800;
  font-size: 1.35rem;
  font-weight: bold;
  margin-right: 2.1rem;
  letter-spacing: 1px;
  white-space: nowrap;
  text-shadow: 1px 2px 10px #0008;
}

.logo_btn {
  font-size: 1.32rem;
  border-radius: 2.2rem;
  padding: 0.70rem 2.3rem;
  margin-bottom: 0 !important;
  font-weight: bold;
  border: none;
  box-shadow: 0 2px 10px #0002;
  transition: background .14s, color .14s, transform .12s;
  display: flex;
  align-items: center;
  margin-right: 0.6rem;
}
.logo_btn-register {
  background: linear-gradient(90deg,#63a69f 60%,#1a2980 100%);
  color: #fff;
}
.logo_btn-register:hover {
  background: linear-gradient(90deg,#1a2980 30%,#63a69f 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}
.logo_btn-login {
  background: linear-gradient(90deg,#b31217 70%,#003366 100%);
  color: #fff;
}
.logo_btn-login:hover {
  background: linear-gradient(90deg,#003366 10%,#b31217 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}

/* Responsive */
@media (max-width: 900px) {
  .logo_invitebar {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.6rem 0.4rem;
    font-size: 1.13rem;
  }
  .logo_invite_msg { font-size: 1rem; margin-right: 0.8rem; white-space: normal;}
  .logo_btn { font-size: 1.09rem; padding: 0.53rem 1.2rem; margin-bottom: 0.3rem !important;}
}

/* ---------- Modal Login ---------- */
.sign_modal-content {
  background: linear-gradient(135deg,#003366 60%,#3578a6 100%);
  border-radius: 2rem;
  border: 0;
  color: #fff;
  box-shadow: 0 8px 40px #0008;
}
.sign_modal-header {
  background: transparent;
  border: none;
}
.sign_modal-title {
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 1px;
}
.sign_btn-close {
  filter: invert(1) brightness(200%);
  opacity: 0.9;
}

.sign_label {
  color: #ffd700;
  font-size: 1.2rem;
  margin-bottom: .25rem;
  font-weight: bold;
}
.sign_input-group {
  font-size: 1.2rem;
  margin-bottom: 5px;
}
.sign_input-group-text {
  background: #22496b;
  color: #ffeb3b;
  border: 0;
  font-size: 1.2rem;
  border-radius: 1.2rem 0 0 1.2rem;
  padding: 0.7rem 1rem;
}
.sign_input {
  font-size: 1.6rem !important;
  background: #f9fafb;
  border-radius: 0 1.2rem 1.2rem 0;
  padding: 0.7rem 1rem;
  border: 1.5px solid #bcd5f6;
  color: #003366;
}
.sign_input::placeholder {
  color: #bbb;
  font-size: 1.2rem;
  opacity: 0.92;
}
.sign_btn-login {
  font-size: 1.2rem;
  background: linear-gradient(90deg,#3578a6 10%,#003366 100%);
  color: #fff;
  border-radius: 1.5rem;
  border: none;
  font-weight: bold;
  box-shadow: 0 2px 16px #3578a666;
  transition: background .14s, color .12s, transform .12s;
}
.sign_btn-login:hover {
  background: linear-gradient(90deg,#003366 50%,#3578a6 100%);
  color: #ffd700;
  transform: translateY(-2px) scale(1.03);
}

/* ---------- Modal Register ---------- */
.regist_modal-content {
  background: linear-gradient(135deg,#003366 60%,#b31217 120%);
  border-radius: 2rem;
  border: 0;
  color: #fff;
  box-shadow: 0 8px 40px #0008;
}
.regist_modal-header {
  background: transparent;
  border: none;
}
.regist_modal-title {
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 1px;
}
.regist_btn-close {
  filter: invert(1) brightness(200%);
  opacity: 0.9;
}
.regist_label {
  color: #4ff7c3;
  font-size: 1.1rem;
  margin-bottom: .25rem;
  font-weight: bold;
}
.regist_input-group {
  font-size: 1.2rem;
  margin-bottom: 5px;
}
.regist_input-group-text {
  background: #720026;
  color: #ffeb3b;
  border: 0;
  font-size: 1.2rem;
  border-radius: 1.2rem 0 0 1.2rem;
  padding: 0.7rem 1rem;
}
.regist_input {
  font-size: 1.2rem !important;
  background: #fff9f8;
  border-radius: 0 1.2rem 1.2rem 0;
  padding: 0.7rem 1rem;
  border: 1.5px solid #bcd5f6;
  color: #b31217;
}
.regist_input::placeholder {
  color: #bbb;
  font-size: 1.2rem;
  opacity: 0.92;
}
.regist_btn-register {
  font-size: 1.6rem;
  background: linear-gradient(90deg,#4ff7c3 10%,#b31217 100%);
  color: #fff;
  border-radius: 1.5rem;
  border: none;
  font-weight: bold;
  box-shadow: 0 2px 16px #b3121766;
  transition: background .14s, color .12s, transform .12s;
}
.regist_btn-register:hover {
  background: linear-gradient(90deg,#b31217 40%,#4ff7c3 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}

/* Responsive Modal Input */
@media (max-width: 700px) {
  .sign_modal-title,
  .regist_modal-title { font-size: 1.25rem; }
  .sign_input, .regist_input,
  .sign_label, .regist_label { font-size: 1.2rem !important; }
  .sign_input-group-text, .regist_input-group-text { font-size: 1.2rem; padding: 0.5rem 0.7rem;}
}
.banner-section {
  margin-top: 0 !important;
  margin-bottom: 10px;
}

.banner-middle {
  margin-top: 15px !important;
  margin-bottom: 10px;
}

.banner-container {
  /* ใช้ความกว้างเดียวกับ container ด้านบน
     ถ้าอยาก fix กว้างเท่า .member-section จริงๆ (สมมติ 1050px) */
  max-width: 1150px;  /* แก้เลขนี้ให้เท่ากับ container ของสมาชิกด้านบน */
  margin: 0 auto;
  padding: 0 0.5rem;
}
.banner-gold-frame {
  border: 2.5px solid gold;
  border-radius: 13px;
  overflow: hidden;
  background: #191931;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  box-shadow: 0 1px 8px #0005;
  margin-bottom: 0;
}
.banner-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  background: #191931;
}
.row.gx-2 { --bs-gutter-x: 10px; }
.row.gy-2 { --bs-gutter-y: 10px; }
@media (max-width: 991px) {
  .banner-container { max-width: 100vw; }
  .banner-img { max-height: 120px; }
}

.pv-banner {
  display: block;
  margin-bottom: 10px;
}

.pv-banner:last-child {
  margin-bottom: 0;
}

.pv-section {
  padding: 20px 0;
}

.pv-sidebar-left, .pv-sidebar-right {
  padding: 0 10px;
}

.pv-main-content {
  padding: 20px;
  background-color: #2c3e50;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.pv-title {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 10px;
}

.pv-subtitle {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 20px;
}

.pv-preview-list {
  margin-bottom: 20px;
}

.pv-preview-item {
  padding: 15px;
  border-bottom: 1px solid #34495e;
}

.pv-preview-item.odd {
  background-color: #34495e;
}

.pv-preview-item.even {
  background-color: #2c3e50;
}

.pv-preview-title-container {
  display: flex;
  align-items: center;   /* กึ่งกลางแนวตั้ง */
  justify-content: space-between;  /* title ชิดซ้าย date ชิดขวา */
  gap: 10px;             /* เว้นระยะห่าง */
}

.pv-preview-title-container i {
  font-size: 1.1rem;
  margin-right: 10px;
  animation: spin 2s linear infinite;
  color: #fff;
}

.pv-preview-title {
  color: #fff;
  text-decoration: none;
  flex: 1;
  font-size: 1.07rem;
  white-space: normal;
  word-break: break-word;
  margin-left: 8px;
}



@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.pv-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Title ชิดซ้าย Date ชิดขวา */
  padding: 8px 18px;
  background: #2e3e4e;
  border-radius: 7px;
  margin-bottom: 12px;
  gap: 12px;    /* ระยะห่างไอคอน-ข้อความ */
}

.pv-preview-date {
  font-size: 0.97rem;
  color: #fff;
  background-color: #e74c3c;
  padding: 5px 13px;
  border-radius: 5px;
  white-space: nowrap;
  margin-left: 12px;
}

.pv-view-all {
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid #fff;
  border-radius: 5px;
  background-color: #e74c3c;
}

.pv-view-all:hover {
  background-color: #c0392b;
}

.pv_hl-section {
  background: transparent;
  width: 100%;
  display: flex;
  justify-content: center;
}

.pv_hl-container {
  width: 1120px;
  max-width: 100vw;
  margin: 0 auto;
  padding: 36px 24px 28px 24px;
  background: rgba(30,38,52, 0.75); /* พื้นหลังจางๆ หรือเปลี่ยนเป็น #fff ก็ได้ */
  border: 1.5px solid #e0e6ef55;   /* ขอบจาง */
  border-radius: 32px;              /* มุมโค้ง */
  box-shadow: 0 8px 28px 0 #2222, 0 1.5px 12px 0 #ff900018; /* เงานุ่ม */
  transition: box-shadow 0.18s, border-color 0.18s;
}

.pv_hl-headrow {
  margin-bottom: 0.5rem;
}

.pv_hl-title {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.pv_hl-icon {
  color: #fff;
  font-size: 2rem;
  filter: drop-shadow(1px 1px 3px #2228);
}
.pv_hl-btn-all {
  font-size: 1.2rem;
  background: linear-gradient(90deg, #ffd600 70%, #ff9000 100%);
  color: #232323 !important;
  border: none;
  border-radius: 2.5rem;
  font-weight: 600;
  box-shadow: 0 2px 12px #fd7e1440;
  padding: 8px 36px;
  display: inline-block;
  transition: background 0.18s, color 0.18s;
  text-decoration: none;
}
.pv_hl-btn-all:hover, .pv_hl-btn-all:focus {
  background: linear-gradient(90deg, #ff9000 70%, #ffd600 100%);
  color: #fff !important;
  box-shadow: 0 4px 16px 0 #fd7e1433;
}

.pv_hl-desc {
  font-size: 1.1rem;
  color: #ccc;
  font-weight: 400;
  margin-left: 3.2rem; /* ขยับให้ตรงหัวข้อ */
}

.pv_hl-item {
  background: rgba(255,255,255,0.01);
  border-radius: 1.2rem;
  padding: 10px 6px 14px 6px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.15s;
}
.pv_hl-item:hover {
  box-shadow: 0 8px 28px #0002;
}
.pv_hl-thumb {
  border-radius: 12px;
  max-width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  box-shadow: 0 2px 10px #0003;
}
.pv_hl-topic {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 300;
  margin-top: 6px;
  margin-bottom: 2px;
  text-shadow: 0 1px 2px #0007;
  min-height: 48px;
  overflow: hidden;
}
.pv_hl-date {
  color: #aaa;
  font-size: 1rem;
  margin-top: 0;
  font-weight: 400;
}


@media (max-width: 600px) {
  .pv_hl-section {
    width: 100vw;
    max-width: 100vw;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .pv_hl-container {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    border-radius: 0 !important;
    padding: 18px 6px 16px 8px !important; /* ขวาซ้ายห่างขอบ */
    box-sizing: border-box;
    min-width: 0;
  }
  .pv_hl-headrow {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 8px;
    margin-bottom: 6px !important;
    padding-left: 2px;
    padding-right: 2px;
  }
  .pv_hl-title {
    font-size: 1.32rem !important;
    font-weight: 800 !important;
    margin-bottom: 0;
    letter-spacing: 1px;
  }
  .pv_hl-icon {
    font-size: 1.6rem !important;
    margin-right: 2px;
  }
  .pv_hl-btn-all {
    font-size: 1.03rem !important;
    padding: 11px 24px !important;
    min-width: 120px;
    border-radius: 18px !important;
    margin-top: 0;
    margin-bottom: 0;
    margin-right: 0;
    margin-left: 0;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 11px #fd7e1440;
  }
  .pv_hl-btn-all:active,
  .pv_hl-btn-all:focus {
    color: #fff !important;
  }
  .pv_hl-desc {
    font-size: 0.96rem !important;
    margin-left: 2px !important;
    margin-bottom: 10px !important;
    margin-top: 0;
    color: #dde5ee !important;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.1px;
  }
  .pv_hl-item {
    padding: 8px 4px 12px 4px !important;
    border-radius: 10px !important;
    min-height: unset;
    margin-bottom: 8px;
    box-shadow: 0 1px 8px #0001;
    background: rgba(44, 62, 80, 0.96) !important;
  }
  .pv_hl-thumb {
    border-radius: 7px !important;
    max-width: 100% !important;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin-bottom: 6px;
  }
  .pv_hl-topic {
    color: #fff !important;
    font-size: 1.02rem !important;
    font-weight: 600 !important;
    min-height: unset;
    margin-top: 0 !important;
    margin-bottom: 1px;
    padding: 0 2px;
    text-shadow: 0 1px 2px #0007;
    text-align: left !important;
    overflow: hidden;
    word-break: break-word;
    line-height: 1.26;
  }
  .pv_hl-date {
    color: #fff !important;
    font-size: 0.94rem !important;
    margin-top: 2px !important;
    margin-bottom: 0 !important;
    padding-left: 2px;
    font-weight: 400;
    text-align: left !important;
    background: #e74c3c;
    border-radius: 5px;
    display: inline-block;
    padding: 2px 13px !important;
  }
  .pv_hl-container .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    --bs-gutter-x: 0px !important;
    --bs-gutter-y: 8px !important;
  }
  .pv_hl-container .col-12,
  .pv_hl-container .col-md-6,
  .pv_hl-container .col-lg-3 {
    padding-left: 2px !important;
    padding-right: 2px !important;
    margin-bottom: 0 !important;
  }
}


@media (max-width: 600px) {
  .pv-section {
    padding: 0 !important;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .pv-sidebar-left, .pv-sidebar-right {
    padding: 0 !important;
    margin-bottom: 7px;
    width: 100%;
    min-width: unset;
    display: flex;
    flex-direction: row;
    gap: 7px;
    justify-content: center;
  }
  .pv-sidebar-left .pv-banner,
  .pv-sidebar-right .pv-banner {
    width: 49%;
    min-width: 0;
    max-width: 170px;
    margin-bottom: 0;
    padding: 0;
    box-shadow: 0 2px 7px #0001;
  }
  .pv-main-content {
    padding: 10px 8px 10px 10px !important; /* เพิ่มขวา-ซ้ายให้ห่างขอบ */
    border-radius: 9px !important;
    margin-bottom: 12px;
    box-shadow: 0 2px 9px #0002;
    background-color: #26394e !important;
    width: 100%;
    box-sizing: border-box;
  }
  .pv-title {
    font-size: 1.25rem !important;
    margin-bottom: 7px;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding-left: 2px;
  }
  .pv-title i {
    font-size: 1.3em !important;
    margin-right: 2px;
  }
  .pv-subtitle {
    font-size: 1rem;
    margin-bottom: 9px;
    margin-top: 0;
    color: #dde5ee;
    line-height: 1.23;
    letter-spacing: 0.1px;
    padding-left: 10px !important;
  }
  .pv-preview-list {
    margin-bottom: 10px;
  }
  .pv-preview-item {
    padding: 7px 7px !important;  /* ปรับให้ห่างขอบชัด */
    font-size: 1.01rem;
    min-height: unset;
    border-radius: 7px;
    margin-bottom: 6px;
  }
  .pv-preview-item.odd,
  .pv-preview-item.even {
    background-color: #34495e !important;
  }
  .pv-preview-title-container {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 3px;
    width: 100%;
    padding: 0 !important;
  }
  .pv-preview-title {
    font-size: 1.04rem !important;
    font-weight: 600;
    margin-left: 0 !important;
    color: #fff !important;
    line-height: 1.25;
    max-width: 98vw;
    word-break: break-word;
    padding-left: 0;
    padding-right: 0;
  }
  .pv-preview-title-container i {
    font-size: 1.12em !important;
    margin-right: 0;
    margin-bottom: 1px;
  }
  .pv-preview-date {
    background-color: #e74c3c !important;
    color: #fff !important;
    font-size: 0.97rem;
    padding: 2px 12px !important;
    border-radius: 4px;
    margin-left: 0;
    margin-top: 2px;
    display: inline-block;
    align-self: flex-end;
  }
  .pv-view-all {
    font-size: 1.12rem;
    padding: 7px 12px;
    border-radius: 5px;
    margin-top: 9px;
    width: 100%;
    display: block;
    text-align: center;
  }
}



.zean-section {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 36px;
}
.zean-container {
  width: 100%;
  max-width: 1120px;
  background: rgba(24,29,44,0.9);
  border-radius: 28px;
  padding: 32px 16px;
  border: 1.5px solid #2eb87255;
  box-shadow: 0 8px 28px #0002;
}
.zean-title {
  color: #fff;
  font-size: 1.7rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  margin-bottom: 0.4em;
  letter-spacing: 1px;
}
.zean-title-icon {
  color: #ffbf00;
  font-size: 2rem;
  margin-right: 12px;
  text-shadow: 0 1px 3px #000a;
}
.zean-desc {
  color: #ccc;
  font-size: 1.1rem;
  margin-bottom: 22px;
  font-weight: 400;
}

.zean-list {
  row-gap: 20px;
  column-gap: 0px;
}

.zean-card {
  background: linear-gradient(130deg, #24384e 88%, #304f6c 100%);
  border-radius: 18px;
  border: 1.5px solid #48597e35;
  box-shadow: 0 3px 16px #0002;
  padding: 20px 16px 18px 16px;
  margin-bottom: 12px;
  transition: box-shadow 0.16s, border-color 0.16s;
  min-height: 228px;
  position: relative;
}

.zean-card:hover {
  box-shadow: 0 10px 32px #001a;
  border-color: #ffd60099;
}

.zean-card-header {
  gap: 12px;
  margin-bottom: 4px;
}
.zean-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  background: #444;
  box-shadow: 0 2px 6px #0003;
}
.zean-name {
  font-size: 1.2rem;
  color: #ffd600;
  font-weight: 700;
  line-height: 1.15;
}
.zean-bio {
  font-size: 1rem;
  color: #ccc;
  opacity: 0.82;
  font-style: italic;
}
.zean-tip-team {
  font-size: 1.25rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 3px;
}
.zean-tip-info {
  font-size: 1.08rem;
  color: #2eb872;
  font-weight: 500;
  margin-bottom: 2px;
  display: flex;
  gap: 16px;
}
.zean-tip-type {
  background: #ffd60022;
  padding: 1px 10px;
  border-radius: 14px;
}
.zean-tip-score {
  background: #2eb87222;
  padding: 1px 10px;
  border-radius: 14px;
}
.zean-tip-confidence {
  font-size: 1.08rem;
  color: #fff;
  margin-bottom: 3px;
}
.zean-tip-comment {
  font-size: 1.04rem;
  color: #fffc;
  opacity: 0.93;
  margin-bottom: 2px;
}
.zean-tip-result {
  font-size: 1.08rem;
  font-weight: 600;
  margin-top: 6px;
  padding: 1px 10px;
  border-radius: 12px;
  display: inline-block;
}
.zean-win {
  color: #2eb872;
  background: #2eb87222;
  border: 1.5px solid #2eb87255;
}
.zean-lose {
  color: #ff4545;
  background: #ff454522;
  border: 1.5px solid #ff454555;
}
.zean-pending {
  color: #aaa;
  background: #fff2;
  border: 1.5px solid #ccc2;
}

/* Responsive มือถือ */
@media (max-width: 767px) {
  .zean-container { padding: 12px 3px; }
  .zean-title { font-size: 1.15rem; }
  .zean-card { padding: 11px 5px; }
  .zean-avatar { width: 38px; height: 38px; }
}

.zean-card-new {
  border-radius: 18px;
  box-shadow: 0 4px 20px #0002;
  border: 2.5px solid #2226;
  padding: 16px 15px 13px 15px;
  margin-bottom: 12px;
  min-width: 240px;
  max-width: 370px;
  color: #fff;
  position: relative;
  transition: box-shadow 0.16s, border-color 0.16s;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.zean-bg1 { background: linear-gradient(120deg, #232a43 80%, #3c375e 100%);}
.zean-bg2 { background: linear-gradient(120deg, #24343f 85%, #35574c 100%);}
.zean-bg3 { background: linear-gradient(120deg, #222839 80%, #3e364e 100%);}
.zean-bg4 { background: linear-gradient(120deg, #23323d 80%, #2d4b52 100%);}
.zean-bg5 { background: linear-gradient(120deg, #322a43 85%, #6e375e 100%);}
.zean-bg6 { background: linear-gradient(120deg, #2a3243 80%, #1e375e 100%);}
.zean-bg7 { background: linear-gradient(120deg, #233d3d 80%, #2d5287 100%);}

.zean-avatar-new {
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid #fff5; object-fit: cover; background: #222; box-shadow: 0 2px 6px #0003;
}
.zean-new-name { font-size: 1.25rem; font-weight: 700; color: #ffd600; }
.zean-new-bio { font-size: 1rem; color: #ccc; opacity: 0.85; line-height: 1.15; }
.zean-tip-row {
  display: flex; align-items: center; gap: 9px;
  margin: 4px 0 1px 0;
  font-size: 1.1rem;
}
.zean-tip-team { color: #fff; font-weight: 400; }
.zean-tip-type {
  background: #2eb872;
  color: #fff; font-weight: 300;
  border-radius: 14px; padding: 1px 13px; font-size: 1rem;
}
.zean-tip-score {
  background: #374de7;
  color: #fff; font-weight: 400;
  border-radius: 14px; padding: 1px 13px; font-size: 1rem;
}
.zean-tip-result {
  font-weight: 700;
  border-radius: 11px;
  padding: 2px 11px;
  margin-left: 6px;
  font-size: 1rem;
  min-width: 62px; display: inline-block; text-align: center;
}
.zean-tip-result.win  { background: #1dbf73; color: #fff; }
.zean-tip-result.lose { background: #ff4550; color: #fff; }
.zean-tip-result.wait { background: #ffd600; color: #374de7; }

.zean-tip-confidence {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.2rem; margin-bottom: 2px;
}
.zean-stars i { color: #ffd600; margin-right: 1.5px; font-size: 1.2em; }
.zean-confidence-text { color: #fff; font-size: 1.1em; margin-left: 3px; font-weight: 600; }
.zean-tip-comment { font-size: 1.1rem; color: #fffc; font-weight: 500; margin-top: 2px; word-break: break-word; }

@media (max-width: 767px) {
  .zean-card-new { min-width: 100%; max-width: 100%; padding: 13px 5px; }
  .zean-new-name { font-size: 1.19rem; }
  .zean-new-bio { font-size: 1rem; }
  .zean-tip-row { font-size: 1.19rem; gap: 4px; }
  .zean-tip-confidence { font-size: 1.19rem; }
  .zean-tip-comment { font-size: 1.19rem; }
}

.pvbn-container {
  width: 1120px;
  max-width: 100vw;
  margin: 0 auto 32px auto;
  margin-top: 15px;
  padding: 0;
  display: flex;
  flex-direction: row;
  gap: 18px;
}

.pvbn-col2, .pvbn-col8 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.pvbn-col2 {
  width: 16.5%;
  min-width: 120px;
  max-width: 180px;
  gap: 0;
}
.pvbn-col8 {
  width: 67%;
  gap: 18px;
}

.pvbn-banner {
  width: 100%;
  margin-bottom: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px #0002;
  background: #111;
  display: block;
  transition: box-shadow 0.18s;
}
.pvbn-banner img {
  width: 100%;
  display: block;
  border-radius: 16px;
  object-fit: cover;
  background: #333;
}

.pvbn-banner:not(:last-child) { margin-bottom: 0; }

@media (max-width: 1200px) {
  .pvbn-container { width: 100%; padding: 0 8px; gap: 10px; }
  .pvbn-col2, .pvbn-col8 { gap: 10px; }
}
@media (max-width: 992px) {
  .pvbn-col2, .pvbn-col8 { min-width: 80px; }
}
@media (max-width: 767px) {
  .pvbn-container { flex-direction: column; gap: 0; }
  .pvbn-col2, .pvbn-col8 { width: 100%; max-width: 100%; gap: 10px; }
}


.fix_section      { width: 100%; background: #181e2b; padding: 28px 0;}
.fix_container    { max-width: 1120px; margin: 0 auto;margin-top:15px;}

.fix_headrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 20px;
}

.fix_day-header {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: 0.05em;
}
.fix_day-header i { color: #ffd600; font-size: 1.4em; }

.fix_datepicker {
  background: #fff;
  color: #1571b8;
  border: 2.2px solid #1571b8;
  border-radius: 10px;
  font-size: 1.1rem;
  padding: 8px 16px;
  font-weight: 700;
  min-width: 165px;
  box-shadow: 0 1px 12px #0001;
  transition: border .2s;
}

.fix_league-header {
  background: #1571b8;
  color: #fff;
  font-weight: bold;
  font-size: 1.3rem;
  padding: 13px 20px 10px 18px;
  border-radius: 6px 6px 0 0;
  margin: 0;
  letter-spacing: 0.02em;
  border-bottom: 1px solid #176bb8;
}

.fix_league-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
  background: #fff;
  margin-bottom: 0;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
  border: 1px solid #1571b8;
  border-top: none;
  box-shadow: 0 1px 12px #162d4822;
}

.fix_league-table thead th {
  background: #1d7cc3;
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  padding: 13px 8px 12px 8px;
  border: 1px solid #fff;
}

.fix_league-table thead th:not(:last-child),
.fix_league-table tbody td:not(:last-child) {
  border-right: 1px solid #fff;
}

.fix_league-table tbody tr {
  background: #fec388;
  border-bottom: 1px solid #fff;
}

.fix_league-table tbody tr:last-child {
  border-bottom: none;
}

.fix_league-table tbody td {
  color: #202020;
  text-align: center;
  padding: 14px 8px 12px 8px;
  font-size: 1.2rem;
  font-weight: 500;
  border-top: 1px solid #fff;
}

.fix_nodata {
  padding: 48px 0 45px 0;
  color: #ffd600;
  font-size: 1.2rem;
  text-align: center;
  letter-spacing: 0.01em;
}


@media (max-width: 600px) {
  .fix_section {
    width: 100vw !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #181e2b !important;
    overflow-x: hidden;
  }
  .fix_container {
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 0 0 24px 0 !important;
    margin: 0 !important;
  }
  .fix_headrow {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 8px !important;
    margin-bottom: 11px !important;
    padding: 10px 12px 0 12px !important;
  }
  .fix_day-header {
    font-size: 1.17rem !important;
    padding: 0;
    margin-bottom: 3px;
    letter-spacing: 0.3px;
    color: #fff !important;
  }
  .fix_day-header i {
    font-size: 1.11em !important;
    margin-right: 2px;
  }
  .fix_datepicker {
    font-size: 1rem !important;
    min-width: 120px !important;
    padding: 9px 14px !important;
    border-radius: 9px !important;
    margin-bottom: 6px;
    margin-top: 0;
    color: #26394e;
    background: #fff;
    border: 2.2px solid #2196f3;
    font-weight: 700;
    width: 100%;
    max-width: 330px;
  }
  .fix_league-header {
    font-size: 1.08rem !important;
    font-weight: 700 !important;
    padding: 9px 10px 9px 10px !important;
    border-radius: 8px 8px 0 0 !important;
    margin: 17px 0 0 0 !important;
    letter-spacing: 0.01em;
    background: #2196f3 !important;
    color: #fff !important;
    border-bottom: 0;
  }
  .fix_league-table {
    width: 100% !important;
    border-radius: 0 0 11px 11px !important;
    box-shadow: 0 1px 7px #162d4822;
    margin-bottom: 0;
    background: #26394e !important;
    overflow: hidden;
    display: table;
    border-collapse: collapse;
    font-size: 1.01rem !important;
  }
  .fix_league-table thead th {
    font-size: 1.01rem !important;
    padding: 10px 4px !important;
    background: #2196f3 !important;
    color: #fff !important;
    border: 0;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.01em;
  }
  .fix_league-table tbody tr {
    background: #fff !important;
  }
  .fix_league-table tbody td {
    font-size: 1.04rem !important;
    padding: 11px 5px !important;
    color: #232323 !important;
    text-align: center !important;
    word-break: break-word;
    border: 0 !important;
  }
  .fix_league-table tbody tr:nth-child(even) td {
    background: #f2f6fc !important;
  }
  .fix_league-table tbody td,
  .fix_league-table thead th {
    border-right: 1px solid #e0e6ef55 !important;
  }
  .fix_league-table tbody td:last-child,
  .fix_league-table thead th:last-child {
    border-right: 0 !important;
  }
  .fix_nodata {
    font-size: 1.05rem !important;
    padding: 34px 0 30px 0 !important;
    color: #ffd600;
    text-align: center;
    letter-spacing: 0.01em;
    margin-top: 20px;
  }
}
