* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background-color: #070b12;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

/* The background lives on its own fixed, composited layer instead of using
   background-attachment: fixed, which makes Chrome repaint the whole page on scroll and
   leaves ghost edges around the blurred (backdrop-filter) controls. */
body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgb(3 8 17 / 24%), rgb(3 8 17 / 46%)),
        url("Images/Backgrounds/JeffHardy.jpg");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    content: '';
    pointer-events: none;
    will-change: transform;
}

@keyframes page-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popup-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@view-transition {
    navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 180ms;
    animation-timing-function: ease;
}

@supports not (view-transition-name: root) {
    body {
        animation: page-fade-in 200ms ease-out both;
    }
}

.page-shell {
    position: relative;
    width: min(870px, calc(100% - 40px));
    margin: 0 auto;
    padding: 22px 0 48px;
}

.page-header {
    position: relative;
    display: flex;
    padding: 4px 0;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.page-header h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0;
    line-height: 0;
}

.site-logo {
    display: block;
    width: 300px;
    max-width: 100%;
    height: auto;
    /* The logo SVGs use a square canvas with the artwork in a band; crop to that band. */
    aspect-ratio: 1000 / 210;
    margin: 0 auto;
    object-fit: cover;
    object-position: 50% 40.5%;
}

.site-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.site-logo-link:hover .site-logo,
.site-logo-link:focus-visible .site-logo {
    transform: scale(108%);
    transition: transform 160ms ease;
}

.site-logo-link:focus-visible {
    outline: 2px solid rgb(255 255 255 / 85%);
    outline-offset: 8px;
}

.social-links {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.social-link {
    display: grid;
    place-items: center;
    border-radius: 6px;
    transition: transform 160ms ease, opacity 160ms ease;
}

.social-link:hover,
.social-link:focus-visible {
    transform: scale(115%);
}

.social-link:focus-visible {
    outline: 2px solid rgb(255 255 255 / 85%);
    outline-offset: 3px;
}

.social-icon {
    display: block;
    height: 20px;
    width: auto;
    object-fit: cover;
}

/* YouTube and Patreon SVGs have wide empty canvases; crop to the icon artwork. */
.social-icon-youtube {
    aspect-ratio: 340 / 275;
    object-position: 46.9% 50%;
}

.social-icon-patreon {
    aspect-ratio: 190 / 199.56;
    object-position: 44.9% 50%;
}

.social-icon-twitter {
    height: 17px;
    aspect-ratio: 248 / 204;
}

@media (max-width: 560px) {
    .page-header {
        flex-direction: column;
        gap: 10px;
    }

    .social-links {
        position: static;
        flex-direction: row;
        transform: none;
        gap: 16px;
    }
}

.site-footer {
    margin-top: auto;
    padding: 8px 16px 12px;
    color: rgb(255 255 255 / 62%);
    font-size: 10px;
    text-align: center;
    text-shadow: 0 1px 3px rgb(0 0 0 / 70%);
}

.site-footer-button {
    padding: 2px 4px;
    border: 0;
    border-radius: 6px;
    background: none;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-shadow: inherit;
    transition: color 160ms ease;
}

.site-footer-button:hover {
    color: #fff;
}

.site-footer-button:focus-visible {
    outline: 2px solid rgb(255 255 255 / 85%);
    outline-offset: 2px;
}

.footer-info-text {
    font-size: 13px;
    line-height: 1.5;
}

.home-shell .page-header {
    padding: 0;
}

.home-social-links {
    position: static;
    flex-direction: row;
    gap: 16px;
    transform: none;
}

.home-shell .site-logo {
    width: min(460px, 100vw - 48px);
    aspect-ratio: 1000 / 440;
    object-position: center;
}

.home-shell {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding-bottom: 22px;
}

.home-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 20px shell gap plus the empty margin at the bottom of the cropped logo artwork. */
    gap: 34px;
    justify-content: center;
    text-align: center;
}

.home-promotion-control {
    position: relative;
    display: inline-flex;
    flex-direction: column;
}

.home-promotion-control .home-promotion-group {
    width: 160px;
}

.home-promotion-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.home-promotion-button[aria-expanded="true"] {
    background: rgb(43 57 75 / 68%);
    color: #fff;
    box-shadow: 0 1px 3px rgb(14 20 28 / 18%);
}

.home-promotion-arrow {
    width: 14px;
    height: 14px;
    flex: none;
    transition: transform 160ms ease;
}

.home-promotion-button[aria-expanded="true"] .home-promotion-arrow {
    transform: rotate(180deg);
}

.home-promotion-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 40;
    display: grid;
    width: 100%;
    gap: 5px;
    padding: 7px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgb(255 255 255 / 94%), rgb(215 224 235 / 82%));
    box-shadow: 0 9px 22px rgb(37 49 66 / 22%);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    backdrop-filter: blur(16px) saturate(1.5);
}

.home-promotion-menu[hidden] {
    display: none;
}

.home-promotion-menu:not([hidden]) {
    animation: popup-fade-in 140ms ease-out both;
}

.home-promotion-menu .promotion-option {
    min-height: 34px;
    color: #111;
}

.home-promotion-menu .promotion-option:hover {
    background: rgb(43 57 75 / 68%);
    color: #fff;
}

.home-promotion-menu .promotion-option:focus-visible {
    background: rgb(43 57 75 / 68%);
    color: #fff;
}

.home-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgb(3 7 13 / 62%);
    opacity: 0;
    visibility: hidden;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.home-modal.is-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 180ms ease, visibility 0s;
}

.home-modal-panel {
    display: grid;
    width: min(420px, 100%);
    gap: 18px;
    padding: 22px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgb(255 255 255 / 94%), rgb(215 224 235 / 82%));
    box-shadow: 0 9px 22px rgb(37 49 66 / 22%);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    backdrop-filter: blur(16px) saturate(1.5);
    color: #111;
    text-align: center;
    transform: translateY(8px) scale(0.985);
    transition: transform 200ms ease;
}

.home-modal.is-visible .home-modal-panel {
    transform: none;
}

.home-modal-message {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.home-modal-close {
    min-height: 40px;
    min-width: 140px;
    justify-self: center;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: rgb(82 97 116 / 10%);
    color: #111;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    transition: background-color 160ms ease, color 160ms ease;
}

.home-modal-close:hover {
    background: rgb(43 57 75 / 68%);
    color: #fff;
}

.home-modal-close:focus-visible {
    outline: 2px solid rgb(24 40 60 / 75%);
    outline-offset: 2px;
}

.roster-tools {
    position: sticky;
    top: 12px;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 18px;
    margin-top: 24px;
}

/* The sticky toolbar uses solid surfaces instead of backdrop-filter glass. Chrome leaves
   stale paint (ghost edges, half-updated buttons) around blurred elements in a sticky bar
   when neighbours repaint. The colours match the old glass over the dark background. */
.roster-tools .roster-search-wrap,
.roster-tools .filter-group,
.roster-tools .favorites-filter-button {
    background: linear-gradient(135deg, rgb(186 186 188), rgb(70 74 80));
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.roster-search-wrap,
.filter-group {
    height: 40px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgb(255 255 255 / 72%), rgb(215 224 235 / 30%));
    box-shadow: 0 9px 22px rgb(37 49 66 / 12%);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    backdrop-filter: blur(16px) saturate(1.5);
}

.roster-search-wrap {
    position: relative;
    z-index: 1;
    grid-column: span 1;
    min-width: 0;
}

.roster-search {
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 0 10px;
    border: 0;
    border-radius: inherit;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 13px;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

.roster-search::placeholder {
    color: #fff;
    opacity: 1;
}

.move-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    width: max(100%, 280px);
    max-height: min(320px, 60vh);
    overflow-y: auto;
    border: 1px solid rgb(255 255 255 / 20%);
    border-radius: 14px;
    background: rgb(13 19 28);
    box-shadow: 0 16px 36px rgb(0 0 0 / 42%);
}

.move-suggestions[hidden] {
    display: none;
}

.move-suggestions:not([hidden]) {
    animation: popup-fade-in 140ms ease-out both;
}

.move-suggestion {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    padding: 11px 14px;
    border: 0;
    border-bottom: 1px solid rgb(255 255 255 / 9%);
    background: transparent;
    color: #f5f7fa;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.move-suggestion:last-child {
    border-bottom: 0;
}

.move-suggestion:hover,
.move-suggestion:focus-visible {
    background: rgb(255 255 255 / 10%);
    outline: none;
}

.move-suggestion-name {
    font-size: 13px;
    font-weight: 700;
}

.move-suggestion-wrestler {
    color: rgb(255 255 255 / 64%);
    font-size: 11px;
}

.filter-group {
    display: flex;
    gap: 5px;
    padding: 3px;
    overflow: hidden;
}

.filter-button {
    min-width: 0;
    flex: 1;
    padding: 0 6px;
    border: 0;
    border-radius: 10px;
    background: rgb(82 97 116 / 10%);
    color: #fff;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.brand-filter-group,
.category-filter-controls {
    grid-column: span 2;
}

.brand-filter-group {
    position: relative;
    z-index: 25;
    overflow: visible;
}

.custom-rosters-control {
    position: static;
    min-width: 0;
    flex: 1;
}

.custom-rosters-filter-button {
    width: 100%;
    height: 100%;
}

.custom-rosters-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: var(--custom-roster-menu-left, 0px);
    z-index: 40;
    display: grid;
    width: var(--wrestler-card-width, 160px);
    max-height: min(320px, 60vh);
    gap: 5px;
    overflow-y: auto;
    padding: 7px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgb(240 240 240), rgb(178 185 194));
    box-shadow: 0 9px 22px rgb(37 49 66 / 22%);
}

.custom-rosters-menu[hidden] {
    display: none;
}

.custom-rosters-menu:not([hidden]) {
    animation: popup-fade-in 140ms ease-out both;
}

.custom-roster-option {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 9px;
    border: 0;
    border-radius: 9px;
    background: rgb(82 97 116 / 10%);
    color: #111;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    text-align: left;
}

.custom-roster-option:hover,
.custom-roster-option[aria-pressed="true"] {
    background: rgb(43 57 75 / 68%);
    color: #fff;
}

.custom-roster-option-count {
    opacity: 0.7;
    font-size: 11px;
}

.custom-rosters-options:empty {
    display: none;
}

.custom-rosters-options:empty + .custom-rosters-add-link {
    border-top: 0;
}

.custom-rosters-add-link {
    display: block;
    padding: 9px;
    border-top: 1px solid rgb(32 43 56 / 16%);
    border-radius: 8px;
    color: #18283c;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.custom-rosters-add-link:hover,
.custom-rosters-add-link:focus-visible {
    background: rgb(43 57 75 / 16%);
    outline: none;
}

.category-filter-controls {
    display: flex;
    min-width: 0;
    gap: 12px;
}

.category-filter-group {
    min-width: 0;
    flex: 1;
}

.favorites-filter-button {
    display: grid;
    width: 68px;
    height: 40px;
    flex: none;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgb(255 255 255 / 72%), rgb(215 224 235 / 30%));
    box-shadow: 0 9px 22px rgb(37 49 66 / 12%);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    backdrop-filter: blur(16px) saturate(1.5);
    color: #ffd84d;
    font-size: 24px;
    line-height: 1;
    text-shadow: 0 1px 4px rgb(0 0 0 / 90%);
}

.favorites-filter-button[aria-pressed="true"] {
    background: rgb(43 57 75 / 78%);
    color: #ffd84d;
    box-shadow: 0 0 0 2px rgb(255 216 77 / 42%);
}

.brand-filter-group .filter-button {
    padding: 0 2px;
}

.filter-button[aria-pressed="true"] {
    background: rgb(43 57 75 / 68%);
    color: #fff;
    box-shadow: 0 1px 3px rgb(14 20 28 / 18%);
}

.filter-button:focus-visible {
    outline: 2px solid rgb(255 255 255 / 90%);
    outline-offset: -4px;
}

.roster-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    margin-top: 54px;
}

.app-status {
    margin-top: 16px;
    color: rgb(255 255 255 / 72%);
    text-align: center;
}

.roster-pagination {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.roster-pagination[hidden] {
    display: none;
}

.roster-pagination select {
    height: 40px;
    min-width: 150px;
    padding: 0 12px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgb(255 255 255 / 72%), rgb(215 224 235 / 30%));
    color: #111;
    font: inherit;
    font-size: 13px;
    box-shadow: 0 9px 22px rgb(37 49 66 / 12%);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    backdrop-filter: blur(16px) saturate(1.5);
    cursor: pointer;
    outline: none;
}

.roster-pagination select:focus-visible {
    outline: 2px solid rgb(255 255 255 / 90%);
    outline-offset: -4px;
}

.wrestler-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: #b9b9b9;
    cursor: pointer;
    text-align: left;
    isolation: isolate;
    font: inherit;
    transition: transform 180ms ease;
}

.wrestler-card:hover {
    transform: scale(1.04);
}

.wrestler-open {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
    isolation: isolate;
}

.wrestler-open:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -4px;
}

.favorite-button {
    position: absolute;
    right: 8px;
    top: 8px;
    z-index: 2;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgb(255 255 255 / 88%);
    cursor: pointer;
    font: inherit;
    font-size: 24px;
    line-height: 1;
    text-shadow: 0 1px 4px rgb(0 0 0 / 90%);
    transition: color 160ms ease, transform 160ms ease;
}

.favorite-button:hover {
    transform: scale(1.08);
    background: transparent;
}

.favorite-button[aria-pressed="true"] {
    color: #ffd84d;
}

.favorite-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.wrestler-placeholder {
    aspect-ratio: 1;
    border: 1px solid rgb(255 255 255 / 24%);
    border-radius: 12px;
    background: linear-gradient(145deg, rgb(255 255 255 / 13%), rgb(255 255 255 / 5%));
    box-shadow: inset 0 1px 1px rgb(255 255 255 / 20%);
}

.wrestler-card img {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #b9b9b9;
}

.wrestler-name {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 28px 10px 10px;
    background: linear-gradient(transparent, rgb(0 0 0 / 72%));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation-duration: 0.01ms !important;
    }
}

@media (max-width: 760px) {
    .roster-tools {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 24px;
    }

    .roster-search-wrap,
    .filter-group,
    .category-filter-controls {
        grid-column: auto;
    }

    .roster-search-wrap {
        width: 100%;
    }

    .filter-group {
        width: 100%;
    }

    .category-filter-controls {
        width: 100%;
        gap: 12px;
    }

    .category-filter-group {
        width: auto;
    }

    .favorites-filter-button {
        width: 68px;
    }
    .filter-button {
        flex: 1;
        min-width: 0;
    }

    .roster-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
        margin-top: 36px;
    }
}

@media (max-width: 460px) {
    .page-shell {
        width: calc(100% - 32px);
        padding-top: 26px;
    }

    .roster-tools {
        margin-top: 20px;
    }

    .filter-group {
        gap: 4px;
    }
}

.custom-rosters-back {
    display: inline-flex;
    margin-top: 20px;
    color: rgb(255 255 255 / 76%);
    font-size: 13px;
    text-decoration: none;
}

.custom-rosters-back:hover,
.custom-rosters-back:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.custom-rosters-page {
    margin-top: 28px;
}

.custom-rosters-heading {
    margin-bottom: 22px;
}

.custom-rosters-heading h2 {
    font-size: clamp(26px, 5vw, 36px);
    font-weight: 800;
}

.custom-rosters-heading p {
    margin-top: 8px;
    color: rgb(255 255 255 / 70%);
    font-size: 14px;
    line-height: 1.5;
}

.custom-rosters-panel {
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgb(255 255 255 / 72%), rgb(215 224 235 / 30%));
    box-shadow: 0 9px 22px rgb(37 49 66 / 12%);
    color: #111;
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    backdrop-filter: blur(16px) saturate(1.5);
}

.custom-rosters-create {
    padding: 18px;
}

.custom-rosters-create h3,
.custom-rosters-folder-content h3 {
    margin-bottom: 12px;
    font-size: 16px;
}

.custom-rosters-form {
    display: flex;
    gap: 10px;
}

.custom-rosters-form input,
.custom-rosters-form select {
    min-width: 0;
    min-height: 40px;
    flex: 1;
    padding: 0 10px;
    border: 0;
    border-radius: 14px;
    background: rgb(255 255 255 / 60%);
    color: #111;
    font: inherit;
    font-size: 13px;
    box-shadow: inset 0 1px 2px rgb(37 49 66 / 10%);
}

.custom-rosters-form button,
.custom-rosters-danger,
.custom-rosters-remove {
    min-height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: rgb(82 97 116 / 10%);
    color: #111;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.custom-rosters-form button:hover,
.custom-rosters-remove:hover {
    background: rgb(43 57 75 / 68%);
    color: #fff;
}

.custom-rosters-layout {
    display: grid;
    grid-template-columns: minmax(190px, 0.8fr) minmax(0, 1.7fr);
    gap: 16px;
    margin-top: 16px;
}

.custom-rosters-folder-list,
.custom-rosters-folder-content {
    min-width: 0;
    padding: 18px;
}

.custom-rosters-folder-list {
    display: grid;
    align-content: start;
    gap: 8px;
}

.custom-roster-folder-button {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border: 0;
    border-radius: 10px;
    background: rgb(82 97 116 / 10%);
    color: #111;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    text-align: left;
    transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.custom-roster-folder-button[aria-pressed="true"],
.custom-roster-folder-button:hover {
    background: rgb(43 57 75 / 68%);
    color: #fff;
    box-shadow: 0 1px 3px rgb(14 20 28 / 18%);
}

.custom-roster-folder-count {
    color: currentColor;
    opacity: 0.7;
    font-size: 12px;
}

.custom-rosters-folder-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.custom-rosters-folder-header h3 {
    margin-bottom: 0;
}

.custom-rosters-danger,
.custom-rosters-remove {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
}

.custom-rosters-danger {
    background: rgb(120 38 38 / 12%);
    color: #762b2b;
}

.custom-rosters-danger:hover {
    background: rgb(120 38 38 / 82%);
    color: #fff;
}

.custom-rosters-add {
    margin-bottom: 18px;
}

.custom-rosters-superstar-list {
    display: grid;
    gap: 8px;
    list-style: none;
}

.custom-rosters-superstar {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 9px 7px 13px;
    border: 0;
    border-radius: 12px;
    background: rgb(255 255 255 / 34%);
}

.custom-rosters-empty {
    padding: 16px 10px;
    color: rgb(17 17 17 / 72%);
    font-size: 13px;
    line-height: 1.5;
}

.custom-rosters-status {
    margin-top: 12px;
    color: #8b2525;
    font-size: 13px;
}

.custom-rosters-status[hidden] {
    display: none;
}

@media (max-width: 560px) {
    .custom-rosters-layout {
        grid-template-columns: 1fr;
    }

    .custom-rosters-folder-list {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }

    .custom-rosters-form {
        flex-direction: column;
    }

    .custom-rosters-form button {
        min-height: 42px;
    }
}

@media (max-width: 460px) {
    .filter-button {
        padding: 0 6px;
    }

    .roster-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    background: rgb(3 7 13 / 76%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.modal.is-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 180ms ease, visibility 0s;
}

.modal-content {
    position: relative;
    width: min(820px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgb(255 255 255 / 24%);
    border-radius: 22px;
    background: linear-gradient(145deg, rgb(255 255 255 / 10%), rgb(255 255 255 / 2%)), rgb(10 15 23 / 94%);
    color: #f5f7fa;
    box-shadow: 0 32px 80px rgb(0 0 0 / 55%), inset 0 1px 1px rgb(255 255 255 / 38%);
    -webkit-backdrop-filter: blur(24px) saturate(1.45);
    backdrop-filter: blur(24px) saturate(1.45);
    transform: translateY(10px) scale(0.985);
    transition: transform 200ms ease;
}

.modal.is-visible .modal-content {
    transform: none;
}

.moves-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 68px 22px 24px;
    border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.wrestler-avatar {
    display: grid;
    width: 84px;
    height: 84px;
    flex: none;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 25%);
    border-radius: 20px;
    background: linear-gradient(145deg, rgb(255 255 255 / 18%), rgb(255 255 255 / 4%));
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 30px;
    font-weight: 800;
    box-shadow: inset 0 1px 1px rgb(255 255 255 / 45%);
}

.wrestler-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.moves-header-copy {
    min-width: 0;
}

.wrestler-category {
    display: inline-flex;
    padding: 4px 9px;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 999px;
    background: rgb(255 255 255 / 7%);
    color: rgb(255 255 255 / 75%);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.moves-header h2 {
    margin-top: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 50%;
    background: rgb(255 255 255 / 7%);
    font: inherit;
    font-size: 24px;
    cursor: pointer;
    color: rgb(255 255 255 / 72%);
    line-height: 1;
    transition: background-color 160ms ease, color 160ms ease;
}

.close-btn:hover {
    background: rgb(255 255 255 / 15%);
    color: #fff;
}

.close-btn:focus-visible {
    outline: 2px solid rgb(255 255 255 / 85%);
    outline-offset: 3px;
}

.move-sections {
    padding: 20px 24px 26px;
}

.move-section + .move-section {
    margin-top: 24px;
}

.move-category {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
    color: #f5f7fa;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.move-category::after {
    height: 1px;
    flex: 1;
    background: rgb(255 255 255 / 16%);
    content: '';
}

.move-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.move-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 14px;
    background: rgb(255 255 255 / 4%);
    box-shadow: inset 0 1px 1px rgb(255 255 255 / 12%);
}

.move-card-focused {
    border-color: rgb(255 216 77 / 92%);
    box-shadow: 0 0 0 2px rgb(255 216 77 / 32%), 0 0 24px rgb(255 216 77 / 20%);
}

.move-preview {
    display: grid;
    aspect-ratio: 4 / 3;
    place-items: center;
    margin: 8px;
    border: 1px dashed rgb(255 255 255 / 22%);
    border-radius: 10px;
    background: linear-gradient(145deg, rgb(255 255 255 / 7%), rgb(255 255 255 / 2%));
    color: rgb(255 255 255 / 46%);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.move-preview video {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.move-item {
    padding: 4px 12px 13px;
    color: #f5f7fa;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.modal-action {
    display: inline-flex;
    height: 30px;
    max-width: 100%;
    align-items: center;
    gap: 6px;
    padding: 0 12px 0 10px;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 999px;
    background: rgb(255 255 255 / 7%);
    color: rgb(255 255 255 / 80%);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.modal-action span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-action svg {
    width: 15px;
    height: 15px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.modal-action:hover,
.modal-action[aria-expanded="true"] {
    background: rgb(255 255 255 / 15%);
    color: #fff;
}

.modal-action:focus-visible {
    outline: 2px solid rgb(255 255 255 / 85%);
    outline-offset: 2px;
}

.modal-action.is-done {
    border-color: rgb(255 216 77 / 60%);
    color: #ffd84d;
}

.modal-action:disabled {
    cursor: default;
    opacity: 0.4;
}

.modal-action:disabled:hover {
    background: rgb(255 255 255 / 7%);
    color: rgb(255 255 255 / 80%);
}

.modal-favorite {
    display: grid;
    width: 30px;
    place-items: center;
    padding: 0;
}

.modal-favorite span {
    display: block;
    overflow: visible;
    font-size: 17px;
    line-height: 1;
}

.modal-favorite[aria-pressed="true"],
.modal-favorite[aria-pressed="true"]:hover {
    border-color: rgb(255 216 77 / 60%);
    color: #ffd84d;
}


.compare-picker {
    padding: 16px 24px;
    border-bottom: 1px solid rgb(255 255 255 / 12%);
    animation: popup-fade-in 140ms ease-out both;
}

.compare-picker[hidden] {
    display: none;
}

.compare-search {
    width: 100%;
    height: 40px;
    padding: 0 14px;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 12px;
    background: rgb(255 255 255 / 7%);
    color: #fff;
    font: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 160ms ease;
}

.compare-search::placeholder {
    color: rgb(255 255 255 / 50%);
}

.compare-search:focus {
    border-color: rgb(255 255 255 / 45%);
}

.compare-results {
    display: grid;
    max-height: 240px;
    gap: 2px;
    margin-top: 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.compare-result {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #f5f7fa;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}

.compare-result:hover,
.compare-result:focus-visible {
    background: rgb(255 255 255 / 10%);
    outline: none;
}

.compare-result-meta {
    flex: none;
    color: rgb(255 255 255 / 56%);
    font-size: 11px;
    font-weight: 500;
}

.compare-empty {
    padding: 12px;
    color: rgb(255 255 255 / 60%);
    font-size: 13px;
    text-align: center;
}

.moves-header.is-compare {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding-left: 68px;
}

.is-compare .modal-actions {
    justify-content: center;
    margin-top: 0;
}

.compare-fighters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}

.compare-fighter {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 0;
    border-radius: 16px;
    background: none;
    color: inherit;
    cursor: pointer;
    font: inherit;
    transition: background-color 160ms ease;
}

.compare-fighter:hover {
    background: rgb(255 255 255 / 6%);
}

.compare-fighter:focus-visible {
    outline: 2px solid rgb(255 255 255 / 85%);
    outline-offset: 2px;
}

.compare-fighter .wrestler-avatar {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    font-size: 26px;
}

.compare-fighter-name {
    max-width: 100%;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    overflow-wrap: anywhere;
}

.compare-vs {
    color: rgb(255 255 255 / 46%);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.compare-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    color: rgb(255 255 255 / 60%);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.compare-summary.has-shared {
    color: #ffd84d;
}

.compare-summary.has-shared::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffd84d;
    box-shadow: 0 0 10px rgb(255 216 77 / 60%);
    content: '';
}

.compare-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.compare-list {
    display: grid;
    align-content: start;
    gap: 8px;
    list-style: none;
}

.compare-move {
    min-width: 0;
    padding: 11px 14px;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 12px;
    background: rgb(255 255 255 / 4%);
    box-shadow: inset 0 1px 1px rgb(255 255 255 / 12%);
    color: #f5f7fa;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.compare-move.is-shared {
    border-color: rgb(255 216 77 / 70%);
    background: rgb(255 216 77 / 8%);
    box-shadow: 0 0 0 1px rgb(255 216 77 / 18%), 0 0 18px rgb(255 216 77 / 10%);
}

.compare-move.is-empty {
    border-style: dashed;
    background: none;
    box-shadow: none;
    color: rgb(255 255 255 / 36%);
    text-align: center;
}

.move-empty,
.empty-roster {
    color: rgb(255 255 255 / 72%);
    text-align: center;
}

.move-empty {
    padding: 32px 20px;
}

.empty-roster {
    grid-column: 1 / -1;
    padding: 32px 12px;
}

@media (max-width: 560px) {
    .modal {
        padding: 12px;
    }

    .modal-content {
        max-height: 90vh;
        border-radius: 18px;
    }

    .moves-header {
        gap: 14px;
        padding: 20px 56px 18px 18px;
    }

    .wrestler-avatar {
        width: 66px;
        height: 66px;
        border-radius: 17px;
        font-size: 25px;
    }

    .moves-header h2 {
        font-size: 30px;
    }

    .move-sections {
        padding: 18px 18px 22px;
    }

    .move-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .move-preview {
        margin: 6px;
    }

    .move-item {
        padding: 4px 9px 11px;
        font-size: 13px;
    }

    .compare-picker {
        padding: 14px 18px;
    }

    .moves-header.is-compare {
        padding-left: 56px;
    }

    .compare-fighters {
        gap: 8px;
    }

    .compare-fighter .wrestler-avatar {
        width: 56px;
        height: 56px;
        border-radius: 15px;
        font-size: 21px;
    }

    .compare-fighter-name {
        font-size: 17px;
    }

    .compare-columns {
        gap: 8px;
    }

    .compare-move {
        padding: 9px 10px;
        font-size: 13px;
    }
}

@media (min-width: 761px) and (pointer: fine) {
    html,
    .modal-content {
        scrollbar-width: thin;
        scrollbar-color: rgb(255 255 255 / 48%) rgb(255 255 255 / 5%);
    }

    .modal-content {
        scrollbar-gutter: stable;
    }

    html::-webkit-scrollbar,
    .modal-content::-webkit-scrollbar {
        width: 12px;
        height: 12px;
    }

    html::-webkit-scrollbar-track,
    .modal-content::-webkit-scrollbar-track {
        background: rgb(255 255 255 / 4%);
    }

    html::-webkit-scrollbar-thumb,
    .modal-content::-webkit-scrollbar-thumb {
        min-height: 42px;
        border: 3px solid transparent;
        border-radius: 999px;
        background: linear-gradient(180deg, rgb(255 255 255 / 58%), rgb(255 255 255 / 24%)) padding-box;
    }

    html::-webkit-scrollbar-thumb:hover,
    .modal-content::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, rgb(255 255 255 / 78%), rgb(255 255 255 / 42%)) padding-box;
    }

    .modal-content::-webkit-scrollbar-track {
        margin-block: 18px;
        border-radius: 999px;
        background: transparent;
    }

    html::-webkit-scrollbar-corner,
    .modal-content::-webkit-scrollbar-corner {
        background: transparent;
    }

    /* Chrome ignores ::-webkit-scrollbar styles (including the track inset that keeps the
       scrollbar clear of the rounded corners) when scrollbar-width/color are set. */
    @supports selector(::-webkit-scrollbar) {
        .modal-content {
            scrollbar-width: auto;
            scrollbar-color: auto;
        }
    }
}

@media (max-width: 760px), (pointer: coarse) {
    html,
    .modal-content {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    html::-webkit-scrollbar,
    .modal-content::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
}
