body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
}

/* Site-wide navigation bar */
.site-nav {
    background-color: #1a1a2e;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.site-nav a {
    color: #c8d0e0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: background-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.site-nav a:hover {
    background-color: #2e2e50;
    color: #ffffff;
}

.site-nav a.active {
    background-color: #3a3a6e;
    color: #ffffff;
}

/* Modern header styling */
.crb-header {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.crb-header h1 {
    color: #333;
    text-align: center;
    margin: 0 0 1.5rem 0;
    font-size: 2rem;
    font-weight: 700;
}

.video-container {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.video-container:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.video-title {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

.video-wrapper {
    position: relative;
    width: 100%;
    margin: 1.5rem 0;
}

video {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

audio {
    width: 100%;
    max-width: 100%;
    border-radius: 4px;
}

.video-description {
    color: #666;
    margin: 1rem 0;
    font-size: 0.95rem;
}

.download-link {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    background-color: #1877F2;
    color: #fff;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.download-link:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.download-link:active {
    transform: translateY(0);
}

.button-wrapper {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.gvu-header {
    background-color: #ffffff;
    color: #333;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gvu-header h1 {
    color: #CC0000;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.game-summary {
    width: 100%;
    margin: 0;
    padding: 0;
}

.game-summary h2 {
    color: #000000;
    text-align: center;
    margin-bottom: 1.5rem;
}

.game-date {
    text-align: center;
    color: #666;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 500;
}

.score-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    overflow-x: auto;
}

.score-table {
    width: 100%;
    min-width: 300px;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1rem 0;
    background-color: white;
    border: 2px solid #ddd;
    font-size: 0.9rem;
}

.score-table th,
.score-table td {
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
    color: #333;
}

.score-table thead {
    background-color: #CC0000;
    color: white;
}

.score-table thead th {
    font-weight: bold;
    border-bottom: 2px solid #ddd;
}

.team-name {
    text-align: left;
    padding-left: 0.5rem;
    width: auto;
    min-width: 120px;
    font-weight: bold;
}

.final {
    background-color: #f8f8f8;
    font-weight: bold;
}

.gvu-row {
    background-color: rgba(204, 0, 0, 0.1);
}

.keiser-row {
    background-color: #fff;
}

.game-context {
    margin-top: 1.5rem;
    line-height: 1.7;
    color: #555;
}

/* Context information section - subtle and cohesive */
.game-location,
.game-dates,
.game-opponents {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.35rem;
    line-height: 1.5;
}

.game-location {
    margin-top: 0;
}

.game-dates {
    color: #777;
}

.game-opponents {
    margin-bottom: 0;
    color: #666;
}

/* Add subtle background and border to group context info */
.game-context {
    background-color: #f9f9f9;
    border-left: 3px solid #ddd;
    padding: 1rem 1.25rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.game-context p {
    margin: 1.25rem 0 0 0;
    padding: 0;
    font-size: 1rem;
    text-align: left;
    max-width: none;
    color: #555;
}

@media screen and (max-width: 600px) {
    body {
        padding: 10px;
    }

    .crb-header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .crb-header h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .game-date {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .game-context {
        padding: 0.8rem 1rem;
        margin-top: 0.8rem;
    }

    .game-context p {
        font-size: 0.95rem;
        margin-top: 1rem;
    }

    .game-location,
    .game-dates,
    .game-opponents {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }

    .video-container {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .video-title {
        font-size: 1.25rem;
    }

    .gvu-header {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .gvu-header h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .game-summary h2 {
        font-size: 1.4rem;
    }

    .score-table {
        font-size: 0.8rem;
    }

    .score-table th,
    .score-table td {
        padding: 6px 4px;
    }

    .team-name {
        padding-left: 0.3rem;
        min-width: 100px;
    }
}

/* New styles for aligning the buttons */
.button-container {
    display: inline-flex;      /* Using inline-flex keeps the container inline with text if needed */
    align-items: top;       /* Align items vertically (centered) */
    gap: 8px;                  /* Optional: adds a small gap between the buttons */
}

/* Transcript button styling */
.transcript-button {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
    font-family: inherit;
}

.transcript-button:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

.transcript-button:active {
    transform: translateY(0);
}

/* Transcript container styling */
.transcript-container {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-left: 4px solid #28a745;
    border-radius: 6px;
    animation: fadeIn 0.3s ease-in;
}

/* Hidden state for transcript - uses CSS class instead of inline style for CSP compliance */
.transcript-container.transcript-hidden,
#transcript-content.transcript-container.transcript-hidden,
.transcript-container.transcript-hidden.transcript-container {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.transcript-text {
    color: #333;
    line-height: 1.7;
    font-size: 0.95rem;
}

.transcript-text p {
    margin: 0.75rem 0;
}

.transcript-text p:first-child {
    margin-top: 0;
}

.transcript-text p:last-child {
    margin-bottom: 0;
}

.transcript-text strong {
    color: #28a745;
    font-weight: 600;
}

/* Container that holds both avatar and speaker name row - make parent flex */
.transcript-container .transcript-text [class*="conversation-transcript-snippet-container"],
.transcript-text [class*="conversation-transcript-snippet-container"] {
    display: block !important;
    margin-top: 1rem !important;
    margin-bottom: 0.5rem !important;
}

.transcript-container .transcript-text [class*="conversation-transcript-snippet-container"]:first-child,
.transcript-text [class*="conversation-transcript-snippet-container"]:first-child {
    margin-top: 0 !important;
}

/* Speaker container styling - make avatar inline, first child */
.transcript-container .transcript-text [class*="transcript-snippet__speaker-container"],
.transcript-text [class*="transcript-snippet__speaker-container"],
.transcript-text [class*="speaker-container"] {
    display: inline-block !important;
    margin: 0 !important;
    vertical-align: middle !important;
    width: auto !important;
}

/* Make speaker content head row display inline next to avatar - second child */
.transcript-container .transcript-text [class*="transcript-snippet__content__head-row"],
.transcript-text [class*="transcript-snippet__content__head-row"],
.transcript-text [class*="content__head-row"] {
    display: inline-block !important;
    margin: 0 !important;
    margin-left: 0.5rem !important;
    vertical-align: middle !important;
    width: auto !important;
}

/* Content container should be on its own line */
.transcript-container .transcript-text [class*="transcript-snippet__content-container"],
.transcript-text [class*="transcript-snippet__content-container"],
.transcript-text [class*="content-container"] {
    flex-basis: 100% !important;
    order: 3;
    margin-top: 0.5rem !important;
    width: 100% !important;
    display: block !important;
}

/* Speaker name styling - common patterns from Otter.ai */
.transcript-text .speaker,
.transcript-text [class*="speaker"],
.transcript-text [class*="Speaker"],
.transcript-text [class*="speaker-name"],
.transcript-text [class*="content__head__speaker-name"] {
    font-weight: 600;
    color: #1877F2;
    display: inline-block !important;
    margin: 0 !important;
    vertical-align: middle;
}

.transcript-text .speaker:first-child,
.transcript-text [class*="speaker"]:first-child {
    margin-top: 0;
}

/* Style speaker names that might be in spans or divs */
.transcript-text span[style*="font-weight"],
.transcript-text div[style*="font-weight"] {
    font-weight: 600;
    color: #1877F2;
    display: inline-block !important;
    margin: 0 !important;
    vertical-align: middle;
}

/* Ensure avatar buttons are inline */
.transcript-text [class*="transcript-snippet__speaker__icon"],
.transcript-text [class*="speaker__icon"],
.transcript-text button[class*="speaker"] {
    display: inline-block !important;
    vertical-align: middle;
    flex-shrink: 0;
    margin: 0 !important;
} 
/* More specific targeting for Otter.ai transcript structure */
.transcript-text div[class*="conversation-transcript-snippet-container"] > div[class*="transcript-snippet__speaker-container"] {
    display: inline-block !important;
    margin-right: 0.5rem !important;
    vertical-align: middle !important;
}

.transcript-text div[class*="conversation-transcript-snippet-container"] > div[class*="transcript-snippet__content__head-row"] {
    display: inline-block !important;
    vertical-align: middle !important;
}

