/* ============================================================
   GameCenter.css — Live GameCast Play-by-Play Viewer
   ============================================================ */

/* ---------- White Card Container (matches site pattern) ---------- */
.gc-page-card {
    max-width: 1284px;
    margin: 0 auto;
    margin-top: 0;
    background-color: white;
    border-radius: 10px;
    box-shadow: 1px 2px 3px rgba(0,0,0,.2);
    padding-bottom: 10px;
}

/* ---------- Layout Container ---------- */
.gc-wrapper {
    max-width: 1284px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: 'Nunito', 'Open Sans', sans-serif;
    color: #383732;
}

/* ---------- Scoreboard ---------- */
.gc-scoreboard {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #d4d4d4;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
    padding: 10px 0;
}
.gc-scoreboard-inner {
    max-width: 1284px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 16px;
}
/* team block (logo + name + record) */
.gc-team {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    flex: 1;
    max-width: 400px;
}
.gc-team.away { justify-content: flex-end; }
.gc-team.home { justify-content: flex-start; }
.gc-team-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}
.gc-team-info { text-align: center; }
.gc-team-abbre {
    font-family: 'Manrope', 'Oswald', 'Barlow', 'Khand', sans-serif;
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #383732;
}
.gc-team-name {
    font-size: 11px;
    color: #686c73;
    white-space: nowrap;
}

/* centre score area */
.gc-score-center {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
    justify-content: center;
    flex-shrink: 0;
}
.gc-score {
    font-family: 'Manrope', 'Oswald', 'Barlow', 'Khand', sans-serif;
    font-size: 44px;
    font-weight: 700;
    min-width: 48px;
    text-align: center;
    line-height: 1;
    color: #383732;
}
.gc-score-divider {
    font-size: 28px;
    color: #bbb;
    font-weight: 300;
    padding: 0 2px;
}
.gc-period-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: #686c73;
    min-width: 60px;
}
.gc-period-label {
    font-weight: 700;
    font-size: 13px;
    color: #383732;
}

/* SOG row beneath score */
.gc-sog-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    font-size: 12px;
    color: #686c73;
    margin-top: 2px;
    padding: 2px 0 0;
}
.gc-sog-val {
    font-weight: 700;
    color: #333;
    margin: 0 3px;
}

/* ---------- Controls Bar ---------- */
.gc-controls {
    background: #f7f7f8;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    margin: 12px auto;
    max-width: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 20px;
}
.gc-btn {
    border: none;
    background: #0060a9;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    padding: 7px 16px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    transition: background .15s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.gc-btn:hover { background: #004c87; }
.gc-btn:disabled { background: #aaa; cursor: default; }
.gc-btn.active { background: #d9534f; }
.gc-btn-icon { font-size: 16px; }

.gc-speed-select {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    font-family: 'Nunito', sans-serif;
    background: #fff;
    cursor: pointer;
}

.gc-progress {
    font-size: 12px;
    color: #686c73;
    white-space: nowrap;
}

.gc-period-btns {
    display: flex;
    gap: 4px;
}
.gc-period-btn {
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
}
.gc-period-btn:hover { background: #e8e8e8; }
.gc-period-btn.active-period { background: #0060a9; color: #fff; border-color: #0060a9; }

/* ---------- Main Content Layout ---------- */
.gc-main {
    display: flex;
    gap: 16px;
    margin: 0 auto;
    max-width: 1284px;
}
.gc-pbp-column {
    flex: 1;
    min-width: 0;
}
.gc-stats-column {
    width: 380px;
    flex-shrink: 0;
}

/* ---------- Tabs ---------- */
.gc-tabs {
    display: flex;
    border-bottom: 2px solid #ececec;
    margin-bottom: 12px;
    gap: 0;
    padding-top: 8px;
}
.gc-tab {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    color: #686c73;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all .15s;
    font-family: 'Nunito', sans-serif;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}
.gc-tab:hover { color: #333; }
.gc-tab.active { color: #0060a9; border-bottom-color: #0060a9; }
.gc-tab-panel { display: none; }
.gc-tab-panel.active { display: block; }

/* ---------- Play-by-Play Feed ---------- */
.gc-pbp-feed {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #ececec;
    border-radius: 8px;
    background: #fff;
}
.gc-pbp-event {
    display: flex;
    align-items: flex-start;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    gap: 10px;
    animation: gc-fadeIn .3s ease;
    font-size: 13px;
    line-height: 1.45;
}
.gc-pbp-event:last-child { border-bottom: none; }
@keyframes gc-fadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* team color indicator bar */
.gc-pbp-teambar {
    width: 4px;
    min-height: 32px;
    border-radius: 2px;
    flex-shrink: 0;
    align-self: stretch;
}

.gc-pbp-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 1px;
}

.gc-pbp-time {
    font-size: 11px;
    font-weight: 700;
    color: #686c73;
    min-width: 62px;
    flex-shrink: 0;
    padding-top: 2px;
}

.gc-pbp-icon {
    font-size: 15px;
    flex-shrink: 0;
    width: 22px;
    text-align: center;
    padding-top: 1px;
}

.gc-pbp-text {
    flex: 1;
    min-width: 0;
}

/* Goal events — highlighted */
.gc-pbp-event.goal-event {
    background: linear-gradient(90deg, rgba(0,96,169,.08) 0%, #fff 100%);
    border-left: 4px solid #c8102e;
    padding-left: 8px;
    font-weight: 700;
}
.gc-pbp-event.goal-event .gc-pbp-text {
    font-size: 14px;
}
.gc-goal-score-update {
    display: inline-block;
    background: #c8102e;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 6px;
}

/* Penalty events */
.gc-pbp-event.penalty-event {
    background: #fffbe6;
    border-left: 4px solid #f0ad4e;
    padding-left: 8px;
}

/* Period divider */
.gc-period-divider {
    text-align: center;
    font-family: 'Manrope', 'Oswald', 'Barlow', 'Khand', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    background: #383732;
    padding: 6px 0;
    position: sticky;
    top: 0;
    z-index: 5;
}
.gc-period-summary {
    text-align: center;
    font-size: 12px;
    color: #686c73;
    padding: 4px 0;
    background: #f7f7f8;
    border-bottom: 1px solid #ececec;
}

/* ---------- Stats Tables ---------- */
.gc-stats-section h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #383732;
    margin: 14px 0 6px;
    padding-bottom: 4px;
    border-bottom: 2px solid #ececec;
}

.gc-team-stats-bar {
    display: flex;
    align-items: center;
    padding: 5px 8px;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
}
.gc-team-stats-bar .stat-label {
    flex: 1;
    text-align: center;
    font-weight: 700;
    font-size: 12px;
    color: #686c73;
}
.gc-team-stats-bar .stat-val {
    width: 40px;
    text-align: center;
    font-weight: 700;
}
.gc-team-stats-visual {
    flex: 1;
    height: 6px;
    background: #e8e8e8;
    border-radius: 3px;
    overflow: hidden;
    margin: 0 8px;
    display: flex;
}
.gc-team-stats-visual .bar-away {
    height: 100%;
    background: #0060a9;
    transition: width .4s ease;
}
.gc-team-stats-visual .bar-home {
    height: 100%;
    background: #c8102e;
    transition: width .4s ease;
}

.gc-player-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-bottom: 10px;
}
.gc-player-table thead th {
    background: #f7f7f8;
    color: #686c73;
    font-weight: 700;
    font-size: 11px;
    padding: 5px 4px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 2;
}
.gc-player-table tbody td {
    padding: 4px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}
.gc-player-table tbody td:first-child {
    text-align: left;
    white-space: nowrap;
    font-weight: 600;
    padding-left: 6px;
}
.gc-player-table tbody tr:hover { background: #f0f7ff; }
.gc-player-table .gc-team-header {
    background: #383732;
    color: #fff;
    font-family: 'Manrope', 'Oswald', 'Barlow', 'Khand', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 8px;
    text-align: left;
}
.gc-player-table .gc-team-header img {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 6px;
}

/* Goalie stats table */
.gc-goalie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-bottom: 10px;
}
.gc-goalie-table thead th {
    background: #f7f7f8;
    color: #686c73;
    font-weight: 700;
    font-size: 11px;
    padding: 5px 4px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}
.gc-goalie-table tbody td {
    padding: 4px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}
.gc-goalie-table tbody td:first-child {
    text-align: left;
    font-weight: 600;
    padding-left: 6px;
}

/* ---------- Scoring Summary ---------- */
.gc-scoring-period {
    margin-bottom: 12px;
}
.gc-scoring-period h4 {
    font-size: 13px;
    font-weight: 700;
    color: #383732;
    margin: 0 0 6px;
    padding: 6px 10px;
    background: #f7f7f8;
    border-radius: 4px;
}
.gc-scoring-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}
.gc-scoring-row img {
    width: 24px;
    height: 24px;
}
.gc-scoring-time {
    min-width: 50px;
    font-weight: 700;
    color: #686c73;
    font-size: 12px;
}
.gc-scoring-detail { flex: 1; }
.gc-scoring-score {
    font-family: 'Manrope', 'Oswald', 'Barlow', 'Khand', sans-serif;
    font-weight: 700;
    font-size: 15px;
    min-width: 50px;
    text-align: right;
}

/* ---------- Penalty Summary ---------- */
.gc-penalty-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}
.gc-penalty-row img { width: 20px; height: 20px; }

/* ---------- Game Info ---------- */
.gc-game-info {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #686c73;
    padding: 8px 0;
    justify-content: center;
    border-top: 1px solid #ececec;
    margin-top: 10px;
}
.gc-game-info span { white-space: nowrap; }
.gc-game-info strong { color: #383732; }

/* ---------- Loading / Error ---------- */
.gc-loading {
    text-align: center;
    padding: 60px 20px;
    font-size: 15px;
    color: #686c73;
}
.gc-loading-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid #e0e0e0;
    border-top-color: #0060a9;
    border-radius: 50%;
    animation: gc-spin .7s linear infinite;
    margin-bottom: 10px;
}
@keyframes gc-spin {
    to { transform: rotate(360deg); }
}

/* ---------- Linescore Table (Period by Period) ---------- */
.gc-linescore {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 8px 0;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #ececec;
}
.gc-linescore th {
    background: #f7f7f8;
    font-weight: 700;
    font-size: 11px;
    color: #686c73;
    padding: 5px 10px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}
.gc-linescore td {
    padding: 6px 10px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}
.gc-linescore td:first-child {
    text-align: left;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}
.gc-linescore td:first-child img {
    width: 22px;
    height: 22px;
}
.gc-linescore td:last-child {
    font-weight: 700;
    font-family: 'Manrope', 'Oswald', 'Barlow', 'Khand', sans-serif;
    font-size: 16px;
}

/* ---------- GameCast Landing Page ---------- */
.gc-landing-wrapper {
    max-width: 1284px;
    margin: 0 auto;
    padding: 24px 20px 40px;
    font-family: 'Nunito', 'Open Sans', sans-serif;
}
.gc-landing-title {
    font-family: 'Manrope', 'Oswald', 'Barlow', 'Khand', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #383732;
    margin: 0 0 2px;
    padding-top: 10px;
}
.gc-landing-subtitle {
    font-size: 14px;
    color: #686c73;
    margin: 0 0 24px;
}
.gc-landing-section-title {
    font-family: 'Manrope', 'Oswald', 'Barlow', 'Khand', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #383732;
    margin: 24px 0 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #0060a9;
    padding-bottom: 6px;
}
.gc-landing-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 15px;
}
.gc-landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}
.gc-landing-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #d4d4d4;
    border-radius: 10px;
    padding: 16px;
    transition: box-shadow .15s, border-color .15s;
}
.gc-landing-card:hover {
    border-color: #0060a9;
    box-shadow: 0 4px 16px rgba(0,96,169,.15);
}
.gc-landing-matchup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.gc-landing-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 90px;
}
.gc-landing-team img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.gc-landing-abbre {
    font-family: 'Manrope', 'Oswald', 'Barlow', 'Khand', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
    color: #383732;
}
.gc-landing-name {
    font-size: 11px;
    color: #686c73;
}
.gc-landing-vs {
    font-family: 'Manrope', 'Oswald', 'Barlow', 'Khand', sans-serif;
    font-size: 18px;
    color: #bbb;
    font-weight: 300;
    padding: 0 4px;
}
.gc-landing-cta {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #0060a9;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 920px) {
    .gc-main {
        flex-direction: column;
    }
    .gc-stats-column {
        width: 100%;
    }
}
@media screen and (max-width: 720px) {
    .gc-scoreboard-inner {
        gap: 4px;
        padding: 0 8px;
    }
    .gc-team { min-width: 100px; flex: 1; }
    .gc-team-logo { width: 40px; height: 40px; }
    .gc-team-name { display: none; }
    .gc-team-abbre { font-size: 16px; }
    .gc-score { font-size: 32px; min-width: 36px; }
    .gc-controls {
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 12px;
    }
    .gc-period-btns { display: none; }
    .gc-pbp-feed { max-height: 450px; }
}
@media screen and (max-width: 480px) {
    .gc-team-logo { width: 32px; height: 32px; }
    .gc-score { font-size: 26px; }
    .gc-sog-row { font-size: 11px; gap: 14px; }
}
