/*
 * Plugin Name: Board Game Matches
 * Description: Estilos para las partidas de juegos de mesa.
 */

.board-game-matches-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.board-game-match-item {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: #fff;
}

.board-game-match-item h3 {
    margin-top: 0;
    color: #333;
}

.board-game-match-item p {
    margin-bottom: 5px;
    color: #555;
    font-size: 0.95em;
}

.board-game-match-item strong {
    color: #222;
}

.join-match-button {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.join-match-button:hover {
    background-color: #005177;
}

.board-game-match-item .leave-match-button {
    background-color: #dc3545 !important;
    color: #fff !important;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 10px;
    transition: background-color 0.3s ease;
    width: 100%;
    display: block;
}

.board-game-match-item .leave-match-button:hover {
    background-color: #c82333 !important;
}

/* Locatario Actions Styles */
.bgm-locatario-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.bgm-edit-match-button,
.bgm-delete-match-button {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s;
}

.bgm-edit-match-button {
    background-color: #ffc107;
    color: #212529;
}

.bgm-edit-match-button:hover {
    background-color: #e0a800;
}

.bgm-delete-match-button {
    background-color: #6c757d;
    color: #fff;
}

.bgm-delete-match-button:hover {
    background-color: #5a6268;
}

/* Creation Form Styles */
.bgm-create-match-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.bgm-create-match-container form p {
    margin-bottom: 15px;
}

.bgm-create-match-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.bgm-create-match-container input[type="text"],
.bgm-create-match-container input[type="date"],
.bgm-create-match-container input[type="time"],
.bgm-create-match-container input[type="number"],
.bgm-create-match-container textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.bgm-form-row {
    display: flex;
    gap: 15px;
}

.bgm-form-row p {
    flex: 1;
}

.bgm-submit-button {
    background-color: #28a745;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s;
}

.bgm-submit-button:hover {
    background-color: #218838;
}

.bgm-submit-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

#bgm-form-message {
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
}

/* Player Info Styles */
.bgm-players-info {
    display: flex;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.bgm-player-count {
    font-size: 1.1em;
    font-weight: bold;
    margin-right: 15px;
    padding: 5px 10px;
    border-radius: 20px;
    background-color: #e9e9e9;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 30px;
}

.bgm-vacant {
    color: #dc3545; /* Red for vacant */
}

.bgm-current-players {
    color: #28a745; /* Green for current players */
}

.bgm-max-players {
    color: #6c757d; /* Gray for max players */
}

.bgm-player-avatars {
    display: flex;
    gap: 5px;
    align-items: center;
}

.bgm-player-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #0073aa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bgm-player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Map Link Styles */
.bgm-map-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.bgm-map-link:hover {
    color: #005177;
    text-decoration: underline;
}

.bgm-map-link::after {
    font-size: 0.9em;
}

/* Search Results Dropdown (OpenStreetMap) */
.bgm-search-results {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 0 0 4px 4px;
}

.bgm-search-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    font-size: 0.9em;
    color: #333;
}

.bgm-search-item:last-child {
    border-bottom: none;
}

.bgm-search-item:hover {
    background-color: #f0f0f0;
}

/* Ensure the container of the input is relative for positioning the dropdown */
.bgm-create-match-container p {
    position: relative;
}

/* Games Catalog Styles */
.bgm-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.bgm-game-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bgm-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.bgm-game-card a {
    text-decoration: none;
    color: inherit;
}

.bgm-game-thumbnail img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.bgm-game-card-content {
    padding: 15px;
}

.bgm-game-card-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
}

.bgm-game-meta {
    margin-bottom: 10px;
}

.bgm-game-category {
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    color: #666;
}

.bgm-game-info-mini {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    color: #555;
}

/* Game Details & Video */
.bgm-game-details-header {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #0073aa;
}

.bgm-game-details-header p {
    margin: 5px 0;
}

.bgm-video-container {
    margin: 20px 0;
}

.bgm-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.bgm-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Distance Badge */
.bgm-distance-badge {
    display: inline-block;
    background-color: #f0f0f0;
    color: #555;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: bold;
    margin-bottom: 10px;
    border: 1px solid #ddd;
}

/* Tournaments Styles */
.board-game-tournaments-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.bgm-tournament-item {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.bgm-tournament-meta p {
    margin: 8px 0;
    font-size: 0.95em;
}

.bgm-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    text-transform: uppercase;
}

.bgm-status-pending { background: #e3f2fd; color: #1976d2; }
.bgm-status-ongoing { background: #fff3e0; color: #f57c00; }
.bgm-status-completed { background: #e8f5e9; color: #388e3c; }

.bgm-tournament-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.bgm-button {
    padding: 10px 20px;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.bgm-view-details { background: #0073aa; color: #fff; }
.bgm-view-details:hover { background: #005177; color: #fff; }

.bgm-generate-btn {
    background-color: #f57c00;
    color: #fff;
    margin-top: 10px;
    width: 100%;
}

.bgm-generate-btn:hover {
    background-color: #e65100;
}

.bgm-join-tournament { background: #28a745; color: #fff; }
.bgm-join-tournament:hover { background: #218838; }

.bgm-leave-tournament { background: #6c757d; color: #fff; }
.bgm-leave-tournament:hover { background: #5a6268; }

/* Bracket Styles */
.bgm-tournament-bracket-container {
    margin-top: 30px;
    padding: 20px;
    background: #f7f8fa;
    border-radius: 15px;
    border: 1px solid #e1e4e8;
    overflow-x: auto;
}

.bgm-bracket {
    display: flex;
    gap: 50px; /* Increased gap for connectors */
    padding: 20px;
    min-width: max-content;
}

.bgm-bracket-round {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 30px; /* Increased gap for connectors */
    flex-shrink: 0;
}

.bgm-bracket-round h4 {
    text-align: center;
    color: #586069;
    margin-bottom: 20px;
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.bgm-bracket-match {
    background: #fff;
    border: 1px solid #d1d5da;
    border-radius: 8px;
    padding: 15px;
    min-width: 220px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.07);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Connectors */
.bgm-bracket-match::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -25px;
    width: 25px;
    height: 2px;
    background: #c8c8c8;
}

.bgm-bracket-round:last-child .bgm-bracket-match::after {
    display: none; /* No connector on final match */
}

.bgm-bracket-match::before {
    content: '';
    position: absolute;
    top: 0;
    left: -25px;
    width: 25px;
    height: 100%;
    border-top: 2px solid #c8c8c8;
    border-bottom: 2px solid #c8c8c8;
}

.bgm-bracket-match:nth-child(odd)::before {
    border-right: 2px solid #c8c8c8;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    transform: translateY(calc(50% + 15px)); /* Adjust based on gap */
}

.bgm-bracket-match:nth-child(even)::before {
    border-right: 2px solid #c8c8c8;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    transform: translateY(calc(-50% - 15px)); /* Adjust based on gap */
}

.bgm-bracket-round:first-child .bgm-bracket-match::before {
    display: none; /* No incoming connectors on first round */
}

.bgm-player-slot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-radius: 6px;
    background: #f6f8fa;
    margin: 4px 0;
    font-size: 1em;
    color: #24292e;
    font-weight: 500;
}

.bgm-player-slot.bgm-winner {
    background: #e6ffed;
    color: #22863a;
    font-weight: 700;
    border: 1px solid #a9d6b4;
}

.bgm-score {
    font-weight: 700;
    font-size: 1.1em;
    color: #0366d6;
}

.bgm-player-slot.bgm-winner .bgm-score {
    color: #22863a;
}

.bgm-vs {
    display: none; /* Replaced by score inputs */
}

.bgm-admin-advance {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
    border-top: 1px dashed #e1e4e8;
    padding-top: 10px;
}

.bgm-score-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #d1d5da;
    border-radius: 5px;
    text-align: center;
    font-size: 0.9em;
}

.bgm-advance-btn {
    grid-column: 1 / -1; /* Span both columns */
    font-size: 0.9em;
    padding: 8px;
    cursor: pointer;
    background: #28a745;
    color: #fff;
    border: 1px solid #249a3e;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.2s ease-in-out;
}

.bgm-advance-btn:hover {
    background: #218838;
}

.bgm-create-tournament-container {
    max-width: 700px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Tournament Management Section */
.bgm-tournament-control-section {
    background: #fff;
    border: 2px solid #f57c00;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.bgm-tournament-control-section h3 {
    margin-top: 0;
    color: #e65100;
    border-bottom: 1px solid #ffe0b2;
    padding-bottom: 10px;
}

.bgm-pending-match-item {
    background: #fff9f0;
    border: 1px solid #ffe0b2;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.bgm-pending-match-item span {
    font-size: 1.1em;
    color: #333;
}

.bgm-pending-matches-list .bgm-admin-advance {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
    min-width: 250px;
}

/* Winner Display Section */
.bgm-tournament-winner-display {
    text-align: center;
    background: #fff;
    border: 3px solid #ffd700; /* Gold */
    border-radius: 20px;
    padding: 40px 20px;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
    animation: bgm-winner-fade-in 0.8s ease-out;
}

.bgm-winner-trophy {
    font-size: 80px;
    margin-bottom: 10px;
    animation: bgm-trophy-bounce 2s infinite ease-in-out;
}

.bgm-tournament-winner-display h2 {
    color: #e65100;
    font-size: 2.5em;
    margin: 10px 0;
    font-weight: 900;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.bgm-winner-photo {
    margin: 20px auto;
}

.bgm-winner-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid #ffd700;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    object-fit: cover;
}

.bgm-tournament-winner-display h3 {
    font-size: 1.8em;
    color: #333;
    margin-top: 15px;
    font-weight: 700;
}

@keyframes bgm-winner-fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bgm-trophy-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Ticket Store Styles */
.bgm-ticket-store-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.bgm-ticket-balance-card {
    background: #2d3748;
    color: #fff;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.bgm-balance-number {
    font-size: 2.5em;
    font-weight: 900;
    margin-top: 10px;
}

.bgm-store-title {
    text-align: center;
    font-size: 2em;
    font-weight: 900;
    margin-bottom: 5px;
}

.bgm-store-subtitle {
    text-align: center;
    color: #718096;
    margin-bottom: 40px;
}

.bgm-ticket-packs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.bgm-pack-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
}

.bgm-pack-card:hover {
    transform: translateY(-5px);
    border-color: #3182ce;
}

.bgm-pack-card h3 {
    margin-top: 0;
    color: #4a5568;
}

.bgm-pack-amount {
    font-size: 2em;
    font-weight: 900;
    color: #2d3748;
    margin: 15px 0;
}

.bgm-pack-price {
    font-size: 1.2em;
    color: #38a169;
    font-weight: 700;
    margin-bottom: 25px;
}

.bgm-buy-button {
    background: #3182ce;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.bgm-buy-button:hover {
    background: #2b6cb0;
}

.bgm-pack-popular {
    border-color: #f6ad55;
    box-shadow: 0 10px 25px rgba(246, 173, 85, 0.1);
}

.bgm-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #f6ad55;
    color: #fff;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 900;
    text-transform: uppercase;
}

/* User Dashboard Styles */
.bgm-dashboard-container {
    max-width: 1000px;
    margin: 40px auto;
}

.bgm-dashboard-header {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.bgm-dashboard-stats {
    display: flex;
    gap: 20px;
}

.bgm-stat-box {
    background: #f7fafc;
    padding: 15px 25px;
    border-radius: 10px;
    text-align: center;
}

.bgm-stat-box span {
    display: block;
    font-size: 0.85em;
    color: #718096;
    margin-bottom: 5px;
}

.bgm-stat-box strong {
    font-size: 1.5em;
    color: #2d3748;
}

.bgm-dashboard-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.bgm-dashboard-section {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.bgm-history-list {
    margin-top: 20px;
}

.bgm-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #edf2f7;
}

.bgm-history-item:last-child {
    border-bottom: none;
}

.bgm-history-info strong {
    display: block;
    color: #2d3748;
}

.bgm-history-info span {
    font-size: 0.85em;
    color: #a0aec0;
}

.bgm-btn-small {
    background: #edf2f7;
    color: #4a5568;
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: 600;
}

.bgm-badge-status-pending { color: #3182ce; font-weight: bold; }
.bgm-badge-status-ongoing { color: #f6ad55; font-weight: bold; }
.bgm-badge-status-completed { color: #38a169; font-weight: bold; }

/* Juez Button Style */
.bgm-juez-btn {
    background-color: #4a5568;
    color: #fff;
    margin-top: 10px;
}

.bgm-juez-btn:hover {
    background-color: #2d3748;
}

/* Almost Full Section Styles (Matches image provided by user) */
.bgm-almost-full-section {
    margin: 50px 0;
    font-family: 'Arial Black', Gadget, sans-serif; /* Fallback to a strong font */
}

.bgm-almost-full-title {
    font-size: 2.2em;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    color: #1a202c;
    letter-spacing: -1px;
    margin-bottom: 10px;
    /* Simulate the speed lines style from the image */
    background: linear-gradient(to bottom, #1a202c 0%, #1a202c 20%, transparent 20%, transparent 40%, #1a202c 40%, #1a202c 60%, transparent 60%, transparent 80%, #1a202c 80%, #1a202c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.bgm-almost-full-desc {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #4a5568;
    line-height: 1.6;
    max-width: 900px;
    margin-bottom: 30px;
}

.bgm-almost-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.bgm-almost-full-item h3 {
    font-size: 1.4em;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    color: #1a202c;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.bgm-almost-full-item h3 a {
    text-decoration: none;
    color: inherit;
    /* Speed lines for sub-titles too */
    background: linear-gradient(to bottom, #1a202c 0%, #1a202c 25%, transparent 25%, transparent 50%, #1a202c 50%, #1a202c 75%, transparent 75%, transparent 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bgm-almost-full-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    font-family: 'Segoe UI', sans-serif;
    color: #2d3748;
}

.bgm-almost-full-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
}

.bgm-almost-full-item p {
    font-family: 'Segoe UI', sans-serif;
    color: #718096;
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 15px;
}

.bgm-almost-full-badge {
    display: inline-block;
    background: #fed7d7;
    color: #c53030;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8em;
    text-transform: uppercase;
}

/* Ranking Styles */
.bgm-ranking-container {
    max-width: 1000px;
    margin: 40px auto;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.bgm-ranking-title {
    text-align: center;
    color: #1a202c;
    font-size: 2em;
    font-weight: 900;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bgm-ranking-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.bgm-ranking-table th {
    background: #f7fafc;
    padding: 15px;
    text-align: left;
    color: #4a5568;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85em;
    border-bottom: 2px solid #e2e8f0;
}

.bgm-ranking-table td {
    padding: 15px;
    border-bottom: 1px solid #edf2f7;
    vertical-align: middle;
}

.bgm-rank-pos {
    font-weight: 900;
    font-size: 1.2em;
    color: #718096;
    width: 60px;
    text-align: center;
}

.bgm-rank-player a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #2d3748;
    font-weight: 600;
    transition: transform 0.2s;
}

.bgm-rank-player a:hover {
    transform: translateX(5px);
}

.bgm-rank-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    object-fit: cover;
}

.bgm-rank-pts {
    font-weight: 900;
    color: #3182ce;
    font-size: 1.1em;
}

.bgm-rank-wins {
    color: #38a169;
    font-weight: 600;
}

.bgm-rank-losses {
    color: #e53e3e;
    font-weight: 600;
}

/* Highlight top 3 */
.bgm-rank-row-1 { background: linear-gradient(to right, #fffdf0, #fff); }
.bgm-rank-row-1 .bgm-rank-pos { font-size: 1.8em; }
.bgm-rank-row-1 .bgm-rank-name { color: #b7791f; font-size: 1.1em; }

.bgm-rank-row-2 { background: linear-gradient(to right, #f7fafc, #fff); }
.bgm-rank-row-3 { background: linear-gradient(to right, #fffaf0, #fff); }

@media (max-width: 600px) {
    .bgm-ranking-table th:nth-child(4),
    .bgm-ranking-table td:nth-child(4),
    .bgm-ranking-table th:nth-child(5),
    .bgm-ranking-table td:nth-child(5) {
        display: none;
    }
}
