@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --bg-main: #06040a;
    --bg-card: rgba(12, 14, 18, 0.82);
    --bg-card-hover: rgba(18, 22, 28, 0.92);
    --border-color: rgba(239, 68, 68, 0.28);
    --border-hover: rgba(239, 68, 68, 0.58);
    
    --primary: #ef4444;
    --primary-glow: rgba(239, 68, 68, 0.35);
    --secondary: #991b1b;
    --secondary-glow: rgba(153, 27, 27, 0.35);
    --accent: #10b981;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;
    
    --gold: #ef4444;
    --silver: #9ca3af;
    --bronze: #7f1d1d;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-main);
    background-image: linear-gradient(rgba(6, 4, 10, 0.88), rgba(6, 4, 10, 0.94)), url('warzone_background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    padding: 1.5rem;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('wzcamp_icon.png?v=2');
    background-size: 35%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
    z-index: -1;
    pointer-events: none;
    filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.2));
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.4rem;
    margin-bottom: 1.2rem;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    background: #0d0e12;
    border: 1.5px solid var(--primary);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--primary-glow);
    overflow: hidden;
    padding: 0;
    flex-shrink: 0;
}

.brand-logo svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.brand-text h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.15;
}

.brand-text p {
    font-size: 0.7rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.actions-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: #fff;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--secondary), #0891b2);
    color: #fff;
    box-shadow: 0 4px 14px var(--secondary-glow);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.6);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: var(--danger);
    color: #fff;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    border-radius: 6px;
}

/* Layout Grid */
.app-container {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .app-container {
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Panel Styles */
.panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
    height: 100%;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.panel-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-title svg {
    width: 20px;
    height: 20px;
    fill: var(--primary);
}

/* Tabs System */
.tabs {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 0.6rem 0.5rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-muted);
}

.tab.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 10px var(--primary-glow);
}

.tab:not(.active):hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

/* Table / Leaderboard Styling */
.desktop-text {
    display: inline;
}
.mobile-text {
    display: none;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    padding: 0.85rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

td {
    padding: 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.leaderboard-row {
    transition: all var(--transition-fast);
}

.leaderboard-row:hover {
    transform: scale(1.005);
}

.rank-cell {
    width: 60px;
    font-weight: 800;
    font-size: 1rem;
    text-align: center;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 800;
}

.rank-1 .rank-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.rank-2 .rank-badge {
    background: linear-gradient(135deg, #9ca3af, #4b5563);
    color: #fff;
    box-shadow: 0 0 10px rgba(156, 163, 175, 0.4);
}

.rank-3 .rank-badge {
    background: linear-gradient(135deg, #b45309, #78350f);
    color: #fff;
    box-shadow: 0 0 10px rgba(180, 83, 9, 0.4);
}

.clan-cell {
    font-weight: 700;
}

.clan-name {
    font-size: 0.95rem;
    color: var(--text-main);
}

.clan-players {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 2px;
    font-weight: 400;
}

.number-cell {
    font-weight: 600;
    text-align: center;
}

.score-cell {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--secondary);
}

/* Forms and Inputs */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

select.form-control option {
    background-color: var(--bg-card);
    color: var(--text-main);
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    color: #fff;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    box-sizing: border-box;
    min-height: 42px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    background: rgba(255, 255, 255, 0.08);
}

/* Score Input Row */
.input-row-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all var(--transition-fast);
}

.input-row-card:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.03);
}

.input-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.input-row-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
}

.input-pos-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-pos-wrapper label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dim);
}

.pos-input {
    width: 60px;
    text-align: center;
    font-weight: 700;
}

.players-grid-input {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (max-width: 600px) {
    .players-grid-input {
        grid-template-columns: 1fr;
    }
}

.player-input-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.player-name-label {
    flex: 1;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kill-input {
    width: 55px;
    text-align: center;
    font-weight: 600;
    padding: 0.3rem;
}

/* Modals / Settings Panels */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-container {
    background: #0f0b1a;
    border: 1px solid var(--border-hover);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #fff;
}

/* Points Config Table in Settings */
.settings-points-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
    .settings-points-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.point-config-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.point-config-box span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.point-config-box input {
    width: 50px;
    text-align: center;
    font-weight: 700;
    padding: 0.25rem;
    background: rgba(0, 0, 0, 0.3);
}

/* Manage Teams Form elements */
.manage-teams-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
}

.manage-team-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    font-size: 0.85rem;
}

.manage-team-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Search bar styling */
.search-container {
    position: relative;
    margin-bottom: 1rem;
}

.search-input {
    padding-left: 2.2rem;
}

.search-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    fill: var(--text-dim);
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-dim);
}

.empty-state svg {
    width: 48px;
    height: 48px;
    fill: var(--border-color);
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.25);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.45);
}

/* Footer & Stats */
.summary-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}

@media (max-width: 1024px) {
    .summary-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .summary-stats {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 4px !important;
        margin-bottom: 0.6rem !important;
    }
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 0.75rem 0.5rem;
    text-align: center;
    min-width: 0;
    transition: all var(--transition-fast);
}

.stat-card:hover {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.stat-label {
    font-size: 0.68rem;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
}

.stat-value.highlight {
    color: var(--secondary);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

/* ── Admin Button ── */
.btn-admin-lock {
    background: linear-gradient(135deg, rgba(239,68,68,0.15), rgba(185,28,28,0.15));
    border: 1px solid rgba(239,68,68,0.4);
    color: #fca5a5;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}
.btn-admin-lock:hover {
    background: linear-gradient(135deg, rgba(239,68,68,0.3), rgba(185,28,28,0.3));
    border-color: rgba(239,68,68,0.7);
    color: #fff;
    box-shadow: 0 0 16px rgba(239,68,68,0.3);
}

/* ── Input team cards ── */
.input-team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}
.input-team-card:hover { border-color: var(--border-hover); }

.input-team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    gap: 12px;
}
.input-team-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
}
.input-players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}
.player-kill-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 6px 10px;
}
.player-kill-name {
    flex: 1;
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.player-kill-row input {
    width: 60px;
    text-align: center;
    padding: 4px 6px;
    font-size: 0.9rem;
    font-weight: 700;
}

/* ── Reports Modal ── */
.report-save-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(234,179,8,0.06);
    border: 1px solid rgba(234,179,8,0.2);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    margin-top: 0.5rem;
}

.report-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-bottom: 0.8rem;
    transition: border-color 0.2s;
}
.report-card:hover { border-color: var(--border-hover); }

.report-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.report-card-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 4px;
}
.report-card-meta {
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* ── Audit log ── */
.log-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 6px;
    font-size: 0.82rem;
}
.log-entry-user {
    font-weight: 700;
    color: var(--primary);
    min-width: 90px;
}
.log-entry-action {
    color: var(--text-main);
    flex: 1;
}
.log-entry-time {
    color: var(--text-dim);
    font-size: 0.75rem;
    white-space: nowrap;
}

/* ── MVP badge ── */
.mvp-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 99px;
    letter-spacing: 0.5px;
    vertical-align: middle;
    margin-left: 6px;
}

/* ── Viewer Round Tabs ── */
.viewer-round-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.6rem 1rem;
    margin-bottom: 1rem;
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    flex-wrap: wrap;
}

.viewer-round-tabs .tab {
    padding: 6px 16px;
    font-size: 0.8rem;
}

/* ── Game Mode Selector ── */
.mode-selector {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0.6rem auto 1rem auto;
    max-width: 480px;
}

.mode-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.6rem 1.2rem;
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.mode-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-main);
    background: var(--bg-card-hover);
}

.mode-btn.active {
    border-color: var(--primary);
    color: #fff;
    background: rgba(239, 68, 68, 0.15);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.25), inset 0 0 15px rgba(239, 68, 68, 0.05);
}

.mode-icon {
    font-size: 1.2rem;
}

.mode-label {
    font-size: 0.92rem;
    letter-spacing: 0.5px;
}

/* ── Universal Viewport Reset ── */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* ── Responsive Mobile Adjustments (Tablets & Phones: <= 768px) ── */
@media (max-width: 768px) {
    body {
        padding: 0.45rem;
    }
    
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        padding: 0.65rem 0.65rem;
        margin-bottom: 0.6rem;
        border-radius: 12px;
    }
    
    .brand {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .brand-logo {
        width: 38px;
        height: 38px;
        border-radius: 9px;
    }

    .brand-logo svg {
        width: 18px;
        height: 18px;
    }
    
    .brand-text h1 {
        font-size: 1.25rem;
        line-height: 1.1;
    }

    .brand-text p {
        font-size: 0.62rem;
        letter-spacing: 1px;
    }
    
    .actions-bar {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        width: 100%;
        gap: 4px;
    }
    
    .actions-bar .btn {
        flex: 0 1 auto;
        min-width: auto;
        max-width: 100%;
        justify-content: center;
        font-size: 0.72rem;
        padding: 0.35rem 0.55rem;
        white-space: nowrap;
        border-radius: 6px;
        gap: 4px;
    }

    .actions-bar .btn svg {
        width: 12px;
        height: 12px;
    }
    
    .music-controls {
        width: auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 3px 8px;
        border-radius: 6px;
    }
    
    .music-controls input[type="range"] {
        width: 50px !important;
    }

    /* Unified Tournament Command Hub Mobile */
    .tournament-hub {
        padding: 0.65rem 0.75rem !important;
        gap: 0.6rem !important;
        border-radius: 12px !important;
        margin-bottom: 0.75rem !important;
        width: 100% !important;
    }

    .hub-broadcast-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding-bottom: 0.6rem !important;
    }

    .hub-countdown-col {
        flex-direction: column !important;
        align-items: center !important;
        gap: 6px !important;
        text-align: center !important;
        width: 100% !important;
    }

    .hub-broadcast-row .countdown-header {
        justify-content: center !important;
    }

    .hub-broadcast-row .mode-selector {
        width: 100% !important;
        display: flex !important;
    }

    .hub-broadcast-row .mode-btn {
        flex: 1 !important;
        padding: 0.45rem 0.75rem !important;
        font-size: 0.78rem !important;
    }

    .hub-telemetry-ribbon {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 5px !important;
    }

    .telemetry-card {
        padding: 0.45rem 0.45rem !important;
        gap: 6px !important;
        border-radius: 8px !important;
    }

    .telemetry-icon {
        font-size: 1.05rem !important;
    }

    .telemetry-val {
        font-size: 0.98rem !important;
    }

    .telemetry-lbl {
        font-size: 0.58rem !important;
    }

    /* Event Countdown Compact for Mobile */
    .event-countdown-container {
        padding: 0.55rem 0.75rem !important;
        margin: 0.5rem auto 0.6rem auto !important;
        border-radius: 12px !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .countdown-header {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding-bottom: 4px !important;
        gap: 4px !important;
    }

    .countdown-badge {
        font-size: 0.68rem !important;
        padding: 2px 7px !important;
        letter-spacing: 0.8px !important;
    }

    .countdown-text {
        font-size: 0.72rem !important;
    }

    .countdown-display {
        gap: 3px !important;
    }

    .countdown-segment {
        width: 36px !important;
    }

    .countdown-digits {
        font-size: 1.15rem !important;
        min-width: 32px !important;
        padding: 2px 2px !important;
        border-radius: 6px !important;
    }

    .countdown-unit {
        font-size: 0.5rem !important;
        margin-top: 1px !important;
        letter-spacing: 0.5px !important;
    }

    .countdown-divider {
        font-size: 1rem !important;
        padding-bottom: 10px !important;
    }

    .room-code-chip {
        font-size: 0.7rem !important;
        padding: 2px 6px !important;
    }

    /* Cyber Counters Compact for Mobile */
    .cyber-counters-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
        margin: 0.4rem auto 0.6rem auto !important;
        width: 100% !important;
    }

    .cyber-stat-card {
        padding: 8px 6px !important;
        border-radius: 10px !important;
    }

    .cyber-icon-container {
        margin-bottom: 2px !important;
    }

    .cyber-icon-container svg {
        width: 18px !important;
        height: 18px !important;
    }

    .cyber-stat-value {
        font-size: 1.35rem !important;
    }

    .cyber-stat-label {
        font-size: 0.62rem !important;
        letter-spacing: 0.5px !important;
        margin-top: 2px !important;
    }

    /* Scrollable Horizontal Navigation Tabs */
    .tabs {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        white-space: nowrap;
        padding: 5px 4px;
        gap: 6px;
        scrollbar-width: none;
        margin-bottom: 1rem;
    }

    .tabs::-webkit-scrollbar {
        display: none;
    }

    .tab {
        flex: 0 0 auto;
        padding: 0.5rem 0.85rem;
        font-size: 0.8rem;
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .viewer-round-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        white-space: nowrap;
        padding: 6px 8px;
        gap: 6px;
        scrollbar-width: none;
        margin-bottom: 1rem;
    }

    .viewer-round-tabs::-webkit-scrollbar {
        display: none;
    }

    .viewer-round-tabs .tab {
        flex: 0 0 auto;
        padding: 5px 12px;
        font-size: 0.78rem;
    }

    /* Modals Mobile Sizing & Padding */
    .modal-overlay {
        padding: 6px 4px;
        align-items: flex-start;
        overflow-y: auto;
    }

    .modal-container {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 94vh !important;
        padding: 0.9rem 0.65rem !important;
        border-radius: 12px !important;
        margin: 6px auto !important;
        box-sizing: border-box;
    }

    .modal-header {
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .modal-title {
        font-size: 1.05rem;
    }

    /* Reports Modal on Mobile */
    #reports-calendar-container {
        padding: 0.6rem 0.3rem !important;
        margin-bottom: 0.75rem !important;
        border-radius: 10px;
    }

    .reports-calendar-days {
        gap: 2px !important;
    }

    .calendar-day-btn,
    .calendar-day-placeholder {
        padding: 4px 0 !important;
        font-size: 0.72rem !important;
        min-height: 26px !important;
    }

    .report-save-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
        padding: 0.6rem !important;
    }

    .report-save-bar input {
        width: 100% !important;
    }

    .report-save-bar button {
        width: 100% !important;
        justify-content: center !important;
    }

    .report-card {
        padding: 0.75rem 0.6rem !important;
        margin-bottom: 0.6rem !important;
    }

    .report-card-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
    }

    .report-card-actions {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
        width: 100% !important;
    }

    .report-card-actions .btn {
        flex: 1 1 auto !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 0.32rem 0.5rem !important;
        font-size: 0.72rem !important;
    }

    .report-table {
        font-size: 0.74rem;
    }

    .report-table th,
    .report-table td {
        padding: 5px 6px !important;
        white-space: nowrap;
    }

    /* Tables Smooth Horizontal Touch Scrolling & Compact Mobile Layout */
    .table-responsive {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        box-sizing: border-box !important;
        border-radius: 8px;
    }

    .table-responsive table {
        width: 100% !important;
        min-width: 320px !important;
        table-layout: auto !important;
    }

    .table-responsive th,
    .table-responsive td {
        padding: 7px 3px !important;
        font-size: 0.76rem !important;
    }

    .desktop-text {
        display: none !important;
    }
    .mobile-text {
        display: inline !important;
    }

    .rank-cell {
        width: 32px !important;
        min-width: 28px !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
        text-align: center !important;
    }

    .rank-badge {
        font-size: 0.72rem !important;
        padding: 2px 4px !important;
        min-width: 22px !important;
        display: inline-block !important;
    }

    .team-cell {
        max-width: 115px !important;
        min-width: 80px !important;
        overflow: hidden !important;
    }

    .team-name {
        font-size: 0.8rem !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        display: block !important;
    }

    .captain-badge {
        display: none !important;
    }

    .player-list {
        font-size: 0.65rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        color: var(--text-dim) !important;
        margin-top: 1px !important;
        display: block !important;
    }

    .number-cell {
        text-align: center !important;
        padding: 7px 2px !important;
        font-size: 0.76rem !important;
        white-space: nowrap !important;
    }

    .pos-badge {
        padding: 1px 4px !important;
        font-size: 0.72rem !important;
    }

    .score-cell {
        text-align: right !important;
        padding-right: 6px !important;
        white-space: nowrap !important;
    }

    .score-value {
        font-size: 0.95rem !important;
        font-weight: 800 !important;
        color: var(--gold) !important;
    }

    /* Stats Grid */
    .summary-stats {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 4px !important;
        margin-bottom: 0.6rem !important;
    }

    .stat-card {
        padding: 6px 4px !important;
        border-radius: 8px !important;
        min-width: 0 !important;
    }

    .stat-card:last-child {
        grid-column: span 1 !important;
    }

    .stat-label {
        font-size: 0.62rem !important;
        margin-bottom: 2px !important;
    }

    .stat-value {
        font-size: 0.95rem !important;
    }

    #futuristic-time {
        font-size: 0.88rem !important;
    }

    #futuristic-date {
        font-size: 0.58rem !important;
    }

    .mode-selector {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 6px !important;
        margin: 0.4rem auto 0.6rem auto !important;
        width: 100% !important;
    }
    
    .mode-btn {
        flex: 1 1 auto !important;
        padding: 0.45rem 0.8rem !important;
        font-size: 0.78rem !important;
        border-radius: 10px !important;
        gap: 6px !important;
    }

    .mode-icon {
        font-size: 1.05rem !important;
    }

    .mode-label {
        font-size: 0.78rem !important;
    }
    
    .app-container {
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        gap: 0.75rem !important;
    }

    .panel {
        padding: 0.75rem 0.55rem !important;
        border-radius: 12px !important;
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        margin-bottom: 0.75rem !important;
    }

    .panel-header {
        margin-bottom: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    .panel-title {
        font-size: 1.05rem !important;
    }

    /* Hall of Fame & MVP Highlights */
    #panel-hall-of-fame {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .mvp-period-bar {
        display: flex !important;
        width: 100% !important;
        box-sizing: border-box !important;
        gap: 4px !important;
    }

    .mvp-period-btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        text-align: center !important;
        padding: 6px 2px !important;
        font-size: 0.72rem !important;
        white-space: nowrap !important;
    }

    #mvp-clans-podium {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 4px !important;
        padding: 8px 3px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .podium-item {
        min-width: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 8px 2px 10px 2px !important;
        overflow: hidden !important;
    }

    .podium-item strong {
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: 0.75rem !important;
        display: block !important;
    }

    .podium-rank {
        font-size: 0.55rem !important;
        padding: 1px 4px !important;
    }

    #mvp-players-list {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .mvp-player-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 10px !important;
        font-size: 0.76rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .mvp-player-row > div:first-child {
        min-width: 0 !important;
        flex: 1 1 auto !important;
        overflow: hidden !important;
    }

    .mvp-player-row strong {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: inline-block !important;
        max-width: 140px !important;
    }

    .mvp-player-row > div:last-child {
        flex-shrink: 0 !important;
        margin-left: 8px !important;
        font-size: 0.85rem !important;
        text-align: right !important;
    }
}

/* ── Extra Compact Smartphones (<= 480px / iPhone SE / 360-412px Android) ── */
@media (max-width: 480px) {
    body {
        padding: 0.35rem;
    }

    header {
        padding: 0.5rem 0.45rem;
        gap: 6px;
    }

    .brand-logo {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .brand-logo svg {
        width: 15px;
        height: 15px;
    }

    .brand-text h1 {
        font-size: 1.15rem;
    }

    .brand-text p {
        font-size: 0.58rem;
    }

    .actions-bar .btn {
        min-width: auto;
        font-size: 0.68rem;
        padding: 0.3rem 0.48rem;
        gap: 3px;
    }

    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 0.4rem !important;
        padding-bottom: 0.4rem !important;
    }

    .panel-title {
        font-size: 1rem;
    }

    .point-config-box {
        font-size: 0.75rem;
    }

    .settings-points-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px;
    }

    /* Unified Tournament Command Hub Ultra Compact */
    .tournament-hub {
        padding: 0.5rem 0.45rem !important;
        gap: 0.45rem !important;
        border-radius: 10px !important;
        margin-bottom: 0.6rem !important;
    }

    .hub-broadcast-row {
        gap: 6px !important;
        padding-bottom: 0.45rem !important;
    }

    .hub-countdown-col {
        gap: 4px !important;
    }

    .hub-broadcast-row .mode-btn {
        padding: 0.38rem 0.6rem !important;
        font-size: 0.74rem !important;
        border-radius: 8px !important;
    }

    .hub-telemetry-ribbon {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 4px !important;
    }

    .telemetry-card {
        padding: 0.38rem 0.32rem !important;
        gap: 5px !important;
        border-radius: 6px !important;
    }

    .telemetry-icon {
        font-size: 0.95rem !important;
    }

    .telemetry-val {
        font-size: 0.88rem !important;
    }

    .telemetry-lbl {
        font-size: 0.54rem !important;
    }

    /* Event Countdown Compact */
    .event-countdown-container {
        padding: 0.45rem 0.55rem !important;
        margin: 0.4rem auto !important;
        border-radius: 10px !important;
        gap: 4px !important;
    }

    .countdown-header {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
        text-align: left !important;
        justify-content: space-between !important;
        padding-bottom: 3px !important;
    }

    .countdown-display {
        gap: 2px !important;
    }

    .countdown-segment {
        width: 32px !important;
    }

    .countdown-digits {
        font-size: 1.05rem !important;
        min-width: 28px !important;
        border-radius: 5px !important;
        padding: 2px 2px !important;
    }

    .countdown-unit {
        font-size: 0.46rem !important;
        margin-top: 1px !important;
    }

    .countdown-divider {
        font-size: 0.92rem !important;
        padding-bottom: 8px !important;
    }

    .room-code-chip {
        font-size: 0.68rem !important;
        padding: 2px 6px !important;
    }

    /* Cyber Counters Compact */
    .cyber-counters-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 5px !important;
        margin: 0.35rem auto !important;
        width: 100% !important;
    }

    .cyber-stat-card {
        padding: 6px 4px !important;
        border-radius: 8px !important;
    }

    .cyber-stat-value {
        font-size: 1.25rem !important;
    }

    .cyber-stat-label {
        font-size: 0.58rem !important;
        letter-spacing: 0.3px !important;
        margin-top: 1px !important;
    }

    /* Summary Stats Ultra Compact */
    .summary-stats {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 3px !important;
        margin-bottom: 0.5rem !important;
    }

    .stat-card {
        padding: 5px 3px !important;
        border-radius: 6px !important;
    }

    .stat-label {
        font-size: 0.58rem !important;
        margin-bottom: 1px !important;
    }

    .stat-value {
        font-size: 0.88rem !important;
    }

    #futuristic-time {
        font-size: 0.82rem !important;
    }

    #futuristic-date {
        font-size: 0.54rem !important;
    }

    .panel {
        padding: 0.65rem 0.45rem !important;
        border-radius: 10px !important;
        margin-bottom: 0.6rem !important;
    }

    .table-responsive th,
    .table-responsive td {
        padding: 5px 2px !important;
        font-size: 0.72rem !important;
    }

    .team-cell {
        max-width: 95px !important;
        min-width: 70px !important;
    }

    .team-name {
        font-size: 0.75rem !important;
    }

    .player-list {
        font-size: 0.6rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   CYBER STATS COUNTERS
   ═══════════════════════════════════════════════════════════════ */
.cyber-counters-container {
    max-width: 1200px;
    width: 90%;
    margin: 0.8rem auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.cyber-stat-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1.5px solid rgba(245, 158, 11, 0.18);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cyber-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    animation: cyber-scan 3s linear infinite;
}

.cyber-stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.22);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.cyber-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    opacity: 0.85;
}

.cyber-icon-container svg {
    filter: drop-shadow(0 0 8px var(--gold));
}

.cyber-stat-value {
    font-family: 'Courier New', Courier, monospace;
    font-size: 2.25rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 18px var(--gold);
    letter-spacing: 1px;
    line-height: 1;
}

.cyber-stat-label {
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-top: 8px;
}

@keyframes cyber-scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@media (max-width: 580px) {
    .cyber-counters-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MURAL DE DESTAQUES (HALL OF FAME & MVP)
   ═══════════════════════════════════════════════════════════════ */
.podium-item {
    background: rgba(0, 0, 0, 0.25);
    border: 1.5px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 12px 6px 16px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.podium-item.rank-1 {
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.12);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.05) 0%, rgba(0, 0, 0, 0.35) 100%);
    transform: scale(1.04);
    z-index: 2;
}

.podium-item.rank-2 {
    border-color: rgba(192, 192, 192, 0.2);
    z-index: 1;
}

.podium-item.rank-3 {
    border-color: rgba(205, 127, 50, 0.2);
    z-index: 1;
}

.podium-rank {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.podium-rank.rank-1 { background: var(--gold); color: #000; box-shadow: 0 0 8px rgba(245, 158, 11, 0.3); }
.podium-rank.rank-2 { background: #c0c0c0; color: #000; }
.podium-rank.rank-3 { background: #cd7f32; color: #000; }

.mvp-player-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    font-size: 0.8rem;
    transition: all 0.2s ease-in-out;
}

.mvp-player-row:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(245, 158, 11, 0.25);
    transform: translateX(4px);
}

.mvp-player-rank {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
}

.mvp-player-rank.top-1 { background: var(--gold); color: #000; box-shadow: 0 0 8px rgba(245,158,11,0.2); }
.mvp-player-rank.top-2 { background: #c0c0c0; color: #000; }
.mvp-player-rank.top-3 { background: #cd7f32; color: #000; }
.mvp-player-rank.top-other { background: rgba(255, 255, 255, 0.06); color: var(--text-dim); }

.mvp-period-btn {
    border: none !important;
    background: transparent !important;
    color: var(--text-dim) !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
}

.mvp-period-btn.active {
    background: rgba(245, 158, 11, 0.15) !important;
    color: var(--gold) !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
    font-weight: 700 !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.08);
}

/* ═══════════════════════════════════════════════════════════════
   INTRO SPLASH SCREEN (O$R LOGO ANIMATION)
   ═══════════════════════════════════════════════════════════════ */
.intro-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050308;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s;
}

.intro-splash.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 90%;
    position: relative;
}

.intro-logo-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.35) 0%, rgba(0, 0, 0, 0) 70%);
    top: 50px;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    filter: blur(15px);
    animation: intro-pulse 2.5s infinite ease-in-out;
    z-index: 1;
}

.intro-logo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 20px;
    border: 3px solid #ef4444;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
    z-index: 2;
    transform: scale(0.6);
    opacity: 0;
    animation: intro-zoom-in 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
}

.intro-text {
    margin-top: 1.8rem;
    z-index: 2;
}

.intro-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 4px;
    display: block;
    margin-bottom: 0.2rem;
    opacity: 0;
    transform: translateY(15px);
    animation: intro-fade-up 0.8s ease forwards 0.8s;
}

.intro-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(15px);
    animation: intro-fade-up 0.8s ease forwards 1.0s;
}

.intro-tagline {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 0.3rem;
    margin-bottom: 0;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(15px);
    animation: intro-fade-up 0.8s ease forwards 1.2s;
}

.intro-loader-container {
    width: 180px;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-top: 2.2rem;
    overflow: hidden;
    position: relative;
    opacity: 0;
    animation: intro-fade-in 0.5s ease forwards 1.4s;
    z-index: 2;
}

.intro-loader-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #991b1b, #ef4444);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
    animation: intro-loading 1.6s cubic-bezier(0.65, 0.05, 0.36, 1) 1.5s forwards;
}

/* Keyframes */
@keyframes intro-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.85);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 1;
    }
}

@keyframes intro-zoom-in {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes intro-fade-up {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes intro-fade-in {
    to {
        opacity: 1;
    }
}

@keyframes intro-loading {
    to {
        width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════
   UNIFIED TOURNAMENT COMMAND HUB
   ═══════════════════════════════════════════════════════════════ */
.tournament-hub {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 1.2rem auto;
    background: linear-gradient(135deg, rgba(14, 11, 20, 0.95) 0%, rgba(22, 12, 16, 0.98) 100%);
    border: 1.5px solid rgba(239, 68, 68, 0.28);
    border-radius: 14px;
    padding: 0.85rem 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(239, 68, 68, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.tournament-hub::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--gold), transparent);
}

.hub-broadcast-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 0.75rem;
}

.hub-countdown-col {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    flex: 1 1 auto;
}

.hub-broadcast-row .countdown-header {
    width: auto;
    border-bottom: none;
    padding-bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hub-broadcast-row .mode-selector {
    margin: 0;
    max-width: none;
    flex-shrink: 0;
    gap: 6px;
}

.hub-broadcast-row .mode-btn {
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
    border-radius: 8px;
}

/* Telemetry Metrics Ribbon */
.hub-telemetry-ribbon {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    width: 100%;
}

.telemetry-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 0.5rem 0.6rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-fast);
}

.telemetry-card:hover {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.telemetry-icon {
    font-size: 1.25rem;
    line-height: 1;
    opacity: 0.9;
    flex-shrink: 0;
}

.telemetry-content {
    min-width: 0;
    flex: 1;
}

.telemetry-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.telemetry-val.highlight {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.telemetry-val.status-val {
    font-size: 0.95rem;
    font-weight: 700;
}

.telemetry-val.clock-val {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.05rem;
    letter-spacing: 1px;
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary-glow);
}

.telemetry-lbl {
    font-size: 0.62rem;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Event Countdown Elements */
.countdown-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
    z-index: 2;
}

.countdown-badge {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 6px;
    letter-spacing: 1.5px;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.countdown-text {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.countdown-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}

.countdown-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 76px;
}

.countdown-digits {
    font-family: 'Outfit', 'Courier New', monospace;
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 4px 10px;
    min-width: 60px;
    text-align: center;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8),
                0 0 15px rgba(239, 68, 68, 0.15);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4), 
                 0 0 20px rgba(239, 68, 68, 0.6);
}

.countdown-unit {
    font-size: 0.62rem;
    color: var(--text-muted);
    font-weight: 800;
    margin-top: 6px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.countdown-divider {
    font-family: 'Outfit', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: #ef4444;
    padding-bottom: 24px;
    animation: blink-divider 1.5s infinite ease-in-out;
}

.live-display {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    font-family: 'Outfit', sans-serif;
    padding: 10px 0;
}

.live-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 900;
    color: #ef4444;
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.8);
    letter-spacing: 2px;
    animation: pulse-live 1.8s infinite ease-in-out;
}

.live-camp-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #f1f5f9;
    letter-spacing: 1px;
}

.live-room-code-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid var(--gold);
    border-radius: 8px;
    padding: 6px 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
}

.live-room-code-badge:hover {
    background: rgba(245, 158, 11, 0.28);
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(245, 158, 11, 0.45);
}

.room-code-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.room-code-chip:hover {
    background: rgba(245, 158, 11, 0.25);
    border-color: var(--gold);
}

.live-dot {
    width: 14px;
    height: 14px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 15px #ef4444;
}

@keyframes blink-divider {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes pulse-live {
    0%, 100% { transform: scale(0.98); opacity: 0.85; }
    50% { transform: scale(1.02); opacity: 1; }
}

@media (max-width: 600px) {
    .event-countdown-container {
        padding: 0.55rem 0.75rem !important;
        gap: 6px !important;
    }
    
    .countdown-header {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
        text-align: left !important;
        justify-content: space-between !important;
    }
    
    .countdown-segment {
        width: 36px !important;
    }
    
    .countdown-digits {
        font-size: 1.15rem !important;
        min-width: 32px !important;
        padding: 2px 2px !important;
    }
    
    .countdown-divider {
        font-size: 1rem !important;
        padding-bottom: 10px !important;
    }
}

/* OSR Extended Styles for Social Links and Live Streamers */
.social-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px 15px;
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.social-link-item:hover {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--gold);
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.08);
}

.streamer-card.live {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(20, 10, 10, 0.15) 100%);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.05);
    transition: all 0.25s ease;
}

.streamer-card.live:hover {
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.12);
}

.streamer-live-badge {
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
    animation: pulse-live-badge 1.5s infinite;
}

@keyframes pulse-live-badge {
    0%, 100% { opacity: 0.75; }
    50% { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════
   BANNED / SUSPENDED TAB & BADGES
   ═══════════════════════════════════════════════════════════════ */
.badge-ban-perm {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(185, 28, 28, 0.45));
    border: 1px solid rgba(239, 68, 68, 0.7);
    color: #ff6b6b;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-ban-temp {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-ban-expired {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
}

.banned-card-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    transition: all 0.2s ease;
}

.banned-card-item:hover {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.03);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.08);
}

.banned-card-item.is-perm {
    border-left: 3px solid #ef4444;
}

.banned-card-item.is-temp {
    border-left: 3px solid #f59e0b;
}

.banned-filter-btn.active {
    background: rgba(239, 68, 68, 0.25) !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
    color: #fff !important;
    font-weight: bold;
}

/* ═══════════════════════════════════════════════════════════════
   MULTI-GAME INTERFACE SWITCHER (EXACT LOOK OF SCREENSHOT)
   ═══════════════════════════════════════════════════════════════ */
.game-selector-section {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 0.9rem auto;
    padding: 0 10px;
    box-sizing: border-box;
}

.game-selector-inner {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.game-selector-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 4px;
}

.game-selector-badge {
    font-size: 0.72rem;
    font-weight: 800;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.game-selector-hint {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* Custom Dropdown Container - EXACT LOOK OF USER SCREENSHOT */
.game-custom-dropdown {
    position: relative;
    width: 100%;
    user-select: none;
    z-index: 90;
}

.game-dropdown-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0b0f19;
    border: 2px solid #10b981;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.35);
    transition: all 0.2s ease;
    outline: none;
}

.game-dropdown-bar:hover,
.game-dropdown-bar:focus {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
    border-color: #34d399;
}

.game-dropdown-bar.open {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: rgba(16, 185, 129, 0.2);
}

.game-dropdown-selected {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.game-bar-icon {
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
}

.game-bar-text {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.game-bar-text strong {
    font-size: 0.96rem;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.game-bar-subtitle {
    font-size: 0.84rem;
    color: #94a3b8;
    font-weight: 400;
}

.game-bar-arrow {
    color: #ffffff;
    display: flex;
    align-items: center;
    transition: transform 0.25s ease;
    margin-left: 10px;
}

.game-dropdown-bar.open .game-bar-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu List - EXACT MATCH TO USER SCREENSHOT */
.game-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0b0f19;
    border: 2px solid #10b981;
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.85), 0 0 14px rgba(16, 185, 129, 0.3);
    overflow: hidden;
    z-index: 105;
}

.game-dropdown-menu.show {
    display: block;
    animation: dropdownMenuAnim 0.16s ease-out;
}

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

.game-dropdown-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    cursor: pointer;
    color: #f1f5f9;
    background: transparent;
    transition: background 0.15s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.game-dropdown-opt:last-child {
    border-bottom: none;
}

/* Active Option (Vibrant Blue #1d4ed8 as seen in user screenshot row 1) */
.game-dropdown-opt.active {
    background: #1d4ed8 !important;
    color: #ffffff !important;
}

.game-dropdown-opt.active strong {
    color: #ffffff !important;
}

.game-dropdown-opt.active .opt-sub {
    color: #e0e7ff !important;
}

.game-dropdown-opt:not(.active):hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.opt-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.opt-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.opt-info strong {
    font-size: 0.92rem;
    font-weight: 600;
}

.opt-sub {
    font-size: 0.82rem;
    color: #94a3b8;
}

/* Subformat Bar (FIFA Format Pills) */
.game-subformat-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 3px;
}

.subformat-label {
    font-size: 0.76rem;
    color: #10b981;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subformat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.subformat-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.subformat-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.subformat-pill.active {
    background: #1d4ed8;
    border-color: #2563eb;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(29, 78, 216, 0.4);
}

/* FIFA Table and Match Card Styles */
.fifa-table th, .fifa-table td {
    padding: 9px 12px;
}

.fifa-match-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: border-color 0.2s ease;
}

.fifa-match-card:hover {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.02);
}

.fifa-match-score-badge {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.05rem;
    font-weight: 900;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 2px 10px;
    border-radius: 6px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .game-dropdown-bar {
        padding: 9px 12px !important;
    }
    .game-bar-text strong {
        font-size: 0.88rem !important;
    }
    .game-bar-subtitle {
        font-size: 0.74rem !important;
    }
    .game-dropdown-opt {
        padding: 9px 12px !important;
    }
    .opt-info strong {
        font-size: 0.86rem !important;
    }
    .opt-sub {
        font-size: 0.72rem !important;
    }
    .subformat-pill {
        font-size: 0.72rem !important;
        padding: 4px 8px !important;
    }
}

.game-switch-modal-card {
    transition: all 0.2s ease;
}

.game-switch-modal-card:hover {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.08) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.game-switch-modal-card.active {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.12) !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}


