.redpoint-player { position: relative; container-type: size; overflow: hidden; color: #fff; }
.material-symbols-outlined { font-family: 'Material Symbols Outlined'; font-weight: 400; font-style: normal; font-size: 24px; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; }
      .loading-overlay, .error-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(5, 7, 14, 0.85);
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        pointer-events: none;
        z-index: 10;
      }
      .loading-spinner {
        border: 8px solid #1c2333;
        border-top: 8px solid #e5483f;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        animation: spin 1s linear infinite;
        margin-bottom: 18px;
      }
      @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
      }
      .loading-message {
        font-weight: 600;
        letter-spacing: 0.01em;
      }
      #guide-controls { position: absolute; z-index: 6; top: 14px; left: 14px; max-width: calc(100cqw - 28px); font-family: Poppins, system-ui, sans-serif; font-size: 13px; }
      #guide-controls [hidden], #guide-backdrop[hidden] { display: none !important; }
      #guide-toolbar { display: flex; align-items: center; gap: 4px; width: max-content; max-width: 100%; overflow-x: auto; padding: 5px; border: 1px solid #ffffff30; border-radius: 15px; background: #101824e8; box-shadow: 0 8px 25px #0005; scrollbar-width: thin; }
      #guide-title { overflow: hidden; max-width: 145px; margin: 0 8px; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
      #guide-toolbar button, #guide-popover-header button { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: white; cursor: pointer; }
      #guide-toolbar button:hover, #guide-toolbar button[aria-expanded="true"], #guide-popover-header button:hover, #guide-popover-header button:focus-visible { background: #e5483f; }
      #guide-toolbar button[data-active="true"] { color: #ff8a81; }
      #guide-toolbar button[data-active="true"][aria-expanded="true"] { color: white; }
      #guide-toolbar .material-symbols-outlined, #guide-popover-header .material-symbols-outlined { font-size: 22px; }
      #route-count { flex: 0 0 auto; padding: 0 8px; opacity: .75; white-space: nowrap; font-size: 11px; }
      #guide-backdrop { position: absolute; inset: 0; z-index: 5; background: #05070e26; }
      #guide-popover { box-sizing: border-box; width: min(320px, calc(100cqw - 28px)); max-height: min(70cqh, 620px); margin-top: 8px; overflow: auto; border: 1px solid #ffffff36; border-radius: 14px; background: #111a27f2; box-shadow: 0 18px 42px #0008; color: #fff; }
      #guide-popover-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 4px 16px; }
      #guide-popover-header h2 { margin: 0; font-size: 15px; }
      #guide-popover-actions { display: flex; align-items: center; gap: 2px; }
      .guide-panel { padding: 6px 16px 16px; }
      .guide-panel p { color: #d8dfeb; }
      .guide-panel label { display: block; margin: 9px 0; }
      .guide-panel input[type="search"], .guide-panel input[type="number"], .guide-panel select { box-sizing: border-box; width: 100%; min-height: 38px; margin-top: 4px; padding: 6px 9px; border: 1px solid #ffffff50; border-radius: 8px; background: #202d3d; color: white; font: inherit; }
      .guide-panel input[type="range"] { display: block; width: 100%; accent-color: #e5483f; }
      .guide-panel input[type="checkbox"] { accent-color: #e5483f; }
      .guide-panel .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
      .guide-panel .check { display: flex; align-items: center; gap: 8px; margin: 7px 0; }
      .guide-panel .check input { margin: 0; }
      .guide-panel .option-list { display: flex; flex-direction: column; gap: 3px; }
      .grade-context { padding: 8px 0 14px; }
      .grade-context + .grade-context { border-top: 1px solid #ffffff30; }
      .grade-context h3 { margin: 0 0 4px; font-size: 13px; }
      .grade-range-values { display: flex; justify-content: space-between; color: #d8dfeb; font-size: 12px; }
      .dual-range-slider { position: relative; height: 42px; margin: 8px 5px 0; }
      .grade-range-track, .grade-range-selection { position: absolute; top: 18px; height: 5px; border-radius: 10px; }
      .grade-range-track { left: 0; right: 0; background: #536274; }
      .grade-range-selection { left: var(--range-start, 0%); right: calc(100% - var(--range-end, 100%)); background: #e5483f; }
      .dual-range-slider input[type="range"] { position: absolute; top: 8px; left: 0; width: 100%; height: 24px; margin: 0; appearance: none; background: transparent; pointer-events: none; }
      .dual-range-slider input[type="range"]::-webkit-slider-thumb { width: 20px; height: 20px; appearance: none; border: 3px solid white; border-radius: 50%; background: #e5483f; box-shadow: 0 1px 6px #0008; cursor: grab; pointer-events: auto; }
      .dual-range-slider input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border: 3px solid white; border-radius: 50%; background: #e5483f; box-shadow: 0 1px 6px #0008; cursor: grab; pointer-events: auto; }
      .dual-range-slider input[data-bound="min"] { z-index: 2; }
      .dual-range-slider input[data-bound="max"] { z-index: 3; }
      .guide-panel button { cursor: pointer; border: 1px solid #ffffff40; border-radius: 8px; background: #253448; color: white; padding: 7px 10px; font: inherit; }
      .guide-panel button:hover, .guide-panel button:focus-visible { background: #384d66; }
      #route-results { max-height: min(52cqh, 410px); overflow: auto; margin-top: 12px; }
      #route-results button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; margin: 3px 0; text-align: left; background: #ffffff10; }
      #route-results button[aria-current="true"] { border-color: #e5483f; background: #6c3032; }
      #route-results .grade { display: grid; place-items: center; flex: 0 0 auto; min-width: 35px; min-height: 26px; padding: 0 4px; border-radius: 5px; background: #e5483f; font-weight: 600; }
      #route-results .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
      #route-results .meta { margin-left: auto; opacity: .7; white-space: nowrap; font-size: 11px; }
      #guide-share-feedback { max-width: 320px; margin-top: 8px; padding: 10px 14px; border-radius: 12px; background: #111a27f2; }
      #guide-share-status { margin: 0; }
      #guide-share-url { box-sizing: border-box; width: 100%; margin-top: 8px; padding: 8px; }
      @media (max-width: 600px) { #guide-controls { top: 8px; left: 8px; max-width: calc(100cqw - 16px); } #guide-title { max-width: 100px; } #route-count { display: none; } #guide-popover { max-height: 60cqh; } }
