/* Site-wide */
body { background: #fff; }
.ga-navbar { margin-bottom: 1rem; }
.ga-navbar .navbar-brand { font-weight: 500; }
.color-checks { white-space: nowrap; }
.color-checks .form-check {
    display: inline-block;
    margin-right: 0.75rem;
    margin-bottom: 0;
    padding-left: 1.35rem;
}
.color-checks .form-check-label.red { color: #c82333; font-weight: 600; }
.color-checks .form-check-label.blue { color: #007bff; font-weight: 600; }
.color-checks .form-check-label.green { color: #28a745; font-weight: 600; }
.bout-entry-player video {
    width: 100%;
    background: #000;
    display: block;
    min-height: 320px;
}
.watch-player video {
    width: 100%;
    background: #000;
    display: block;
}
.ga-style-pick .card-img-top {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #e8eaee;
}
.ga-style-pick:hover,
.ga-style-pick:focus-visible {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.view-item-list .list-group-item {
    line-height: 1.35;
}
.form-check-input[type="checkbox"],
.form-check-input[type="radio"] {
    border: 2px solid #495057;
    background-color: #fff;
}
.form-check-input[type="checkbox"]:checked,
.form-check-input[type="radio"]:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}
.lh-condensed { line-height: 1.25; }
@media (max-width: 575.98px) {
    .view-item-list .list-group-item {
        flex-direction: column;
        align-items: stretch !important;
    }
    .view-item-list .list-group-item > span.text-muted {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 0.35rem;
    }
    .view-item-list .list-group-item a {
        display: inline-block;
        padding: 0.45rem 0.75rem;
        border: 1px solid #dee2e6;
        border-radius: 0.25rem;
        background: #f8f9fa;
    }
}

/* Tag page */
body.ga-tag-page .ga-navbar { margin-bottom: 0; }
.ga-tag-workspace {
    min-height: calc(100vh - 56px);
    background: #fff;
}
.ga-tag-body {
    display: flex;
    align-items: flex-start;
    gap: 0;
}
.ga-tag-player-col {
    flex: 1 1 64%;
    max-width: 68%;
    min-width: 0;
    padding: 0.75rem 1rem 1rem;
    background: #fff;
    color: #212529;
}
.ga-tag-player-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.ga-tag-player-col .watch-player { position: relative; margin-bottom: 0.5rem; }
.ga-tag-video-clock {
    position: absolute;
    right: 0.65rem;
    bottom: 3.1rem;
    z-index: 3;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-size: 1.2rem;
    line-height: 1.2;
    padding: 0.2rem 0.55rem;
    border-radius: 0.25rem;
}
.ga-tag-clocks { max-width: 28rem; }
.ga-tag-clocks .input-group { margin-bottom: 0.35rem; }
.ga-tag-clocks .input-group > .form-control {
    flex: 0 0 auto;
    width: calc(9ch + 1.25rem);
    font-variant-numeric: tabular-nums;
}
.ga-tag-clocks .input-group > .ga-tag-time-btn { min-width: 10rem; }
.ga-tag-clocks .ga-tag-time-btn {
    color: #212529;
    background-color: #e9ecef;
    border-color: #adb5bd;
}
.ga-tag-clocks .ga-tag-time-btn:hover,
.ga-tag-clocks .ga-tag-time-btn:focus {
    color: #212529;
    background-color: #dee2e6;
    border-color: #adb5bd;
}
.ga-tag-form-col {
    flex: 0 0 36%;
    max-width: 36%;
    min-width: 280px;
    padding: 0.75rem 1rem 1rem;
    background: #fff;
    border-left: 1px solid #dee2e6;
}
.ga-tag-clips {
    width: 100%;
    padding: 0.75rem 1rem 1.5rem;
    border-top: 1px solid #dee2e6;
}
.ga-clip-actions {
    flex: 0 0 auto;
    text-align: right;
    line-height: 1.5;
}
.ga-clip-actions a,
.ga-clip-actions button {
    display: block;
    padding: 0;
    border: 0;
    background: none;
    color: #0d6efd;
    font-size: 0.875rem;
    line-height: 1.5;
    text-decoration: none;
}
.ga-clip-actions button { width: 100%; text-align: right; cursor: pointer; }
.ga-clip-actions a:hover,
.ga-clip-actions button:hover { text-decoration: underline; }
.ga-tag-tabs .nav-link { font-weight: 600; }
.ga-tag-tabs .nav-link.ga-tab-red { color: #c82333; }
.ga-tag-tabs .nav-link.ga-tab-second { color: #0d6efd; }
.ga-tag-tabs .nav-link.ga-tab-red.active { background: #fff5f5; border-bottom-color: #fff5f5; }
.ga-tag-tabs .nav-link.ga-tab-second.active { background: #f0f7ff; border-bottom-color: #f0f7ff; }
.ga-clip-red { color: #c82333; font-weight: 600; }
.ga-clip-second { color: #0d6efd; font-weight: 600; }
.ga-tag-wrestler {
    background: #fff;
    padding: 0.65rem !important;
}
.ga-tag-wrestler .mb-3 { margin-bottom: 0.45rem !important; }
.ga-tag-wrestler .form-text { display: none; }
.ga-tag-wrestler h6 { display: none; }
/* Tag panel type size matches ScoutingVideo (0.875rem). */
.ga-tag-workspace .form-control,
.ga-tag-workspace .form-select,
.ga-tag-workspace .btn,
.ga-tag-workspace .form-check-label,
.ga-tag-workspace .form-label,
.ga-tag-workspace legend,
.ga-tag-workspace .small {
    font-size: 0.875rem;
    line-height: 1.5;
}
.ga-tag-wrestler .ga-tag-final-note { font-size: 0.85rem; font-weight: 600; }
.ga-tag-clear-moves-red {
    background: #c82333;
    border-color: #c82333;
    color: #fff;
}
.ga-tag-clear-moves-red:hover,
.ga-tag-clear-moves-red:focus {
    background: #a71d2a;
    border-color: #a71d2a;
    color: #fff;
}
.ga-tag-clear-moves-second {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}
.ga-tag-clear-moves-second:hover,
.ga-tag-clear-moves-second:focus {
    background: #0b5ed7;
    border-color: #0b5ed7;
    color: #fff;
}
.ga-tag-clearable { position: relative; display: inline-block; max-width: 100%; vertical-align: middle; }
.ga-tag-clearable select.form-select { padding-right: 3.5rem; }
.ga-tag-clear-x {
    position: absolute;
    right: 2.15rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #6c757d;
    font-size: 1.05rem;
    line-height: 1;
    padding: 0 0.1rem;
    cursor: pointer;
}
.ga-tag-clear-x:hover { color: #212529; }
.ga-tag-clearable select[size] { padding-right: 1.25rem; }
.ga-tag-clearable:has(select[size]) .ga-tag-clear-x { top: 0.2rem; right: 0.35rem; transform: none; }
.ga-tag-workspace .form-control,
.ga-tag-workspace .form-select {
    border: 2px solid #adb5bd;
    background-color: #fff;
}
.ga-tag-workspace .form-control:focus,
.ga-tag-workspace .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.2);
}
.ga-tag-action-btn,
.ga-tag-family-btn {
    color: #0d6efd;
    background-color: #fff;
    border-color: #adb5bd;
}
.ga-tag-action-btn:hover,
.ga-tag-family-btn:hover {
    color: #0a58ca;
    background-color: #fff;
    border-color: #adb5bd;
}
.ga-tag-action-btn.btn-secondary,
.ga-tag-family-btn.btn-secondary {
    color: #212529;
    background-color: #fff;
    border-color: #495057;
    font-weight: 700;
}
.ga-tag-action-btn.btn-secondary:hover,
.ga-tag-family-btn.btn-secondary:hover {
    color: #212529;
    background-color: #fff;
    border-color: #495057;
}
@media (max-width: 991.98px) {
    body.ga-tag-page { overflow: auto; }
    .ga-tag-workspace { height: auto; min-height: calc(100vh - 56px); }
    .ga-tag-body { flex-direction: column; }
    .ga-tag-player-col,
    .ga-tag-form-col {
        flex: none;
        max-width: none;
        min-width: 0;
    }
}

/* Basic / Coach tag depth — Coach is default; freestyle + folkstyle Feet/Top use short heads + More */
#ga-tagging[data-ga-tag-depth="basic"] .ga-tag-coach-only,
#ga-clip-search[data-ga-tag-depth="basic"]:is([data-ga-style="freestyle"], [data-ga-style="folkstyle"]) .ga-tag-coach-only {
    display: none !important;
}
#ga-tagging[data-ga-tag-depth="basic"] .ga-tag-position option.ga-tag-coach-only,
#ga-tagging[data-ga-tag-depth="basic"] .ga-tag-control option.ga-tag-coach-only {
    display: none;
}
#ga-tagging .ga-tag-basic-only,
#ga-clip-search .ga-tag-basic-only {
    display: none !important;
}
#ga-tagging[data-ga-tag-depth="basic"]:is([data-ga-style="freestyle"], [data-ga-style="folkstyle"]) .ga-tag-basic-only:not(.d-none),
#ga-clip-search[data-ga-tag-depth="basic"]:is([data-ga-style="freestyle"], [data-ga-style="folkstyle"]) .ga-tag-basic-only:not(.d-none) {
    display: block !important;
}
#ga-tagging[data-ga-tag-depth="basic"]:is([data-ga-style="freestyle"], [data-ga-style="folkstyle"]) button.ga-tag-basic-only:not(.d-none),
#ga-clip-search[data-ga-tag-depth="basic"]:is([data-ga-style="freestyle"], [data-ga-style="folkstyle"]) button.ga-tag-basic-only:not(.d-none) {
    display: inline-block !important;
}
#ga-tagging[data-ga-tag-depth="basic"]:is([data-ga-style="freestyle"], [data-ga-style="folkstyle"]) span.ga-tag-basic-only {
    display: inline !important;
}
#ga-tagging[data-ga-tag-depth="basic"]:is([data-ga-style="freestyle"], [data-ga-style="folkstyle"]) .ga-tag-basic-only.d-flex:not(.d-none),
#ga-tagging[data-ga-tag-depth="basic"]:is([data-ga-style="freestyle"], [data-ga-style="folkstyle"]) .d-flex.ga-tag-basic-only:not(.d-none),
#ga-tagging[data-ga-tag-depth="basic"]:is([data-ga-style="freestyle"], [data-ga-style="folkstyle"]) .ga-tag-basic-heads,
#ga-tagging[data-ga-tag-depth="basic"]:is([data-ga-style="freestyle"], [data-ga-style="folkstyle"]) .ga-tag-basic-tails:not(.d-none),
#ga-clip-search[data-ga-tag-depth="basic"]:is([data-ga-style="freestyle"], [data-ga-style="folkstyle"]) .ga-tag-basic-only.d-flex:not(.d-none),
#ga-clip-search[data-ga-tag-depth="basic"]:is([data-ga-style="freestyle"], [data-ga-style="folkstyle"]) .d-flex.ga-tag-basic-only:not(.d-none),
#ga-clip-search[data-ga-tag-depth="basic"]:is([data-ga-style="freestyle"], [data-ga-style="folkstyle"]) .ga-tag-basic-heads,
#ga-clip-search[data-ga-tag-depth="basic"]:is([data-ga-style="freestyle"], [data-ga-style="folkstyle"]) .ga-tag-basic-tails:not(.d-none) {
    display: flex !important;
}
#ga-tagging[data-ga-tag-depth="basic"]:is([data-ga-style="freestyle"], [data-ga-style="folkstyle"]) .ga-tag-coach-select,
#ga-clip-search[data-ga-tag-depth="basic"]:is([data-ga-style="freestyle"], [data-ga-style="folkstyle"]) .ga-tag-coach-select {
    display: none !important;
}
#ga-tagging[data-ga-tag-depth="basic"]:is([data-ga-style="freestyle"], [data-ga-style="folkstyle"]) .ga-tag-basic-more-target:not(.ga-tag-more-open),
#ga-clip-search[data-ga-tag-depth="basic"]:is([data-ga-style="freestyle"], [data-ga-style="folkstyle"]) .ga-tag-basic-more-target:not(.ga-tag-more-open) {
    display: none !important;
}
#ga-tagging[data-ga-tag-depth="basic"]:is([data-ga-style="freestyle"], [data-ga-style="folkstyle"]) .ga-tag-basic-tails.d-none,
#ga-clip-search[data-ga-tag-depth="basic"]:is([data-ga-style="freestyle"], [data-ga-style="folkstyle"]) .ga-tag-basic-tails.d-none {
    display: none !important;
}
#ga-tagging[data-ga-tag-depth="basic"]:is([data-ga-style="freestyle"], [data-ga-style="folkstyle"]) .ga-tag-basic-picker.ga-tag-more-open .ga-tag-basic-tails,
#ga-clip-search[data-ga-tag-depth="basic"]:is([data-ga-style="freestyle"], [data-ga-style="folkstyle"]) .ga-tag-basic-picker.ga-tag-more-open .ga-tag-basic-tails {
    display: flex !important;
}
