:root {
      --bg: #f4f7fb;
      --card: #ffffff;
      --line: #d8e0ea;
      --accent: #f47c20;
      --accent-dark: #d46510;
      --text: #17324d;
      --muted: #61758a;
      --pitch: #1c8b47;
      --pitch-dark: #146737;
      --white: #ffffff;
      --shadow: 0 10px 30px rgba(16, 38, 63, 0.12);
      --radius: 18px;
    }

    #oranje-builder-shortcode, #oranje-builder-shortcode * { box-sizing: border-box; }

    #oranje-builder-shortcode {
      margin: 0;
      font-family: Arial, Helvetica, sans-serif;
      background: linear-gradient(180deg, #edf3f9 0%, #f8fbfe 100%);
      color: var(--text);
    }

    #oranje-builder-shortcode .app {
      min-height: 100vh;
      display: grid;
      grid-template-columns: 280px 1fr 320px;
      gap: 18px;
      padding: 18px;
    }

    #oranje-builder-shortcode .panel {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    #oranje-builder-shortcode .panel-inner {
      padding: 18px;
    }

    #oranje-builder-shortcode h1 {
      margin: 0 0 6px;
      font-size: 28px;
    }

    #oranje-builder-shortcode h2 {
      margin: 0 0 10px;
      font-size: 19px;
    }

    #oranje-builder-shortcode h3 {
      margin: 18px 0 10px;
      font-size: 15px;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    #oranje-builder-shortcode p, #oranje-builder-shortcode li, #oranje-builder-shortcode label, #oranje-builder-shortcode select, #oranje-builder-shortcode #oranje-builder-shortcode button {
      font-size: 14px;
      line-height: 1.45;
    }

    #oranje-builder-shortcode .subtle {
      color: var(--muted);
      margin: 0;
    }

    #oranje-builder-shortcode .controls {
      display: grid;
      gap: 12px;
    }

    #oranje-builder-shortcode .control-label {
      display: block;
      margin-bottom: 6px;
      font-weight: 700;
    }

    #oranje-builder-shortcode select, #oranje-builder-shortcode #oranje-builder-shortcode button {
      width: 100%;
      border-radius: 12px;
      border: 1px solid var(--line);
      background: #fff;
      padding: 11px 12px;
      color: var(--text);
    }

    #oranje-builder-shortcode button {
      background: var(--accent);
      border-color: var(--accent);
      color: white;
      font-weight: 700;
      cursor: pointer;
      transition: 0.2s ease;
    }

    #oranje-builder-shortcode button:hover {
      background: var(--accent-dark);
      border-color: var(--accent-dark);
    }

    #oranje-builder-shortcode .secondary {
      background: #fff;
      color: var(--text);
      border-color: var(--line);
    }

    #oranje-builder-shortcode .secondary:hover {
      background: #f6f9fc;
      border-color: #bfcad7;
    }

    #oranje-builder-shortcode .center-panel {
      display: flex;
      flex-direction: column;
      min-width: 0;
    }

    #oranje-builder-shortcode .toolbar {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
    }

    #oranje-builder-shortcode .legend {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      color: var(--muted);
      font-size: 13px;
    }

    #oranje-builder-shortcode .legend span {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: #fff;
      border: 1px solid var(--line);
      padding: 7px 10px;
      border-radius: 999px;
    }

    #oranje-builder-shortcode .dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      display: inline-block;
    }

    #oranje-builder-shortcode .dot#oranje-builder-shortcode .slot {
  width: 100px !important;
  height: 100px !important;
}
    #oranje-builder-shortcode .dot.player { background: var(--accent); }

    #oranje-builder-shortcode .pitch-wrap {
      flex: 1;
      min-height: 720px;
      position: relative;
      background: var(--card);
      border-radius: var(--radius);
      border: 1px solid var(--line);
      box-shadow: var(--shadow);
      padding: 16px;
    }

        #oranje-builder-shortcode .pitch {
      position: relative;
      height: 100%;
      min-height: 760px;
      border-radius: 20px;
      overflow: hidden;
      background:
        repeating-linear-gradient(
          180deg,
          var(--pitch) 0px,
          var(--pitch) 58px,
          var(--pitch-dark) 58px,
          var(--pitch-dark) 116px
        );
      border: 3px solid rgba(255,255,255,0.8);
    }

    #oranje-builder-shortcode .field-line, #oranje-builder-shortcode .penalty-top, #oranje-builder-shortcode .goal-top, #oranje-builder-shortcode .halfway, #oranje-builder-shortcode .center-circle, #oranje-builder-shortcode #oranje-builder-shortcode .center-spot {
      position: absolute;
      border-color: rgba(255,255,255,0.9);
    }

    #oranje-builder-shortcode .field-line {
      left: 14px;
      right: 14px;
      top: 14px;
      bottom: 14px;
      border: 3px solid rgba(255,255,255,0.9);
      border-radius: 8px;
    }

    #oranje-builder-shortcode .halfway {
      left: 14px;
      right: 14px;
      bottom: 14px;
      height: 0;
      border-top: 3px solid rgba(255,255,255,0.9);
    }

    #oranje-builder-shortcode .center-circle {
      width: 180px;
      height: 180px;
      border: 3px solid rgba(255,255,255,0.9);
      border-radius: 50%;
      left: 50%;
      bottom: -90px;
      transform: translateX(-50%);
    }

    #oranje-builder-shortcode .center-spot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: rgba(255,255,255,0.9);
      left: 50%;
      bottom: 10px;
      transform: translateX(-50%);
    }

    #oranje-builder-shortcode .penalty-top {
      left: 50%;
      width: 240px;
      height: 130px;
      top: 14px;
      transform: translateX(-50%);
      border: 3px solid rgba(255,255,255,0.9);
      border-bottom: none;
    }

    #oranje-builder-shortcode .goal-top {
      left: 50%;
      width: 110px;
      height: 38px;
      top: 14px;
      transform: translateX(-50%);
      border: 3px solid rgba(255,255,255,0.9);
      border-bottom: none;
    }

    #oranje-builder-shortcode .slot {
      position: absolute;
      width: 90px;
      height: 90px;
      transform: translate(-50%, -50%);
      border-radius: 50%;
      border: 2px dashed rgba(255,255,255,0.85);
      background: rgba(255,255,255,0.14);
      display: grid;
      place-items: center;
      color: rgba(255,255,255,0.92);
      font-size: 11px;
      text-align: center;
      cursor: grab;
      user-select: none;
      backdrop-filter: blur(3px);
    }

    #oranje-builder-shortcode .slot.empty::after {
      content: attr(data-role);
      width: 58px;
      line-height: 1.15;
    }

    #oranje-builder-shortcode .slot.dragging,
    #oranje-builder-shortcode .player-card.dragging {
      cursor: grabbing;
      z-index: 30;
    }

    #oranje-builder-shortcode .player-card {
      position: absolute;
      width: 118px;
      min-height: 56px;
      transform: translate(-50%, -50%);
      border-radius: 16px;
      background: rgba(244, 124, 32, 0.97);
      color: white;
      box-shadow: 0 10px 24px rgba(0,0,0,0.22);
      border: 2px solid rgba(255,255,255,0.85);
      padding: 8px 10px;
      text-align: center;
      font-weight: 700;
      font-size: 13px;
      line-height: 1.2;
      cursor: grab;
      user-select: none;
      touch-action: none;
    }

    #oranje-builder-shortcode .player-card.selected {
      outline: 4px solid rgba(255,255,255,0.92);
      box-shadow: 0 0 0 4px rgba(244,124,32,0.45), 0 10px 24px rgba(0,0,0,0.22);
    }

    #oranje-builder-shortcode .player-card small {
      display: block;
      font-size: 11px;
      font-weight: 400;
      opacity: 0.92;
      margin-top: 4px;
    }

    #oranje-builder-shortcode .bench {
      display: grid;
      gap: 10px;
      max-height: calc(100vh - 120px);
      overflow: auto;
      padding-right: 6px;
    }

    #oranje-builder-shortcode .group {
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 12px;
      background: #fbfdff;
    }

    #oranje-builder-shortcode .group-title {
      font-size: 13px;
      font-weight: 800;
      letter-spacing: 0.04em;
      color: var(--muted);
      text-transform: uppercase;
      margin-bottom: 10px;
    }

    #oranje-builder-shortcode .name-list {
      display: grid;
      gap: 8px;
    }

    #oranje-builder-shortcode .name-pill {
      border: 1px solid var(--line);
      background: #fff;
      border-radius: 12px;
      padding: 10px 12px;
      cursor: grab;
      transition: 0.18s ease;
      user-select: none;
    }

    #oranje-builder-shortcode .name-pill:hover {
      border-color: #9fb1c5;
      transform: translateY(-1px);
      box-shadow: 0 8px 18px rgba(19,44,73,0.08);
    }

    #oranje-builder-shortcode .name-pill.used {
      opacity: 0.45;
      background: #eef3f8;
    }

    #oranje-builder-shortcode .tips {
      margin-top: 14px;
      padding: 12px;
      border-radius: 14px;
      background: #f8fbff;
      border: 1px solid var(--line);
      color: var(--muted);
    }

    #oranje-builder-shortcode .counter {
      font-weight: 700;
      color: var(--text);
    }

    #oranje-builder-shortcode .footer-note {
      margin-top: 10px;
      color: var(--muted);
      font-size: 12px;
    }

    @media (max-width: 1180px) {
      #oranje-builder-shortcode .app {
        grid-template-columns: 1fr;
      }

      #oranje-builder-shortcode .pitch-wrap {
        min-height: 600px;
      }

      #oranje-builder-shortcode .bench {
        max-height: none;
      }
    }
  
    #oranje-builder-shortcode .slot {
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
    }

    #oranje-builder-shortcode .slot.empty::after {
      content: '';
      display: none;
    }

    #oranje-builder-shortcode .slot-plus-btn {
  width: 48px !important;
  height: 48px !important;
}

    #oranje-builder-shortcode .slot-plus-btn:hover {
      background: rgba(255,255,255,0.28);
    }

    #oranje-builder-shortcode .slot-plus-btn:active {
      transform: scale(0.97);
    }

    #oranje-builder-shortcode .picker-overlay {
      position: fixed;
      inset: 0;
      background: rgba(23, 50, 77, 0.45);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 2000;
      padding: 18px;
    }

    #oranje-builder-shortcode .picker-overlay.open {
      display: flex;
    }

    #oranje-builder-shortcode .picker {
      width: min(580px, 100%);
      max-height: 84vh;
      overflow: hidden;
      background: #fff;
      border-radius: 18px;
      box-shadow: 0 18px 40px rgba(16, 38, 63, 0.25);
      border: 1px solid var(--line);
      display: flex;
      flex-direction: column;
    }

    #oranje-builder-shortcode .picker-head {
      padding: 16px 18px 12px;
      border-bottom: 1px solid var(--line);
    }

    .picker-head #oranje-builder-shortcode h3 {
      margin: 0 0 6px;
      color: var(--text);
    }

    #oranje-builder-shortcode .picker-head p {
      margin: 0;
      color: var(--muted);
    }

    .picker-#oranje-builder-shortcode {
      padding: 14px 18px 18px;
      overflow: auto;
      display: grid;
      gap: 14px;
    }

    #oranje-builder-shortcode .picker-group {
      display: grid;
      gap: 8px;
    }

    #oranje-builder-shortcode .picker-group-title {
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: var(--muted);
    }

    #oranje-builder-shortcode .picker-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    #oranje-builder-shortcode .picker-item {
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 10px 12px;
      background: #fff;
      color: var(--text);
      cursor: pointer;
      font-weight: 700;
    }

    #oranje-builder-shortcode .picker-item:hover {
      border-color: var(--accent);
      background: #fff7f1;
    }

    #oranje-builder-shortcode .picker-item.used {
      opacity: 0.45;
      background: #eef3f8;
    }

    #oranje-builder-shortcode .picker-actions {
      display: flex;
      gap: 10px;
      padding: 0 18px 18px;
    }

  
    #oranje-builder-shortcode .player-remove-btn {
      position: absolute;
      right: 6px;
      bottom: 6px;
      width: 22px;
      height: 22px;
      border: none;
      border-radius: 999px;
      background: rgba(255,255,255,0.96);
      color: var(--accent-dark);
      font-size: 16px;
      font-weight: 700;
      line-height: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 4px 10px rgba(0,0,0,0.18);
      padding: 0;
    }

    #oranje-builder-shortcode .player-remove-btn:hover {
      background: #fff;
      transform: scale(1.03);
    }

#oranje-builder-shortcode {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 100vh;
}

#oranje-builder-shortcode .app {
  min-height: 100vh;
  width: 100vw;
  max-width: 100vw;
  grid-template-columns: 285px minmax(0, 1fr) 320px;
  gap: 12px;
  padding: 12px;
  border-radius: 0;
}

#oranje-builder-shortcode .panel,
#oranje-builder-shortcode .pitch-wrap {
  border-radius: 18px;
}

#oranje-builder-shortcode .pitch-wrap {
  min-height: calc(100vh - 24px);
  padding: 10px;
}

#oranje-builder-shortcode .pitch {
  min-height: calc(100vh - 44px);
}

#oranje-builder-shortcode .bench {
  max-height: calc(100vh - 110px);
}

#oranje-builder-shortcode .panel-inner {
  padding: 14px;
}

#oranje-builder-shortcode .controls {
  gap: 8px;
}

#oranje-builder-shortcode .share-inline-actions {
  display: grid;
  gap: 8px;
}

#oranje-builder-shortcode .mobile-share-bar {
  position: fixed;
  right: 12px;
  bottom: 86px;
  z-index: 99998;
  display: none;
  gap: 8px;
}

#oranje-builder-shortcode .mobile-share-bar button {
  width: auto;
  min-width: 132px;
  box-shadow: 0 10px 20px rgba(16, 38, 63, 0.18);
}

#oranje-builder-shortcode .slot {
  width: 118px;
  height: 118px;
  touch-action: none;
}

#oranje-builder-shortcode .slot-plus-btn {
  width: 58px;
  height: 58px;
}

#oranje-builder-shortcode .player-card {
  width: 128px;
  min-height: 58px;
  font-size: 12px;
  padding: 8px 12px 12px;
  touch-action: none;
}

#oranje-builder-shortcode .player-card small {
  font-size: 10px;
}

#oranje-builder-shortcode .player-remove-btn {
  width: 30px;
  height: 30px;
  right: 4px;
  bottom: 4px;
  font-size: 24px;
}

#oranje-builder-shortcode .picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

#oranje-builder-shortcode .picker {
  max-height: 86vh;
  overflow: hidden;
}

#oranje-builder-shortcode .picker-body {
  max-height: 70vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* hide theme chrome */
body:has(#oranje-builder-shortcode) header,
body:has(#oranje-builder-shortcode) footer,
body:has(#oranje-builder-shortcode) .site-header,
body:has(#oranje-builder-shortcode) .site-footer,
body:has(#oranje-builder-shortcode) .wp-block-template-part,
body:has(#oranje-builder-shortcode) .entry-header,
body:has(#oranje-builder-shortcode) .post-thumbnail,
body:has(#oranje-builder-shortcode) .wp-block-post-featured-image,
body:has(#oranje-builder-shortcode) .wp-block-post-title,
body:has(#oranje-builder-shortcode) .entry-title,
body:has(#oranje-builder-shortcode) h1.wp-block-post-title {
  display: none !important;
}

body:has(#oranje-builder-shortcode) .wp-site-blocks,
body:has(#oranje-builder-shortcode) .site-main,
body:has(#oranje-builder-shortcode) main,
body:has(#oranje-builder-shortcode) .entry-content,
body:has(#oranje-builder-shortcode) .wp-block-post-content {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

@media (max-width: 1180px) {
  #oranje-builder-shortcode {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  #oranje-builder-shortcode .app {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 10px;
    padding: 8px;
  }

  #oranje-builder-shortcode .app > :nth-child(2) { order: 1; }
  #oranje-builder-shortcode .app > :nth-child(1) { order: 2; }
  #oranje-builder-shortcode .app > :nth-child(3) { order: 3; }

  #oranje-builder-shortcode .pitch-wrap,
  #oranje-builder-shortcode .pitch {
    min-height: 69vh;
  }

  #oranje-builder-shortcode .panel-inner {
    padding: 12px;
  }

  #oranje-builder-shortcode .share-inline-actions {
    display: none;
  }

  #oranje-builder-shortcode .mobile-share-bar {
    display: grid;
  }

  #oranje-builder-shortcode .slot {
    width: 92px;
    height: 92px;
  }

  #oranje-builder-shortcode .slot-plus-btn {
    width: 56px;
    height: 56px;
  }

  #oranje-builder-shortcode .player-card {
    width: 124px;
    min-height: 54px;
    font-size: 11px;
    padding: 8px 10px 10px;
  }

  #oranje-builder-shortcode .player-card small {
    font-size: 9px;
    margin-top: 2px;
  }

  #oranje-builder-shortcode .picker {
    width: min(94vw, 680px);
  }
}

#oranje-builder-shortcode .player-remove-btn {
  z-index: 8;
}

#oranje-builder-shortcode .player-card {
  overflow: visible;
}

#oranje-builder-shortcode .delete-selected-wrap {
  display: grid;
  gap: 8px;
}

#oranje-builder-shortcode .mobile-share-bar {
  display: none;
}

#oranje-builder-shortcode .mobile-action-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 84px;
  z-index: 99998;
  display: none;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

#oranje-builder-shortcode .mobile-action-bar button {
  min-height: 44px;
  box-shadow: 0 10px 20px rgba(16, 38, 63, 0.18);
}

@media (max-width: 1180px) {
  #oranje-builder-shortcode .mobile-action-bar {
    display: grid;
  }
}


/* v1.6: smaller player tiles + smart mobile spacing support */
#oranje-builder-shortcode .player-card {
  width: 108px !important;
  min-height: 48px !important;
  font-size: 11px !important;
  padding: 6px 8px 8px !important;
}

#oranje-builder-shortcode .player-card small {
  display: none;
}

#oranje-builder-shortcode .player-remove-btn {
  width: 28px !important;
  height: 28px !important;
  font-size: 20px !important;
  right: 2px !important;
  bottom: 2px !important;
}

@media (max-width: 1180px) {
  #oranje-builder-shortcode .player-card {
    min-height: 42px !important;
    font-size: 10px !important;
    padding: 5px 7px 7px !important;
    border-radius: 14px !important;
  }

  #oranje-builder-shortcode .player-remove-btn {
    width: 26px !important;
    height: 26px !important;
    font-size: 18px !important;
  }
}


/* v1.8 remove vague circle top-left mobile */
@media (max-width: 1180px) {
  #oranje-builder-shortcode .legend,
  #oranje-builder-shortcode .toolbar,
  #oranje-builder-shortcode .dot,
  #oranje-builder-shortcode .center-circle {
    display: none !important;
  }
}


/* v1.9 improved spacing per line */
@media (max-width: 1180px) {
  #oranje-builder-shortcode .pitch-wrap,
  #oranje-builder-shortcode .pitch {
    min-height: 74vh !important;
  }
}


/* v2.0 restore circular plus slots */
#oranje-builder-shortcode .slot {
  border-radius: 50% !important;
}

#oranje-builder-shortcode .slot-plus-btn {
  border-radius: 50% !important;
}


/* v2.1 slightly smaller circles */
#oranje-builder-shortcode .slot {
  width: 92px !important;
  height: 92px !important;
}

#oranje-builder-shortcode .slot-plus-btn {
  width: 42px !important;
  height: 42px !important;
}

@media (max-width: 1180px) {
  #oranje-builder-shortcode .slot {
    width: 84px !important;
    height: 84px !important;
  }
  #oranje-builder-shortcode .slot-plus-btn {
    width: 40px !important;
    height: 40px !important;
  }
}


/* v2.2 tighter player cards */
#oranje-builder-shortcode .player-card {
  min-height: 38px !important;
  padding: 4px 6px 6px !important;
  line-height: 1.1 !important;
}

#oranje-builder-shortcode .player-card small {
  margin-top: 0 !important;
  line-height: 1 !important;
}

@media (max-width: 1180px) {
  #oranje-builder-shortcode .player-card {
    min-height: 34px !important;
    padding: 3px 5px 5px !important;
    line-height: 1.05 !important;
  }
}
