:root {
                --sairiki-blue: #0a4baa;
                --sairiki-blue-deep: #063473;
                --sairiki-red: #d50f3f;
                --sairiki-muted: #64718a;
                --sairiki-soft: #f5f8ff;
                --sairiki-line: #e2e8f2;
            }
            html { scrollbar-color: var(--sairiki-blue) var(--sairiki-soft); scrollbar-width: thin; }
            ::-webkit-scrollbar { width: 10px; }
            ::-webkit-scrollbar-track { background: var(--sairiki-soft); }
            ::-webkit-scrollbar-thumb { background: var(--sairiki-blue); border: 2px solid var(--sairiki-soft); border-radius: 999px; }
            .custom-matches-page { background: var(--sairiki-soft); color: #17213a; }
            .matches-shell { margin: 0 auto; max-width: 1240px; padding-left: 20px; padding-right: 20px; width: 100%; }
            .custom-matches-page .member-nav {
                background: #fff; border: 0; box-shadow: 0 8px 28px rgba(6,63,152,.08); margin: 0; min-height: 76px;
            }
            .custom-matches-page .member-nav .navbar-brand { height: auto; padding: 9px 10px; }
            .custom-matches-page .member-nav .gt-header-logo { max-height: 58px; }
            .custom-matches-page .member-nav .nav > li > a {
                color: #25324a; font-size: 13px; font-weight: 700; padding: 28px 14px 25px;
            }
            .custom-matches-page .member-nav .nav > li > a:hover,
            .custom-matches-page .member-nav .nav > li > a:focus,
            .custom-matches-page .member-nav .nav > li.active > a { background: transparent; color: var(--sairiki-red); }
            .custom-matches-page .member-nav .nav > li.active > a { border-bottom: 3px solid var(--sairiki-red); }
            .custom-matches-page .member-nav .account-link {
                background: var(--sairiki-blue) !important; border-radius: 5px; color: #fff !important;
                margin: 18px 0 0 10px; padding: 10px 15px !important;
            }
            .custom-matches-page .member-nav .navbar-toggle { background: var(--sairiki-blue); margin-top: 20px; }
            .custom-matches-page .member-nav .navbar-toggle .icon-bar { background: #fff; }
            .matches-hero { background: #fff; border-bottom: 1px solid var(--sairiki-line); padding: 30px 0; }
            .matches-hero span {
                color: var(--sairiki-red); display: block; font-size: 11px; font-weight: 800;
                margin-bottom: 5px; text-transform: uppercase;
            }
            .matches-hero h1 {
                color: var(--sairiki-blue-deep); font-family: 'Merriweather', serif;
                font-size: 29px; font-weight: 800; margin: 0 0 7px;
            }
            .matches-hero p { color: var(--sairiki-muted); margin: 0; }
            .match-type-nav { background: #fff; border-bottom: 1px solid var(--sairiki-line); overflow-x: auto; }
            .match-type-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 10px 20px; }
            .match-type-list a {
                border-radius: 5px; color: #46536b; display: flex; font-size: 12px; font-weight: 700;
                gap: 7px; padding: 10px 13px; white-space: nowrap;
            }
            .match-type-list a:hover, .match-type-list a:focus { background: #eef4ff; color: var(--sairiki-blue); text-decoration: none; }
            .match-type-list .active a { background: var(--sairiki-blue); color: #fff; }
            .custom-matches-page #main > .container { margin: 0 auto; max-width: 1240px; padding: 28px 20px 70px; width: 100%; }
            .custom-matches-page #main > .container > .row { margin: 0; }
            .custom-matches-page #main > .container > .row::before,
            .custom-matches-page #main > .container > .row::after { content: none; display: none; }
            .custom-matches-page #main > .container > .row > aside { display: none; }
            .custom-matches-page #main > .container > .row > div {
                float: none; padding: 0; width: 100%;
            }
            .custom-matches-page #main > .container .inPageTitle:first-of-type,
            .custom-matches-page #main > .container .inPageTitle:first-of-type + article { display: none; }
            .custom-matches-page a[data-target="#collapseCustomMatch"],
            .custom-matches-page a[href="#collapseCustomMatch"] {
                background: var(--sairiki-blue) !important; border: 0; border-radius: 5px;
                color: #fff !important; font-size: 12px; font-weight: 800; padding: 11px 17px;
            }
            #collapseCustomMatch { clear: both; padding-top: 18px; }
            .custom-matches-page .inCustomMatch {
                background: #fff; border: 1px solid var(--sairiki-line); border-radius: 7px;
                box-shadow: 0 10px 28px rgba(6,63,152,.07); margin: 0 0 30px; overflow: hidden;
            }
            .custom-matches-page .inCustomMatch .gt-panel-body { border: 0; padding: 24px; }
            .custom-matches-page .inCustomMatch h3 {
                color: var(--sairiki-blue-deep); font-family: 'Merriweather', serif;
                font-size: 20px; font-weight: 800; margin: 0 0 22px;
            }
            .custom-matches-page #match_form > .row {
                display: grid; gap: 18px 22px; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0;
            }
            .custom-matches-page #match_form > .row::before,
            .custom-matches-page #match_form > .row::after,
            .custom-matches-page #match_form .row::before,
            .custom-matches-page #match_form .row::after { content: none; display: none; }
            .custom-matches-page #match_form > .row > [class*="col-"] {
                float: none; margin: 0; padding: 0; width: auto;
            }
            .custom-matches-page #match_form > .row > .clearfix { display: none; }
            .custom-matches-page #match_form label { color: #3d4960; font-size: 12px; font-weight: 800; margin-bottom: 7px; }
            .custom-matches-page #match_form .gt-form-control,
            .custom-matches-page #match_form .form-control,
            .custom-matches-page #match_form .chosen-container-multi .chosen-choices {
                background: #fff; border: 1px solid #d8e0ec; border-radius: 5px;
                box-shadow: none; min-height: 42px;
            }
            .custom-matches-page #match_form .chosen-container { width: 100% !important; }
            .custom-matches-page #match_form .chosen-container-multi .chosen-choices { padding: 5px 7px; }
            .custom-matches-page #match_form .chosen-container-multi .chosen-choices li.search-choice {
                background: #eef4ff; border: 1px solid #d8e5fa; border-radius: 4px; color: var(--sairiki-blue-deep);
            }
            .custom-matches-page #match_form .inBtnTheme-2 {
                background: var(--sairiki-red) !important; border: 0; border-radius: 5px;
                color: #fff !important; font-weight: 800; padding: 11px 22px;
            }
            .custom-matches-page #main > .container h3.inPageTitle {
                color: var(--sairiki-blue-deep) !important; font-size: 21px; font-weight: 800; margin: 8px 0 18px;
            }
            #pagination > .alert {
                background: #fff; border: 1px solid var(--sairiki-line); border-left: 4px solid var(--sairiki-blue);
                border-radius: 7px; color: var(--sairiki-muted); margin-bottom: 18px; padding: 17px 19px;
            }
            #pagination > .alert .close { display: none; }
            #pagination > .alert .row, #pagination > .alert [class*="col-"] { margin: 0; padding: 0; width: auto; }
            #pagination > li.gt-main-profile {
                background: #fff; border: 1px solid var(--sairiki-line); border-radius: 7px;
                box-shadow: 0 10px 28px rgba(6,63,152,.07); display: grid;
                grid-template-columns: 210px minmax(0,1fr); margin: 0 0 18px; overflow: hidden;
            }
            #pagination > li.gt-main-profile .row::before,
            #pagination > li.gt-main-profile .row::after { content: none !important; display: none !important; }
            #pagination > li.gt-main-profile > .gt-panel-head { background: transparent; border: 0; grid-column: 2; padding: 18px 20px 8px; }
            #pagination > li.gt-main-profile > .gt-panel-head .row { align-items: center; display: flex; justify-content: space-between; margin: 0; }
            #pagination > li.gt-main-profile > .gt-panel-head [class*="col-"] { float: none; padding: 0; width: auto; }
            #pagination > li.gt-main-profile > .gt-panel-head h4 { color: var(--sairiki-blue-deep) !important; font-size: 18px; font-weight: 800; }
            #pagination > li.gt-main-profile > .gt-panel-head h5 { color: var(--sairiki-muted); font-size: 11px; }
            #pagination > li.gt-main-profile > .gt-result-panel-body,
            #pagination > li.gt-main-profile > .gt-result-panel-body > .row { display: contents; }
            #pagination > li.gt-main-profile > .gt-result-panel-body > .row > div:first-child {
                grid-column: 1; grid-row: 1 / span 3; padding: 0; width: auto;
            }
            #pagination > li.gt-main-profile .thumbnail { border: 0; border-radius: 0; height: 100%; margin: 0; overflow: hidden; padding: 0; }
            #pagination > li.gt-main-profile .thumbnail img { height: 100%; min-height: 280px; object-fit: cover; width: 100%; }
            #pagination > li.gt-main-profile > .gt-result-panel-body > .row > div:nth-child(2) {
                float: none; grid-column: 2; padding: 4px 20px 14px; width: auto;
            }
            #pagination > li.gt-main-profile .redirect { display: grid; gap: 7px 22px; grid-template-columns: repeat(2,minmax(0,1fr)); }
            #pagination > li.gt-main-profile .redirect > [class*="col-"] { float: none; padding: 0; width: auto; }
            #pagination > li.gt-main-profile .redirect p {
                display: grid; font-size: 12px; grid-template-columns: 105px minmax(0,1fr); margin: 0;
            }
            #pagination > li.gt-main-profile .redirect p::before,
            #pagination > li.gt-main-profile .redirect p::after { content: none !important; display: none !important; }
            #pagination > li.gt-main-profile .redirect label,
            #pagination > li.gt-main-profile .redirect span { display: block; float: none; padding: 0; width: auto; }
            #pagination > li.gt-main-profile .redirect label { color: var(--sairiki-muted); font-weight: 600; }
            #pagination > li.gt-main-profile .gt-result-panel-footer { border-top: 1px solid var(--sairiki-line); grid-column: 2; padding: 12px 20px 16px; }
            #pagination > li.gt-main-profile .gt-result-panel-footer > .row,
            #pagination > li.gt-main-profile .gt-result-panel-footer .pull-right > .row {
                align-items: center; display: flex; gap: 8px; justify-content: flex-end; margin: 0;
            }
            #pagination > li.gt-main-profile .gt-result-panel-footer [class*="col-"] {
                float: none; margin: 0; padding: 0; width: auto;
            }
            #pagination > li.gt-main-profile .gt-result-panel-footer .pull-right { flex: 1; }
            #pagination > li.gt-main-profile .gt-result-panel-footer .btn {
                border-radius: 4px; font-size: 11px; font-weight: 800; margin: 0; padding: 9px 11px;
            }
            #pagination > li.gt-main-profile .gt-btn-orange {
                background: var(--sairiki-red) !important; border-color: var(--sairiki-red) !important; color: #fff !important;
            }
            #pagination .pagination { display: inline-flex; gap: 5px; margin: 8px 0 22px; }
            #pagination .pagination > li > a, #pagination .pagination .current {
                background: #fff; border: 1px solid var(--sairiki-line); border-radius: 4px;
                color: var(--sairiki-blue); display: inline-block; min-width: 36px; padding: 8px 10px;
            }
            #pagination .pagination .current { background: var(--sairiki-blue) !important; color: #fff !important; }
            #pagination > div > .thumbnail {
                background: #fff; border: 1px solid var(--sairiki-line); border-radius: 7px;
                box-shadow: 0 8px 24px rgba(6,63,152,.06); margin: 0; padding: 28px; text-align: center;
            }
            #pagination > div > .thumbnail img { height: auto; margin: 0 auto; max-width: 260px; width: 100%; }
            @media (max-width: 767px) {
                .matches-shell { padding-left: 12px; padding-right: 12px; }
                .custom-matches-page .member-nav { min-height: 68px; }
                .custom-matches-page .member-nav .gt-header-logo { max-height: 50px; }
                .custom-matches-page .member-nav .navbar-collapse { background: #fff; border-top: 1px solid var(--sairiki-line); }
                .custom-matches-page .member-nav .nav > li > a { padding: 12px 15px; }
                .custom-matches-page .member-nav .account-link { margin: 7px 15px 15px; text-align: center; }
                .matches-hero { padding: 24px 0; }
                .matches-hero h1 { font-size: 25px; }
                .match-type-list { padding-left: 12px; padding-right: 12px; }
                .custom-matches-page #main > .container { padding: 22px 12px 50px; }
                .custom-matches-page #match_form > .row { grid-template-columns: 1fr; }
                #pagination > li.gt-main-profile { display: block; }
                #pagination > li.gt-main-profile > .gt-panel-head { padding: 15px 16px 10px; }
                #pagination > li.gt-main-profile > .gt-result-panel-body { display: block; }
                #pagination > li.gt-main-profile > .gt-result-panel-body > .row {
                    display: grid; grid-template-columns: 130px minmax(0,1fr);
                }
                #pagination > li.gt-main-profile .thumbnail img { min-height: 190px; }
                #pagination > li.gt-main-profile > .gt-result-panel-body > .row > div:nth-child(2) { padding: 10px 14px; }
                #pagination > li.gt-main-profile .redirect { grid-template-columns: 1fr; }
                #pagination > li.gt-main-profile .redirect p { grid-template-columns: 1fr; }
                #pagination > li.gt-main-profile .redirect label { display: none; }
                #pagination > li.gt-main-profile .gt-result-panel-footer > .row,
                #pagination > li.gt-main-profile .gt-result-panel-footer .pull-right > .row {
                    align-items: stretch; flex-direction: column;
                }
                #pagination > li.gt-main-profile .gt-result-panel-footer .btn { width: 100%; }
            }
