/* ==========================================================================
   BROADCAST TV PLAYER CARD - UEFA CHAMPIONS LEAGUE / EA FC GRAPHIC STYLE
   Tampilan Khusus Hasil Scan QR Code Kartu Peserta
   ========================================================================== */

.broadcast-page {
    min-height: 100vh;
    background: radial-gradient(circle at 50% 10%, rgba(217, 4, 41, 0.4), transparent 50%),
                radial-gradient(circle at 10% 90%, rgba(245, 158, 11, 0.2), transparent 40%),
                #07080B;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Mengalir ke bawah secara alami tanpa terpotong */
    padding: 20px 15px 80px 15px;
    font-family: 'Outfit', sans-serif;
    color: #FFF;
    overflow-y: auto;
}

/* Header Top Branding */
.broadcast-header {
    text-align: center;
    margin-bottom: 16px;
    animation: fadeInDown 0.6s ease;
}

.broadcast-header img {
    height: 48px;
    filter: drop-shadow(0 4px 12px rgba(245, 158, 11, 0.5));
}

.broadcast-league-tag {
    display: inline-block;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #FCD34D;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 30px;
    margin-top: 6px;
}

/* ================= THE BROADCAST CARD ================= */
.broadcast-card {
    width: 100%;
    max-width: 460px;
    background: linear-gradient(165deg, #1C1F2E 0%, #0E1017 60%, #150508 100%);
    border: 2px solid rgba(245, 158, 11, 0.4);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8),
                0 0 35px rgba(217, 4, 41, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    animation: zoomInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hologram Shimmer Ribbon */
.broadcast-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 60%
    );
    animation: shimmer 6s infinite linear;
    pointer-events: none;
    z-index: 15;
}

/* Top Banner with TV Broadcast Badge */
.card-broadcast-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: rgba(11, 12, 16, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 10;
}

.live-match-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #EF4444;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #EF4444;
    border-radius: 50%;
    box-shadow: 0 0 10px #EF4444;
    animation: pulse 1.5s infinite;
}

.official-verified-seal {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.3));
    border: 1px solid #10B981;
    color: #34D399;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ================= PLAYER STAGE / HERO VISUAL ================= */
.player-visual-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Rasio 1:1 Presisi */
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 30%, rgba(245, 158, 11, 0.22), transparent 70%),
                linear-gradient(180deg, transparent 60%, #0E1017 100%);
    overflow: hidden;
}

/* Giant Backdrop Jersey Number */
.giant-backdrop-number {
    position: absolute;
    top: 10px;
    right: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 9.5rem;
    font-weight: 900;
    line-height: 0.8;
    color: rgba(255, 255, 255, 0.05);
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

/* Player Cutout Photo */
.player-cutout-img {
    height: 100%;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.7));
}

/* Corner Floating Badges */
.stage-floating-badges {
    position: absolute;
    bottom: 14px;
    left: 16px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pos-pill {
    padding: 4px 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 900;
    border-radius: 6px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.pos-FW { background: #EF233C; color: #FFF; }
.pos-MF { background: #0EA5E9; color: #FFF; }
.pos-DF { background: #10B981; color: #FFF; }
.pos-GK { background: #F59E0B; color: #000; }

.jersey-pill {
    background: rgba(11, 12, 16, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFF;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 5px;
    text-align: center;
}

/* ================= PLAYER IDENTITY & DETAILS ================= */
.player-details-body {
    padding: 18px 20px;
    position: relative;
    z-index: 10;
}

/* Nama Pemain (1 Baris Saja) */
.player-name-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.player-main-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem; /* Ukuran pas agar 1 baris */
    font-weight: 900;
    color: #FFF;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    flex: 1;
}

.player-nickname-pill {
    font-size: 0.8rem;
    color: #FCD34D;
    font-weight: 800;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.player-club-affiliation {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.player-club-affiliation img {
    height: 28px;
    width: 28px;
    object-fit: contain;
}

.player-club-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #FCD34D;
}

.player-category-pill {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 7px;
    border-radius: 4px;
    color: #94A3B8;
    font-weight: 600;
}

/* TV Broadcast Attribute Grid */
.broadcast-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 6px;
    text-align: center;
}

.stat-box-label {
    font-size: 0.65rem;
    color: #94A3B8;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.stat-box-val {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #FFF;
}

.stat-box-val span {
    font-size: 0.68rem;
    font-weight: 400;
    color: #94A3B8;
}

/* Secondary Meta List - Pastikan Tampil Penuh & Jelas */
.player-meta-table {
    width: 100%;
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.player-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.player-meta-row:last-child {
    border-bottom: none;
}

.meta-lbl {
    color: #94A3B8;
    font-size: 0.82rem;
}

.meta-val {
    font-weight: 700;
    color: #F8FAFC;
    font-size: 0.85rem;
    text-align: right;
}

.meta-val.text-gold {
    color: #F59E0B !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

/* Actions */
.card-footer-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.btn-card-action {
    flex: 1;
    padding: 10px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Animations */
@keyframes shimmer {
    0% { transform: translate(-30%, -30%) rotate(0deg); }
    100% { transform: translate(30%, 30%) rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes zoomInUp {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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