/* /star v2: shared header + original star banner, background and cards. */
    /* ===== HERO (ภาพไม่แตก) ===== */
    .hero-banner {
      width: 100%;
      display: flex;
      justify-content: center;
      background: #4a0000;
    }

    .hero-banner img {
      width: 100%;
      max-width: 1080px;
      height: auto;
      display: block;
      object-fit: contain;
    }

    /* ===== MAIN BACKGROUND (แดงเข้ม + GLOW) ===== */
    .page-wrapper {
      background: radial-gradient(circle at top,
                 #5A1A10 0%,
                 #3A0000 40%,
                 #170004 100%);
      padding-bottom: 40px;
    }

    .page-container {
      max-width: 1100px;
      margin: 0 auto;
      padding: 24px 16px 40px;
    }

    h1.page-title {
      font-size: 24px;
      text-align: center;
      margin: 0 0 6px;
      color: #FFE8B2;
    }

    .page-sub {
      text-align: center;
      font-size: 14px;
      color: #f7d1aa;
      margin-bottom: 22px;
    }

    /* ===== GRID 3 คอลัมน์ ===== */
    .ber-list {
      list-style: none;
      padding: 0;
      margin: 0;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 18px;
    }

    /* การ์ด + glow สีทอง + ลูกเล่นไฟเบา ๆ */
    .ber-item {
      position: relative;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,0.16);
      background:
        radial-gradient(circle at top left, rgba(255, 220, 180, 0.8) 0%, rgba(255,255,255,0) 55%),
        linear-gradient(145deg,#fffdf5,#fff5e8);
      box-shadow:
        0 0 0 1px rgba(255, 210, 120, 0.35),
        0 14px 26px rgba(0,0,0,0.35),
        0 0 22px rgba(255, 210, 120, 0.35); /* gold glow */
      padding: 14px 16px;
      overflow: hidden;
    }

    /* แสงวิ่งเบา ๆ ด้านหลัง (ไม่รก) */
    .ber-item::before {
      content: "";
      position: absolute;
      top: -40%;
      right: -40%;
      width: 160px;
      height: 160px;
      background: radial-gradient(circle, rgba(255,230,180,0.9) 0%, rgba(255,230,180,0) 60%);
      opacity: 0.45;
      pointer-events: none;
    }

    .ber-link { display: block; color: #222; position: relative; z-index: 1; }

    .row-top {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      margin-bottom: 8px;
    }

    /* เบอร์แบบเดิม – ไม่หนาเกินไป */
    .ber-number {
      font-size: 22px;
      font-weight: 600;
      letter-spacing: 0.3px;
      color: #111;
	    white-space: nowrap;
  display: inline-block;
    flex-shrink: 0;   /* ห้ามเลขถูกบีบ */
    }

    .ber-price {
      font-size: 18px;
      font-weight: 700;
      color: #D72638;
	    white-space: normal;   /* อนุญาตให้ตัดบรรทัด */
  text-align: right;
  margin-left: auto;     /* ดันไปฝั่งขวา */
    }
	

    .row-bottom {
      font-size: 15px;
      color: #555;
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      line-height: 1.45;
    }

    .separator { opacity: 0.55; }

    /* Icon เพศสีทอง */
    .sex-icon {
      font-size: 17px;
      margin-right: 2px;
      color: #D4A941;  /* ทอง */
    }

    .ber-network { font-weight: 600; }

    /* ปุ่มดำ–ทอง (ใช้ได้ในอนาคต) */
    .btn-gold {
      display: inline-block;
      padding: 6px 14px;
      border-radius: 999px;
      background: #111;
      border: 1px solid #ffd27b;
      color: #ffd27b;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.03em;
      text-transform: uppercase;
    }

    .btn-gold:hover {
      background: #ffd27b;
      color: #111;
    }

    /* Badge จองแล้ว – สีทองอ่อน */
    .reserve-badge {
      display: inline-block;
      padding: 2px 10px;
      border-radius: 999px;
      background: #ffeecd;
      font-size: 14px;
      font-weight: 600;
      margin-left: 6px;
background: linear-gradient(135deg,#b3121d,#e63946);
  color: #fff;
    }

    .tag-free {
      display: inline-block;
      padding: 2px 10px;
      background: #fff2d6;
      border-radius: 12px;
      font-size: 12px;
      color: #b05b00;
      margin-left: 6px;
    }

    @media (max-width: 599px) {
      .page-container { padding-top: 18px; }
      .ber-list { grid-template-columns: 1fr; }
      .ber-number { font-size: 20px; }
      .ber-price  { font-size: 16px; }
    }

/* ===== TABS พลังดาว แบบ 2 บรรทัด ===== */
.star-tabs {
  display: flex;
  flex-wrap: wrap;         /* ให้ขึ้นบรรทัดใหม่ได้ */
  gap: 10px;
  justify-content: center; /* จัดกึ่งกลาง */
  padding: 4px 4px 16px;
  margin-bottom: 4px;
}

.star-tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #ffd27b;
  background: #300000;
  color: #ffe8b2;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: 0.2s;
}

.star-tab:hover {
  background: #ffd27b;
  color: #300000;
}

.star-tab.is-active {
  background: linear-gradient(135deg, #ffd27b, #f8b76b);
  color: #300000;
  box-shadow: 0 0 0 1px rgba(255,220,160,0.6),
              0 6px 14px rgba(0,0,0,0.35);
}


.star-info {
  text-align: center;
  margin-top: -9px;        /* ขยับขึ้นให้เกาะ TABS พลังดาว */
  margin-bottom: 22px;
  font-size: 14px;
  color: #ffe8b2;           /* ทองอ่อนร่วมชุด */
  opacity: 0.9;
}

#m {
  margin-top:-50px;
  padding-top:50px;
}


/* Additions are scoped to the star pages; shared chrome uses the site's stylesheet. */
body.sp-page { margin:0; background:#170004; font-family:system-ui,-apple-system,"Segoe UI",sans-serif; }
.sp-page *, .sp-page *::before, .sp-page *::after { box-sizing:border-box; }
.sp-page .container { width:100%; max-width:1180px; margin:0 auto; padding:0 18px; }
.sp-page #header { margin:0; }
.sp-page #mobile-nav[aria-hidden="true"] { visibility:hidden; box-shadow:none; }
.sp-page #mobile-nav[aria-hidden="false"] { visibility:visible; }
.sp-page #main { padding:0; }
.sp-page a { text-decoration:none; }
.sp-page [hidden] { display:none!important; }
.sp-page .hero-banner img { aspect-ratio:1080/566; height:auto; }
.sp-page .page-wrapper { color:#ffe8b2; }
.sp-page .page-container { max-width:1180px; }
.sp-page h1,.sp-page h2,.sp-page h3,.sp-page p { font-family:inherit; }
.sp-page .page-title { font-size:clamp(23px,3vw,31px); margin:0; text-align:left; line-height:1.5; }
.sp-page .page-sub { font-size:16px; line-height:1.8; text-align:left; margin:8px 0 24px; }
.sp-page .star-tab { font-size:16px; min-height:44px; display:inline-flex; align-items:center; gap:8px; }
.sp-page .star-tab small { font-size:12px; font-weight:400; opacity:.85; }
.sp-page .star-tabs { justify-content:flex-start; gap:9px; padding:0; margin:20px 0 12px; }
.sp-page button,.sp-page input,.sp-page select { font:inherit; }
.sp-page button,.sp-page summary { cursor:pointer; }
.sp-page :is(a,button,input,select,summary):focus-visible { outline:3px solid #f5b754; outline-offset:4px; }
.sp-breadcrumb { display:flex;flex-wrap:wrap;gap:8px;font-size:14px;color:#e6c6a0;margin:0 0 20px; }
.sp-breadcrumb a:hover { text-decoration:underline; }
.sp-title-row { display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap; }
.sp-jump,.sp-actions button,.sp-knowledge-actions button { border:1px solid #ffd27b; background:linear-gradient(135deg,#ffd27b,#f8b76b);color:#300000;border-radius:10px;padding:11px 16px;font-weight:700;line-height:1.5; }
.sp-count-note,.sp-guidance { font-size:15px;line-height:1.8; }
.sp-guidance a,.sp-filter-note a,.sp-video-fallback a,.sp-player a { color:#ffdc95;text-decoration:underline;text-underline-offset:3px; }
.sp-knowledge,.sp-video-library { border:1px solid #c68b54;border-radius:16px;background:rgba(255,225,190,.06);padding:24px;margin:24px 0;line-height:1.9;font-size:18px; }
.sp-knowledge-top { display:flex;gap:18px;align-items:center; }
.sp-planet-number { width:70px;height:70px;border:1px solid #d5a155;border-radius:50%;display:grid;place-items:center;font-size:44px;flex-shrink:0;color:#ffdc95;background:#40140b; }
.sp-knowledge h2 { color:#ffe8b2;font-size:25px;margin:0; }
.sp-knowledge p { margin:12px 0; }
.sp-knowledge .sp-eyebrow { font-size:13px;color:#ddb584;margin:0; }
.sp-knowledge .sp-keywords { font-size:16px;margin:4px 0 0; }
.sp-reading summary,.sp-video-library summary,.sp-more-filters summary { padding:10px 0;font-weight:600; }
.sp-reading p { max-width:900px; }
.sp-knowledge-actions { display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-top:12px; }
.sp-knowledge-actions button { font-size:16px; }
.sp-knowledge-actions a { font-size:16px;color:#ffe8b2; }
.sp-video-fallback { font-size:14px; }
.sp-video-buttons { display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:12px 0; }
.sp-video-buttons button { background:#3b1109;color:#ffdc95;border:1px solid #c68b54;border-radius:10px;padding:12px;font-size:16px; }
.sp-library-fallback { font-size:14px; }
.sp-player { display:grid;gap:12px;width:min(100%,360px);margin:20px auto; }
.sp-player iframe { width:100%;height:auto;aspect-ratio:9/16;border:0;border-radius:12px;background:#160706; }
.sp-player button { justify-self:end;border:1px solid #d5a155;border-radius:8px;padding:8px 12px;color:#ffe8b2;background:#40140b; }
.sp-player a { font-size:14px;text-align:center; }
.sp-filters { border:1px solid #edc996;background:#fff8ec;color:#48251a;border-radius:16px;padding:24px;margin:28px 0 18px;box-shadow:0 8px 25px #0002; }
.sp-filters h2 { color:#48251a;font-size:23px;margin:0 0 18px; }
.sp-filter-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px; }
.sp-filters label { display:grid;gap:7px;font-size:16px;font-weight:600;line-height:1.5; }
.sp-filters input,.sp-filters select { width:100%;min-width:0;height:48px;border:1px solid #b69479;border-radius:8px;padding:8px 10px;color:#422014;background:#fff;font-size:16px; }
.sp-price-range { display:flex;flex-wrap:wrap;gap:14px;align-items:end;margin-top:14px; }
.sp-price-range label { flex:1;min-width:150px;max-width:260px; }
.sp-price-range small { font-size:14px;align-self:center; }
.sp-more-filters { border-top:1px solid #e5cdb3;border-bottom:1px solid #e5cdb3;margin:18px 0;padding:3px 0; }
.sp-more-filters .sp-filter-grid { grid-template-columns:repeat(3,minmax(0,1fr));padding-bottom:16px; }
.sp-sort-row { grid-template-columns:2fr 1fr 2fr;align-items:end; }
.sp-actions { display:flex;gap:18px;align-items:center;justify-content:flex-end;min-height:48px; }
.sp-actions button { font-size:17px; }
.sp-actions a { color:#704431;text-decoration:underline; }
.sp-filter-note { font-size:14px;line-height:1.8;margin:18px 0 0; }
.sp-filter-note a { color:#704431; }
.sp-page .star-info { font-size:14px;text-align:left;margin:14px 0; }
.sp-page #m { margin-top:0;padding-top:24px; }
.sp-page #sp-filters,.sp-page #sp-results,.sp-page #m { scroll-margin-top:100px; }
.sp-chips { display:flex;flex-wrap:wrap;gap:8px;margin:14px 0; }
.sp-chips a { color:#ffe8b2;border:1px solid #c5915b;border-radius:20px;padding:7px 12px;font-size:15px; }
.sp-chips span { margin-left:8px; }
.sp-result-heading { display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0; }
.sp-result-heading p { margin:0;font-size:16px;line-height:1.7; }
.sp-result-heading strong { font-size:23px; }
.sp-result-heading a { color:#ffdc95;font-size:15px; }
.sp-pager { display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:20px 0; }
.sp-pager a,.sp-pager [aria-current] { display:grid;place-items:center;min-width:44px;min-height:44px;padding:8px 12px;border:1px solid #d4a56a;border-radius:8px;font-size:16px;color:#ffe8b2; }
.sp-pager [aria-current] { background:#ffd27b;color:#3a0000;font-weight:700; }
.sp-pager a:hover { background:#622414; }
.sp-gap { align-self:center; }
.sp-page .ber-list { grid-template-columns:repeat(3,minmax(0,1fr));gap:16px; }
.sp-page .ber-item { list-style:none;margin:0;padding:16px; }
.sp-page .ber-link { text-decoration:none; }
.sp-page .row-top { flex-wrap:wrap;gap:4px 10px; }
.sp-page .ber-number { font-size:22px; }
.sp-page .ber-price { font-size:18px; }
.sp-original { font-size:13px;color:#79675c;margin:-3px 0 8px; }
.sp-monthly { font-size:17px;color:#3c2118;margin-top:10px; }
.sp-contract { font-size:14px;color:#685649;margin-top:3px; }
.sp-detail-link { display:block;font-size:14px;color:#8d4929;margin-top:10px; }
.sp-page .tag-free { margin:7px 0 0; }
.sp-empty { border:1px solid #d4a56a;border-radius:12px;padding:30px;text-align:center; }
.sp-empty h2 { color:#ffe8b2;font-size:22px; }
.sp-empty a { color:#ffd27b;text-decoration:underline; }
.sp-stock-note { font-size:15px;margin:22px 0;line-height:1.8; }
.sp-back-filter { color:#ffdc95; }
#sp-error { background:#fff0db;color:#6a2518;border:2px solid #e9b66a;border-radius:10px;padding:16px; }
#sp-error a { color:#6a2518;text-decoration:underline; }
#sp-results[aria-busy="true"] { opacity:.55;pointer-events:none; }
.sp-skip { position:fixed;left:12px;top:-100px;z-index:2000;padding:12px;background:#ffe8b2;color:#300000; }
.sp-skip:focus { top:10px; }
@media(max-width:991px) { .sp-page .ber-list{grid-template-columns:repeat(2,minmax(0,1fr));} .sp-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));} .sp-sort-row{grid-template-columns:1fr 1fr;} .sp-actions{grid-column:1/-1;justify-content:flex-start;} .sp-video-buttons{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media(max-width:599px) { .sp-page .page-container{padding:20px 14px 35px;} .sp-page .ber-list{grid-template-columns:1fr;} .sp-filters,.sp-knowledge,.sp-video-library{padding:18px 15px;} .sp-more-filters .sp-filter-grid{grid-template-columns:1fr;} .sp-sort-row{grid-template-columns:1fr;} .sp-page .star-tab{font-size:14px;padding:8px 11px;} .sp-page .ber-number{font-size:23px;} .sp-planet-number{width:54px;height:54px;font-size:34px;} .sp-knowledge-top{gap:12px;} .sp-knowledge h2{font-size:22px;} .sp-page .page-sub{font-size:15px;} .sp-knowledge{font-size:17px;} .sp-result-heading{align-items:flex-start;} .sp-result-heading a{font-size:13px;} .sp-knowledge-actions{gap:14px;} .sp-page #sp-filters,.sp-page #sp-results,.sp-page #m{scroll-margin-top:82px;} }
@media(prefers-reduced-motion:reduce){.sp-page *{scroll-behavior:auto!important;transition:none!important;}}
