
/* HOME */

/* Week tab live/closed state controller (06.0) */
#gw-transition-banner {
    margin-bottom: 12px;
}

.app-body {
    padding: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.eyebrow-sm {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 6px;
}

.title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 4px;
}

.sub {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.metric-toggle-container {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.metric-toggle-container .btn-pill {
    padding: 8px 0;
    font-size: 12.5px;
}

.card h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 8px;
}

.action-card {
    padding: 11px 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.action-card:not(:last-child) {
    border-bottom: 1px solid var(--black-10);
}

.action-card .left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.action-card .t {
    font-size: 15px;
    font-weight: 700;
}

.action-card .glance {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}

.action-card-skeleton {
    padding: 11px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.action-card-skeleton:not(:last-child) {
    border-bottom: 1px solid var(--black-10);
}

/* Mini carousel within player modal */
.mini-carousel {
    position: relative;
    overflow: hidden;
    padding-bottom: 30px; /* Space for dots */
}

.mini-track {
    display: flex;
    transition: transform 0.3s ease-out;
    width: 100%;
}

.mini-card {
    flex: 0 0 100%;
    width: 100%;
    min-height: 160px;
    padding: 5px;
}

.mc-title {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .05em;
    color: var(--pink);
    margin-bottom: 12px;
}

.mc-caption {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-top: 10px;
}

.mini-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.mini-nav-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--plum);
    cursor: pointer;
    padding: 0 10px;
}

.mini-nav-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.mini-dots {
    display: flex;
    gap: 6px;
}

.mini-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--grey);
    transition: all 0.2s;
}

.mini-dot.active {
    background: var(--plum);
    transform: scale(1.2);
}

.reasons {
    padding-left: 18px;
    margin-bottom: 0;
}

.reasons li {
    font-size: 13.5px;
    margin-bottom: 6px;
    line-height: 1.4;
}

/* Modal adjustments for bottom sheet feel on mobile */
.modal-bottom-sheet {
    align-items: flex-end;
    margin: 0;
    min-height: 100%;
}

@media (min-width: 576px) {
    .modal-bottom-sheet {
        align-items: center;
        margin: 1.75rem auto;
        min-height: calc(100% - 3.5rem);
    }
}

.modal-content {
    border-radius: 20px 20px 0 0;
    padding: 10px;
}

@media (min-width: 576px) {
    .modal-content {
        border-radius: 12px;
    }
}

/* The close button's header has no bottom padding and the body has no
   top padding (border-0 pb-0 / pt-0), so without this the close button
   sits almost flush against the player name below it. */
#playerModal .modal-header {
    margin-bottom: 12px;
}

/* Player Profile content styles */
.profile-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.mini-card {
    background: var(--offwhite, #f9f9f9);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}

.mini-slide {
    min-height: 220px;
}

.mc-title {
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 8px;
}

.mc-caption {
    font-size: 11.5px;
    color: #666;
    line-height: 1.4;
    margin-top: 8px;
}

.sparkline-container {
    width: 100%;
    position: relative;
}

.chart-tooltip {
    position: absolute;
    background: #4D4D4D;
    color: #fff;
    font-size: 11px;
    padding: 6px 9px;
    border-radius: 6px;
    pointer-events: none;
    white-space: nowrap;
    z-index: 10;
    line-height: 1.5;
}

.chart-tooltip .ct-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.chart-tooltip .ct-row + .ct-row {
    margin-top: 2px;
}

.mini-carousel {
    margin-bottom: 4px;
}

.mini-track {
    min-height: 220px;
}

.mini-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.mini-nav-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid var(--black-10);
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.mini-nav-btn:disabled {
    opacity: .3;
    cursor: default;
}

.mini-dots {
    display: flex;
    gap: 5px;
}

.mini-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--black-20, #ccc);
}

.mini-dot.active {
    background: var(--plum);
    width: 16px;
    border-radius: 4px;
    transition: .2s;
}

.fixture-row-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0;
    font-size: 13px;
}

.fixture-row-item:not(:last-child) {
    border-bottom: 1px solid var(--black-10);
}

.fixture-row-item .pill {
    font-size: 10.5px;
    padding: 3px 8px;
    margin-right: 0;
}

.outlook-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    cursor: pointer;
    transition: background-color .15s ease;
}

.outlook-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.outlook-row-tapped {
    background-color: var(--offwhite, #f4f4f4);
}

.outlook-phrase {
    font-weight: 600;
    line-height: 1.4;
}

.outlook-gw {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
}

.market-glance {
    padding: 12px;
}

.market-glance .metric-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.market-glance .label {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.market-glance .value {
    font-size: 15px;
    font-weight: 700;
    color: var(--black);
}

.diff-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.season-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}

.season-grid > div {
    display: flex;
    flex-direction: column;
}

.season-grid .val {
    font-size: 20px;
    font-weight: 700;
}

.season-grid .lbl {
    font-size: 11px;
    color: #777;
}

.season-grid .lbl-avg {
    font-size: 10px;
    color: #999;
    margin-top: 2px;
}

.empty-state {
    font-size: 13px;
    color: #777;
    line-height: 1.5;
    padding: 18px 0;
    text-align: center;
}

/* Fixture run (02.3) */
.fixture-chip-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.fixture-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 10.5px;
    font-weight: 700;
    padding: 5px 8px;
    border-radius: 8px;
    color: #222;
    white-space: nowrap;
}

.fixture-chip-blank {
    background: var(--offwhite, #f4f4f4);
    color: #333; /* #999 was ~2.7:1 against this background - fails WCAG AA */
    font-weight: 600;
}

.fixture-compare-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--black-10);
}

.fixture-compare-label {
    font-size: 11px;
    color: #888;
}

.fixture-dot-row {
    display: flex;
    gap: 6px;
}

/* Set-piece duties (02.7) */
.set-piece-lines {
    margin-top: 6px;
}

.set-piece-line {
    font-size: 13.5px;
    font-weight: 600;
    padding: 9px 0;
}

.set-piece-line:not(:last-child) {
    border-bottom: 1px solid var(--black-10);
}

/* Rating breakdown (02.4) */
.rating-row {
    margin-bottom: 12px;
}

.rating-row-head {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 5px;
}

.rating-row-head span:first-child {
    color: #555;
}

.rating-row-head span:last-child {
    font-weight: 700;
}

/* Summary card */
.summary-row {
    margin-bottom: 14px;
}

.summary-row-head {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    margin-bottom: 5px;
}

.summary-row-label {
    color: #555;
}

.summary-row-value {
    font-weight: 700;
}

.summary-bar-track {
    overflow: visible;
    height: 7px;
}

.bar-marker {
    position: absolute;
    top: -3px;
    bottom: -3px;
    width: 2px;
    background: var(--plum);
    border-radius: 1px;
}

.summary-row-compare {
    font-size: 10.5px;
    color: #999;
    margin-top: 4px;
}
/* Range Bar Component (Ticket 04) */
.range-bar-container {
    margin-bottom: 14px;
}
.range-bar-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--charcoal);
}
.range-bar-bounds {
    font-weight: 500;
    color: #888;
    font-size: 11px;
}
.range-bar-track {
    position: relative;
    height: 8px;
    background: var(--black-10);
    border-radius: 4px;
    overflow: hidden;
}
.range-bar-zone {
    position: absolute;
    height: 100%;
    opacity: 0.3;
}
.range-bar-marker {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--charcoal);
    transform: translateX(-50%);
    z-index: 2;
}

/* Fixture Outlook Detail (Ticket 03) */
.outlook-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
    padding: 0 4px;
}
.outlook-row.expanded .outlook-detail {
    max-height: 500px;
    opacity: 1;
    padding-top: 16px;
    padding-bottom: 8px;
}
.outlook-rationale {
    font-size: 13px;
    line-height: 1.5;
    color: #555;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--black-10);
}
