/* Pickle Mania Open Plays discovery — approved v3.0.0 */
:root { --pm-open-navy:#071d43; --pm-open-lime:#98dc00; --pm-open-bg:#f5f8fc; --pm-open-line:#dbe3ee; --pm-open-muted:#6f7e97; }
body.pm-open-filter-lock { overflow:hidden; }
.pm-open-page { width:min(1280px,calc(100% - 48px)); margin:0 auto; padding:32px 0 72px; color:var(--pm-open-navy); }
.pm-open-intro { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:24px; }
.pm-open-intro h1 { margin:0; font-size:34px; line-height:1.08; letter-spacing:-.035em; }
.pm-open-intro p { margin:7px 0 0; color:var(--pm-open-muted); font-size:16px; }
.pm-open-host-button,.pm-open-action,.pm-open-filter-modal>footer button { border:0; border-radius:12px; background:var(--pm-open-lime); color:var(--pm-open-navy); font-weight:900; cursor:pointer; }
.pm-open-host-button { min-height:50px; padding:0 24px; font-size:16px; box-shadow:0 12px 24px rgba(152,220,0,.2); }
.pm-open-tools { padding:0; }
.pm-open-toolbar { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:12px; }
.pm-open-search { height:56px; display:flex; align-items:center; gap:12px; padding:0 18px; border:1px solid var(--pm-open-line); border-radius:12px; background:#fff; }
.pm-open-search span { font-size:25px; color:#607086; transform:rotate(-15deg); }
.pm-open-search input { width:100%; border:0; outline:0; color:var(--pm-open-navy); font:inherit; font-size:15px; background:transparent; }
.pm-open-tool-button { min-height:56px; padding:0 20px; border:1px solid var(--pm-open-line); border-radius:12px; background:#fff; color:var(--pm-open-navy); font-weight:800; font-size:15px; cursor:pointer; white-space:nowrap; }
.pm-open-tool-button i { display:inline-grid; place-items:center; min-width:22px; height:22px; margin-left:8px; border-radius:50%; background:var(--pm-open-navy); color:#fff; font-style:normal; font-size:12px; }
.pm-open-dates { display:grid; grid-template-columns:1.05fr repeat(7,1fr); gap:10px; margin-top:18px; }
.pm-open-dates button { min-width:0; height:106px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; border:1px solid var(--pm-open-line); border-radius:13px; background:#fff; color:var(--pm-open-navy); cursor:pointer; }
.pm-open-dates small { font-size:11px; font-weight:900; color:#637087; }
.pm-open-dates b { font-size:24px; line-height:1; }
.pm-open-dates span { font-size:11px; font-weight:700; color:#637087; }
.pm-open-dates em { font-size:11px; font-weight:900; font-style:normal; color:#65748e; }
.pm-open-dates button.active { border-color:var(--pm-open-navy); background:var(--pm-open-navy); color:#fff; box-shadow:0 10px 20px rgba(7,29,67,.16); }
.pm-open-dates button.active :is(small,span,em) { color:#fff; }
.pm-open-chips { display:flex; flex-wrap:wrap; gap:9px; margin-top:17px; }
.pm-open-chips button { min-height:40px; padding:0 17px; border:1px solid var(--pm-open-line); border-radius:999px; background:#fff; color:var(--pm-open-navy); font-weight:800; cursor:pointer; }
.pm-open-chips button.active { border-color:#b7dd61; background:#f5ffe1; color:#4f7d00; }
.pm-open-error { margin:18px 0 0; padding:13px 16px; border:1px solid #f0c7c7; border-radius:11px; background:#fff3f3; color:#a22626; font-weight:700; }
.pm-open-results { margin-top:28px; }
.pm-open-results-title { display:flex; align-items:center; gap:12px; margin-bottom:17px; }
.pm-open-results-title h2 { display:flex; align-items:center; gap:10px; margin:0; font-size:23px; }
.pm-open-results-title h2 span { min-width:24px; height:24px; display:grid; place-items:center; border-radius:50%; background:#edf1f6; font-size:12px; }
.pm-open-results-title p { margin:0; color:var(--pm-open-muted); }
.pm-open-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.pm-open-card { overflow:hidden; min-width:0; border:1px solid var(--pm-open-line); border-radius:16px; background:#fff; box-shadow:0 12px 26px rgba(7,29,67,.08); }
.pm-open-card-head { min-height:94px; display:flex; justify-content:space-between; gap:14px; padding:18px 20px 16px; color:#fff; background-color:var(--pm-open-navy); background-image:radial-gradient(circle at 80% 35%,rgba(152,220,0,.3) 0 2px,transparent 3px),linear-gradient(135deg,transparent 72%,rgba(152,220,0,.3)); background-size:18px 18px,100% 100%; }
.pm-open-level { display:inline-block; padding:5px 10px; border:1px solid rgba(255,255,255,.25); border-radius:999px; background:rgba(255,255,255,.12); font-size:11px; font-weight:800; }
.pm-open-card-head h3 { margin:10px 0 0; max-width:250px; color:#fff; font-size:18px; line-height:1.15; }
.pm-open-card-head>strong { flex:0 0 auto; text-align:right; color:#fff; font-size:24px; }
.pm-open-card-head>strong small { display:block; margin-top:2px; color:#fff; font-size:9px; }
.pm-open-card-body { padding:16px 18px; }
.pm-open-meta { display:grid; grid-template-columns:42px minmax(0,1fr); align-items:center; gap:11px; margin-bottom:11px; }
.pm-open-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:10px; background:#f0f3f8; font-weight:900; }
.pm-open-meta b,.pm-open-meta small { display:block; }
.pm-open-meta b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; }
.pm-open-meta small { margin-top:3px; color:var(--pm-open-muted); font-size:12px; }
.pm-open-host { display:flex; align-items:center; gap:12px; margin:4px 0 15px; color:#617087; font-size:13px; }
.pm-open-host span { width:42px; text-align:center; color:var(--pm-open-navy); font-size:18px; }
.pm-open-player-row { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:58px; padding:9px 12px; border:1px solid #e5eaf1; border-radius:11px; background:#f8fafc; }
.pm-open-avatars { display:flex; align-items:center; min-width:82px; }
.pm-open-avatars>* { width:32px; height:32px; margin-right:-7px; border:2px solid #fff; border-radius:50%; }
.pm-open-avatars i { display:grid; place-items:center; background:#e7ecf4; color:var(--pm-open-navy); font-size:10px; font-style:normal; font-weight:900; }
.pm-open-player-row>b { font-size:14px; white-space:nowrap; }
.pm-open-player-row small { color:var(--pm-open-muted); font-weight:500; }
.pm-open-courts { min-height:31px; display:flex; flex-wrap:wrap; gap:7px; margin:15px 0 14px; }
.pm-open-courts span { height:27px; display:inline-flex; align-items:center; padding:0 10px; border:1px solid #c7d9fa; border-radius:6px; background:#f1f6ff; color:#1950a2; font-size:11px; font-weight:900; }
.pm-open-card footer { display:grid; grid-template-columns:minmax(0,1fr) 52px; gap:10px; }
.pm-open-action { min-height:48px; font-size:15px; }
.pm-open-action.muted { background:#e9eef5; color:#617087; box-shadow:none; }
.pm-open-action.leave { border:1px solid #d7dee8; background:#fff; color:var(--pm-open-navy); }
.pm-open-share { border:1px solid var(--pm-open-line); border-radius:11px; background:#fff; color:var(--pm-open-navy); font-size:22px; cursor:pointer; }
.pm-open-empty { min-height:210px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; border:1px dashed #ccd5e2; border-radius:16px; background:#fff; color:var(--pm-open-muted); }
.pm-open-empty b { color:var(--pm-open-navy); font-size:18px; }
.pm-open-empty button { margin-top:8px; border:0; background:transparent; color:#548600; font-weight:900; cursor:pointer; }
.pm-open-filter-backdrop { position:fixed; inset:0; z-index:10020; display:grid; place-items:center; padding:24px; overflow:auto; background:rgba(7,20,43,.68); backdrop-filter:blur(2px); }
.pm-open-filter-modal { width:min(540px,100%); max-height:calc(100vh - 48px); display:flex; flex-direction:column; overflow:hidden; border:1px solid #dfe5ed; border-radius:18px; background:#fff; box-shadow:0 30px 80px rgba(4,16,36,.35); }
.pm-open-filter-modal>header { flex:0 0 auto; display:grid; grid-template-columns:1fr auto auto; align-items:center; gap:15px; padding:20px 24px 15px; }
.pm-open-filter-modal>header h2 { margin:0; font-size:22px; }
.pm-open-clear { border:0; background:transparent; color:#6a7587; font-weight:800; cursor:pointer; }
.pm-open-close { width:38px; height:38px; border:1px solid var(--pm-open-line); border-radius:50%; background:#fff; color:var(--pm-open-navy); font-size:24px; line-height:1; cursor:pointer; }
.pm-open-filter-body { overflow:auto; padding:0 24px 18px; }
.pm-open-filter-body h3 { margin:17px 0 10px; color:#687588; font-size:11px; letter-spacing:.04em; }
.pm-open-segments { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.pm-open-segments.three { grid-template-columns:repeat(3,1fr); }
.pm-open-segments button { min-height:43px; border:1px solid var(--pm-open-line); border-radius:9px; background:#fff; color:var(--pm-open-navy); font-weight:800; cursor:pointer; }
.pm-open-segments button.active { border-color:#8ac700; background:#f5ffe2; color:#4f7c00; }
.pm-open-select-wrap { position:relative; }
.pm-open-select { width:100%; min-height:48px; display:flex; justify-content:space-between; align-items:center; padding:0 15px; border:1px solid #aebbd0; border-radius:9px; background:#fff; color:var(--pm-open-navy); font-weight:800; cursor:pointer; }
.pm-open-select-menu { position:absolute; z-index:3; top:53px; left:0; width:250px; padding:5px; border:1px solid var(--pm-open-line); border-radius:10px; background:#fff; box-shadow:0 12px 24px rgba(7,29,67,.16); }
.pm-open-select-menu button { width:100%; min-height:40px; display:flex; align-items:center; justify-content:space-between; padding:0 12px; border:0; border-radius:7px; background:#fff; color:var(--pm-open-navy); text-align:left; cursor:pointer; }
.pm-open-select-menu button.active { background:#f3f9e7; color:#4f7c00; }
.pm-open-check-list { display:grid; gap:9px; }
.pm-open-check-list.inline { grid-template-columns:repeat(2,minmax(0,150px)); }
.pm-open-check-list label { display:flex; align-items:center; gap:10px; color:var(--pm-open-navy); font-size:14px; cursor:pointer; }
.pm-open-check-list input { width:18px; height:18px; accent-color:#82be00; }
.pm-open-passcode { display:grid; grid-template-columns:auto minmax(0,1fr) 58px; align-items:center; gap:8px; }
.pm-open-passcode>span { font-size:21px; }
.pm-open-passcode input { min-width:0; height:44px; padding:0 12px; border:1px solid var(--pm-open-line); border-radius:8px; color:var(--pm-open-navy); letter-spacing:.12em; outline:0; }
.pm-open-passcode button { height:44px; border:1px solid #8ac700; border-radius:8px; background:#fff; color:#4f7c00; font-weight:900; cursor:pointer; }
.pm-open-filter-modal>footer { flex:0 0 auto; padding:15px 24px 22px; background:#fff; }
.pm-open-filter-modal>footer button { width:100%; min-height:52px; font-size:16px; }
@media (max-width:980px) {
  .pm-open-page { width:min(100% - 28px,760px); padding-top:24px; }
  .pm-open-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .pm-open-toolbar { grid-template-columns:1fr 1fr; }
  .pm-open-search { grid-column:1/-1; }
  .pm-open-dates { display:flex; overflow-x:auto; scrollbar-width:none; }
  .pm-open-dates button { flex:0 0 100px; }
}
@media (max-width:640px) {
  .pm-open-page { width:100%; padding:18px 14px 90px; }
  .pm-open-intro { align-items:flex-start; }
  .pm-open-intro h1 { font-size:27px; }
  .pm-open-intro p { font-size:14px; }
  .pm-open-host-button { min-height:44px; padding:0 14px; font-size:13px; }
  .pm-open-toolbar { gap:8px; }
  .pm-open-tool-button { min-height:48px; padding:0 10px; font-size:12px; }
  .pm-open-search { height:50px; }
  .pm-open-dates { margin-inline:-14px; padding:0 14px 4px; }
  .pm-open-dates button { flex-basis:88px; height:94px; }
  .pm-open-grid { grid-template-columns:1fr; }
  .pm-open-results-title { align-items:flex-start; flex-direction:column; gap:4px; }
  .pm-open-filter-backdrop { align-items:end; padding:0; }
  .pm-open-filter-modal { width:100%; max-height:92vh; border-radius:20px 20px 0 0; animation:pmOpenSheet .22s ease-out; }
  .pm-open-filter-modal>header { padding:17px 18px 11px; }
  .pm-open-filter-body { padding:0 18px 16px; }
  .pm-open-filter-modal>footer { padding:12px 18px max(18px,env(safe-area-inset-bottom)); }
  .pm-open-segments button { font-size:12px; }
}
@keyframes pmOpenSheet { from { transform:translateY(100%); } to { transform:translateY(0); } }
