/* ============================================================
   rounds.css — สไตล์หน้าเลือกหวย (/rounds)
   แยกจาก rounds.php (2026-09-06) เพื่อจัดระเบียบ
   ============================================================ */

/* ============ PREMIUM HERO SECTION ============ */
.rounds-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  border-radius: 1.75rem;
  padding: 2.5rem 2rem;
  color: #fff;
  box-shadow: 0 20px 60px rgba(118, 75, 162, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  margin-bottom: 2.5rem;
  animation: slideInDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

.rounds-hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
}

.rounds-hero::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
  border-radius: 50%;
  filter: blur(25px);
}

.rounds-hero h3 {
  font-weight: 900;
  letter-spacing: 0.5px;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.rounds-hero .hero-sub {
  opacity: 0.95;
  font-size: 1.05rem;
  font-weight: 500;
}

.rounds-hero .btn {
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 0.85rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.95rem;
  min-height: 48px;
}

.rounds-hero .hero-btn {
  padding: 0.85rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: 0.95rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rounds-hero .btn-light {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1.5px solid rgba(255, 255, 255, 1) !important;
  color: #667eea !important;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.rounds-hero .btn-light:hover {
  background: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 255, 255, 0.4);
  color: #667eea !important;
}

.rounds-hero .btn-outline-light {
  background: transparent !important;
  border: 1.5px solid rgba(255, 255, 255, 0.8) !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.rounds-hero .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1.5px solid #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.25);
  color: #fff !important;
}

.rounds-hero .btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* ============ CATEGORY HEADER ============ */
.cat-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.9rem;
  border-radius: 0.8rem;
  color: #fff;
  margin-bottom: 1rem;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
  animation: slideInLeft 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

.cat-header::after {
  content: "";
  position: absolute;
  right: -50px;
  top: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 70%);
  border-radius: 50%;
}

.cat-header .cat-icon {
  width: 34px;
  height: 34px;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.cat-header h5 {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 1rem;
  flex-grow: 1;
}

.cat-header .cat-count {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.3);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ============ LOTTERY CARDS - PREMIUM DESIGN ============ */
.lotto-card {
  border: none;
  border-radius: 1.5rem;
  overflow: visible;
  background: #fff;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.1);
  position: relative;
  height: 100%;
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.lotto-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.lotto-card:hover .cover {
  filter: brightness(1.1);
}

.lotto-card .cover {
  height: 100px;
  position: relative;
  transition: all 0.3s ease;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  border-radius: 1.5rem 1.5rem 0 0;
}

.lotto-card .flag-badge {
  position: absolute;
  left: 20px;
  top: 45px;
  width: 70px;
  height: 70px;
  border-radius: 1.25rem;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  line-height: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 10;
  animation: bounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  flex-shrink: 0;
}

@keyframes bounce {
  0% { transform: translateY(-20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.lotto-card:hover .flag-badge {
  animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.lotto-card .status-pill {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 3;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.3px;
}

.status-pill.open {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
  animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35); }
  50% { box-shadow: 0 8px 35px rgba(16, 185, 129, 0.55); }
}

.status-pill.closed {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.35);
}

.status-pill.drawn {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
}

.status-pill.idle {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  box-shadow: 0 8px 25px rgba(107, 114, 128, 0.25);
}

.lotto-card .card-body {
  padding: 3.5rem 1.5rem 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(249, 250, 251, 0.7));
  overflow: visible;
  border-radius: 0;
  position: relative;
}

.lotto-card h6 {
  font-weight: 900;
  margin: 0 0 0.5rem;
  color: #0f172a;
  font-size: 1.15rem;
  line-height: 1.3;
}

.lotto-card .round-name {
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 500;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #475569;
  font-size: 0.9rem;
  margin-top: 0.8rem;
  font-weight: 500;
}

.meta-row i {
  color: #94a3b8;
  font-weight: 600;
}

.type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.type-chips .chip {
  font-size: 0.78rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f0f4f8, #e8f1f9);
  color: #334155;
  border: 1px solid #cbd5e1;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
}

.type-chips .chip:hover {
  background: linear-gradient(135deg, #e0eaf5, #d8e9f6);
  border-color: #94a3b8;
}

.lotto-card .card-footer {
  background: transparent;
  border: none;
  padding: 1rem 1.5rem 1.5rem;
  overflow: visible;
  border-radius: 0 0 1.5rem 1.5rem;
}

.btn-play {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  border: none;
  font-weight: 800;
  border-radius: 0.9rem;
  padding: 0.75rem 1rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.btn-play::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-play:hover::before {
  left: 100%;
}

.btn-play:hover {
  transform: translateY(-3px);
  color: #fff;
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.55);
}

.btn-play:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(99, 102, 241, 0.4);
}

.btn-view {
  background: linear-gradient(135deg, #f0f4f8, #e8f1f9);
  color: #334155;
  border: 1.5px solid #cbd5e1;
  font-weight: 800;
  border-radius: 0.9rem;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.btn-view:hover {
  background: linear-gradient(135deg, #e8f0f8, #dfe7f0);
  color: #0f172a;
  border-color: #94a3b8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

.btn-locked {
  background: linear-gradient(135deg, #e2e8f0, #d1d5db);
  color: #64748b;
  border: none;
  font-weight: 800;
  border-radius: 0.9rem;
  padding: 0.75rem 1rem;
  cursor: not-allowed;
  opacity: 0.75;
}

.lotto-card.is-locked {
  opacity: 0.75;
  filter: grayscale(40%);
}

.lotto-card.is-locked:hover {
  transform: none;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.1);
}

/* ============ MOBILE RESPONSIVENESS ============ */
@media (min-width: 768px) {
  .lotto-card .flag-badge {
    top: 40px;
    left: 22px;
  }
}

@media (max-width: 575.98px) {
  .rounds-hero {
    padding: 1.5rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 1.25rem;
  }

  .rounds-hero h3 {
    font-size: 1.55rem;
    margin-bottom: 0.35rem;
  }

  .rounds-hero .hero-sub {
    font-size: 0.95rem;
  }

  .rounds-hero .hero-btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    min-height: 44px;
  }

  .rounds-hero .btn {
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
  }

  .cat-header {
    padding: 0.45rem 0.75rem;
    margin-bottom: 0.85rem;
    border-radius: 0.7rem;
  }

  .cat-header h5 {
    font-size: 0.92rem;
  }

  .cat-header .cat-icon {
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
  }

  .lotto-card {
    border-radius: 1.25rem;
    margin-bottom: 1rem;
  }

  .lotto-card .cover {
    height: 80px;
  }

  .lotto-card .flag-badge {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    left: 14px;
    top: 35px;
  }

  .lotto-card .card-body {
    padding: 3rem 1rem 1rem;
  }

  .lotto-card h6 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
  }

  .lotto-card .round-name {
    font-size: 0.8rem;
  }

  .meta-row {
    font-size: 0.8rem;
  }

  .type-chips .chip {
    font-size: 0.7rem;
    padding: 0.3rem 0.55rem;
  }

  .btn-play, .btn-view, .btn-locked {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 359px) {
  .rounds-hero h3 {
    font-size: 1.4rem;
  }

  .cat-header h5 {
    font-size: 1rem;
  }

  .lotto-card .flag-badge {
    width: 54px;
    height: 54px;
    font-size: 1.75rem;
    left: 10px;
    top: 35px;
  }
}

/* ============ DARK THEME SUPPORT ============ */
[data-bs-theme="dark"] .lotto-card {
  background: #1e293b;
  color: #e2e8f0;
}

[data-bs-theme="dark"] .lotto-card h6 {
  color: #f1f5f9;
}

[data-bs-theme="dark"] .lotto-card .card-body {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.7));
}

[data-bs-theme="dark"] .btn-view {
  background: linear-gradient(135deg, #334155, #1e293b);
  color: #cbd5e1;
  border-color: #475569;
}

[data-bs-theme="dark"] .btn-view:hover {
  background: linear-gradient(135deg, #475569, #334155);
  color: #f1f5f9;
  border-color: #64748b;
}

[data-bs-theme="dark"] .type-chips .chip {
  background: linear-gradient(135deg, #334155, #1e293b);
  color: #cbd5e1;
  border-color: #475569;
}

[data-bs-theme="dark"] .lotto-card .round-name {
  color: #94a3b8;
}

[data-bs-theme="dark"] .meta-row {
  color: #cbd5e1;
}

/* ============ DARK THEME - HERO BUTTONS ============ */
[data-bs-theme="dark"] .rounds-hero .btn-light {
  background: rgba(226, 232, 240, 0.95) !important;
  color: #667eea !important;
  border: 1.5px solid rgba(226, 232, 240, 1) !important;
}

[data-bs-theme="dark"] .rounds-hero .btn-light:hover {
  background: #e2e8f0 !important;
  color: #667eea !important;
}

[data-bs-theme="dark"] .rounds-hero .btn-outline-light {
  color: #e2e8f0 !important;
  border: 1.5px solid rgba(226, 232, 240, 0.8) !important;
}

[data-bs-theme="dark"] .rounds-hero .btn-outline-light:hover {
  background: rgba(226, 232, 240, 0.15) !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #e2e8f0 !important;
}

/* ============ COVER-ONLY CARDS (หน้าเลือกหวย แสดงแค่รูป) ============ */
.cover-card {
  border: none;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: block;
  animation: fadeInUp 0.5s ease-out;
}
.cover-card:hover {
  transform: translateY(-4px);
  box-shadow: none;
}
.cover-card.is-locked { opacity: 0.55; filter: grayscale(60%); cursor: not-allowed; }
.cover-card.is-locked:hover { transform: none; box-shadow: 0 8px 25px rgba(15, 23, 42, 0.1); }
.cover-img {
  position: relative;
  width: 100%;
  aspect-ratio: 256 / 291;
  background-size: cover;
  background-position: center;
  border-radius: 1.25rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.cover-fallback {
  color: #fff;
  font-weight: 900;
  font-size: 1.05rem;
  text-align: center;
  padding: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
@media (max-width: 575.98px) {
  .cover-fallback { font-size: 0.85rem; padding: 0.6rem; }
}
/* ป้ายสถานะ — เล็ก สวย มุมขวาบนของรูป */
.cover-img .status-pill {
  position: absolute;
  right: 7px;
  top: 7px;
  z-index: 3;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.2px;
  backdrop-filter: blur(6px);
  white-space: nowrap;
  line-height: 1.3;
}
@media (max-width: 575.98px) {
  .cover-img .status-pill { font-size: 0.58rem; padding: 0.18rem 0.45rem; right: 5px; top: 5px; }
}
.lotto-search-wrap { max-width: 520px; margin: 0 auto 1.25rem; }
.lotto-search { position: relative; display: flex; align-items: center; }
.lotto-search > i.bi-search { position: absolute; left: 14px; color: #94a3b8; font-size: 1rem; pointer-events: none; }
.lotto-search input {
  width: 100%; padding: 0.7rem 2.6rem; border-radius: 999px;
  border: 2px solid var(--input-border, rgba(148,163,184,0.4)); background: #fff; color: #1e293b;
  font-size: 0.95rem; outline: none; box-shadow: 0 2px 10px rgba(0,0,0,0.05); transition: border-color .15s, box-shadow .15s;
}
.lotto-search input:focus { border-color: var(--brand, #4338ca); box-shadow: 0 3px 14px rgba(67,56,202,0.18); }
.lotto-search #lottoSearchClear {
  position: absolute; right: 10px; width: 26px; height: 26px; border: none; border-radius: 50%;
  background: #e2e8f0; color: #475569; font-size: 1.1rem; line-height: 1; cursor: pointer; display: none;
}
.lotto-noresult { text-align: center; color: #64748b; padding: 1.5rem; font-weight: 600; }
[data-bs-theme="dark"] .lotto-search input { background: #1e293b; color: #e2e8f0; border-color: var(--input-border, rgba(148,163,184,0.3)); }
[data-bs-theme="dark"] .lotto-search #lottoSearchClear { background: #334155; color: #cbd5e1; }

/* ===== แถบเครื่องมือ: โหมดแสดง + กรอง ===== */
.lotto-toolbar { display:flex; gap:.4rem; justify-content:center; align-items:center; flex-wrap:nowrap; margin:0 auto 1rem; }
.lotto-seg { display:inline-flex; background:#eef2f7; border-radius:999px; padding:3px; gap:2px; }
.lotto-seg button { border:none; background:transparent; padding:.38rem .7rem; border-radius:999px; font-size:.78rem; font-weight:700; color:#64748b; cursor:pointer; white-space:nowrap; display:inline-flex; align-items:center; gap:.25rem; transition:all .15s; }
.lotto-seg button.active { background:#fff; color:#4338ca; box-shadow:0 1px 5px rgba(0,0,0,.14); }
[data-bs-theme="dark"] .lotto-seg { background:#1e293b; }
[data-bs-theme="dark"] .lotto-seg button { color:#94a3b8; }
[data-bs-theme="dark"] .lotto-seg button.active { background:#334155; color:#fff; }
@media (max-width:575.98px){
  .lotto-toolbar { gap:.35rem; }
  .lotto-seg button { padding:.34rem .55rem; font-size:.72rem; }
  .lotto-seg button i { display:none; }   /* ซ่อนไอคอน กันล้นเป็น 2 บรรทัด */
}
/* แถบเลือกหมวด (โหมดแยกหมวด) — เลื่อนแนวนอนบนมือถือ */
.lotto-chips { display:flex; gap:.4rem; overflow-x:auto; padding:0 .5rem .6rem; margin:0 auto 1rem; max-width:900px; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.lotto-chips::-webkit-scrollbar { display:none; }
.lotto-chips button { flex:0 0 auto; border:1.5px solid rgba(148,163,184,.4); background:#fff; color:#475569; padding:.4rem .9rem; border-radius:999px; font-size:.82rem; font-weight:700; cursor:pointer; white-space:nowrap; }
.lotto-chips button.active { background:var(--brand,#4338ca); color:#fff; border-color:transparent; }
[data-bs-theme="dark"] .lotto-chips button { background:#1e293b; color:#cbd5e1; border-color:rgba(148,163,184,.3); }

/* ความหนาแน่นการ์ด = เล็ก (มือถือ 3 / คอม 6) */
#lottoGrid .lotto-card-col { flex:0 0 16.6667%; max-width:16.6667%; }
@media (max-width:767.98px){ #lottoGrid .lotto-card-col { flex:0 0 33.3333%; max-width:33.3333%; } }
/* โหมดรายการ (ตัวหนังสือ + ไอคอนธง/ปกหน้า) */
#lottoGrid.layout-list .row { display:block; margin:0; }
#lottoGrid.layout-list .lotto-card-col { flex:0 0 100% !important; max-width:100% !important; width:100% !important; margin-top:0 !important; padding:2.5px 0 !important; }
#lottoGrid.layout-list .cover-card { display:flex; align-items:center; gap:.7rem; padding:.4rem .6rem; border-radius:.9rem; }
#lottoGrid.layout-list .cover-img { width:48px; min-width:48px; height:48px; aspect-ratio:auto; border-radius:.55rem; align-items:flex-start; }
#lottoGrid.layout-list .cover-img .status-pill { display:none; }
#lottoGrid.layout-list .cover-fallback { display:none; }
#lottoGrid.layout-list .list-meta { display:flex !important; flex:1; align-items:center; justify-content:space-between; gap:.5rem; min-width:0; }
#lottoGrid.layout-list .list-name { font-weight:800; color:#1e293b; font-size:.92rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
[data-bs-theme="dark"] #lottoGrid.layout-list .list-name { color:#e2e8f0; }
#lottoGrid.layout-list .list-status { font-size:.68rem; font-weight:800; padding:.15rem .55rem; border-radius:999px; color:#fff; white-space:nowrap; }
.list-meta { display:none; }
.list-status.open{background:#16a34a} .list-status.closed{background:#f59e0b} .list-status.drawn{background:#6366f1} .list-status.idle{background:#94a3b8}

/* ================= FIX: list mode + controls layout ================= */
.cover-card { text-decoration: none; }
#lottoGrid.layout-list .cover-card { width: 100%; }
#lottoGrid.layout-list .list-name { text-decoration: none; }
/* search + toolbar อยู่แถวเดียวกัน (มือถือ wrap สวยๆ) */
.lotto-controls { display:flex; gap:.5rem; align-items:center; justify-content:center; flex-wrap:wrap; max-width:900px; margin:0 auto 1rem; }
.lotto-controls .lotto-search { flex:1 1 240px; max-width:440px; margin:0; }
.lotto-controls .lotto-toolbar { margin:0; }
