/**
 * AFL Stats System - WordPress Frontend Styles
 */

/* Container & Wrapper */
.afl-stats-wrapper {
    margin: 25px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #222;
}

/* Match Stats Table */
.afl-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.afl-stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
    margin: 0;
}

.afl-stats-table th {
    background-color: #0b2240;
    color: #ffffff;
    font-weight: 600;
    padding: 12px 14px;
    border-bottom: 2px solid #061528;
    white-space: nowrap;
}

.afl-stats-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

.afl-stats-table tr:nth-child(even) {
    background-color: #f9fbfd;
}

.afl-stats-table tr:hover {
    background-color: #f0f4f9;
}

.afl-jumper-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: #1a202c;
    font-weight: bold;
    font-size: 12px;
}

/* Fixtures Cards */
.afl-fixtures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 15px;
}

.afl-fixture-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.afl-fixture-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.afl-fixture-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #718096;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.afl-fixture-status {
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
}

.afl-status-live {
    background-color: #fed7d7;
    color: #c53030;
    animation: aflPulse 2s infinite;
}

.afl-status-concluded {
    background-color: #c6f6d5;
    color: #22543d;
}

.afl-status-scheduled {
    background-color: #edf2f7;
    color: #4a5568;
}

.afl-teams-matchup {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.afl-team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
}

.afl-team-score {
    font-size: 18px;
    font-weight: 700;
    color: #0b2240;
}

.afl-fixture-footer {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #edf2f7;
    font-size: 12px;
    color: #718096;
}

/* Squad Roster Grid */
.afl-roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 15px;
}

.afl-player-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.afl-player-card .afl-jumper-badge {
    width: 36px;
    height: 36px;
    font-size: 14px;
    background: #0b2240;
    color: #fff;
    flex-shrink: 0;
}

.afl-player-info h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1a202c;
}

.afl-player-info p {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: #718096;
}

@keyframes aflPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Match Score Card */
.afl-score-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-top: 15px;
}

.afl-score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0b2240;
    color: #ffffff;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
}

.afl-score-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.afl-score-round {
    background: #1e3a8a;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.afl-scoreboard-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    gap: 15px;
}

.afl-scoreboard-team {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 14px 18px;
    transition: box-shadow 0.2s;
}

.afl-scoreboard-team.is-winner {
    border-color: #0284c7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.afl-team-identity {
    display: flex;
    flex-direction: column;
}

.afl-team-name {
    font-size: 17px;
    font-weight: 700;
    color: #0b2240;
    margin-bottom: 2px;
}

.afl-scoreboard-team.is-winner .afl-team-name::after {
    content: " 🏆";
    font-size: 14px;
}

.afl-team-gb {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.afl-team-pts {
    font-size: 28px;
    font-weight: 800;
    color: #0b2240;
    line-height: 1;
    margin-left: 10px;
}

.afl-score-divider {
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    padding: 0 5px;
}

/* Match Highlights (Goals & Disposals) */
.afl-score-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 18px 22px;
    background: #ffffff;
}

@media (max-width: 680px) {
    .afl-scoreboard-grid {
        flex-direction: column;
        padding: 14px;
    }
    .afl-score-divider {
        display: none;
    }
    .afl-scoreboard-team {
        width: 100%;
        box-sizing: border-box;
    }
    .afl-score-details-grid {
        grid-template-columns: 1fr;
    }
}

.afl-score-team-details {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 14px;
}

.afl-details-team-title {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 700;
    color: #0b2240;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 6px;
}

.afl-detail-section {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.45;
}

.afl-detail-section:last-child {
    margin-bottom: 0;
}

.afl-detail-label {
    font-weight: 700;
    color: #334155;
    margin-right: 6px;
}

.afl-detail-content {
    color: #475569;
}

/* Player Avatar, Photos & Nicknames in Squad Roster */
.afl-player-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
}

.afl-player-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #cbd5e1;
    background: #f1f5f9;
    display: block;
}

.afl-jumper-badge-small {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #0b2240;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 10px;
    padding: 1px 5px;
    border: 1.5px solid #ffffff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    line-height: 1.3;
}

.afl-player-nicknames {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.afl-nickname-chip {
    display: inline-block;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 500;
    padding: 1px 6px;
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    border-radius: 12px;
}

/* Player Profile Card & Stats Container */
.afl-player-stats-container {
    margin: 25px 0;
}

.afl-player-profile-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.afl-player-profile-header {
    display: flex;
    align-items: center;
    gap: 18px;
}

.afl-player-profile-photo-wrap {
    position: relative;
    flex-shrink: 0;
}

.afl-player-profile-photo-large {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0b2240;
    background: #f8fafc;
    display: block;
}

.afl-jumper-badge-large {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #0b2240;
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.afl-player-profile-meta {
    flex: 1;
}

.afl-player-profile-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.afl-jumper-pill {
    background: #0b2240;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.afl-player-profile-name {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.afl-player-profile-sub {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #64748b;
}

.afl-club-tag {
    font-weight: 600;
    text-transform: capitalize;
    color: #334155;
}
.afl-club-tag-link {
    color: #0284c7 !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
}
.afl-club-tag-link:hover {
    color: #0369a1 !important;
    text-decoration: underline !important;
}

/* Player Bio inside Header Card */
.afl-player-card-bio {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}
.afl-player-card-bio-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 8px;
}
.afl-player-card-bio-content {
    font-size: 14.5px;
    line-height: 1.65;
    color: #334155;
}
.afl-player-card-bio-content p {
    margin: 0 0 10px 0;
}
.afl-player-card-bio-content p:last-child {
    margin-bottom: 0;
}

/* Match Game Log & Results */
.afl-result-w {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 11px;
    background-color: #c6f6d5;
    color: #22543d;
}

.afl-result-l {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 11px;
    background-color: #fed7d7;
    color: #9b2c2c;
}

.afl-result-d {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 11px;
    background-color: #edf2f7;
    color: #4a5568;
}

@media (max-width: 600px) {
    .afl-player-profile-header {
        flex-direction: column;
        text-align: center;
    }
    .afl-player-profile-top {
        justify-content: center;
    }
    .afl-player-nicknames {
        justify-content: center;
    }
}

/* Official AFL Profile Button */
.afl-official-site-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0b2240;
    color: #ffffff !important;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.15s ease;
}
.afl-official-site-btn:hover {
    background: #1e3a8a;
    transform: translateY(-1px);
    color: #ffffff !important;
}

/* Roster Grouping & Linkable Cards */
.afl-roster-group {
    margin-bottom: 28px;
}
.afl-roster-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e2e8f0;
}
.afl-roster-group-title {
    margin: 0;
    font-size: 18px;
    color: #0b2240;
    font-weight: 700;
}
.afl-roster-group-count {
    background: #e2e8f0;
    color: #475569;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}
.afl-player-card-linkable {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.afl-player-card-linkable:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}
.afl-player-name-link {
    color: #0b2240 !important;
    text-decoration: none !important;
    font-weight: 700;
}
.afl-player-name-link:hover {
    color: #0284c7 !important;
}
.afl-player-avatar-link {
    display: block;
    text-decoration: none;
}
.afl-profile-link-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #0284c7 !important;
    background: #e0f2fe;
    padding: 3px 9px;
    border-radius: 12px;
    text-decoration: none !important;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.afl-profile-link-badge:hover {
    background: #bae6fd;
    color: #0369a1 !important;
}
.afl-official-bio-sublink {
    font-size: 11px;
    color: #64748b !important;
    text-decoration: none !important;
}
.afl-official-bio-sublink:hover {
    color: #0f172a !important;
    text-decoration: underline !important;
}

/* Photo Gallery Grid */
.afl-gallery-wrapper {
    margin: 30px 0;
}
.afl-gallery-header-title {
    margin: 0 0 16px 0;
    color: #0b2240;
    font-size: 20px;
    font-weight: 700;
}
.afl-gallery-grid {
    display: grid;
    gap: 16px;
}
.afl-gallery-cols-1 { grid-template-columns: 1fr; }
.afl-gallery-cols-2 { grid-template-columns: repeat(2, 1fr); }
.afl-gallery-cols-3 { grid-template-columns: repeat(3, 1fr); }
.afl-gallery-cols-4 { grid-template-columns: repeat(4, 1fr); }
.afl-gallery-cols-5 { grid-template-columns: repeat(5, 1fr); }
.afl-gallery-cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 900px) {
    .afl-gallery-cols-3, .afl-gallery-cols-4, .afl-gallery-cols-5, .afl-gallery-cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 540px) {
    .afl-gallery-grid {
        grid-template-columns: 1fr !important;
    }
}

.afl-gallery-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.afl-gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}
.afl-gallery-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f1f5f9;
}
.afl-gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.afl-gallery-thumb-wrap:hover .afl-gallery-thumb {
    transform: scale(1.04);
}
.afl-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 34, 64, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.afl-gallery-thumb-wrap:hover .afl-gallery-overlay {
    opacity: 1;
}
.afl-gallery-zoom-icon {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}
.afl-gallery-caption {
    padding: 10px 12px;
    font-size: 13px;
    color: #475569;
    border-top: 1px solid #f1f5f9;
    background: #fff;
    line-height: 1.4;
}

/* Lightbox Modal */
.afl-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 26, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 999999;
    padding: 20px;
    box-sizing: border-box;
}
.afl-lightbox-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}
.afl-lightbox-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.afl-lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    color: #ffffff;
    font-size: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 4px 10px;
    transition: color 0.15s ease;
}
.afl-lightbox-close:hover {
    color: #38bdf8;
}
.afl-lightbox-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 85vh;
}
.afl-lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}
.afl-lightbox-caption {
    margin-top: 12px;
    color: #e2e8f0;
    font-size: 14px;
    text-align: center;
    max-width: 600px;
    line-height: 1.5;
}

/* Recent Stories / Posts Grid */
.afl-posts-wrapper {
    margin: 30px 0;
}
.afl-posts-header-title {
    margin: 0 0 16px 0;
    color: #0b2240;
    font-size: 20px;
    font-weight: 700;
}
.afl-posts-grid {
    display: grid;
    gap: 20px;
}
.afl-posts-cols-1 { grid-template-columns: 1fr; }
.afl-posts-cols-2 { grid-template-columns: repeat(2, 1fr); }
.afl-posts-cols-3 { grid-template-columns: repeat(3, 1fr); }
.afl-posts-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 800px) {
    .afl-posts-cols-2, .afl-posts-cols-3, .afl-posts-cols-4 {
        grid-template-columns: 1fr !important;
    }
}

.afl-post-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.afl-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}
.afl-post-thumb-link {
    display: block;
    text-decoration: none;
}
.afl-post-thumb {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #0b2240;
    position: relative;
}
.afl-post-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(11, 34, 64, 0.88);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.afl-post-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.afl-post-date-inline {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
    font-weight: 500;
}
.afl-post-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    line-height: 1.4;
}
.afl-post-title a {
    color: #0b2240 !important;
    text-decoration: none !important;
    font-weight: 700;
}
.afl-post-title a:hover {
    color: #0284c7 !important;
}
.afl-post-excerpt {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 14px 0;
    flex-grow: 1;
}
.afl-post-footer {
    margin-top: auto;
}
.afl-post-read-more {
    font-size: 13px;
    font-weight: 600;
    color: #0284c7 !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.afl-post-read-more:hover {
    color: #0369a1 !important;
    text-decoration: underline !important;
}

/* Post List Layout */
.afl-posts-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.afl-posts-list .afl-post-card {
    flex-direction: row;
}
@media (max-width: 600px) {
    .afl-posts-list .afl-post-card {
        flex-direction: column;
    }
}
.afl-posts-list .afl-post-thumb {
    width: 220px;
    height: 100%;
    min-height: 140px;
}
@media (max-width: 600px) {
    .afl-posts-list .afl-post-thumb {
        width: 100%;
        height: 160px;
    }
}

/* Player Profile Hub & Navigation */
html {
    scroll-behavior: smooth;
}

.afl-player-profile-hub {
    position: relative;
    scroll-margin-top: 24px;
}

.afl-player-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding: 10px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.afl-back-team-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #0284c7 !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.afl-back-team-link:hover {
    color: #0369a1 !important;
    text-decoration: underline !important;
}

.afl-player-section-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.afl-section-nav-title {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-right: 4px;
}

.afl-section-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #1e293b !important;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    text-decoration: none !important;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.afl-section-nav-pill:hover {
    background: #0b2240;
    color: #ffffff !important;
    border-color: #0b2240;
    transform: translateY(-1px);
}

.afl-player-section-wrap {
    scroll-margin-top: 30px;
    position: relative;
}

.afl-section-footer-nav {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
    margin-bottom: 24px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

.afl-back-to-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b !important;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.afl-back-to-top-btn:hover {
    color: #0b2240 !important;
    background: #e2e8f0;
    border-color: #cbd5e1;
}

@media (max-width: 640px) {
    .afl-player-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
