/* Root Panel/Modal Styles */

    :root {
        /* Color Variables */
        --modal-bg: hsl(var(--main), 10%, 15%);
    }

    .modal {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        visibility: hidden;
    }

    .modal.is-active {
        visibility: visible;
    }

    .modal .modal-background {
        -webkit-transition: all 0.3s;
        -o-transition: all 0.3s;
        transition: all 0.3s;
        opacity: 0;
    }

    .modal.is-active .modal-background {
        opacity: .65;
    }

    .modal .modal-content {
        margin: 0 !important;
        max-height: 95vh;
        max-width: 85vw;
        width: fit-content;
        box-shadow: 
            0 0 1px rgba(0, 0, 0, 0.1),
            0 1px 2px rgba(0, 0, 0, 0.15),
            0 2px 4px rgba(0, 0, 0, 0.12),
            0 4px 8px rgba(0, 0, 0, 0.1),
            0 8px 16px rgba(0, 0, 0, 0.08),
            0 16px 32px rgba(0, 0, 0, 0.06);
        border: 1px solid hsla(var(--main), 50%, 70%, 0.15);
        overflow-y: hidden;
        -webkit-transform: scale(0.25);
        -o-transform: scale(0.25);
        transform: scale(0.25);
        opacity: 0;
        -webkit-transition: all 0.3s;
        -o-transition: all 0.3s;
        transition: all 0.3s;
    }

    .modal .modal-content.loading-state,
    .modal .modal-content.error-state {
        transform: scale(1);
        opacity: 1;
    }

    .modal.is-active .modal-content {
        -webkit-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
        opacity: 1;
        border-radius: 12px;
        box-shadow: 
            0 0 2px rgba(0, 0, 0, 0.1),
            0 2px 4px rgba(0, 0, 0, 0.15),
            0 4px 8px rgba(0, 0, 0, 0.12),
            0 8px 16px rgba(0, 0, 0, 0.1),
            0 16px 32px rgba(0, 0, 0, 0.08),
            0 32px 64px rgba(0, 0, 0, 0.06),
            0 0 0 1px hsla(var(--main), 100%, 100%, 0.08),
            0 0 16px hsla(var(--main), 70%, 60%, 0.25),
            inset 0 0 1px hsla(var(--main), 100%, 100%, 0.1);
        border: 1px solid hsla(var(--main), 50%, 70%, 0.35);
    }

    .modal.is-active > * {
        transition: all 0.3s;
    }

    @media screen and (min-width: 769px) {
        .modal-content {
            max-height: calc(100vh);
            overflow: hidden;
            /*width: 65%;*/
        }
    }

        .modal-content .main-block {
            background: hsl(var(--main), 10%, 15%);
            position: relative;
            max-height: 25vh;
            padding: 0px;
        }
            .main-block .main-banner {
                /*background-color: hsl(var(--main), 30%, 50%);*/
                max-height: 250px;
                min-height: 200px;
                height: fit-content !important;
                width: 100%;
                border-top-right-radius: 20px;
                border-top-left-radius: 20px;
                display: flex;
                position: relative;
                flex-direction: row;
                pointer-events: auto;
                background-size: 100%;
                padding: 0px;
                transition: max-height 0.4s ease;
                z-index: 0;
            }
                .main-block .main-banner::before {
                    content: "";
                    position: absolute;
                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    background-size: cover;
                    background-position: center;
                    background-image: var(--banner-bg);
                    filter: blur(2px) brightness(0.75);
                    z-index: 0;
                    transition: max-height 0.4s ease;
                }
        
        .modal-content .second-block {
            display: flex;
            background: var(--container-bg);
            max-height: 65vh;
            overflow-y: auto;
        }
            .second-block .content {
                position: relative;
                display: flex;
                flex-direction: column;
                width: 100%;
                height: fit-content;
                background-color: hsl(var(--main), 18%, 18%);
                padding: 4px;
                margin: 4px;
                border-radius: 8px;
                transition: 0.2s ease;
            }

/* Search Panel Styles */
    /* Search Button Styles */
        .search-circle {
          width: 30px;
          height: 30px;
          border: 2px solid #ccc;
          border-radius: 50%;
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
          opacity: 0.5;
          transition: opacity 0.3s ease-in-out;
        }

        .search-circle.animate {
          opacity: 1;
        }

    [data-panel="Search"].modal-content {
      max-height: calc(100vh - 100px);
      height: fit-content;
      min-width: 600px;
    }

    @media (max-width: 768px) {
      [data-panel="Search"].modal-content {
        min-width: unset;
        width: 100%;
      }
    }

    .search-fg {
      width: 100%;
      max-height: calc(100vh);
      height: fit-content;
      margin: auto;
      background: linear-gradient(135deg, hsl(var(--main), 10%, 18%) 0%, hsl(var(--main), 12%, 15%) 100%);
      padding: 1.5em 2em;
      min-height: 50%;
      border-radius: 16px;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
      border: 1px solid hsla(var(--main), 50%, 70%, 0.15);
    }

    @media (max-width: 968px) {
      .search-fg {
        width: 100%;
        padding: 1em 1.5em;
      }
    }

    .search-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 1.5em;
    }

    .search-header h2 {
      margin: 0;
      font-size: 1.5rem;
      font-weight: 600;
      color: hsl(var(--main), 50%, 90%);
      letter-spacing: 0.5px;
    }

    .search-header .kbd-hint {
      margin-left: auto;
      font-size: 0.75rem;
      color: hsl(var(--main), 30%, 60%);
      background: hsl(var(--main), 15%, 25%);
      padding: 4px 8px;
      border-radius: 6px;
      border: 1px solid hsl(var(--main), 20%, 30%);
    }

    .search-input-wrapper {
      position: relative;
      margin-bottom: 1.5em;
    }

    .search-input-wrapper input {
      width: 100%;
      height: 48px;
      background: hsl(var(--main), 12%, 20%);
      border: 2px solid hsl(var(--main), 20%, 30%);
      border-radius: 12px;
      font-size: 16px;
      padding: 0 48px 0 48px;
      transition: all 0.2s ease;
      color: hsl(var(--main), 50%, 95%);
      font-weight: 500;
    }

    .search-input-wrapper input::placeholder {
      color: hsl(var(--main), 30%, 50%);
    }

    .search-input-wrapper input:focus {
      outline: none;
      border-color: hsl(var(--main), 50%, 60%);
      background: hsl(var(--main), 12%, 22%);
      box-shadow: 0 0 0 3px hsla(var(--main), 50%, 60%, 0.2);
    }

    .search-input-wrapper .search-icon {
      position: absolute;
      left: 16px;
      top: 50%;
      transform: translateY(-50%);
      color: hsl(var(--main), 30%, 50%);
      transition: color 0.2s ease;
      pointer-events: none;
    }

    .search-input-wrapper input:focus + .search-icon {
      color: hsl(var(--main), 50%, 80%);
    }

    .search-input-wrapper .clear-btn {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: hsl(var(--main), 30%, 50%);
      cursor: pointer;
      padding: 4px;
      border-radius: 6px;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .search-input-wrapper .clear-btn:hover {
      background: hsl(var(--main), 15%, 25%);
      color: hsl(var(--main), 50%, 80%);
    }

    .search-input-wrapper .clear-btn:active {
      transform: translateY(-50%) scale(0.95);
    }

    .search-divider {
      height: 1px;
      background: linear-gradient(90deg, transparent, hsl(var(--main), 25%, 35%), transparent);
      margin: 1.5em 0;
      border-radius: 1px;
    }

    .search-container {
      overflow-x: hidden;
      height: fit-content;
      width: 100%;
      overflow-y: auto;
      max-height: 50vh;
      min-height: 10em;
      padding-right: 8px;
    }

    /* Custom Scrollbar */
    .search-container::-webkit-scrollbar {
      width: 6px;
    }

    .search-container::-webkit-scrollbar-track {
      background: hsl(var(--main), 12%, 18%);
      border-radius: 3px;
    }

    .search-container::-webkit-scrollbar-thumb {
      background: hsl(var(--main), 25%, 35%);
      border-radius: 3px;
      transition: background 0.2s ease;
    }

    .search-container::-webkit-scrollbar-thumb:hover {
      background: hsl(var(--main), 35%, 45%);
    }

    .search-section {
      margin-bottom: 1.5em;
    }

    .search-section-header {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 0.75em;
      padding-bottom: 0.5em;
      border-bottom: 1px solid hsl(var(--main), 20%, 25%);
    }

    .search-section-header h3 {
      margin: 0;
      font-size: 1rem;
      font-weight: 600;
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }

    .search-section-header .count {
      font-size: 0.85rem;
      color: hsl(var(--main), 40%, 60%);
      background: hsl(var(--main), 15%, 25%);
      padding: 2px 8px;
      border-radius: 10px;
      font-weight: 500;
    }

    .search-section-header .icon {
      font-size: 1rem;
    }

    .search-section-header.player-results h3 {
      color: #60a5fa;
    }

    .search-section-header.player-results .icon {
      color: #60a5fa;
    }

    .search-section-header.beatmap-results h3 {
      color: #34d399;
    }

    .search-section-header.beatmap-results .icon {
      color: #34d399;
    }

    .search-section-header.beatmap-results {
      gap: 8px;
      margin-bottom: 0.75em;
      padding-bottom: 0.5em;
      border-bottom: 1px solid hsl(var(--main), 20%, 25%);
    }

    .results-container {
      overflow-y: auto;
      min-height: 60px;
      padding-top: 4px;
    }

    .results-container.empty {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 80px;
      color: hsl(var(--main), 30%, 50%);
      font-style: italic;
    }

    .results-container.loading {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 80px;
    }

    .loading-spinner {
      width: 24px;
      height: 24px;
      border: 2px solid hsl(var(--main), 20%, 30%);
      border-top-color: hsl(var(--main), 50%, 60%);
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    .error-message {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 12px;
      background: hsl(0, 60%, 20%, 0.3);
      border: 1px solid hsl(0, 60%, 40%, 0.3);
      border-radius: 8px;
      color: hsl(0, 70%, 70%);
      font-size: 0.9rem;
    }

    .error-message i {
      font-size: 1.1rem;
    }

    /* Beatmap Search Results */
        .bm-search-result {
          height: 72px;
          background: hsl(var(--main), 12%, 22%);
          border: 1px solid hsl(var(--main), 20%, 28%);
          border-radius: 10px;
          display: flex;
          margin-bottom: 8px;
          overflow: hidden;
          transition: all 0.2s ease;
          position: relative;
        }

        .bm-search-result::before {
          content: '';
          position: absolute;
          left: 0;
          top: 0;
          bottom: 0;
          width: 3px;
          background: linear-gradient(180deg, #34d399, #10b981);
          opacity: 0;
          transition: opacity 0.2s ease;
        }

        .bm-search-result:hover {
          transform: translateY(-4px);
          border-color: hsl(var(--main), 30%, 40%);
        }

        .bm-search-result:hover::before {
          opacity: 1;
        }

        .bm-search-result-container {
          display: flex;
          width: 100%;
          height: 100%;
          background: hsl(var(--main), 12%, 22%);
        }

        .bm-search-result .thumbnail {
          width: 96px;
          height: 100%;
          position: relative;
          overflow: hidden;
          flex-shrink: 0;
          background: linear-gradient(135deg, hsl(var(--main), 12%, 18%) 0%, hsl(var(--main), 12%, 15%) 100%);
          display: flex;
          align-items: center;
          justify-content: center;
        }

        .bm-search-result .thumbnail img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          transition: transform 0.3s ease;
        }

        .bm-search-result:hover .thumbnail img {
          transform: scale(1.1);
        }

        .bm-search-result .thumbnail .fallback-icon {
          font-size: 2rem;
          color: hsl(var(--main), 30%, 40%);
          opacity: 0.6;
          transition: opacity 0.2s ease;
          position: absolute;
          z-index: 1;
        }

        .bm-search-result:hover .thumbnail .fallback-icon {
          opacity: 0.8;
        }

        .bm-search-result .thumbnail .play-overlay {
          position: absolute;
          inset: 0;
          background: rgba(0, 0, 0, 0.4);
          display: flex;
          align-items: center;
          justify-content: center;
          opacity: 0;
          transition: opacity 0.2s ease;
          cursor: pointer;
        }

        .bm-search-result:hover .thumbnail .play-overlay {
          opacity: 1;
        }

        .bm-search-result .thumbnail .play-btn {
          width: 32px;
          height: 32px;
          background: hsl(var(--main), 50%, 60%);
          border-radius: 50%;
          display: flex;
          align-items: center;
          justify-content: center;
          color: white;
          transition: transform 0.2s ease;
        }

        .bm-search-result .thumbnail .play-btn:hover {
          transform: scale(1.1);
        }

        .bm-search-result .info {
          flex: 1;
          padding: 6px 12px;
          display: flex;
          flex-direction: column;
          justify-content: space-between;
          min-width: 0;
          overflow: hidden;
        }

        .bm-search-result .title {
          font-weight: 600;
          font-size: 0.95rem;
          color: hsl(var(--main), 50%, 95%);
          white-space: nowrap;
          text-overflow: ellipsis;
          margin-bottom: 0;
        }

        .bm-search-result .artist {
          font-size: 0.85rem;
          color: hsl(var(--main), 40%, 65%);
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }

        .bm-search-result .creator {
          font-size: 0.75rem;
          color: hsl(var(--main), 35%, 55%);
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }

        .bm-search-result .actions {
          display: flex;
          align-items: center;
          gap: 8px;
          padding: 0 12px;
          border-left: 1px solid hsl(var(--main), 20%, 28%);
        }

        .bm-search-result .action-btn {
          width: 36px;
          height: 36px;
          border-radius: 8px;
          display: flex;
          align-items: center;
          justify-content: center;
          cursor: pointer;
          transition: all 0.2s ease;
          border: 1px solid transparent;
        }

        .bm-search-result .action-btn.play {
          background: hsl(210, 80%, 50%, 0.2);
          color: #60a5fa;
          border-color: hsl(210, 80%, 50%, 0.3);
        }

        .bm-search-result .action-btn.play:hover {
          background: hsl(210, 80%, 50%, 0.3);
          transform: scale(1.05);
        }

        .bm-search-result .action-btn.play.playing {
          background: hsl(0, 70%, 50%, 0.2);
          color: #f87171;
          border-color: hsl(0, 70%, 50%, 0.3);
        }

        .bm-search-result .action-btn.download {
          background: hsl(142, 70%, 40%, 0.2);
          color: #34d399;
          border-color: hsl(142, 70%, 40%, 0.3);
        }

        .bm-search-result .action-btn.download:hover {
          background: hsl(142, 70%, 40%, 0.3);
          transform: scale(1.05);
        }

        .bm-search-result .mode-icons {
          display: flex;
          gap: 4px;
          flex-wrap: wrap;
        }

        .bm-search-result .mode-icon {
          width: 18px;
          height: 18px;
          opacity: 0.7;
          transition: opacity 0.2s ease;
          flex-shrink: 0;
        }

        .bm-search-result:hover .mode-icon {
          opacity: 1;
        }

        .bm-search-result .mode-icon img {
          width: 100%;
          height: 100%;
          object-fit: contain;
        }

    /* Empty State */
        .empty-state {
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          padding: 2em;
          color: hsl(var(--main), 30%, 50%);
          text-align: center;
        }

        .empty-state i {
          font-size: 2rem;
          margin-bottom: 0.5em;
          opacity: 0.5;
        }

        .empty-state p {
          margin: 0;
          font-size: 0.9rem;
        }

    /* No Results State */
        .no-results {
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          padding: 2em;
          color: hsl(var(--main), 30%, 50%);
          text-align: center;
        }

        .no-results i {
          font-size: 2rem;
          margin-bottom: 0.5em;
          opacity: 0.5;
        }

        .no-results p {
          margin: 0;
          font-size: 0.9rem;
        }

    /* Responsive adjustments */
        @media (max-width: 600px) {
          .player-search-result {
            height: 64px;
            padding: 0 10px;
          }

          .player-search-result .avatar {
            width: 36px;
            height: 36px;
          }

          .player-search-result .player-stats {
            display: none;
          }

          .player-search-result .player-clan {
            display: none;
          }

          .bm-search-result {
            height: 80px;
          }

          .bm-search-result .thumbnail {
            width: 80px;
          }

          .bm-search-result .actions {
            flex-direction: column;
            gap: 4px;
            padding: 8px 8px;
          }

          .bm-search-result .action-btn {
            width: 32px;
            height: 32px;
          }

          .bm-search-result .title {
            font-size: 0.9rem;
          }

          .bm-search-result .artist,
          .bm-search-result .creator {
            font-size: 0.75rem;
          }
        }
              

/* Docs Panel Styles */
    [data-panel="Docs"] {
        width: 92vw;
        max-height: 95vh;
        transition: 0.2s ease; /* for responsive animation */
        border-radius: 20px;
        overflow: hidden;
        position: absolute;
        top: auto;
        bottom: auto;
        margin-top: auto;
        margin-bottom: auto;
    }

    @media (min-width: 1000px) {
        [data-panel="Docs"] {
            width: 1000px;
        }
    }
        [data-panel="Docs"] .main-block {
            background: hsl(var(--main), 10%, 15%);
            position: relative;
            min-height: fit-content;
        }
            .main-block .selector {
                position: absolute;
                bottom: 0;
                left: 0;
                right: 0;
                display: flex;
                align-items: flex-end;
                justify-content: center;
                pointer-events: all;
                height: 27px;
                z-index: 2;
                width: 100%;
            }
                .selector .bottom-tab {
                    display: flex;
                    padding: 6px;
                    background: hsl(var(--main), 10%, 15%);
                    height: 36px;
                    border-radius: 8px;
                    opacity: 0.8;
                    font-weight: 600;
                    border-bottom: 3px solid;
                    transition: 200ms opacity, 200ms border, 200ms filter, 300ms background-color;
                    margin: 4px 5px 0px 5px;
                    box-shadow: 0 1px 3px rgba(0,0,0,.25) !important;
                    border-bottom-left-radius: 0;
                    border-bottom-right-radius: 0;
                    overflow: hidden;
                }
                    .selector .bottom-tab.active {
                        opacity: 0.9;
                        background-color: hsl(var(--main), 10%, 16%);
                        border-bottom: 4px solid;
                    }
                    .selector .bottom-tab:hover {
                        opacity: 1;
                        background-color: hsl(var(--main), 10%, 16%);
                        border-bottom: 4px solid;
                    }
                .selector .left {
                    display: flex;
                    flex-direction: row;
                    pointer-events: all;
                }
                .selector .right {
                    margin-left: auto;
                    pointer-events: all;
                    display: flex;
                    flex-direction: row;
                }
            .docs-banner {
                /*background-color: hsl(var(--main), 30%, 50%);*/
                max-height: fit-content;
                min-height: 194px;
                width: 100%;
                border-top-right-radius: 20px;
                border-top-left-radius: 20px;
                display: flex;
                position: relative;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                pointer-events: auto;
                background-size: 100%;
                transition: max-height 0.4s ease;
                z-index: 0;
            }
                .docs-banner .img {
                    max-height: 280px;
                    height: 100%; 
                    min-height: 194px;
                    position: absolute; /* position relative to .doc-banner */
                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    border-radius: 0;
                    border-top-right-radius: 8px;
                    border-top-left-radius: 8px;
                    pointer-events: auto;
                    background-size: 100%;
                    background-position: center;
                    transition: max-height 0.4s ease;
                    z-index: 0;
                }
                .docs-banner.title {
                    font-size: 2.5em;
                    font-weight: 500;
                    color: white;
                    text-align: center;
                    pointer-events: auto;
                    z-index: 1;
                    margin-bottom: 0px !important;
                }
        [data-panel="Docs"] .second-block {
            background: var(--container-bg);
            display: flex;
            overflow-y: auto;
        }
            [data-panel="Docs"] .second-block .content {
                background-color: hsl(var(--main), 18%, 18%);
                padding: 4px;
                padding-top: 12px !important;
                margin: 1%;
                margin-bottom: 2%;
                width: 100%;
                height: 100%;
                overflow: hidden;
                transition: 0.2s ease;
                border-radius: 8px;
                position: relative;
            }
                [data-panel="Docs"] .second-block .content .selector {
                    position: absolute;
                    top: 10;
                    left: 0;
                    right: 0;
                    display: flex;
                    align-items: flex-end;
                    justify-content: center;
                    pointer-events: all;
                    height: 27px;
                    z-index: 2;
                    width: 100%;
                }
                    .selector .top-tab {
                        display: flex;
                        padding: 6px;
                        background: hsl(var(--main), 10%, 15%);
                        height: 36px;
                        border-radius: 8px;
                        opacity: 0.8;
                        font-weight: 600;
                        border-top: 3px solid;
                        transition: 200ms opacity, 200ms border, 200ms filter, 300ms background-color;
                        margin: 4px 5px 0px 5px;
                        box-shadow: 0 1px 3px rgba(0,0,0,.25) !important;
                        border-top-left-radius: 0;
                        border-top-right-radius: 0;
                        overflow: hidden;
                    }
                        .selector .top-tab.active {
                            opacity: 0.9;
                            background-color: hsl(var(--main), 10%, 16%);
                            border-top: 4px solid;
                        }
                        .selector .top-tab:hover {
                            opacity: 1;
                            background-color: hsl(var(--main), 10%, 16%);
                            border-top: 4px solid;
                        }
                .content .doc-block {
                    padding: 22px;
                }
                    .doc-block .doc-notice {
                        background-color: hsl(var(--main), 18%, 30%);
                        border-radius: 8px;
                        padding: 10px;
                        margin: 10px 0px;
                        border: 1px solid hsl(var(--main), 25%, 35%);
                        text-align: center;
                    }
                    .doc-block .doc-section {
                        background-color: hsl(var(--main), 20%, 20%);
                        border-radius: 8px;
                        padding: 10px;
                        margin: 10px 0px;
                        border: 1px solid hsl(var(--main), 20%, 25%);
                    }
                        .doc-section .subsection {
                            background-color: hsl(var(--main), 20%, 22%);
                            border-radius: 8px;
                            padding: 10px;
                            margin: 10px 0px;
                            border: 1px solid hsl(var(--main), 20%, 25%);
                        }
                    .doc-content {
                        background-color: hsl(var(--main), 20%, 25%);
                        border-radius: 8px;
                        padding: 10px;
                        margin: 10px 0px;
                        border: 1px solid hsl(var(--main), 20%, 28%);
                    }
                        .doc-content .subsection {
                            background-color: hsl(var(--main), 20%, 26%);
                            border-radius: 8px;
                            padding: 10px;
                            margin: 10px 0px;
                            border: 1px solid hsl(var(--main), 20%, 30%);
                        }
                    .linked {
                        pointer-events: all;
                    }

/* Beatmap Panel Styles */
    [data-panel="Beatmap"] {
      position: absolute;
      display: flex !important;
      width: 290px;
      z-index: 610;
      opacity: 1;
      flex-direction: column;
      justify-content: space-between;
      background-position: center;
      background-size: cover;
      border-radius: 20px;
      margin-top: -120px;
      color: white;
      background-color: #222;
      transition: 200ms opacity, 200ms visibility;
        transition-delay: 0s, 0s;
      transition-delay: 250ms;
      line-height: 1.35;
      visibility: visible;
      background-image: url(/static/images/default-bg.png);
      overflow: hidden;
    }

    .beatmap-panel-background {
      height: 100%;
      width: 100%;
      border-radius: 12px;
      position: absolute !important;
      z-index: -1;
      background-position: center;
      background-size: cover;
    }

    [data-panel="Beatmap"] > div {
      position: relative;
    }

    [data-panel="Beatmap"] .panel-stats {
      display: flex;
      padding: 12px 18px;
      justify-content: space-between;
    }

    [data-panel="Beatmap"] .panel-column {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      font-style: normal;
      text-shadow: 0 1px 1px rgba(0, 0, 0, 0.56);
      font-weight: 600;
    }

    [data-panel="Beatmap"] {
        width: 96vw;
        max-height: 95vh;
        transition: 0.2s ease; /* for responsive animation */
        border-radius: 20px;
        overflow: hidden;
        position: absolute;
        top: auto;
        bottom: auto;
        margin-top: auto;
        margin-bottom: auto;
    }

    @media (min-width: 1000px) {
        [data-panel="Beatmap"] {
            width: 1000px;
        }
    }
        [data-panel="Beatmap"] .main-block {
            background: hsl(var(--main), 10%, 15%);
            position: relative;
        }
            [data-panel="Beatmap"] .main-block .main-banner {
                /*background-color: hsl(var(--main), 30%, 50%);*/
                max-height: 250px;
                min-height: 194px;
                height: fit-content !important;
                width: 100%;
                border-top-right-radius: 20px;
                border-top-left-radius: 20px;
                display: flex;
                position: relative;
                flex-direction: row;
                pointer-events: auto;
                background-size: 100%;
                padding: 0px;
                transition: max-height 0.4s ease;
                z-index: 0;
            }
                [data-panel="Beatmap"] .main-banner::before {
                    content: "";
                    position: absolute;
                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    background-size: cover;
                    background-position: center;
                    background-image: var(--banner-bg);
                    filter: blur(2px) brightness(0.75);
                    z-index: 0;
                    transition: max-height 0.4s ease;
                }
            [data-panel="Beatmap"] .banner-text {
                font-size: 2.5em;
                font-weight: 500;
                line-height: 1.0em;
                color: white;
                text-align: center;
                pointer-events: auto;
                z-index: 1;
                margin-bottom: 12px !important;
            }
            [data-panel="Beatmap"] .map-stats {
                display: flex;
                flex-direction: column;
                pointer-events: auto;
                border-radius: 12px;
                width: 200px;
                margin: 12px 8px 12px 32px;
            }
                [data-panel="Beatmap"] .map-stats .stat-block {
                    display: flex;
                    flex-direction: column;
                    background-color: hsla(var(--main), 25%, 12%, 0.8);
                    padding: 6px;
                    align-content: center;
                    align-items: center;
                    margin-top: 2px;
                    margin-bottom: 2px;
                }
                [data-panel="Beatmap"] .map-stats .stat-block.row-stats {
                    display: flex;
                    flex-direction: row;
                    justify-content: space-between;
                    width: 100%;
                }
                    [data-panel="Beatmap"] .map-stats .stat-block.top {
                        margin-top: 0px !important;
                        overflow: hidden;
                        border-radius: 12px 12px 0 0;
                    }
                    [data-panel="Beatmap"] .map-stats .stat-block.bottom {
                        margin-bottom: 0px !important;
                        overflow: hidden;
                        border-radius: 0 0 12px 12px;
                    }
                    .stat-block.map-play {
                        justify-content: center;
                        position: relative;
                        overflow: hidden;
                    }
                    .stat-block.map-play::after {
                        content: '';
                        position: absolute;
                        bottom: 0;
                        left: 0;
                        height: 3px;
                        width: 0%;
                        background: linear-gradient(90deg, hsl(var(--main), 60%, 60%), hsl(var(--main), 80%, 70%));
                        transition: width 0.05s linear;
                        box-shadow: 0 0 8px hsla(var(--main), 60%, 60%, 0.8);
                    }
                    .stat-block.map-play.playing::after {
                        width: var(--audio-progress, 0%);
                    }
                    .stat-block.map-play i {
                        position: relative;
                        z-index: 1;
                    }
                    [data-panel="Beatmap"] .map-stats .stat-block .stat-item {
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                        margin: 0px 6px;
                    }
                        [data-panel="Beatmap"] .stat-item .stat-icon {
                            display: flex;
                            width: 12px;
                            height: 12px;
                            margin-bottom: 2px;
                            justify-content: center;
                        }
                        [data-panel="Beatmap"] .stat-item .stat-value {
                            font-size: 12px;
                            font-weight: 700;
                            margin-bottom: 0px !important;
                        }
            
            [data-panel="Beatmap"] > .main-block .selector {
                height: fit-content !important;
                position: relative;
                margin-top: auto;
                display: flex;
                flex-wrap: wrap-reverse;
                gap: 4px;
                padding: 4px 8px;
                border-radius: 0 0 20px 20px;
                min-height: 48px;
                align-items: flex-start;
                overflow: visible;
            }
                [data-panel="Beatmap"] .selector .map-diff {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    padding: 8px;
                    background: hsl(var(--main), 10%, 12%);
                    height: 36px;
                    border-radius: 10px;
                    font-weight: 600;
                    border: 2px solid transparent;
                    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
                    gap: 8px;
                    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
                    cursor: pointer;
                    position: relative;
                    overflow: hidden;
                    flex-shrink: 0;
                    width: 44px;
                    justify-content: center;
                }
                [data-panel="Beatmap"] .selector .map-diff::before {
                    content: '';
                    position: absolute;
                    top: 0;
                    left: -100%;
                    width: 100%;
                    height: 100%;
                    background: linear-gradient(90deg, transparent, hsla(var(--main), 50%, 50%, 0.15), transparent);
                    transition: left 0.4s ease;
                    z-index: 1;
                }
                [data-panel="Beatmap"] .selector .map-diff:hover::before {
                    left: 100%;
                }
                [data-panel="Beatmap"] .selector .map-diff img {
                    width: 24px;
                    height: 24px;
                    flex-shrink: 0;
                    position: relative;
                    z-index: 2;
                }
                [data-panel="Beatmap"] .selector .map-diff span {
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    display: none;
                    transition: opacity 200ms ease;
                    position: relative;
                    z-index: 2;
                }
                /* Active difficulty shows full name with tooltip-like overlay */
                [data-panel="Beatmap"] .selector .map-diff.active {
                    width: auto;
                    padding: 8px 12px;
                    background: hsl(var(--main), 40%, 35%);
                    border-color: hsl(var(--main), 50%, 55%);
                    box-shadow: 0 0 16px hsla(var(--main), 50%, 50%, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
                    transform: translateY(-2px);
                    z-index: 10;
                }
                [data-panel="Beatmap"] .selector .map-diff.active span {
                    display: block;
                }
                /* Hovered difficulty shows name in a tooltip above the button */
                [data-panel="Beatmap"] .selector .map-diff:hover {
                    background: hsl(var(--main), 10%, 18%);
                    border-color: hsl(var(--main), 20%, 35%);
                    transform: translateY(-2px);
                    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
                    z-index: 10;
                }
                
                /* Beatmap difficulty tooltip styling */
                .beatmap-diff-tooltip {
                    background: hsl(var(--main), 15%, 20%);
                    color: white;
                    padding: 6px 10px;
                    border-radius: 6px;
                    font-size: 11px;
                    white-space: nowrap;
                    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
                    border: 1px solid hsl(var(--main), 25%, 30%);
                    pointer-events: none;
                }
                
                .beatmap-diff-tooltip span {
                    display: block !important;
                    color: white !important;
                    font-size: 11px !important;
                    font-weight: 600 !important;
                }
                
                /* Mod tooltip styling */
                .mod-tooltip {
                    background: hsl(var(--main), 15%, 20%);
                    color: white;
                    padding: 6px 10px;
                    border-radius: 6px;
                    font-size: 11px;
                    white-space: nowrap;
                    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
                    border: 1px solid hsl(var(--main), 25%, 30%);
                    pointer-events: none;
                }
                
                .mod-tooltip span {
                    display: block !important;
                    color: white !important;
                    font-size: 11px !important;
                    font-weight: 600 !important;
                    text-transform: none !important;
                }

        [data-panel="Beatmap"] .second-block {
            background: var(--container-bg);
            display: flex;
            overflow-y: auto;
            position: relative;
        }
            [data-panel="Beatmap"] .second-block .content {
                display: flex;
                flex-direction: column;
                background-color: hsl(var(--main), 18%, 18%);
                padding: 4px;
                margin: 4px;
                width: 100%;
                height: 100%;
                overflow: hidden;
                transition: 0.2s ease;
                border-bottom-right-radius: 16px;
                border-bottom-left-radius: 16px;
                position: relative;
            }

                [data-panel="Beatmap"] .beatmap-info {
                    display: flex;
                    position: relative;
                    flex-direction: row;
                    background: linear-gradient(135deg, hsl(var(--main), 20%, 22%), hsl(var(--main), 25%, 28%));
                    width: 100%;
                    padding: 20px 24px;
                    margin: 4px 2px;
                    border-radius: 16px;
                    pointer-events: auto;
                    gap: 24px;
                    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
                    border: 1px solid hsl(var(--main), 25%, 35%);
                }
                    [data-panel="Beatmap"] .beatmap-info .info-block {
                        display: flex;
                        flex-direction: column;
                        pointer-events: auto;
                        padding: 0 !important;
                        width: 50%;
                        position: relative;
                        gap: 12px;
                    }
                    [data-panel="Beatmap"] .beatmap-info .info-block h2 {
                        font-size: 1.4em;
                        font-weight: 700;
                        color: hsl(var(--main), 80%, 75%);
                        margin: 0;
                        line-height: 1.2;
                        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
                    }
                    [data-panel="Beatmap"] .beatmap-info .info-block h4 {
                        font-size: 1em;
                        font-weight: 500;
                        color: hsl(var(--main), 10%, 80%);
                        margin: 0;
                        line-height: 1.3;
                    }
                    [data-panel="Beatmap"] .beatmap-info .info-block .divider {
                        height: 1px;
                        background: linear-gradient(90deg, transparent, hsl(var(--main), 20%, 40%), transparent);
                        margin: 8px 0;
                    }
                    [data-panel="Beatmap"] .beatmap-info .info-block .buttons {
                        display: flex;
                        flex-direction: row;
                        flex-wrap: wrap;
                        gap: 8px;
                        pointer-events: auto;
                        padding: 0 !important;
                        width: 100%;
                        position: relative;
                    }
                    [data-panel="Beatmap"] .beatmap-info .info-block .button {
                        background: linear-gradient(135deg, hsl(var(--main), 30%, 35%), hsl(var(--main), 25%, 30%));
                        border: 1px solid hsl(var(--main), 35%, 45%);
                        color: hsl(var(--main), 10%, 90%);
                        padding: 10px 16px;
                        border-radius: 8px;
                        font-weight: 600;
                        font-size: 0.9em;
                        cursor: pointer;
                        transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
                        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
                        position: relative;
                        overflow: hidden;
                        flex: 1;
                        min-width: 120px;
                        text-align: center;
                    }
                    [data-panel="Beatmap"] .beatmap-info .info-block .button::before {
                        content: '';
                        position: absolute;
                        top: 0;
                        left: -100%;
                        width: 100%;
                        height: 100%;
                        background: linear-gradient(90deg, transparent, hsla(var(--main), 50%, 50%, 0.2), transparent);
                        transition: left 0.4s ease;
                    }
                    [data-panel="Beatmap"] .beatmap-info .info-block .button:hover::before {
                        left: 100%;
                    }
                    [data-panel="Beatmap"] .beatmap-info .info-block .button:hover {
                        background: linear-gradient(135deg, hsl(var(--main), 35%, 40%), hsl(var(--main), 30%, 35%));
                        border-color: hsl(var(--main), 45%, 55%);
                        transform: translateY(-2px);
                        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
                        color: white;
                    }
                    [data-panel="Beatmap"] .beatmap-info .info-block .button:active {
                        transform: translateY(0);
                        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
                    }
                    [data-panel="Beatmap"] .beatmap-info .info-block .button i {
                        margin-right: 6px;
                    }
                    [data-panel="Beatmap"] .beatmap-info .info-block > span {
                        color: hsl(var(--main), 10%, 75%);
                        font-size: 0.95em;
                    }
                    [data-panel="Beatmap"] .beatmap-info .info-block > span a {
                        color: hsl(var(--main), 50%, 65%);
                        font-weight: 600;
                        text-decoration: none;
                        transition: color 200ms ease;
                    }
                    [data-panel="Beatmap"] .beatmap-info .info-block > span a:hover {
                        color: hsl(var(--main), 60%, 75%);
                        text-decoration: underline;
                    }

                /* ================= LEADERBOARD FILTERS ================= */
                    [data-panel="Beatmap"] .leaderboard-filter {
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                        border: 1px solid hsl(var(--main), 20%, 25%);
                        border-radius: 16px;
                        overflow: hidden;
                    }
                    
                    [data-panel="Beatmap"] .leaderboard-filter-section {
                        display: flex;
                        width: 100%;
                        flex-direction: column;
                        gap: 4px;
                        padding: 6px 8px;
                        background-color: hsl(var(--main), 15%, 16%);
                        align-items: center;
                        border: 1px solid hsl(var(--main), 20%, 22%);
                    }
                    
                    [data-panel="Beatmap"] .leaderboard-filter-section.mode-section {
                        background-color: hsl(var(--main), 15%, 18%);
                        border-color: hsl(var(--main), 20%, 24%);
                    }
                    
                    [data-panel="Beatmap"] .leaderboard-filter-section.ruleset-section {
                        background-color: hsl(var(--main), 15%, 17%);
                        border: 1px solid hsl(var(--main), 20%, 22%);
                    }
                    
                    [data-panel="Beatmap"] .leaderboard-filter-section.mods-section {
                        background-color: hsl(var(--main), 15%, 16%);
                        border-color: hsl(var(--main), 20%, 20%);
                    }
                    
                    [data-panel="Beatmap"] .leaderboard-filter-clear-button {
                        background: none;
                        border: none;
                        color: hsl(var(--main), 10%, 50%);
                        cursor: pointer;
                        padding: 2px 6px;
                        font-size: 10px;
                        border-radius: 4px;
                        transition: all 0.2s ease;
                    }
                    
                    [data-panel="Beatmap"] .leaderboard-filter-clear-button:hover {
                        background-color: hsl(var(--main), 15%, 25%);
                        color: hsl(var(--main), 10%, 80%);
                    }
                    
                    [data-panel="Beatmap"] .leaderboard-filter-buttons {
                        display: flex;
                        flex-wrap: wrap;
                        gap: 6px;
                        justify-content: center;
                        width: 100%;
                    }
                    
                    [data-panel="Beatmap"] .leaderboard-filter-buttons.mods-grid {
                        display: flex;
                        gap: 4px;
                        width: 100%;
                    }
                    
                    [data-panel="Beatmap"] .leaderboard-filter-button {
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        gap: 4px;
                        background-color: hsl(var(--main), 15%, 20%);
                        border: 1px solid hsl(var(--main), 20%, 25%);
                        color: hsl(var(--main), 10%, 75%);
                        padding: 6px 10px;
                        font-size: 10px;
                        font-weight: 600;
                        border-radius: 6px;
                        cursor: pointer;
                        transition: all 0.2s ease;
                        text-transform: uppercase;
                        min-width: 70px;
                        height: 32px;
                        position: relative;
                        overflow: hidden;
                    }
                    
                    [data-panel="Beatmap"] .leaderboard-filter-button .mode-icon,
                    [data-panel="Beatmap"] .leaderboard-filter-button .ruleset-icon {
                        font-size: 11px;
                        line-height: 1;
                        color: hsl(var(--main), 10%, 70%);
                        transition: color 0.2s ease;
                    }
                    
                    [data-panel="Beatmap"] .leaderboard-filter-button.active .mode-icon,
                    [data-panel="Beatmap"] .leaderboard-filter-button.active .ruleset-icon {
                        color: white;
                    }
                    
                    [data-panel="Beatmap"] .leaderboard-filter-button:hover .mode-icon,
                    [data-panel="Beatmap"] .leaderboard-filter-button:hover .ruleset-icon {
                        color: hsl(var(--main), 10%, 85%);
                    }
                    
                    [data-panel="Beatmap"] .leaderboard-filter-button::before {
                        content: '';
                        position: absolute;
                        top: 0;
                        left: -100%;
                        width: 100%;
                        height: 100%;
                        background: linear-gradient(90deg, transparent, hsla(var(--main), 50%, 50%, 0.1), transparent);
                        transition: left 0.5s ease;
                    }
                    
                    [data-panel="Beatmap"] .leaderboard-filter-button:hover::before {
                        left: 100%;
                    }
                    
                    [data-panel="Beatmap"] .leaderboard-filter-button:hover {
                        background-color: hsl(var(--main), 15%, 24%);
                        border-color: hsl(var(--main), 25%, 30%);
                        color: hsl(var(--main), 10%, 85%);
                        transform: translateY(-1px);
                        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
                    }
                    
                    [data-panel="Beatmap"] .leaderboard-filter-button.active {
                        background-color: hsl(var(--main), 50%, 35%);
                        border-color: hsl(var(--main), 50%, 45%);
                        color: white;
                        box-shadow: 0 0 12px hsla(var(--main), 50%, 50%, 0.6), 0 4px 8px rgba(0, 0, 0, 0.3);
                        transform: translateY(-1px);
                    }
                    
                    [data-panel="Beatmap"] .leaderboard-filter-button.active::before {
                        background: linear-gradient(90deg, transparent, hsla(var(--main), 60%, 60%, 0.2), transparent);
                    }
                    
                    [data-panel="Beatmap"] .leaderboard-filter-button.mod-button {
                        flex-direction: column;
                        min-width: 32px;
                        max-width: 48px;
                        height: 36px;
                        padding: 4px 2px;
                        font-size: 9px;
                        gap: 2px;
                        aspect-ratio: 1;
                    }
                    
                    [data-panel="Beatmap"] .leaderboard-filter-button.mod-button .mod-icon {
                        font-size: 14px;
                        line-height: 1;
                        color: hsl(var(--main), 10%, 75%);
                        transition: color 0.2s ease, transform 0.2s ease;
                    }
                    
                    [data-panel="Beatmap"] .leaderboard-filter-button.mod-button .mod-abbr {
                        font-size: 8px;
                        font-weight: 700;
                        letter-spacing: 0.3px;
                        text-transform: uppercase;
                        line-height: 1;
                    }
                    
                    [data-panel="Beatmap"] .leaderboard-filter-button.mod-button.active .mod-icon {
                        color: white;
                        transform: scale(1.1);
                    }
                    
                    [data-panel="Beatmap"] .leaderboard-filter-button.mod-button:hover .mod-icon {
                        color: hsl(var(--main), 10%, 85%);
                        transform: scale(1.05);
                    }
                    
                    [data-panel="Beatmap"] .leaderboard-filter-button.mod-button:hover .mod-abbr {
                        color: hsl(var(--main), 10%, 85%);
                    }
                    
                    [data-panel="Beatmap"] .leaderboard-filter-button.mod-button.active {
                        background-color: hsl(var(--main), 60%, 40%);
                    }
                    
                    [data-panel="Beatmap"] .leaderboard-filter-button.incompatible {
                        opacity: 0.25;
                        cursor: not-allowed;
                        background-color: hsl(var(--main), 15%, 12%);
                        border-color: hsl(var(--main), 15%, 15%);
                        transform: none !important;
                    }
                    
                    [data-panel="Beatmap"] .leaderboard-filter-button.incompatible:hover {
                        opacity: 0.25;
                        background-color: hsl(var(--main), 15%, 12%);
                        border-color: hsl(var(--main), 15%, 15%);
                        transform: none !important;
                    }
                /* ================= LEADERBOARD TABLE ================= */
                .beatmap-lb {
                    display: flex;
                    flex-direction: column;
                    width: 100%;
                    align-self: center;
                    margin: 4px;
                    border-radius: 20px 20px 12px 12px;
                    box-shadow: 0px 0px 4px 1px hsl(var(--main), 30%, 30%);
                }
                    .mode-sort + .table-responsive
                    {
                        border-top-left-radius: 8px;
                        border-top-right-radius: 8px;
                    }
                    [data-panel="Beatmap"] .table-responsive
                    {
                        display: block;
                        width: 100%;
                        overflow-x: auto;
                        -webkit-overflow-scrolling: touch;
                        -ms-overflow-style: -ms-autohiding-scrollbar;
                    }
                        [data-panel="Beatmap"] .table-responsive .lb-first-place-header {
                            background-color: hsl(var(--main), 23%, 23%) !important;
                            border-bottom: 2px double hsl(var(--main), 10%, 10%);
                            margin-bottom: 0px;
                            display: flex;
                            justify-content: space-between;
                            align-items: center;
                            padding: 24px 24px;
                            color: hsl(var(--main), 10%, 60%);
                            transition: 200ms background-color;
                            border-top-left-radius: 20px;
                            border-top-right-radius: 20px;
                        }
                        .lb-first-place-header .user-block {
                            display: flex !important;
                        }
                            .lb-first-place-header .play-rank {
                                display: -ms-flexbox !important;
                                display: flex !important;
                                -ms-flex-align: center !important;
                                align-items: center !important;
                                -ms-flex-pack: center !important;
                                justify-content: center !important;
                                -ms-flex-direction: column !important;
                                flex-direction: column !important;
                            }
                                .play-rank .score-rank {
                                    font-size: 20px;
                                    font-weight: 600;
                                    color: hsl(var(--main), 10%, 70%);
                                    margin-bottom: 4px;
                                }
                                .play-rank .map-rank
                                {
                                    font-size: 24px;
                                    font-weight: 600;
                                    width: 30px;
                                    height: 30px;
                                    display: flex;
                                    justify-content: center;
                                    align-items: center;
                                    padding: 3px 5px;
                                    border-radius: 20px;
                                }
                            .lb-first-place-header .user-avatar {
                                width: 72px;
                                height: 72px;
                                background-size: 100%;
                                box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.35);
                                border-radius: 8px;
                                margin-right: 10px;
                                margin-left: 14px;
                                background-color: hsl(var(--main), 10%, 30%);
                                transition: 200ms background-color;
                            }
                            .lb-first-place-header .user {
                                line-height: 1.3;
                                font-weight: 500;
                                display: flex;
                                flex-direction: column;
                                justify-content: center;
                            }
                                .user .username {
                                    font-size: 16px;
                                    font-weight: 700;
                                    color: hsl(var(--main), 80%, 65%);
                                    transition: 100ms color;
                                }
                        .lb-first-place-header .playstats-block {
                            display: flex;
                            flex-wrap: wrap;
                            justify-content: center;
                        }
                            .playstats-block .beatmap-score-top__stats
                            {
                                display: flex;
                                flex-shrink: 1;
                                margin-right: 24px;
                                justify-content: space-around;
                            }
                                .beatmap-score-top__stats .stat-block {
                                    margin: 0px 6px;
                                    padding: 0px 4px;
                                    color: hsl(var(--main), 10%, 75%);
                                }
                                    .stat-block.stat-bolder
                                    {
                                        font-weight: 600;
                                    }
                                    .stat-block:first-child
                                    {
                                        margin-left: 0;
                                        padding-left: 0;
                                    }
                                    .stat-block:last-child
                                    {
                                        margin-right: 0;
                                        padding-right: 0;
                                    }
                                    [data-panel="Beatmap"] .stat-title
                                    {
                                        margin-bottom: 4px;
                                        font-weight: 700;
                                        border-bottom: solid 2px #aaa;
                                        font-size: 10px;
                                        color: hsl(var(--main), 10%, 85%);
                                        text-transform: uppercase;
                                    }
                    [data-panel="Beatmap"] .table-responsive.bm-lb-bg {
                        background-color: hsl(var(--main), 10%, 15%);
                        padding-right: 12px;
                        padding-left: 12px;
                        padding-top: 0;
                        padding-bottom: 12px;
                        flex-direction: column;
                        border-bottom-left-radius: 12px;
                        border-bottom-right-radius: 12px;
                    }
                        @media (max-width: 1200px) {
                            [data-panel="Beatmap"] .bm-lb-bg .bm-lb-table
                            {
                                width: 897px;
                            }
                        }
                        [data-panel="Beatmap"] .bm-lb-bg .bm-lb-table
                        {
                            font-size: 12px;
                            transition: 200ms opacity;
                            display: table;
                            table-layout: fixed;
                            width: 100%;
                            scrollbar-width: thin;
                        }
                            [data-panel="Beatmap"] .bm-lb-table .leaderboard-thead
                            {
                                font-size: 10px;
                                font-weight: 700;
                                text-transform: uppercase;
                                padding-bottom: 5px;
                                display: table-header-group;
                            }
                                [data-panel="Beatmap"] .leaderboard-table__heading
                                {
                                    color: hsl(var(--main), 10%, 70%);
                                    font-size: 11px;
                                    text-transform: uppercase;
                                    padding: 12px 0;
                                    display: table-cell;
                                    flex-shrink: 0;
                                }
                                    [data-panel="Beatmap"] .table-header-rank
                                    {
                                        text-align: center !important;
                                        width: 40px;
                                    }
                                    [data-panel="Beatmap"] .table-header-grade
                                    {
                                        width: 30px;
                                    }
                                    [data-panel="Beatmap"] .table-header-flag
                                    {
                                        padding-top: 1px;
                                        padding-left: 4px !important;
                                        padding-right: 4px !important;
                                        width: 23.3667px;
                                    }
                                    [data-panel="Beatmap"] .table-header-player
                                    {
                                        width: 150px;
                                    }
                                    [data-panel="Beatmap"] .table-header-pp
                                    {
                                        width: 40px;
                                        text-align: center !important;
                                    }
                                    [data-panel="Beatmap"] .table-header-score
                                    {
                                        width: 90px;
                                        text-align: center !important;
                                    }
                                    [data-panel="Beatmap"] .table-header-acc
                                    {
                                        width: 70px;
                                        text-align: center !important;
                                    }
                                    [data-panel="Beatmap"] .table-header-combo
                                    {
                                        width: 50px;
                                        text-align: center !important;
                                    }
                                    [data-panel="Beatmap"] .table-header-hitstat
                                    {
                                        width: 40px;
                                        text-align: center !important;
                                    }
                                    [data-panel="Beatmap"] .table-header-miss
                                    {
                                        width: 40px;
                                        text-align: center !important;
                                    }
                                    [data-panel="Beatmap"] .table-header-mods
                                    {
                                        width: 70px;
                                        text-align: center !important;
                                    }
                                    [data-panel="Beatmap"] .table-header-date
                                    {
                                        width: 100px;
                                        text-align: center !important;
                                    }
                                    [data-panel="Beatmap"] .table-header-report
                                    {
                                        width: 20px;
                                        text-align: center !important;
                                    }
                            [data-panel="Beatmap"] tr
                            {
                                display: table-row;
                            }
                            [data-panel="Beatmap"] tr.leaderboard-row {
                                transition: 200ms background-color;
                                height: 1.8em;
                                color: hsl(var(--main), 10%, 55%);
                                border-bottom: 2px solid hsl(var(--main), 20%, 15%);
                                display: table-row;
                            }
                                [data-panel="Beatmap"] tr.leaderboard-row td 
                                {
                                    padding: 4px 0px;
                                    padding-left: 0px;
                                    display: table-cell;
                                }
                                [data-panel="Beatmap"] .leaderboard-row.row1p {
                                    background-color: hsl(var(--main), 10%, 22%);
                                    color: #fff;
                                    width: 100%;
                                }
                                [data-panel="Beatmap"] .leaderboard-row.row2p {
                                    background-color: hsl(var(--main), 10%, 30%);
                                    color: white;
                                    width: 100%;
                                }
                                [data-panel="Beatmap"] * {
                                    box-sizing: border-box;
                                }
                                    [data-panel="Beatmap"] .leaderboard-table__column
                                    {
                                        text-align: left;
                                        width: 40px;
                                    }
                                    .leaderboard-table__column:first-child
                                    {
                                        border-top-left-radius: 4px;
                                        border-bottom-left-radius: 4px;
                                        padding-left: 2px;
                                        text-align: center;
                                    }
                                        [data-panel="Beatmap"] .leaderboard-column__rank
                                        {
                                            font-weight: 700;
                                            text-align: center;
                                            width: 40px !important;
                                        }
                                        [data-panel="Beatmap"] .leaderboard-column__grade
                                        {
                                            text-align: center;
                                            font-weight: 700;
                                            width: 30px !important;
                                        }
                                        [data-panel="Beatmap"] td.leaderboard-column__flag
                                        {
                                            padding-top: 1px;
                                            padding-left: 4px !important;
                                            padding-right: 4px !important;
                                            width: 23.3667px;
                                            background-size: contain;
                                        }
                                        [data-panel="Beatmap"] .leaderboard-column__player
                                        {
                                            width: 185px !important;
                                        }
                                        [data-panel="Beatmap"] .leaderboard-column__pp
                                        {
                                            font-weight: 600;
                                            width: 50px !important;
                                            text-align: center !important;
                                        }
                                        [data-panel="Beatmap"] .leaderboard-column__score
                                        {
                                            font-weight: 500;
                                            width: 120px !important;
                                            text-align: center;
                                        }
                                        [data-panel="Beatmap"] .leaderboard-column__accuracy
                                        {
                                            font-weight: 500;
                                            width: 100px !important;
                                            text-align: center !important;
                                        }
                                        [data-panel="Beatmap"] .leaderboard-column__combo
                                        {
                                            width: 100px !important;
                                            text-align: center !important;
                                        }
                                        [data-panel="Beatmap"] .leaderboard-column__hitstat
                                        {
                                            width: 40px !important;
                                            text-align: center !important;
                                        }
                                        [data-panel="Beatmap"] .leaderboard-column__miss
                                        {
                                            width: 65px !important;
                                            text-align: center !important;
                                        }
                                        [data-panel="Beatmap"] .leaderboard-column__miss.zero
                                        {
                                            opacity: 0.6 !important;
                                            text-align: center !important;
                                        }
                                        [data-panel="Beatmap"] .leaderboard-column__mods
                                        {
                                            width: 95px !important;
                                            font-weight: 500;
                                            text-align: center !important;
                                        }
                                        [data-panel="Beatmap"] .leaderboard-column__date
                                        {
                                            width: 160px !important;
                                            text-align: center !important;
                                        }
                                        /* Tooltips */
                                            /* Container for the tooltip */
                                            .tooltip-container {
                                                position: relative; /* This is crucial for positioning the tooltip content */
                                                display: inline-block;
                                            }

                                            /* The actual tooltip content */
                                            .tooltip-content {
                                                visibility: hidden; /* Hidden by default */
                                                opacity: 0; /* Start fully transparent */
                                                position: absolute;
                                                z-index: 100;
                                            
                                                /* Styling for the popup box */
                                                background-color: hsl(var(--main), 15%, 20%);
                                                color: hsl(var(--main), 40%, 60%);
                                                box-shadow: 0px 0px 4px 1px;
                                                text-align: center;
                                                border-radius: 6px;
                                                padding: 8px 12px;
                                                font-size: 0.85em;
                                                white-space: nowrap; /* Keep content on one line */
                                                bottom: 85%; /* Above the element */
                                                left: 50%;
                                                transform: translateX(-50%); /* Center horizontally */
                                            
                                                /* Smooth transition for appearance */
                                                transition: opacity 0.3s ease, visibility 0.3s ease, translate 0.3s ease;
                                            }

                                            .tooltip-content::after {
                                                content: "";
                                                position: absolute;
                                                top: 100%; /* At the bottom of the tooltip */
                                                left: 50%;
                                                margin-left: -5px;
                                                border-width: 5px;
                                                border-style: solid;
                                                border-color: hsl(var(--main), 15%, 18%) transparent transparent transparent; /* Arrow color */
                                            }

                                            /* Show the tooltip on hover */
                                            .tooltip-container:hover .tooltip-content {
                                                visibility: visible;
                                                opacity: 1;
                                                translate: 0% -25%;
                                            }

/* Score Panel Styles */
    /* Animations for loading and error states */
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

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

    @keyframes scaleIn {
        from {
            opacity: 0;
            transform: scale(0.95);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    @keyframes pulse {
        0%, 100% {
            opacity: 1;
        }
        50% {
            opacity: 0.6;
        }
    }

    @keyframes shake {
        0%, 100% {
            transform: translateX(0);
        }
        20%, 60% {
            transform: translateX(-5px);
        }
        40%, 80% {
            transform: translateX(5px);
        }
    }

    /* Loading state styling */
    .loading-state {
        background: linear-gradient(180deg, 
            hsl(var(--main), 22%, 16%) 0%, 
            hsl(var(--main), 20%, 14%) 100%) !important;
        border: 1px solid hsla(var(--main), 50%, 70%, 0.25);
        border-radius: 12px;
        box-shadow: 
            0 4px 12px rgba(0, 0, 0, 0.25),
            0 8px 24px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 hsla(var(--main), 50%, 80%, 0.1);
        backdrop-filter: blur(4px);
    }

    /* Error state styling */
    .error-state {
        background: linear-gradient(180deg, 
            hsl(var(--main), 16%, 13%) 0%, 
            hsl(var(--main), 14%, 11%) 100%) !important;
        border: 1px solid hsla(var(--main), 0%, 50%, 0.35);
        border-radius: 12px;
        box-shadow: 
            0 4px 12px rgba(0, 0, 0, 0.3),
            0 8px 24px rgba(0, 0, 0, 0.25),
            inset 0 1px 0 hsla(var(--main), 30%, 40%, 0.1);
        backdrop-filter: blur(4px);
    }

    [data-panel="Score"] .main-banner {
        justify-content: center;
        align-items: center;
        background: var(--banner-bg, linear-gradient(180deg, 
            hsla(var(--main), 20%, 18%, 0.6) 0%, 
            hsla(var(--main), 18%, 14%, 0.8) 100%));
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 16px;
        border: 1px solid hsla(var(--main), 25%, 22%, 0.4);
        box-shadow: 
            0 4px 16px rgba(0, 0, 0, 0.25),
            inset 0 1px 0 hsla(var(--main), 30%, 30%, 0.1);
        overflow: hidden;
        position: relative;
    }
    [data-panel="Score"] .main-banner::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, 
            hsla(var(--main), 20%, 18%, 0.7) 0%, 
            hsla(var(--main), 18%, 14%, 0.85) 100%),
            radial-gradient(ellipse at top left, 
            hsla(var(--main), 30%, 25%, 0.3) 0%, 
            transparent 50%);
        pointer-events: none;
        z-index: 1;
    }
    [data-panel="Score"] .main-banner > * {
        position: relative;
        z-index: 2;
    }
    [data-panel="Score"] .map-info {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 12px 16px;
        background: linear-gradient(180deg, 
            hsla(var(--main), 15%, 10%, 0.7) 0%, 
            hsla(var(--main), 12%, 8%, 0.8) 100%);
        border-radius: 12px;
        border: 1px solid hsla(var(--main), 20%, 15%, 0.4);
        box-shadow: 
            0 2px 8px rgba(0, 0, 0, 0.25),
            inset 0 1px 0 hsla(var(--main), 20%, 20%, 0.1);
        max-width: 600px;
        position: relative;
        z-index: 2;
    }
        [data-panel="Score"] .map-info .map-title {
            font-size: 20px;
            font-weight: 800;
            color: white;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
            text-wrap: wrap;
            letter-spacing: 0.3px;
            line-height: 1.3;
            margin: 0;
            padding: 0;
        }
        [data-panel="Score"] .map-info .map-artist-creator {
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            align-items: center;
            gap: 4px;
            font-size: 13px;
            color: hsl(var(--main), 10%, 85%);
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
        }
        [data-panel="Score"] .map-info .map-artist-creator span {
            font-weight: 500;
        }
        [data-panel="Score"] .map-info .map-artist-creator a {
            color: hsl(var(--main), 60%, 70%);
            text-decoration: none;
            font-weight: 600;
            transition: all 150ms ease;
            position: relative;
        }
        [data-panel="Score"] .map-info .map-artist-creator a:hover {
            color: hsl(var(--main), 70%, 80%);
            text-shadow: 0 0 8px hsla(var(--main), 60%, 50%, 0.4);
        }
        [data-panel="Score"] .map-info .map-artist-creator a::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 0%;
            height: 1px;
            background: hsla(var(--main), 60%, 60%, 0.6);
            transition: width 150ms ease;
        }
        [data-panel="Score"] .map-info .map-artist-creator a:hover::after {
            width: 100%;
        }

    [data-panel="Score"] .score-info {
        display: flex;
        flex-direction: row;
        padding: 16px 20px;
        justify-content: space-between;
        min-height: unset;
        height: 100%;
        gap: 16px;
        position: relative;
    }
        [data-panel="Score"] .score-info::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: none;
            background-color: transparent !important;
            transition: max-height 0.4s ease;
            z-index: 0;
        }
        [data-panel="Score"] .score-info > * {
            position: relative;
            z-index: 1;
        }
        [data-panel="Score"] .score-info .grade-info,
        [data-panel="Score"] .score-info .player-info {
            display: flex;
            flex-direction: row;
            align-items: center;
        }
            [data-panel="Score"] .grade-info .grade-tower {
                display: flex;
                flex-direction: column;
                margin-right: 16px;
                gap: 2px;
                padding: 4px;
                background: hsla(var(--main), 20%, 15%, 0.6);
                border-radius: 8px;
                border: 1px solid hsla(var(--main), 30%, 25%, 0.4);
            }
                [data-panel="Score"] .grade-tower .grade-tower-layer {
                    width: 36px;
                    height: 18px;
                    background-size: contain;
                    background-position: center;
                    background-repeat: no-repeat;
                    opacity: 0.25;
                    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
                    border-radius: 4px;
                }
                    [data-panel="Score"] .grade-tower .grade-tower-layer.passed {
                        opacity: 1;
                        transform: scale(1.05);
                        box-shadow: 0 0 8px hsla(var(--main), 60%, 50%, 0.3);
                    }
                    [data-panel="Score"] .grade-tower-layer .grade-icon {
                        width: 100%;
                        height: 100%;
                        background-size: contain;
                    }
                    [data-panel="Score"] .grade-tower-layer .grade-icon.grade-ss {
                        background-image: url(/static/images/icons/grades/GradeSmall-SS.svg);
                    }
                    [data-panel="Score"] .grade-tower-layer .grade-icon.grade-s {
                        background-image: url(/static/images/icons/grades/GradeSmall-S.svg);
                    }
                    [data-panel="Score"] .grade-tower-layer .grade-icon.grade-a {
                        background-image: url(/static/images/icons/grades/GradeSmall-A.svg);
                    }
                    [data-panel="Score"] .grade-tower-layer .grade-icon.grade-b {
                        background-image: url(/static/images/icons/grades/GradeSmall-B.svg);
                    }
                    [data-panel="Score"] .grade-tower-layer .grade-icon.grade-c {
                        background-image: url(/static/images/icons/grades/GradeSmall-C.svg);
                    }
                    [data-panel="Score"] .grade-tower-layer .grade-icon.grade-d {
                        background-image: url(/static/images/icons/grades/GradeSmall-D.svg);
                    }
            
        [data-panel="Score"] .score-info .score-details {
            display: flex;
            flex-direction: column;
            gap: 10px;
            align-items: flex-start;
            flex: 1;
            min-width: 200px;
            padding: 4px 0;
        }
            [data-panel="Score"] .score-info .score-value {
                font-size: 32px;
                font-weight: 800;
                text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.6);
                color: hsl(var(--main), 10%, 95%);
                letter-spacing: 0.5px;
                line-height: 1.2;
                position: relative;
            }
            [data-panel="Score"] .score-info .score-value::after {
                content: '';
                position: absolute;
                bottom: -2px;
                left: 0;
                width: 140px;
                height: 3px;
                background: linear-gradient(90deg, 
                    hsla(var(--main), 60%, 50%, 0.8) 0%, 
                    transparent 100%);
                border-radius: 2px;
            }
            [data-panel="Score"] .score-info .player-info {
                display: flex;
                flex-direction: row;
                gap: 8px;
                align-items: flex-start;
                flex-wrap: wrap;
            }
            [data-panel="Score"] .score-info .player-info .info-key,
            [data-panel="Score"] .score-info .player-info .info-value {
                display: flex;
                flex-direction: column;
                gap: 2px;
            }
                [data-panel="Score"] .score-info .player-info .info-key {
                    color: hsl(var(--main), 10%, 55%);
                    font-size: 14px;
                    font-weight: 600;
                    text-transform: uppercase;
                    letter-spacing: 0.5px;
                    margin-right: 4px;
                }
                [data-panel="Score"] .score-info .player-info .info-value {
                    color: hsl(var(--main), 10%, 85%);
                    font-size: 13px;
                    font-weight: 500;
                }
                [data-panel="Score"] .score-info .player-info .info-value a {
                    color: hsl(var(--main), 60%, 65%);
                    text-decoration: none;
                    font-weight: 600;
                    transition: all 150ms ease;
                    position: relative;
                }
                [data-panel="Score"] .score-info .player-info .info-value a:hover {
                    color: hsl(var(--main), 70%, 75%);
                    text-shadow: 0 0 8px hsla(var(--main), 60%, 50%, 0.4);
                }
                [data-panel="Score"] .score-info .player-info .info-value a::after {
                    content: '';
                    position: absolute;
                    bottom: -1px;
                    left: 0;
                    width: 0%;
                    height: 1px;
                    background: hsla(var(--main), 60%, 60%, 0.6);
                    transition: width 150ms ease;
                }
                [data-panel="Score"] .score-info .player-info .info-value a:hover::after {
                    width: 100%;
                }
        [data-panel="Score"] .score-info .score-buttons {
            display: flex;
            flex-direction: column;
            gap: 6px;
            min-width: 160px;
        }
            [data-panel="Score"] .score-buttons .score-button {
                font-size: 12px;
                font-weight: 600;
                padding: 8px 16px;
                border-radius: 8px;
                border: 1px solid hsla(var(--main), 50%, 40%, 0.4);
                background: linear-gradient(180deg, 
                    hsla(var(--main), 25%, 20%, 0.9) 0%, 
                    hsla(var(--main), 20%, 15%, 0.9) 100%);
                color: hsl(var(--main), 10%, 85%);
                cursor: pointer;
                transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
                text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
                box-shadow: 
                    0 1px 2px rgba(0, 0, 0, 0.2),
                    inset 0 1px 0 hsla(var(--main), 50%, 60%, 0.1);
                position: relative;
                overflow: hidden;
                white-space: nowrap;
            }
            [data-panel="Score"] .score-buttons .score-button::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: linear-gradient(180deg, 
                    hsla(var(--main), 30%, 25%, 0.3) 0%, 
                    transparent 50%, 
                    hsla(var(--main), 15%, 10%, 0.3) 100%);
                opacity: 0;
                transition: opacity 200ms ease;
            }
            [data-panel="Score"] .score-buttons .score-button:hover {
                transform: translateY(-1px);
                border-color: hsla(var(--main), 60%, 50%, 0.6);
                box-shadow: 
                    0 2px 8px rgba(0, 0, 0, 0.3),
                    0 0 12px hsla(var(--main), 60%, 50%, 0.2),
                    inset 0 1px 0 hsla(var(--main), 60%, 70%, 0.2);
            }
            [data-panel="Score"] .score-buttons .score-button:hover::before {
                opacity: 1;
            }
            [data-panel="Score"] .score-buttons .score-button:active {
                transform: translateY(0px) scale(0.98);
            }
            [data-panel="Score"] .score-buttons .score-button.is-primary {
                background: linear-gradient(180deg, 
                    hsla(var(--main), 60%, 45%, 0.95) 0%, 
                    hsla(var(--main), 55%, 35%, 0.95) 100%);
                color: white;
                border-color: hsla(var(--main), 70%, 55%, 0.8);
                box-shadow: 
                    0 2px 4px rgba(0, 0, 0, 0.3),
                    0 0 16px hsla(var(--main), 60%, 50%, 0.3),
                    inset 0 1px 0 hsla(var(--main), 70%, 70%, 0.3);
            }
            [data-panel="Score"] .score-buttons .score-button.is-primary:hover {
                background: linear-gradient(180deg, 
                    hsla(var(--main), 65%, 50%, 0.98) 0%, 
                    hsla(var(--main), 60%, 40%, 0.98) 100%);
                box-shadow: 
                    0 3px 12px rgba(0, 0, 0, 0.4),
                    0 0 20px hsla(var(--main), 65%, 55%, 0.4),
                    inset 0 1px 0 hsla(var(--main), 75%, 75%, 0.4);
            }
            [data-panel="Score"] .score-buttons .score-button.not-ready {
                opacity: 0.5;
                cursor: not-allowed;
                filter: grayscale(0.4);
            }
            [data-panel="Score"] .score-buttons .score-button:disabled {
                opacity: 0.4;
                cursor: not-allowed;
                filter: grayscale(0.6);
            }
            [data-panel="Score"] .score-buttons .score-button:disabled:hover {
                transform: none;
                box-shadow: 
                    0 1px 2px rgba(0, 0, 0, 0.2),
                    inset 0 1px 0 hsla(var(--main), 50%, 60%, 0.1);
            }
            
    [data-panel="Score"] .selector {
        border-bottom: 2px solid hsla(var(--main), 50%, 25%, 0.4);
        padding: 4px 0;
        margin-bottom: 8px;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        gap: 8px;
        position: relative;
    }
        [data-panel="Score"] .selector .tab-item {
            padding: 6px 14px;
            margin: 0 2px;
            border-radius: 8px;
            color: hsl(var(--main), 10%, 65%);
            font-weight: 600;
            font-size: 13px;
            letter-spacing: 0.3px;
            transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            position: relative;
            overflow: visible;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        }
            [data-panel="Score"] .selector .tab-item::after {
                content: '';
                position: absolute;
                bottom: -8px;
                left: 50%;
                transform: translateX(-50%);
                width: 0%;
                height: 4px;
                background: hsla(var(--main), 60%, 45%, 0.6);
                border-radius: 4px;
                transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
                box-shadow: 0 0 0 hsla(var(--main), 60%, 45%, 0);
            }
            [data-panel="Score"] .selector .tab-item:hover {
                color: hsl(var(--main), 10%, 85%);
                text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
                transform: translateY(-1px);
            }
            [data-panel="Score"] .selector .tab-item:hover::after {
                width: 70%;
                height: 4px;
                bottom: -7px;
                background: hsla(var(--main), 65%, 50%, 0.7);
                box-shadow: 0 0 8px hsla(var(--main), 65%, 50%, 0.4);
            }
            [data-panel="Score"] .selector .tab-item.is-active {
                color: hsl(var(--main), 10%, 95%);
                text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 12px hsla(var(--main), 70%, 50%, 0.3);
                transform: translateY(-1px);
            }
            [data-panel="Score"] .selector .tab-item.is-active::after {
                width: 85%;
                height: 6px;
                background: hsla(var(--main), 70%, 55%, 0.9);
                border-radius: 6px;
                box-shadow: 0 0 12px hsla(var(--main), 70%, 55%, 0.6);
            }
            [data-panel="Score"] .selector .tab-item.not-ready {
                opacity: 0.35;
                pointer-events: none;
                filter: grayscale(0.6);
            }
            [data-panel="Score"] .selector .tab-item.hidden {
                display: none;
            }
            [data-panel="Score"] .selector .tab-item:active {
                transform: translateY(0px) scale(0.98);
            }
    [data-panel="Score"] .score-overview {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        justify-content: center;
        width: 100%;
        gap: 12px;
        pointer-events: auto;
        padding: 8px;
    }

    /* Responsive improvements for mobile */
    @media (max-width: 768px) {
        [data-panel="Score"] .score-info {
            flex-direction: column;
            gap: 12px;
            padding: 12px 14px;
        }
        
        [data-panel="Score"] .score-info .score-buttons {
            flex-direction: row;
            flex-wrap: wrap;
            min-width: unset;
            width: 100%;
        }
        
        [data-panel="Score"] .score-overview {
            flex-direction: column;
        }
        
        [data-panel="Score"] .score-overview .score-player {
            min-width: unset;
            max-width: unset;
            width: 100%;
        }
        
        [data-panel="Score"] .score-overview .score-stats {
            min-width: unset;
            width: 100%;
        }
        
        [data-panel="Score"] .score-info .score-details {
            min-width: unset;
        }
        
        [data-panel="Score"] .grade-info .grade-tower {
            margin-right: 8px;
        }
    }

        [data-panel="Score"] .score-overview .score-player {
            display: flex;
            flex: 0 1 auto;
            min-width: 280px;
            max-width: 350px;
        }

        [data-panel="Score"] .score-overview .score-stats {
            display: flex;
            flex-direction: column;
            flex: 1;
            padding: 4px;
            min-width: 280px;
            gap: 8px;
        }

            [data-panel="Score"] .score-stats .stat-block {
                display: flex;
                flex-direction: row;
                flex-wrap: wrap;
                padding: 8px;
                justify-content: center;
                gap: 6px;
                background: hsla(var(--main), 15%, 12%, 0.4);
                border-radius: 12px;
                border: 1px solid hsla(var(--main), 20%, 18%, 0.3);
            } 

                [data-panel="Score"] .stat-block .stat-bubble {
                    display: flex;
                    flex-direction: column;
                    background: linear-gradient(180deg, 
                        hsla(var(--main), 25%, 18%, 0.9) 0%, 
                        hsla(var(--main), 20%, 12%, 0.9) 100%);
                    align-items: center;
                    padding: 8px 16px;
                    margin: 4px;
                    border-radius: 16px;
                    flex: 0 1 auto;
                    border: 1px solid hsla(var(--main), 30%, 25%, 0.4);
                    box-shadow: 
                        0 1px 3px rgba(0, 0, 0, 0.2),
                        inset 0 1px 0 hsla(var(--main), 30%, 30%, 0.1);
                    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
                    min-width: 70px;
                }
                [data-panel="Score"] .stat-block .stat-bubble:hover {
                    transform: translateY(-2px);
                    box-shadow: 
                        0 4px 12px rgba(0, 0, 0, 0.3),
                        0 0 12px hsla(var(--main), 40%, 35%, 0.2),
                        inset 0 1px 0 hsla(var(--main), 40%, 40%, 0.15);
                    border-color: hsla(var(--main), 40%, 35%, 0.6);
                }
                [data-panel="Score"] .stat-block .stat-bubble .stat-title {
                    font-size: 10px;
                    font-weight: 700;
                    text-transform: uppercase;
                    letter-spacing: 0.8px;
                    color: hsl(var(--main), 10%, 55%);
                    margin-bottom: 2px;
                    line-height: 1;
                }
                [data-panel="Score"] .stat-block .stat-bubble .stat-title.lowercase {
                    text-transform: lowercase;
                }
                [data-panel="Score"] .stat-block .stat-bubble span {
                    font-size: 16px;
                    font-weight: 700;
                    color: hsl(var(--main), 10%, 90%);
                    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
                    line-height: 1.2;
                }
    
    /* ================= CHEAT VALUES STYLES ================= */

        [data-panel="Score"] .no-cheats-message {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 40px 20px;
            text-align: center;
            gap: 12px;
            color: hsl(var(--main), 10%, 60%);
            font-size: 14px;
            font-weight: 500;
        }

        [data-panel="Score"] .no-cheats-message i {
            font-size: 32px;
            opacity: 0.5;
        }

        [data-panel="Score"] .cheats-container {
            display: flex;
            flex-direction: column;
            gap: 16px;
            padding: 8px;
            align-items: center;
        }

        [data-panel="Score"] .cheats-header {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 16px;
            background: linear-gradient(180deg, 
                hsla(var(--main), 25%, 20%, 0.9) 0%, 
                hsla(var(--main), 20%, 15%, 0.9) 100%);
            border-radius: 12px;
            border: 1px solid hsla(var(--main), 30%, 25%, 0.4);
            box-shadow: 
                0 2px 8px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 hsla(var(--main), 30%, 30%, 0.1);
        }

        [data-panel="Score"] .cheats-header i {
            color: hsl(var(--main), 60%, 65%);
            font-size: 18px;
        }

        [data-panel="Score"] .cheats-header span {
            color: hsl(var(--main), 10%, 95%);
            font-size: 16px;
            font-weight: 700;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        }

        [data-panel="Score"] .cheats-categories {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            justify-content: center;
        }

        [data-panel="Score"] .cheat-category {
            background: linear-gradient(180deg, 
                hsla(var(--main), 18%, 14%, 0.8) 0%, 
                hsla(var(--main), 15%, 12%, 0.9) 100%);
            border-radius: 12px;
            border: 1px solid hsla(var(--main), 25%, 20%, 0.3);
            overflow: hidden;
            box-shadow: 
                0 2px 6px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 hsla(var(--main), 25%, 25%, 0.1);
        }

        [data-panel="Score"] .category-header {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 16px;
            background: linear-gradient(180deg, 
                hsla(var(--main), 22%, 18%, 0.9) 0%, 
                hsla(var(--main), 20%, 16%, 0.9) 100%);
            cursor: pointer;
            transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
            border-bottom: 1px solid hsla(var(--main), 25%, 20%, 0.2);
        }

        [data-panel="Score"] .category-header:hover {
            background: linear-gradient(180deg, 
                hsla(var(--main), 25%, 20%, 0.95) 0%, 
                hsla(var(--main), 22%, 18%, 0.95) 100%);
            transform: translateX(2px);
        }

        [data-panel="Score"] .category-header i {
            color: hsl(var(--main), 50%, 60%);
            font-size: 12px;
            transition: transform 200ms ease;
        }

        [data-panel="Score"] .category-header span {
            color: hsl(var(--main), 10%, 90%);
            font-size: 14px;
            font-weight: 600;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        }

        [data-panel="Score"] .category-header .category-count {
            margin-left: auto;
            color: hsl(var(--main), 40%, 70%);
            font-size: 12px;
            font-weight: 500;
            opacity: 0.8;
        }

        [data-panel="Score"] .category-values {
            display: flex;
            flex-direction: column;
            padding: 8px;
            gap: 4px;
        }

        [data-panel="Score"] .cheat-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 12px;
            background: linear-gradient(180deg, 
                hsla(var(--main), 20%, 16%, 0.6) 0%, 
                hsla(var(--main), 18%, 14%, 0.7) 100%);
            border-radius: 8px;
            border: 1px solid hsla(var(--main), 25%, 20%, 0.2);
            transition: all 150ms ease;
        }

        [data-panel="Score"] .cheat-item:hover {
            background: linear-gradient(180deg, 
                hsla(var(--main), 22%, 18%, 0.7) 0%, 
                hsla(var(--main), 20%, 16%, 0.8) 100%);
            border-color: hsla(var(--main), 35%, 30%, 0.4);
            transform: translateX(2px);
        }

        [data-panel="Score"] .cheat-key {
            color: hsl(var(--main), 10%, 75%);
            font-size: 13px;
            font-weight: 500;
            text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
        }

        [data-panel="Score"] .cheat-value {
            color: hsl(var(--main), 60%, 70%);
            font-size: 13px;
            font-weight: 600;
            text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
            padding-left: 12px;
            text-align: right;
            word-break: break-word;
            max-width: 60%;
        }

        /* Value-specific styling */
        [data-panel="Score"] .cheat-value:contains("✓ Enabled") {
            color: hsl(120, 70%, 60%);
        }

        [data-panel="Score"] .cheat-value:contains("✗ Disabled") {
            color: hsl(0, 70%, 60%);
            opacity: 0.7;
        }

        /* Responsive improvements for mobile */
        @media (max-width: 768px) {
            [data-panel="Score"] .cheats-container {
                padding: 4px;
                gap: 8px;
            }

            [data-panel="Score"] .cheats-header {
                padding: 10px 12px;
            }

            [data-panel="Score"] .cheats-header i {
                font-size: 16px;
            }

            [data-panel="Score"] .cheats-header span {
                font-size: 14px;
            }

            [data-panel="Score"] .category-header {
                padding: 10px 12px;
            }

            [data-panel="Score"] .category-header span {
                font-size: 13px;
            }

            [data-panel="Score"] .cheat-item {
                padding: 6px 10px;
                flex-direction: column;
                align-items: flex-start;
                gap: 4px;
            }

            [data-panel="Score"] .cheat-key {
                font-size: 12px;
            }

            [data-panel="Score"] .cheat-value {
                font-size: 12px;
                max-width: 100%;
                text-align: left;
                padding-left: 0;
            }

            [data-panel="Score"] .no-cheats-message {
                padding: 30px 15px;
            }

            [data-panel="Score"] .no-cheats-message i {
                font-size: 28px;
            }
        }

                
