/* Jadwal Pertandingan di por.php: kartu ringkas, halaman, dan saringan cabor. Dimuat setelah por.css. */

/* ---------- Saringan cabor ---------- */
.jd-filter { margin: 0 0 22px; max-width: 100%; }
.jd-filter-in { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; padding: 2px 2px 8px; scrollbar-width: thin; }
@media (min-width: 768px) { .jd-filter-in { flex-wrap: wrap; overflow-x: visible; padding-bottom: 2px; } }
.jd-chip { --c: #1e3a8a; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; font-size: 13px; font-weight: 800; color: #374151; background: #fff; border: 1.5px solid #e5e7eb; cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s; }
.jd-chip svg { width: 18px; height: 18px; flex: none; color: var(--c); transition: color .2s; }
.jd-chip:hover { border-color: var(--c); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.jd-chip:focus-visible, .jd-pg:focus-visible, .jd-card:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.jd-chip-n { font-size: 11px; font-weight: 800; min-width: 22px; padding: 2px 6px; text-align: center; background: #f3f4f6; color: #4b5563; transition: background-color .2s, color .2s; }
.jd-chip[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: #fff; }
.jd-chip[aria-pressed="true"] svg { color: #fff; }
.jd-chip[aria-pressed="true"] .jd-chip-n { background: rgba(255, 255, 255, .25); color: #fff; }
.jd-chip.is-all { --c: #1e3a8a; }

/* ---------- Daftar dan kartu ---------- */
.jd-head { scroll-margin-top: 96px; }
.jd-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 640px) { #jadwalGrid.is-solo .jd-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.jd-list.jd-swap { animation: jd-swap .2s ease-out; }
@keyframes jd-swap { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }

.jd-card { --c: #1e3a8a; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; column-gap: 12px; align-items: start; min-width: 0; min-height: 72px; padding: 10px 12px; background: #fff; border: 1px solid #e5e7eb; color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s, border-color .2s; }
.jd-card:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, .09); transform: translateY(-1px); }
.jd-card.is-live { background: #f0fdf4; border-color: #4ade80; }
.jd-ico { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; color: #fff; }
.jd-ico svg { width: 30px; height: 30px; }
.jd-main { min-width: 0; }
.jd-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.jd-name { font-size: 18px; line-height: 1.15; font-weight: 400; color: var(--c); letter-spacing: .02em; }
.jd-tag { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px; background: #f3f4f6; color: #4b5563; white-space: nowrap; }
.jd-tag.is-exh { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; padding: 1px 6px; }
.jd-babak { font-size: 12px; font-weight: 600; color: #6b7280; }
.jd-vs { margin-top: 3px; font-size: 14px; line-height: 1.3; font-weight: 800; color: #111827; overflow-wrap: anywhere; }
.jd-vs .dim { font-weight: 500; font-style: italic; color: #9ca3af; }
.jd-vs i { font-style: normal; font-weight: 700; color: #9ca3af; margin: 0 4px; font-size: 12px; }
.jd-side { text-align: right; min-width: 0; max-width: 130px; }
.jd-when { font-size: 13px; font-weight: 800; color: #111827; white-space: nowrap; }
.jd-sub { margin-top: 2px; font-size: 11px; font-weight: 600; color: #6b7280; overflow-wrap: anywhere; }
.jd-live { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 3px 8px; background: #16a34a; color: #fff; }
.jd-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: jd-pulse 1.4s ease-in-out infinite; }
@keyframes jd-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

@media (max-width: 479px) {
  .jd-card { grid-template-columns: 56px minmax(0, 1fr); row-gap: 6px; }
  .jd-side { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 10px; text-align: left; max-width: none; }
  .jd-sub { margin-top: 0; }
}

/* ---------- Halaman ---------- */
.jd-nav { margin-top: 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.jd-nav[hidden] { display: none; }
.jd-pgs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.jd-pg { min-width: 44px; min-height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 800; color: #374151; background: #fff; border: 1.5px solid #e5e7eb; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.jd-pg:hover:not(:disabled):not([aria-current]) { border-color: #1e3a8a; color: #1e3a8a; }
.jd-pg[aria-current="page"] { background: #1e3a8a; border-color: #1e3a8a; color: #fff; cursor: default; }
.jd-pg:disabled { opacity: .4; cursor: not-allowed; }
.jd-gap { min-width: 24px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; color: #9ca3af; font-weight: 800; }
.jd-pg .jd-txt { display: none; }
@media (min-width: 480px) { .jd-pg .jd-txt { display: inline; } }
.jd-info { font-size: 12px; font-weight: 600; color: #6b7280; }

@media (prefers-reduced-motion: reduce) {
  .jd-list.jd-swap { animation: none; }
  .jd-live::before { animation: none; }
  .jd-card, .jd-chip, .jd-pg, .jd-chip-n { transition: none; }
  .jd-card:hover { transform: none; }
}

/* Tag kategori exhibition pada kartu cabor (por.php) */
.pc-tag.is-exh { color: #92400e; border-color: #d97706; background: #fef3c7; }
