/* ==========================================================================
   VIEW-BIO.CSS - Styles for player/coach bio pages
   ========================================================================== */

/* --- Background Logo --- */
.bg-logo {
    background-repeat: no-repeat;
    background-position: 100% 80%;
    position: relative;
    flex: 1;
    min-width: 0;
}

/* Commit logo: when using img (recruit_profile_card), disable background so it does not stretch */
.profile-header__content.commit-true:has(.recruit-commit-logo) {
    background-image: none !important;
}

/* White content area: contains photo, stats, and positioned commit logo */
.recruit-card__body-wrap {
    position: relative;
}

/* Commit logo as img: upper right of white area, natural size, no stretch */
.recruit-commit-logo {
    position: absolute;
    top: 0;
    right: 0;
    width: 140px;
    max-width: 45%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    object-position: top right;
    z-index: 0;
    pointer-events: none;
}

/* --- Coaching Experience --- */
#coachingExp {
    margin-top: 2px;
    margin-bottom: 2px;
    padding-left: 20px;
}

.coachStat {
    font-weight: bold;
    display: inline-block;
    width: 122px;
    text-align: right;
    padding-right: 3px;
}

/* --- Bio Section --- */
#bio {
    display: block;
}

/* --- News Teaser Styles --- */
.news-teaser {
    font-size: 1em;
}

.news-date {
    font-size: 1em;
}

.news-title {
    font-size: 1.2em;
    font-weight: bold;
}

/* --- Player Header --- */
.profile-header__name-section {
    position: relative;
    margin-bottom: 6px;
}

.playerHeaderName {
    font-size: 22px;
    line-height: 1.25;
    color: var(--color-text-on-primary);
    background-color: var(--site-primary);
    padding: 6px 12px 8px;
    border-radius: 8px 8px 0 0;
    display: grid;
    grid-template-rows: 1fr auto;
    align-items: center;
    min-height: 52px;
}

/* Name block: vertically centered in the header */
.player-header-name__inner {
    grid-row: 1;
    align-self: center;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
}

.player-jersey {
    margin-right: 8px;
    font-weight: bold;
}

.playerHeaderNumber {
    position: absolute;
    top: -8px;
    right: 12px;
    font-size: 14px;
    line-height: 1.2;
    color: var(--site-primary);
    background-color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    border: 2px solid var(--site-primary);
}

/* Rankings updated: placed below recruit status ("Signed with ...") */
.rankings-updated-status {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.3;
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* --- Commitment Logo --- */
.committmentLogo {
    background-repeat: no-repeat;
    background-position: 80% 57%;
    height: 220px;
    margin: 2px 5px 0px 220px;
    position: relative;
}

/* --- Player Images --- */
.profile-header__image {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.playerHeadshot {
    width: 200px;
    height: 260px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--bio-headshot-shadow);
}

.playerHeadshot--no-image {
    width: 200px;
    height: 260px;
    max-width: 212px;
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.playerHeadshot--no-image img {
    margin: 0;
    width: 129px;
    height: 129px;
}

.playerHeadshot__message {
    margin: 20px 2px 5px 2px;
    font-size: 0.8em;
    text-align: center;
    color: var(--color-text-secondary);
}

.noHeadshot {
    width: 129px;
    height: 129px;
}

/* --- Profile Layout --- */
.profileHeaderWrap {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 15px;
    background: var(--color-bg-surface);
    border-radius: 12px;
    box-shadow: var(--bio-wrap-shadow);
    border: 1px solid transparent;
    margin-bottom: 15px;
    align-items: flex-start;
}

.profile-header__content {
    flex: 1;
    min-width: 0;
}

.contentColumn {
    padding-top: 5px;
}

#middleColumn {
    width: 810px;
    max-width: 100%;
    box-sizing: border-box;
    background: var(--color-bg-surface);
}

* html #middleColumn {
    width: 794px;
}

/* --- Plain Box --- */
.plain {
    border: 1px solid #4C3C1B;
    padding: 5px;
    background-color: var(--color-bg-light);
}

/* --- Scroll Panes --- */
.scroll-pane {
    width: 100%;
    max-height: 200px;
    overflow: auto;
}

.scroll-pane-updates {
    max-height: 461px;
    height: 461px !important;
}

.scroll-pane-coaches {
    height: 245px;
    max-height: 245px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-y: scroll;
    overflow-x: hidden !important;
    scrollbar-width: auto;
    scrollbar-color: var(--site-secondary) var(--color-bg-light);
    position: relative;
}

.scroll-pane-coaches::-webkit-scrollbar {
    width: 10px;
}

.scroll-pane-coaches::-webkit-scrollbar-track {
    background: var(--color-bg-light);
    border-radius: 10px;
}

.scroll-pane-coaches::-webkit-scrollbar-thumb {
    background: var(--site-secondary);
    border-radius: 10px;
    border: 2px solid var(--color-bg-light);
}

.scroll-pane-coaches::-webkit-scrollbar-thumb:hover {
    background: var(--site-primary);
}

/* --- Coach Scroll Affordance --- */
.coach-scroll-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.coach-scroll-cue {
    width: 100%;
    box-sizing: border-box;
    padding: 7px 12px;
    background: linear-gradient(to bottom, var(--color-bg-surface) 0%, var(--color-bg-light) 100%);
    border-top: 1px solid var(--color-border);
    border-radius: 0 0 8px 8px;
    font-size: 11px;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    user-select: none;
}

.coach-scroll-cue:hover {
    background: var(--color-bg-hover);
    color: var(--color-text);
}

.coach-scroll-cue .material-icons {
    font-size: 16px;
    color: var(--color-text-secondary);
    vertical-align: middle;
    animation: coachCueBounce 1.6s ease-in-out infinite;
}

.coach-scroll-cue.scrolled {
    opacity: 0.35;
    animation: none;
}

.coach-scroll-cue.scrolled .material-icons {
    animation: none;
}

@keyframes coachCueBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(3px); }
}

/* Dark mode */
html.dark-mode .coach-scroll-cue {
    background: linear-gradient(to bottom, var(--dm-bg-card) 0%, var(--dm-bg-elevated) 100%);
    border-top-color: var(--dm-border);
    color: var(--dm-text-muted);
}

html.dark-mode .coach-scroll-cue:hover {
    background: var(--dm-bg-elevated);
    color: var(--dm-text-secondary);
}

html.dark-mode .coach-scroll-cue .material-icons {
    color: var(--dm-text-muted);
}

/* Coach bio pane hard constraints: keep content inside middle column */
.scroll-pane-coaches .bio-fields-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.scroll-pane-coaches #bio-fields {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
}

.scroll-pane-coaches #bio-fields td:not(.bio-label) {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* --- College Choices Scrollable Container --- */
.college-choices-scroll {
    max-height: 380px;
    overflow-y: auto;
}

.newBioClass {
    max-height: 160px;
    overflow: hidden;
}

* html .newBioClass {
    height: 160px;
}

.newBioClass .effectLI {
    display: none;
}

/* --- Utility Classes --- */
.left {
    float: left;
}

.clear {
    clear: both;
}

/* --- Section Body --- */
/* Removed border-right to match standard widget styling */
.section_body {
    background-color: transparent;
}

.section_body a:hover,
.front_section .section_body a:hover,
.section_body ul li a:hover {
    color: var(--site-primary);
}
.section-header-footer a:hover {
    color: var(--site-primary);
}

/* ==========================================================================
   BIO PAGE-SPECIFIC STYLES
   ========================================================================== */

/* --- Player Name and News Title --- */
h1.player-name {
    font-size: 28px;
    display: inline;
    margin: 0;
}

/* Recruit name link: never use visited style so it stays visible on orange header */
.playerHeaderName .player-name a,
.playerHeaderName .player-name a:link,
.playerHeaderName .player-name a:visited,
.playerHeaderName .player-name a:hover,
.playerHeaderName .player-name a:focus {
    color: var(--color-text-on-primary) !important;
    text-decoration: none;
}
.playerHeaderName .player-name a:hover,
.playerHeaderName .player-name a:focus {
    text-decoration: underline;
}

h2.news-title {
    display: inline;
}

/* --- Sport Icons --- */
.fa-football-ball,
.fa-basketball-ball,
.fa-baseball-ball {
    opacity: 0.5;
    margin-top: 15px;
}

/* --- Recruit Commitment --- */
.commit-false {
    /* background-image: url(...) - commented out in original */
}

/* --- Bio Fields Table --- */
.bio-fields-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#bio-fields {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

#bio-fields tr {
    line-height: 1.6;
    border-bottom: 1px solid var(--bio-fields-row-border);
}

#bio-fields tr:last-child {
    border-bottom: none;
}

#bio-fields td {
    padding: 8px 8px;
    vertical-align: top;
}

/* Modern label styling - smaller, muted, no colon; one row only (e.g. HIGH SCHOOL) */
.bio-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 120px;
    width: 120px;
    padding-right: 16px;
    white-space: nowrap;
}

/* Modern value styling - larger, bolder, more prominent */
#bio-fields td:not(.bio-label) {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#bio-fields td:not(.bio-label) a {
    color: var(--site-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

#bio-fields td:not(.bio-label) a:hover {
    color: var(--site-primary);
    text-decoration: underline;
}

/* Recruit card: photo + quick stats row (shared fragment) */
.recruit-card__photo-stats {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 10px;
}

.recruit-card__photo-stats .profile-header__image {
    flex: 0 0 auto;
}

.recruit-card__quick-stats {
    flex: 1;
    min-width: 0;
}

.bio-fields-quick {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.bio-fields-quick tr {
    line-height: 1.6;
    border-bottom: 1px solid var(--bio-fields-row-border);
}

.bio-fields-quick tr:last-child {
    border-bottom: none;
}

.bio-fields-quick td {
    padding: 8px 8px;
    vertical-align: top;
}

.bio-fields-quick .bio-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 120px;
    width: 120px;
    padding-right: 16px;
    white-space: nowrap;
}

.bio-fields-quick td:not(.bio-label) {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.bio-fields-quick td:not(.bio-label) a {
    color: var(--site-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.bio-fields-quick td:not(.bio-label) a:hover {
    color: var(--site-primary);
    text-decoration: underline;
}

/* Fix spacing before Status row */
.bio-status-row {
    margin-top: 8px;
}

.bio-status-row td:first-child {
    padding-top: 12px;
}

/* Style Status value as a badge - using class approach */
.bio-status-value {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bio-status-bg);
    border-radius: 12px;
    font-weight: 600;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    font-size: 13px;
    letter-spacing: 0.3px;
}

/* Active status gets special color */
.bio-status-value.status-active {
    background: var(--bio-status-active-bg);
    color: var(--color-success);
    border-color: var(--color-success);
}

/* Inactive status */
.bio-status-value.status-inactive {
    background: var(--bio-status-inactive-bg);
    color: var(--color-warning);
    border-color: var(--color-warning);
}

.rankings-updated {
    float: right;
    font-size: 0.7em;
    color: var(--color-text-secondary);
}

.bio-fields-pro {
    margin-top: 8px;
    width: 100%;
}

.bio-fields-pro td {
    padding: 6px 8px;
    vertical-align: top;
}

.bio-label--nfl-draft {
    width: 130px;
}

.bio-label--nfl-team {
    width: 165px;
}

/* --- Recent Stories --- */
#recent-stories {
    max-height: 1000px;
}

#recent-stories-list .news-result-card {
    background: var(--color-bg-surface);
}
#recent-stories-list .news-result-card:hover {
    box-shadow: var(--bio-news-hover-shadow);
    border-color: var(--color-border);
}
#recent-stories-list .news-result-meta {
    color: var(--color-text-secondary);
}
#recent-stories-list .news-result-meta b {
    color: var(--color-text);
}
#recent-stories-list .news-result-title {
    color: var(--color-text);
}
#recent-stories-list .news-result-title:hover {
    color: var(--site-primary);
}
#recent-stories-list .news-result-teaser {
    color: var(--color-text-secondary);
}
#recent-stories-list .news-result-image img {
    border: transparent;
}

/* --- Player Headshot Override --- */
.playerHeadshot {
    width: inherit;
    height: inherit;
}

/* --- Bio Effect (Expand/Collapse) --- */
#bioEffect,
#bioEffect p {
    font-size: 14px;
}

/* --- Font Size Override --- */
.s1 {
    font-size: inherit;
}

/* --- SVG and Icon Colors --- */
svg,
i {
    color: var(--site-primary);
}

/* --- Bio Label (Override base) - Already defined above with modern styling --- */

/* --- FAQ Styles --- */
.faq-question {
    padding: 5px;
}

.faq-answer {
    font-weight: bold;
}

/* --- Player Stats Table (bio page) - match grid: purple first column, orange headers, white cells, centered --- */
#playerStats .player-stats-table {
    border-collapse: collapse;
    border-spacing: 0;
}

#playerStats .player-stats-table td,
#playerStats .player-stats-table th {
    border: 1px solid var(--bio-table-td-border);
    text-align: center;
    padding: 5px 8px;
}

#playerStats .player-stats-header td:not(.first-col) {
    background-color: #ed7d31;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
}

#playerStats .player-stats-header td.first-col {
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
}

#playerStats .player-stats-table .first-col {
    min-width: 72px;
    width: 72px;
}

#playerStats .player-stats-table .stat-label {
    font-weight: bold;
    padding: 5px 8px;
}

#playerStats .player-stats-table .stat-value {
    padding: 5px 8px;
    background-color: var(--color-bg-surface);
    color: var(--color-text);
}

#playerStats .player-stats-table tr:last-child .stat-value {
    font-weight: bold;
}

/* Legacy stats classes (when not inside #playerStats table) */
.stat-label {
    font-weight: bold;
    padding: 5px 8px;
}

.stat-value {
    padding: 5px 8px;
}

/* --- Section Backgrounds (using CSS variables) --- */
/* Note: .front_section is legacy; bio page uses .widget-container instead. Kept for .section_header and any legacy includes. */
.front_section,
.section_header {
    background-color: var(--site-sections);
    color: inherit;
    background-image: none;
}

.front_section {
    background-color: var(--site-sections);
}

.front_section .section_body {
    background-color: var(--color-bg-surface);
}

#videoContainer {
    background-color: var(--color-bg-light);
    border: 1px solid transparent;
}

#expandButton,
#button2 {
    background-color: var(--color-bg-light);
    color: var(--color-text);
}
#expandButton:hover,
#button2:hover {
    background-color: var(--color-bg-hover);
    border-color: var(--site-primary);
}

#recent-stories-block,
#recent-stories-block-footer,
.colorSections2 {
    background-color: var(--site-sections-2);
    background-image: none;
}

/* --- UI Widget Active State --- */
.ui-widget-content .ui-state-active a {
    background-color: var(--site-secondary) !important;
    color: var(--color-text-on-secondary);
}

/* --- Section Body Hover (skip simple-list widget - it has its own hover) --- */
.updates-widget-container:not(.updates-widget-simple-list) .section_body li:hover {
    color: black !important;
}

/* --- Bio Links Bar --- */
.bio-links-bar {
    background-color: var(--site-secondary);
    border: 1px solid transparent;
    padding: 12px 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
    gap: 15px;
    flex-wrap: wrap;
}

.bio-links-bar__nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Modern button-style links with icons */
.bio-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bio-link-btn-bg);
    color: var(--color-text-on-secondary);
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    border: 1px solid var(--bio-link-btn-border);
    backdrop-filter: blur(4px);
}

.bio-link-btn:hover {
    background: var(--bio-link-btn-hover-bg);
    border-color: var(--bio-link-btn-hover-border);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

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

.bio-link-btn .material-icons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: var(--color-text-on-secondary);
    vertical-align: middle;
}

.bio-link-btn span:not(.material-icons) {
    line-height: 1;
}

.bio-links-bar__social {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    height: 32px;
}

.bio-links-bar__nav a:hover {
    color: var(--color-text-on-secondary);
}

/* Hide ShareThis share counts */
.bio-links-bar__social .stBubble,
.bio-links-bar__social .stCount,
.bio-links-bar__social .st-total,
.bio-links-bar__social .st-count,
.bio-links-bar__social .stButton .stBubble,
.bio-links-bar__social .stButton .stCount {
    display: none !important;
}

/* --- Widget Content Table (for College Choices, etc.) --- */
.widget-content-table {
    background-color: var(--color-bg-surface);
    color: var(--color-text);
    padding: 10px;
    border-left: 1px solid var(--shadow-color);
    border-right: 1px solid var(--shadow-color);
}

.widget-content-table th {
    font-weight: bold;
    text-align: left;
    padding: 5px 8px;
    border-bottom: 1px solid var(--color-border);
    color: var(--site-primary);
}

.widget-content-table td {
    padding: 4px 8px;
    border-bottom: 1px solid var(--bio-table-td-border);
}

.widget-content-table tr:hover {
    background-color: var(--bio-table-hover);
}

/* --- Material Icons Color Override (base styles in common.css) --- */
.material-icons {
    color: var(--site-icons-color);
}

/* ==========================================================================
   BIO PAGE-SPECIFIC LAYOUT TWEAKS
   Note: Main layout (flexbox, sidebar width, responsive stacking) is handled
   by mainLayout.jsp. Only bio-specific overrides belong here.
   ========================================================================== */

/* --- Middle Column (bio content container) --- */
#middleColumn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* --- Board Widget Widths (Bio-specific) --- */
#board-tabs-container {
    width: 310px !important;
}

#board-messages,
#board-messages-list {
    width: 305px !important;
}

/* ==========================================================================
   UNIFORM WIDGET SPACING
   ========================================================================== */

/* Uniform spacing between all widget-containers on bio page */
#middleColumn .widget-container {
    margin-bottom: 20px;
}

#middleColumn .widget-container:last-child {
    margin-bottom: 0;
}

/* Remove inline margin-bottom from widget-footer-solid on bio page */
#middleColumn .widget-footer-solid {
    margin-bottom: 0 !important;
}

/* Uniform spacing for bio-content-layout */
.bio-content-layout {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: flex-start;
}

/* Prevent wrapping on larger screens - allow wrapping only on smaller screens */
@media screen and (max-width: 900px) {
    .bio-content-layout {
        flex-wrap: wrap;
    }
    
    .bio-left-column {
        flex: 0 0 100% !important;
        min-width: 100% !important;
    }
    
    .bio-video-column {
        flex: 0 0 100% !important;
        min-width: 100% !important;
    }
}

/* STATS and College Choices now use .widget-container (see UNIFORM WIDGET SPACING above). */

/* Remove inline margin styles from sections */
#middleColumn .ui-corner-all[style*="margin-top"] {
    margin-top: 20px !important;
}

#middleColumn .ui-corner-all[style*="margin-bottom:0"] {
    margin-bottom: 20px !important;
}

/* Uniform spacing for updates widget */
#middleColumn .updates-widget-container {
    margin-bottom: 20px;
}

/* ==========================================================================
   RESPONSIVE DESIGN FOR BIO PAGE
   Note: Main layout responsive behavior (sidebar width, stacking) is handled
   by mainLayout.jsp. Only bio-specific responsive tweaks belong here.
   ========================================================================== */

/* --- 768px and below --- */
@media screen and (max-width: 768px) {
    /* Profile Header Responsive - Tablet */
    .profileHeaderWrap {
        flex-direction: row;
        gap: 15px;
        padding: 12px;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Full width on tablet - minimal horizontal padding */
    #middleColumn {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Reduce top padding on tablet */
    .contentColumn {
        padding-top: 0 !important;
    }
    
    /* Force full width on tablet - prevent any shrinking after page load */
    body #main-content .layout_body #middleColumn,
    #main-content .layout_body #middleColumn,
    .layout_body #middleColumn,
    #middleColumn {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        box-sizing: border-box !important;
    }

    .profile-header__image {
        flex: 0 0 180px;
    }

    .playerHeadshot {
        width: 180px;
        height: auto;
        max-height: 234px;
    }

    .playerHeadshot--no-image {
        width: 180px;
        height: auto;
        min-height: 234px;
    }

    .playerHeaderName {
        font-size: 20px;
        padding: 6px 10px;
    }

    .playerHeaderNumber {
        font-size: 13px;
        padding: 5px 12px;
        top: -6px;
        right: 10px;
    }

    /* Make the two-column table within main content responsive */
    table[style*="margin-top:5px;"] {
        display: block;
        width: 100%;
    }

    table[style*="margin-top:5px;"] tbody,
    table[style*="margin-top:5px;"] tr,
    table[style*="margin-top:5px;"] td {
        display: block;
        width: 100% !important;
    }

    table[style*="margin-top:5px;"] td {
        margin-bottom: 15px;
    }

    /* Make video container responsive */
    #videoContainer {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* Make embedded videos responsive */
    #videoContainer iframe,
    #videoContainer video {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Prevent video widget overflow in flexbox layout */
    .bio-content-layout {
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    .bio-video-column {
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    .bio-video-column .widget-container {
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    .bio-video-column .widget-body {
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure YouTube player container doesn't overflow */
    #youtube-player-container {
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    #youtube-player-container #youtube-player,
    #youtube-player-container #youtube-playlist,
    #youtube-player-container .playlist-item,
    #youtube-player-container .playlist-item img,
    #youtube-player-container .thumbnail-container {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    #youtube-player-container iframe {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Adjust news section width */
    div[style*="width:320px"] {
        width: 100% !important;
    }

    /* Make recent stories responsive */
    #recent-stories,
    #aarecent-stories {
        max-width: 100% !important;
    }

    #recent-stories-list {
        width: 100% !important;
    }
}

/* --- 600px and below --- */
@media screen and (max-width: 600px) {
    /* Profile Header Responsive - Mobile */
    .profileHeaderWrap {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 15px 8px;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Full width on mobile - remove horizontal padding */
    #middleColumn {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Reduce top padding on mobile */
    .contentColumn {
        padding-top: 0 !important;
    }
    
    /* Force full width - prevent any shrinking after page load */
    body #main-content .layout_body #middleColumn,
    #main-content .layout_body #middleColumn,
    .layout_body #middleColumn,
    #middleColumn {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    .profile-header__image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 250px;
    }

    .playerHeadshot {
        width: 100%;
        max-width: 250px;
        height: auto;
        aspect-ratio: 200 / 260;
    }

    .playerHeadshot--no-image {
        width: 100%;
        max-width: 250px;
        height: auto;
        min-height: 0;
        aspect-ratio: 200 / 260;
    }

    .profile-header__content {
        width: 100%;
    }

    .playerHeaderName {
        font-size: 18px;
        padding: 8px 12px;
        border-radius: 8px;
    }

    .playerHeaderNumber {
        position: static;
        display: inline-block;
        margin-top: 8px;
        font-size: 12px;
        padding: 5px 12px;
        border-radius: 20px;
        top: auto;
        right: auto;
    }

    .profile-header__name-section {
        text-align: center;
    }

    /* Recruit profile card: stack photo + quick stats on mobile to avoid crushed columns */
    .recruit-card__photo-stats {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .recruit-card__photo-stats .profile-header__image {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .recruit-card__photo-stats .profile-header__image .playerHeadshot,
    .recruit-card__photo-stats .profile-header__image img {
        width: 100%;
        max-width: 250px;
        height: auto !important;
    }

    .recruit-card__quick-stats {
        width: 100%;
    }

    /* Recruit profile mobile tables: prevent value text from crowding label column */
    .recruit-card__quick-stats .bio-fields-quick,
    .recruit-card__body-wrap #bio-fields {
        table-layout: auto;
    }

    .recruit-card__quick-stats .bio-fields-quick .bio-label,
    .recruit-card__body-wrap #bio-fields .bio-label {
        width: 112px !important;
        min-width: 112px !important;
        padding-right: 10px !important;
    }

    .recruit-card__quick-stats .bio-fields-quick td:not(.bio-label),
    .recruit-card__body-wrap #bio-fields td:not(.bio-label) {
        padding-left: 8px !important;
    }

    /* Commitment stamp crowds mobile layout; hide on small screens */
    .recruit-commit-logo {
        display: none !important;
    }

    /* Bio Links Bar - Mobile Stacking */
    .bio-links-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px 15px;
        margin-left: 0;
        margin-right: 0;
    }

    .bio-links-bar__nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .bio-link-btn {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: center;
        padding: 10px 16px;
        font-size: 12px;
    }

    .bio-links-bar__social {
        justify-content: center;
    }
}

/* --- 480px and below --- */
@media screen and (max-width: 480px) {
    /* Profile Header - Very Small Mobile - Full width, minimal padding */
    .profileHeaderWrap {
        padding: 12px 8px;
        gap: 12px;
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
    }
    
    /* Full width on very small mobile - no horizontal padding */
    #middleColumn {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Remove top padding on very small mobile */
    .contentColumn {
        padding-top: 0 !important;
    }
    
    /* Force full width - prevent any shrinking after page load */
    body #main-content .layout_body #middleColumn,
    #main-content .layout_body #middleColumn,
    .layout_body #middleColumn,
    #middleColumn {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    .profile-header__image {
        max-width: 200px;
    }

    .playerHeadshot {
        max-width: 100%;
        height: auto !important;
    }

    .playerHeaderName {
        font-size: 16px;
        padding: 6px 10px;
    }

    .playerHeaderNumber {
        font-size: 11px;
        padding: 4px 10px;
        top: -5px;
        right: 8px;
    }

    /* Bio Fields - Very Small Mobile */
    .bio-fields-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Hide Position row on mobile; primary position badge in header already shows it */
    #bio-fields tr.bio-row--position {
        display: none;
    }

    #bio-fields {
        font-size: 14px;
        min-width: 300px;
    }

    .bio-label {
        font-size: 13px !important;
        width: 90px !important;
        padding-right: 8px;
    }

    #bio-fields td {
        padding: 5px 6px;
    }

    /* Bio Links Bar - Very Small Mobile */
    .bio-links-bar {
        padding: 10px 12px;
        margin-left: 0;
        margin-right: 0;
    }

    .bio-links-bar__nav {
        gap: 6px;
    }

    .bio-link-btn {
        padding: 8px 12px;
        font-size: 11px;
        gap: 4px;
    }

    .bio-link-btn .material-icons {
        font-size: 16px;
        width: 16px;
        height: 16px;
    }

    .bio-links-bar__social {
        gap: 6px;
    }
}

/* ==========================================================================
   ADDITIONAL BIO PAGE STYLES FROM VIEW-BIO.JSPF
   ========================================================================== */

/* --- Additional Responsive Styles --- */
@media screen and (max-width: 1280px) {
    #middleColumn {
        max-width: 100%;
    }
}

@media screen and (max-width: 480px) {
    /* Share buttons on separate line on mobile */
    .section-header-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header-footer > div[style*="display:inline-block"] {
        float: none !important;
        display: block !important;
        width: 100% !important;
        margin: 10px 0 0 0 !important;
        text-align: left !important;
    }

    /* Hide share counts on mobile */
    .section-header-footer .stButton .stBubble,
    .section-header-footer .stButton .stCount {
        display: none !important;
    }
}

/* ==========================================================================
   DARK MODE EXCEPTIONS FOR BIO PAGE
   Inline-style overrides and jQuery UI rules that cannot use CSS variables
   ========================================================================== */

/* Bio field links (hometown, high school, class year, etc.) - use site primary in dark mode */
html.dark-mode #bio-fields td:not(.bio-label) a {
    color: var(--site-primary);
}
html.dark-mode #bio-fields td:not(.bio-label) a:hover {
    color: var(--site-primary);
    filter: brightness(1.2);
}

/* Headshot placeholder email link */
html.dark-mode .playerHeadshot__message a {
    color: var(--site-primary) !important;
}

/* College Choices table - override inline background-color: #fff */
html.dark-mode .widget-content-table {
    background-color: var(--dm-bg-card) !important;
    border-color: var(--dm-border) !important;
}
html.dark-mode .widget-content-table td {
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}
html.dark-mode .widget-content-table tr:hover {
    background-color: var(--dm-bg-elevated) !important;
}

/* College Choices "Show More" button - override inline background-color:#f2f2f2 */
html.dark-mode #button2 {
    background-color: var(--dm-bg-elevated) !important;
    background-image: none !important;
    color: var(--dm-text-primary) !important;
    border-color: var(--dm-border) !important;
}
html.dark-mode #button2:hover {
    background-color: var(--dm-hover-accent-bg, rgba(255, 255, 255, 0.12)) !important;
    border-color: var(--site-primary) !important;
    color: var(--dm-text-primary) !important;
}

/* Target the ul that comes after the "Most Read" header - make it dark */
/* Note: color-mix with JSP expressions needed for dynamic color mixing */
html.dark-mode .section-header-footer.header + ul.section_body,
html.dark-mode div[style*="width:320px"] ul.section_body,
html.dark-mode div[style*="width:320px"] ul[class*="section_body"] {
    background-color: color-mix(in srgb, var(--site-primary) 16%, black) !important;
    background: color-mix(in srgb, var(--site-primary) 16%, black) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.95) !important;
}

html.dark-mode .section-header-footer.header + ul.section_body li,
html.dark-mode div[style*="width:320px"] ul.section_body li,
html.dark-mode div[style*="width:320px"] ul[class*="section_body"] li {
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    background-color: transparent !important;
    background: transparent !important;
}

html.dark-mode .section-header-footer.header + ul.section_body li a,
html.dark-mode div[style*="width:320px"] ul.section_body li a,
html.dark-mode div[style*="width:320px"] ul[class*="section_body"] li a {
    color: rgba(255, 255, 255, 0.95) !important;
}

html.dark-mode .section-header-footer.header + ul.section_body li a:hover,
html.dark-mode div[style*="width:320px"] ul.section_body li a:hover,
html.dark-mode div[style*="width:320px"] ul[class*="section_body"] li a:hover {
    color: var(--site-primary) !important;
}

/* Also target the container div for "Most Read" section */
html.dark-mode div[style*="width:320px"] {
    background-color: transparent !important;
    background: transparent !important;
}

html.dark-mode div[style*="width:320px"] .section-header-footer.header {
    background-color: var(--site-secondary) !important;
    color: var(--color-text-on-secondary) !important;
}

html.dark-mode div[style*="width:320px"] .section-header-footer.footer {
    background-color: var(--site-secondary) !important;
}

html.dark-mode .front_section[style*="margin-bottom:0"] {
    background-color: var(--dm-bg-card, color-mix(in srgb, var(--site-primary) 16%, black)) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html.dark-mode .ui-corner-all {
    background-color: var(--dm-bg-card, rgba(0, 0, 0, 0.2));
}

html.dark-mode .playerHeadshot[style*="background-color"] {
    background-color: var(--dm-bg-card, rgba(0, 0, 0, 0.3)) !important;
    border-color: var(--dm-border, rgba(255, 255, 255, 0.2)) !important;
}

html.dark-mode .playerHeadshot[style*="background-color"] div {
    color: rgba(255, 255, 255, 0.8) !important;
}

html.dark-mode .playerHeadshot[style*="background-color"] a {
    color: var(--site-primary) !important;
}

/* ==========================================================================
   BIO SECTION - Career Highlights & Expandable Content
   ========================================================================== */

/* Bio Container - Now using widget-container, so remove duplicate styling */
/* Bio content sections - work within widget-body */
/* Career Highlights - Always visible */
.bio-highlights {
    padding: 15px;
    background: var(--color-bg-surface);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.bio-highlights__content {
    flex: 1;
    min-width: 250px;
}
.bio-highlights h4 {
    display: inline-block;
    margin: 0 0 12px 0;
    padding: 6px 16px;
    font-size: 11px;
    color: var(--color-text-on-primary);
    background: linear-gradient(135deg, var(--site-primary) 0%, var(--site-secondary) 100%);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    border-radius: 20px;
    box-shadow: var(--bio-highlights-shadow);
}
.bio-highlights ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.bio-highlights li {
    padding: 4px 0 4px 22px;
    font-size: 13px;
    line-height: 1.5;
    position: relative;
    color: var(--color-text);
}
.bio-highlights li::before {
    content: "\2605";
    position: absolute;
    left: 0;
    color: var(--site-secondary, #d4a017);
    font-size: 12px;
}

/* Bio preview - first few lines when no career highlights; same block expands (no duplicate) */
.bio-preview {
    margin-bottom: 12px;
}
.bio-preview__text {
    line-height: 1.75;
    font-size: 14px;
    padding: 12px 15px;
    background: var(--color-bg-surface);
    color: var(--color-text);
}
.bio-preview__text p {
    margin: 0 0 0.5em 0;
}
.bio-preview__text p:last-child {
    margin-bottom: 0;
}
/* Section headers (e.g. year, "Before Clemson:", "Personal:") – full-line header style */
.bio-preview__text b,
.bio-preview__text strong,
.bio-text b,
.bio-text strong {
    display: block;
    margin-top: 1em;
    background-color: rgba(82, 45, 128, 0.1);
    color: var(--color-text);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 6px 10px;
    border-left: 3px solid var(--site-primary);
    border-radius: 0 3px 3px 0;
}
.bio-preview__text b:first-of-type,
.bio-preview__text strong:first-of-type,
.bio-text b:first-of-type,
.bio-text strong:first-of-type {
    margin-top: 0.75em;
}

/* In collapsed preview mode, keep headings inline so line-clamp doesn't render awkward cutoffs. */
.bio-preview--expandable:not(.expanded) .bio-preview__text b,
.bio-preview--expandable:not(.expanded) .bio-preview__text strong {
    display: inline;
    margin-top: 0;
    background: none;
    color: inherit;
    font-size: inherit;
    font-weight: 700;
    letter-spacing: normal;
    padding: 0;
    border: 0;
    border-radius: 0;
}

/* Expandable preview: clamp to 4 lines until .expanded */
.bio-preview--expandable .bio-preview__text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
}
.bio-preview--expandable.expanded .bio-preview__text {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}
/* Sources only visible when preview is expanded */
.bio-preview--expandable .bio-sources {
    display: none;
}
.bio-preview--expandable.expanded .bio-sources {
    display: block;
}

/* Full Bio Content - Expandable */
.bio-full-content {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.35s ease-out, opacity 0.25s ease-out;
    opacity: 1;
}
.bio-full-content.collapsed {
    max-height: 0;
    opacity: 0;
}
.bio-text {
    padding: 15px;
    font-size: 14px;
    line-height: 1.7;
    background: var(--color-bg-surface);
    color: var(--color-text);
}

.bio-sources {
    padding: 8px 15px;
    background: var(--color-bg-light);
}

/* Superscript Citations */
.bio-cite {
    font-size: 0.6em;
    vertical-align: super;
    color: var(--site-primary);
    font-weight: bold;
    padding: 0 1px;
}

/* Sources Section - Text only, no links */
.bio-sources {
    border-top: 1px solid var(--color-border);
    padding: 8px 15px;
    background: var(--color-bg-light);
}
.sources-toggle {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.sources-toggle:hover {
    color: var(--color-text);
}
.sources-toggle .toggle-icon {
    font-size: 10px;
    transition: transform 0.2s;
}
.sources-toggle.expanded .toggle-icon {
    transform: rotate(90deg);
}
.sources-list {
    padding: 8px 0 0 0;
    font-size: 11px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    font-style: italic;
}
.sources-list.hidden {
    display: none;
}
.sources-list ol {
    margin: 0;
    padding-left: 18px;
}
.sources-list li {
    padding: 2px 0;
}

/* Expand/Collapse Footer Bar - match widget footer clickable style */
.bio-expand-btn {
    width: 100%;
    padding: 8px 12px;
    background-color: var(--site-secondary);
    background-image: linear-gradient(to bottom, var(--gloss-highlight) 0%, var(--gloss-darken) 100%);
    border: none;
    border-top: 1px solid var(--color-border);
    cursor: pointer;
    font-size: 12px;
    color: var(--color-text-on-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: filter 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    text-shadow: var(--widget-footer-text-shadow);
}
.bio-expand-btn:hover {
    filter: brightness(1.15);
}
.bio-expand-btn .expand-icon {
    font-size: 10px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: none;
}
.bio-expand-btn .expand-text {
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

/* ==========================================================================
   BIO SECTION - Mobile Responsive
   ========================================================================== */
@media screen and (max-width: 768px) {
    .bio-highlights {
        padding: 10px 12px;
    }
    .bio-highlights li {
        font-size: 12px;
        padding-left: 16px;
    }
    .bio-text {
        padding: 12px;
        font-size: 13px;
        line-height: 1.6;
    }
    .bio-sources {
        padding: 8px 12px;
    }
}

@media screen and (max-width: 480px) {
    .bio-highlights {
        padding: 10px;
        border-right-width: 2px;
    }
    .bio-highlights h4 {
        font-size: 10px;
        padding: 5px 12px;
        margin-bottom: 10px;
    }
    .bio-highlights li {
        font-size: 11px;
        line-height: 1.4;
        padding-left: 18px;
    }
    .bio-text {
        padding: 10px;
        font-size: 13px;
        border-right-width: 2px;
    }
    .bio-sources {
        padding: 6px 10px;
    }
    .sources-list {
        font-size: 10px;
    }
    .bio-expand-btn {
        padding: 10px;
        font-size: 11px;
    }
}

/* ==========================================================================
   CONTRACT COUNTER WIDGET
   ========================================================================== */

/* Bio Highlights Container - Flexbox Layout */
.bio-highlights {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.bio-highlights__content {
    flex: 1;
    min-width: 250px;
}

/* Contract Counter Widget */
.contract-counter-widget {
    flex: 0 0 auto;
    min-width: 200px;
    max-width: 300px;
    padding: 20px;
    background: var(--bio-contract-bg);
    border-radius: 12px;
    border: 2px solid var(--bio-contract-border);
    box-shadow: var(--bio-contract-shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    overflow: visible;
    position: relative;
}

/* Mute/Unmute Button */
.contract-counter-mute {
    position: absolute;
    top: 0;
    right: -4px;
    background: transparent;
    border: none;
    padding: 4px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    z-index: 20;
    outline: none;
}

.contract-counter-mute:hover {
    opacity: 1;
}

/* Sound on: icon more visible */
.contract-counter-mute.contract-counter-mute--on {
    opacity: 1;
}

.contract-counter-mute:focus-visible {
    opacity: 1;
    outline: 2px solid #28a745;
    outline-offset: 2px;
}

.contract-counter-mute .material-icons {
    font-size: 22px;
    color: var(--bio-contract-color);
}

.contract-counter-amount {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--bio-contract-color);
    line-height: 1.2;
    font-family: 'Arial', sans-serif;
    letter-spacing: -0.02em;
    transition: transform 0.3s ease-out;
    display: inline-block;
    position: relative;
}

/* Floating increment text animation (WoW-style damage numbers) */
.contract-counter-increment {
    position: absolute;
    font-size: 1.3em;
    font-weight: 700;
    color: #28a745;
    font-family: 'Arial', sans-serif;
    pointer-events: none;
    white-space: nowrap;
    z-index: 10;
    opacity: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateX(-50%);
    animation: floatUpAndFade 1s ease-out forwards;
}

@keyframes floatUpAndFade {
    0% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateY(-20px) scale(1.1);
        opacity: 0.9;
    }
    100% {
        transform: translateX(-50%) translateY(-50px) scale(0.9);
        opacity: 0;
    }
}

.contract-counter-label {
    font-size: 0.9em;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* Number Animation - handled by JavaScript transform */

/* Responsive Design */
@media (max-width: 768px) {
    .bio-highlights {
        flex-direction: column;
    }
    
    .contract-counter-widget {
        max-width: 100%;
        width: 100%;
    }
    
    .contract-counter-amount {
        font-size: 2em;
    }
}

/* =========================================================
   X/Twitter Timeline Widget (right rail, bio pages)
   Server-rendered tweet cards — no widgets.js or iframes
   Uses standard .widget-container, .widget-header-solid, .widget-body
   ========================================================= */
.widget-container.x-timeline-widget {
    max-width: 310px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* No underline on any timeline links (header or tweet cards) */
.x-timeline-widget a {
    text-decoration: none;
}
.x-timeline-widget a:hover {
    text-decoration: none;
}

.x-timeline-widget .widget-body.x-timeline-cards {
    max-height: 600px;
    overflow-y: auto;
}

/* Individual tweet card */
.x-tweet-card {
    border-bottom: 1px solid var(--color-border-light, #eee);
}

.x-tweet-card:last-child {
    border-bottom: none;
}

.x-tweet-link {
    display: block;
    padding: 12px 14px;
    text-decoration: none !important;
    color: inherit;
    transition: background 0.15s;
}

.x-tweet-link:hover {
    background: var(--color-bg-hover, #f8f9fa);
    text-decoration: none !important;
}

/* Tweet header: avatar + author + date */
.x-tweet-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.x-tweet-avatar {
    border-radius: 50%;
    flex-shrink: 0;
}

.x-tweet-author {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.x-tweet-name {
    font-weight: 700;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--color-text, #333);
}

.x-tweet-handle {
    font-size: 12px;
    color: var(--color-text-secondary, #666);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.x-tweet-date {
    font-size: 12px;
    color: var(--color-text-secondary, #666);
    white-space: nowrap;
    margin-left: auto;
    flex-shrink: 0;
}

/* Tweet body text */
.x-tweet-body {
    font-size: 14px;
    line-height: 1.4;
    color: var(--color-text, #333);
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-bottom: 8px;
}

/* Tweet image */
.x-tweet-media {
    margin-bottom: 8px;
    border-radius: 10px;
    overflow: hidden;
}

.x-tweet-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
}

/* Tweet footer: likes + retweets */
.x-tweet-footer {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--color-text-secondary, #666);
}

.x-tweet-stat {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Dark mode */
html.dark-mode .widget-container.x-timeline-widget {
    background: var(--dm-bg-card, #1a1a2e);
}

html.dark-mode .x-tweet-card {
    border-bottom-color: var(--dm-border, #333);
}

html.dark-mode .x-tweet-link:hover {
    background: var(--dm-bg-elevated, #222);
}

html.dark-mode .x-tweet-name {
    color: var(--dm-text-primary, #f1f5f9);
}

html.dark-mode .x-tweet-handle,
html.dark-mode .x-tweet-date,
html.dark-mode .x-tweet-footer {
    color: var(--dm-text-muted, #94a3b8);
}

html.dark-mode .x-tweet-body {
    color: var(--dm-text-secondary, #e2e8f0);
}

/* Player header name bar: rich dark gradient instead of flat orange */
html.dark-mode .playerHeaderName {
    background: var(--dm-premium-bg) !important;
}

html.dark-mode .rankings-updated-status {
    color: var(--dm-text-muted, rgba(255, 255, 255, 0.75));
}

/* Recruit card dark-mode cleanup: keep quick-stats panel consistently dark and readable */
html.dark-mode .recruit-card__quick-stats {
    background: var(--dm-bg-card);
    border: 1px solid var(--dm-border);
    border-radius: 2px;
}

html.dark-mode .bio-fields-quick td {
    border-color: var(--dm-border) !important;
}

html.dark-mode .bio-fields-quick tr:nth-child(odd) td {
    background: var(--dm-bg-card) !important;
}

html.dark-mode .bio-fields-quick tr:nth-child(even) td {
    background: var(--dm-bg-elevated) !important;
}

html.dark-mode .bio-fields-quick tr:hover td {
    background: var(--dm-card-hover-bg) !important;
}

html.dark-mode .bio-fields-quick .bio-label {
    color: var(--dm-text-muted, rgba(255, 255, 255, 0.75)) !important;
}

html.dark-mode .bio-fields-quick td:not(.bio-label) {
    color: var(--dm-text-primary, #f3f4f6) !important;
}

html.dark-mode .quick-stats-hs-inline {
    color: var(--dm-text-muted, rgba(255, 255, 255, 0.72));
}

/* Missing-photo block should match dark card surfaces */
html.dark-mode .playerHeadshot--no-image {
    background-color: var(--dm-bg-elevated);
    border-color: var(--dm-border);
}

html.dark-mode .playerHeadshot__message {
    color: var(--dm-text-secondary, rgba(255, 255, 255, 0.88));
}

html.dark-mode .playerHeadshot__message a {
    color: var(--dm-text-link, #ffb76c) !important;
}

