/* Football Schedule Auto Poster Styles - Pitch View Edition */

/* ===================
   MAIN CONTAINERS
   =================== */


.container {
    opacity: 1;
    visibility: visible;
}

/* ===================
   LEAGUE BLOCKS
   =================== */
.fp-league-block {
    background: #1f2937;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
    border: 1px solid #374151;
}

.fp-league-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #374151;
    border-bottom: 2px solid #4b5563;
}

.fp-league-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    color: #ffffff;
}

.fp-league-flag {
    font-size: 20px;
}

.fp-league-cols {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #d1d5db;
}

.fp-league-body {
    padding: 0;
}

/* ===================
   MATCH ROWS
   =================== */
.fp-match-row {
    padding: 15px;
    border-bottom: 1px solid #374151;
    margin-bottom: 20px;
}

.fp-match-row:last-child {
    border-bottom: none;
}

.fp-match-league {
    text-align: center;
    margin-bottom: 10px;
}

.fp-match-league small {
    background: #4b5563;
    color: #d1d5db;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
}

.fp-match-main {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 15px;
}

.fp-match-time {
    min-width: 70px;
    font-size: 13px;
    color: #3b82f6;
    font-weight: bold;
    text-align: center;
    padding-right: 15px;
    border-right: 1px solid #374151;
}

.fp-teams {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-left: 15px;
}

.fp-team {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.fp-team-home {
    justify-content: flex-end;
}

.fp-team-away {
    justify-content: flex-start;
}

.fp-team img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: contain;
}

.fp-team-name {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

.fp-vs {
    color: #9ca3af;
    font-size: 12px;
    padding: 0 5px;
}

/* ===================
   ODDS & BETTING
   =================== */
.fp-odds-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 10px 0;
    padding: 10px;
    background: #374151;
    border-radius: 5px;
    color: #9ca3af;
    text-align: center;
    font-style: italic;
}

.fp-odd-cell {
    text-align: center;
    padding: 8px 5px;
    background: #1f2937;
    border-radius: 4px;
    color: #3b82f6;
    font-weight: bold;
    font-size: 14px;
}

.fp-hdp-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    padding: 8px;
    background: #374151;
    border-radius: 5px;
    font-size: 13px;
}

.fp-hdp-label {
    min-width: 50px;
    color: #9ca3af;
    font-weight: bold;
}

.fp-hdp-line {
    flex: 1;
    text-align: center;
    color: #fbbf24;
    font-weight: bold;
}

.fp-hdp-price {
    min-width: 40px;
    text-align: center;
    padding: 4px 8px;
    background: #1f2937;
    border-radius: 4px;
    color: #3b82f6;
    font-weight: bold;
}

/* ===================
   LINEUPS ROW
   =================== */
.fp-lineups-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 8px;
    background: #374151;
    border-radius: 5px;
    font-size: 13px;
}

.fp-lineups-label {
    min-width: 60px;
    color: #3b82f6;
    font-weight: bold;
}

.fp-lineups-text {
    flex: 1;
    color: #10b981;
    cursor: pointer;
}

.fp-match-separator {
    margin: 15px 0;
}

.fp-match-separator hr {
    border: none;
    border-top: 1px dashed #374151;
    margin: 10px 0;
}

/* ===================
   PITCH & LINEUPS CONTAINER
   =================== */
.fp-match-lineups-wrapper {
    margin: 20px 0;
    background: #1f2937;
    border-radius: 8px;
    padding: 15px;
}

.lineups-formation {
    display: flex;
    justify-content: space-between;
    background: #374151;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.lineups-formation h3 {
    margin: 0;
    font-size: 16px;
    color: white;
}

.lineups-formation h3 span:first-child {
    font-weight: bold;
}

.lineups-formation h3 span:last-child {
    color: #9ca3af;
    margin-left: 10px;
}

/* ===================
   SOCCER FIELD
   =================== */
.soccer-field {
    position: relative;
    min-height: 400px;
}

.field-graphics {
    position: relative;
    width: 100%;
    height: 400px;
    background: #14532d;
    border-radius: 5px;
    overflow: hidden;
}

/* MODIFIED: Lineups container now stacks vertically */
.lineups-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.pitch-container {
    flex: none; /* Remove flex: 1 to prevent stretching */
    position: relative;
    width: 100%;
}

.pitch {
    position: relative;
    width: 100%;
    height: 400px;
    background: #14532d;
    border-radius: 5px;
    overflow: hidden;
}

.pitch-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Field Lines */
.center-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: rgba(255,255,255,0.3);
    transform: translateX(-50%);
}

.center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%,-50%);
}

.penalty-box {
    position: absolute;
    top: 30%;
    height: 40%;
    width: 15%;
    border: 2px solid rgba(255,255,255,0.3);
}

.penalty-box.left {
    left: 0;
}

.penalty-box.right {
    right: 0;
}

.small-box {
    position: absolute;
    top: 42%;
    height: 16%;
    width: 5%;
    border: 2px solid rgba(255,255,255,0.3);
}

.small-box.left {
    left: 0;
}

.small-box.right {
    right: 0;
}

.penalty-spot {
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translateY(-50%);
}

.penalty-spot.left {
    left: 10%;
}

.penalty-spot.right {
    right: 10%;
}

/* Formation Lines */
.lines {
    position: absolute;
    pointer-events: none;
}

.lines.gb.home {
    top: 30%;
    left: 0%;
    width: 10%;
    height: 60%;
    border: 3px solid rgba(255,255,255,0.1);
}

.lines.gb-small.home {
    top: 47%;
    left: 0;
    width: 5%;
    height: 30%;
    border: 3px solid rgba(255,255,255,0.1);
}

.lines.gb.away {
    top: 30%;
    right: 0%;
    width: 10%;
    height: 60%;
    border: 3px solid rgba(255,255,255,0.1);
}

.lines.gb-small.away {
    top: 47%;
    right: 0;
    width: 5%;
    height: 30%;
    border: 3px solid rgba(255,255,255,0.1);
}

.lines.gb-circle {
    width: 50px;
    height: 100px;
    border: 3px solid rgba(255,255,255,0.1);
    border-radius: 48%;
}

.lines.gb-circle.circlehome {
    top: 50%;
    left: 1%;
}

.lines.gb-circle.circleaway {
    top: 50%;
    right: 1%;
}

.lines.middle {
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transform: translateX(-50%);
}

.lines.middle-line {
    top: 50%;
    left: 25%;
    width: 50%;
    height: 2px;
    background: rgba(255,255,255,0.1);
    transform: translateY(-50%);
}

/* ===================
   PLAYER MARKERS
   =================== */
.pitch-players {
    position: absolute;
    top: -20px;
    left: -9px;
    width: 100%;
    height: 100%;
}

.pitch-player {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.player-marker {
    position: absolute;
    width: 40px;
    height: 40px;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 10;
}

.player-marker:hover {
    transform: scale(1.1);
}

.pitch-players.away-team .player-marker {
    background: #ef4444;
}

.player-number {
    font-size: 12px;
}

.player-position {
    font-size: 9px;
    margin-top: 1px;
}

/* Player Color Variations */
.player-yellow {
    width: 38px;
    height: 38px;
    background: #facc15;
    color: #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    border: 2px solid #111;
}

.player-blue {
    width: 38px;
    height: 38px;
    background: #3b82f6;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    border: 2px solid #111;
}

/* ===================
   PLAYER LISTS CONTAINER (UNDER FIELD)
   =================== */
.players-list-container {
    width: 100%;
    background: #1f2937;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #374151;
}

.players-list h4 {
    color: white;
    margin: 0 0 20px 0;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

/* Player Lists Grid - MODIFIED for better spacing */
.fp-player-lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* Home List */
.fp-home-list {
    text-align: left;
}

.fp-list-title.home {
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 15px;
    font-size: 16px;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 8px;
    text-align: left;
}

/* Away List */
.fp-away-list {
    text-align: right;
    overflow: visible;
}

.fp-list-title.away {
    font-weight: 700;
    color: #facc15;
    margin-bottom: 15px;
    font-size: 16px;
    border-bottom: 2px solid #facc15;
    padding-bottom: 8px;
    text-align: right;
}

/* Player Row - IMPROVED for better readability */
.fp-player-row {
    display: grid;
    align-items: center;
    height: 40px;
    margin-bottom: 8px;
    column-gap: 12px;
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    max-width: 100%;
    overflow: visible;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.fp-player-row:hover {
    background: rgba(255, 255, 255, 0.1);
}

.fp-home-list .fp-player-row {
    grid-template-columns: 40px 1fr 30px;
    text-align: left;
}

.fp-away-list .fp-player-row {
    grid-template-columns: 30px 1fr 40px;
    text-align: right;
}

/* Player Number */
.fp-player-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 700;
}

.fp-home-list .fp-player-number {
    background: #3b82f6;
    color: #fff;
    border: 2px solid #2563eb;
    margin-bottom: 1px
}

.fp-away-list .fp-player-number {
    background: #facc15;
    color: #111;
    border: 2px solid #eab308;
}

/* Player Name */
.fp-player-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.2;
}

.fp-home-list .fp-player-name {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.fp-away-list .fp-player-name {
    background: rgba(250, 204, 21, 0.2);
    color: #fde047;
}

/* Player Position */
.fp-player-pos {
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    padding: 4px 6px;
    background: rgba(55, 65, 81, 0.5);
    border-radius: 4px;
}

/* ===================
   STATS CONTAINER
   =================== */
.stats-container {
    width: 100%;
    background: #1f2937;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #374151;
}

.team-stats {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 16px;
    font-size: 14px;
}

/* ===================
   SIMPLE LINEUPS (ALTERNATE VIEW)
   =================== */
.lineups-wrapper {
    font-family: Arial, sans-serif;
    margin: 20px 0;
}

.lineups-formation {
    background: #14805e;
    padding: 10px;
    border-radius: 8px 8px 0 0;
}

.lineups-formation h3 {
    margin: 0;
    font-size: 14px;
    color: #fff;
    font-weight: bold;
}

.lineups {
    background: #1f2937;
    border-radius: 0 0 8px 8px;
    padding: 20px 0;
    margin: 0;
    position: relative;
}

.players-line {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.players-line.goalie {
    margin-bottom: 40px;
}

.lineups-player {
    background: #374151;
    color: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    text-align: center;
    min-width: 130px;
    border: 1px solid #4a5568;
}

.player-profile {
    display: block;
    font-weight: bold;
    background: #14805e;
    color: white;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    margin: 0 auto 8px;
    font-size: 14px;
}

.player-name {
    font-size: 12px;
    display: block;
    font-weight: bold;
    text-transform: uppercase;
}

.lineups-toggle-formation {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
}

/* ===================
   RESPONSIVE DESIGN
   =================== */
@media (max-width: 768px) {
    .fp-schedule-wrapper {
        padding: 0px;
    }
    
    .fp-teams {
        flex-direction: column;
        gap: 5px;
        padding-left: 0;
    }
    
    .fp-team {
        width: 100%;
        justify-content: center !important;
    }
    
    .fp-team-home {
        order: 1;
    }
    
    .fp-team-away {
        order: 3;
    }
    
    .fp-vs {
        order: 2;
        padding: 5px 0;
    }
    
    .lineups-container {
        flex-direction: column;
    }
    
    .pitch-container {
        order: 1;
    }
    
    .players-list-container {
        order: 2;
        border-radius: 8px;
        margin-top: 20px;
        border: 1px solid #374151;
    }
    
    .pitch {
        height: 350px;
    }
    
    .field-graphics {
        height: 350px;
    }
    
    .fp-player-lists {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .fp-away-list {
        text-align: left;
    }
    
    .fp-list-title.away {
        text-align: left;
    }
    
    .fp-away-list .fp-player-row {
        grid-template-columns: 40px 1fr 30px;
        text-align: left;
    }
    
    .lineups-formation { 
        display: none !important; 
    }
    
    .lineups-mob-teams { 
        display: block !important; 
    }
    
    .lineups-home, 
    .lineups-away { 
        width: 100%; 
    }
    
    .lineups-mob-teams {
        background: #14805e;
        padding: 12px;
        margin: 10px 0;
        border-radius: 8px;
    }
    
    .lineups-player {
        min-width: 110px;
        padding: 8px 12px;
    }
    
    .player-name {
        font-size: 11px;
    }
    
    .fp-player-row {
        height: 36px;
        font-size: 13px;
    }
    
    .fp-player-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .fp-player-name {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .fp-player-pos {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .pitch {
        height: 300px;
    }
    
    .field-graphics {
        height: 300px;
    }
    
    .fp-player-number {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .fp-player-name {
        font-size: 12px;
        padding: 5px 8px;
    }
    
    .fp-player-pos {
        font-size: 10px;
    }
    
    .fp-home-list .fp-player-row {
        grid-template-columns: 32px 1fr 28px;
    }
    
    .fp-away-list .fp-player-row {
        grid-template-columns: 28px 1fr 32px;
    }
}
/* ===================
   SIMPLE PERFECT LINEUP
   =================== */

/* Reset */
.lineup-reset * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Main Container */
.lineup-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Header */
.lineup-header {
    text-align: center;
    margin-bottom: 30px;
}

.lineup-header h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 5px;
}

.lineup-header h2 {
    font-size: 16px;
    color: #666;
    font-weight: normal;
}

/* Team Sections */
.team-section {
    margin-bottom: 30px;
}

.team-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

.home-title {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.away-title {
    color: #dc2626;
    border-bottom-color: #dc2626;
}

/* PERFECTLY ALIGNED PLAYER LIST */
.player-list {
    width: 100%;
}

.player-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.player-row:last-child {
    border-bottom: none;
}

/* Player Number - PERFECT CENTERING */
.player-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

.home-section .player-number {
    background: #2563eb;
    color: white;
}

.away-section .player-number {
    background: #dc2626;
    color: white;
}

/* Player Name */
.player-name {
    font-size: 16px;
    color: #333;
    flex-grow: 1;
}

/* Separator */
.lineup-separator {
    height: 1px;
    background: #e0e0e0;
    margin: 25px 0;
    border: none;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .lineup-container {
        margin: 10px;
        padding: 20px;
    }
    
    .player-number {
        width: 36px;
        height: 36px;
        font-size: 15px;
        margin-right: 12px;
    }
    
    .player-name {
        font-size: 15px;
    }
}
/* ===================
   CLEAN LINEUP STYLES
   =================== */

/* Reset */
.lineup-reset * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Main Container */
.lineup-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Section Headers */
.section-header {
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.section-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 5px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #4b5563;
}

/* Home Lineup Styles */
.home-lineup {
    margin-bottom: 40px;
}

.home-header {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

/* Away Lineup Styles */
.away-lineup {
    margin-bottom: 40px;
}

.away-header {
    color: #dc2626;
    border-bottom-color: #dc2626;
}

/* PERFECTLY ALIGNED PLAYER GRID */
.player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

/* Player Card */
.player-card {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.player-card:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-2px);
}

/* Player Number - PERFECTLY CENTERED */
.player-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
    margin-right: 16px;
    flex-shrink: 0;
}

.home-lineup .player-number {
    background: #2563eb;
    color: white;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.away-lineup .player-number {
    background: #dc2626;
    color: white;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

/* Player Info */
.player-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.player-name {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
}

.player-position {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* For Away Lineup with positions list */
.position-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.position-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.position-symbol {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.position-player {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}

/* Separator */
.section-separator {
    margin: 30px 0;
    border: none;
    border-top: 2px dashed #e5e7eb;
}

/* Status Sections */
.status-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.status-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 15px;
}

.status-list {
    list-style: none;
}

.status-list li {
    padding: 6px 0;
    font-size: 14px;
    color: #4b5563;
    border-bottom: 1px solid #e5e7eb;
}

.status-list li:last-child {
    border-bottom: none;
}

/* Console/Info Section */
.info-section {
    margin-top: 25px;
    padding: 16px;
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: 6px;
}

.info-title {
    font-size: 15px;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 12px;
}

.info-text {
    font-size: 14px;
    color: #92400e;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .lineup-container {
        padding: 20px;
        margin: 15px;
    }
    
    .player-grid {
        grid-template-columns: 1fr;
    }
    
    .position-list {
        grid-template-columns: 1fr;
    }
    
    .section-header h1 {
        font-size: 22px;
    }
    
    .section-header h2 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .lineup-container {
        padding: 16px;
        margin: 10px;
    }
    
    .player-card {
        padding: 10px 12px;
    }
    
    .player-number {
        width: 32px;
        height: 32px;
        font-size: 13px;
        margin-right: 12px;
    }
    
    .player-name {
        font-size: 14px;
    }
    
    .position-item {
        padding: 8px 10px;
    }
}
.fp-player-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #374151;
  border-radius: 6px;
  margin-bottom: 6px;
  min-height: 36px;
}
.fp-player-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1f2937;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.fp-player-row {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  margin-bottom: 6px;
  background: #374151;
  border-radius: 6px;
  min-height: 38px;
  gap: 10px;
}

.fp-player-row.home {
  justify-content: flex-start;
}

.fp-player-row.away {
  justify-content: flex-start;
  flex-direction: row-reverse;
}
.fp-player-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.fp-player-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-player-pos {
  width: 18px;
  text-align: center;
  font-size: 11px;
  color: #9ca3af;
  flex-shrink: 0;
}
/* ================= PLAYER LIST ROW ================= */
.fp-player-row {
  display: grid;
  grid-template-columns: 34px 1fr 22px;
  align-items: center;

  padding: 6px 12px;
  margin-bottom: 6px;
  background: #374151;
  border-radius: 6px;
  min-height: 38px;
  column-gap: 10px;
}

/* ================= AWAY MIRROR ================= */
.fp-away-list .fp-player-row {
  grid-template-columns: 22px 1fr 34px;
}

/* ================= RESET AMP PARAGRAPHS ================= */
.fp-player-row p {
  margin: 0;
  padding: 0;
  display: contents; /* ðŸ”‘ removes <p> from layout */
}

/* ================= NUMBER BADGE ================= */
.fp-player-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1f2937;
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

/* ================= PLAYER NAME ================= */
.fp-player-row span:not(.fp-player-number) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ================= POSITION ================= */
.fp-player-row span[data-amp-original-style*="font-size:11px"],
.fp-player-row .fp-player-pos {
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
}

/* ================= ALIGN TEXT ================= */
.fp-home-list .fp-player-row span {
  text-align: left;
}

.fp-away-list .fp-player-row span {
  text-align: right;
}

/* ================= REMOVE AMP <br> VISUAL EFFECT ================= */
.fp-player-row br {
  display: none;
}
/* ================= PLAYER MARKER FIX ================= */
.player-marker > div {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  line-height: 1 !important;
  padding: 0 !important;
}

/* REMOVE AMP <br> THAT BREAKS CENTERING */
.player-marker br {
  display: none !important;
}

/* FORCE NUMBER TO BE PERFECTLY CENTERED */
.player-marker > div {
  font-size: 12px;
  font-weight: 700;
}

/* SAFETY: PREVENT TEXT SHIFT */
.player-marker > div * {
  line-height: 1 !important;
}
.site-footer {
    width: 100%;
    background: #020617;
    color: #f9fafb;
    padding: 20px;
}
