/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    padding-bottom: 2rem;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

header {
    background: linear-gradient(135deg, #e30613, #f68b1f);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    border-bottom: 5px solid #ffde00;
}

header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

header p {
    font-size: 1.3rem;
    opacity: 0.95;
    font-weight: 500;
}

#auth-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.7rem;
    align-items: center;
}

#dashboard-link {
    background: rgba(255, 255, 255, 0.25);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#dashboard-link:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

#user-status {
    background: rgba(255, 255, 255, 0.25);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#login-btn, #logout-btn {
    padding: 0.6rem 1.2rem;
    background: white;
    color: #e30613;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: 2px solid #e30613;
}

#login-btn:hover, #logout-btn:hover {
    background: #e30613;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.section {
    background: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-top: 5px solid #e30613;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.section h2 {
    color: #e30613;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid #f68b1f;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
}

.section h2::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #ffde00;
    border-radius: 50%;
    margin-right: 12px;
}

/* Admin Only Sections - Hidden by default for public view */
.admin-only {
    display: none;
}

.admin-view .admin-only {
    display: inline-block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Special case for ranking controls which use flex layout */
.admin-view .ranking-controls.admin-only {
    display: flex;
}

/* Special case for prize controls which use flex layout */
.admin-view .prize-controls.admin-only {
    display: flex;
}

/* Special case for tracker controls which use flex layout */
.admin-view .tracker-controls.admin-only {
    display: flex;
}

/* Special case for map controls which use flex layout */
.admin-view .map-controls.admin-only {
    display: flex;
}

/* Special case for poster controls which use flex layout */
.admin-view .poster-controls.admin-only {
    display: flex;
}

/* Hide login/logout buttons based on view */
#login-btn {
    display: block;
}

.admin-view #login-btn {
    display: none;
}

#logout-btn {
    display: none;
}

.admin-view #logout-btn {
    display: block;
}

/* Login Modal - Always visible when modal is open, regardless of view */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.display-block {
    display: block;
}

.modal-content {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    margin: 15% auto;
    padding: 2.5rem;
    border-radius: 15px;
    width: 350px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 2px solid #e30613;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close {
    color: #e30613;
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    color: #000;
    background: rgba(0,0,0,0.1);
    transform: rotate(90deg);
}

#admin-username,
#admin-password {
    width: 100%;
    padding: 0.875rem 1rem;
    margin: 0.75rem 0;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    background: white;
}

#admin-username:focus,
#admin-password:focus {
    border-color: #e30613;
    outline: none;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.2);
}

#submit-login {
    width: 100%;
    padding: 0.875rem 1rem;
    margin-top: 0.75rem;
    background: linear-gradient(135deg, #e30613, #f68b1f);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(227, 6, 19, 0.3);
    box-sizing: border-box;
}

#submit-login:hover {
    background: linear-gradient(135deg, #c10511, #e07a1a);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(227, 6, 19, 0.4);
}

#submit-login:active {
    transform: translateY(0);
}

#login-error {
    color: #e30613;
    font-weight: bold;
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(227, 6, 19, 0.1);
    border-radius: 8px;
    border-left: 4px solid #e30613;
}

/* Live Tracker Styles */
.tracker-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
    padding: 1.5rem;
    background: rgba(246, 139, 31, 0.1);
    border-radius: 12px;
    border: 1px dashed #f68b1f;
}

.tracker-controls input, .tracker-controls select {
    padding: 0.9rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    min-width: 200px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.tracker-controls input:focus, .tracker-controls select:focus {
    border-color: #e30613;
    outline: none;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.2);
}

.tracker-controls button {
    padding: 0.9rem 1.7rem;
    background: linear-gradient(135deg, #e30613, #f68b1f);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(227, 6, 19, 0.3);
    font-size: 1rem;
}

.tracker-controls button:hover {
    background: linear-gradient(135deg, #c10511, #e07a1a);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(227, 6, 19, 0.4);
}

.tracker-controls button:active {
    transform: translateY(0);
}

.pack {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 5px solid #e30613;
}

.pack:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.pack-info {
    flex-grow: 1;
}

.pack-number {
    font-weight: bold;
    color: #e30613;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.pack-number::before {
    content: "#"; 
    margin-right: 5px;
}

.pack-contestant {
    font-size: 1rem;
    color: #f68b1f;
    font-weight: bold;
    margin: 0.3rem 0;
    display: flex;
    align-items: center;
}

.pack-contestant::before {
    content: "👤";
    margin-right: 8px;
}

.pack-timestamp {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
}

.pack-timestamp::before {
    content: "⏱";
    margin-right: 8px;
}

.pack-actions {
    display: flex;
    gap: 0.5rem;
}

.pack-actions button {
    background: #666;
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    margin-left: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.pack-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.pack-actions button.delete {
    background: linear-gradient(135deg, #e30613, #f68b1f);
}

.pack-actions button.delete:hover {
    background: linear-gradient(135deg, #c10511, #e07a1a);
}

/* Rumble Map Styles */
#rumble-map-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
}

#rumble-map-table td {
    border: 2px solid #e0e0e0;
    padding: 1.2rem;
    text-align: center;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 70px;
    height: 70px;
    font-weight: bold;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin: 2px;
}

#rumble-map-table td::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

#rumble-map-table td:hover::before {
    transform: translateY(0);
}

#rumble-map-table td:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1;
    border-color: #f68b1f;
}

#rumble-map-table td.occupied {
    background: linear-gradient(135deg, #e30613, #f68b1f);
    color: white;
    font-weight: bold;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
}

#rumble-map-table td.occupied:hover {
    background: linear-gradient(135deg, #c10511, #e07a1a);
    transform: scale(1.05);
}

#rumble-map-table td.unmapped {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    font-weight: bold;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
    opacity: 0.8;
}

#rumble-map-table td.unmapped:hover {
    background: linear-gradient(135deg, #5a6268, #343a40);
    transform: scale(1.05);
    opacity: 1;
}

/* Scroll container for large maps */
.scroll-container {
    max-height: 500px;
    overflow: auto;
    margin-top: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
}

/* List View Styles - now hidden by default */
.view-hidden {
    display: none;
}

.view-active {
    display: block;
    animation: fadeIn 0.5s ease;
}

#packs-list {
    max-height: 500px;
    overflow-y: auto;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

.pack-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.pack-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.pack-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.pack-item-number {
    font-weight: bold;
    color: #e30613;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.pack-item-number::before {
    content: "📦";
    margin-right: 8px;
}

.pack-item-timestamp {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.pack-item-timestamp::before {
    content: "⏱";
    margin-right: 8px;
}

.highlighted {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-left: 5px solid #ffc107;
    font-weight: bold;
}

/* Grid View Toggle Button */
#toggle-map-view {
    background: linear-gradient(135deg, #f68b1f, #e30613);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(246, 139, 31, 0.3);
    font-size: 1rem;
    margin-bottom: 1rem;
}

#toggle-map-view:hover {
    background: linear-gradient(135deg, #e07a1a, #c10511);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(246, 139, 31, 0.4);
}

#toggle-map-view:active {
    transform: translateY(0);
}

/* Ranking System Styles */
.ranking-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
    padding: 1.5rem;
    background: rgba(227, 6, 19, 0.05);
    border-radius: 12px;
    border: 1px dashed #e30613;
}

.ranking-controls input, .ranking-controls select {
    padding: 0.9rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.ranking-controls input:focus, .ranking-controls select:focus {
    border-color: #e30613;
    outline: none;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.2);
}

.ranking-controls button {
    padding: 0.9rem 1.7rem;
    background: linear-gradient(135deg, #e30613, #f68b1f);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(227, 6, 19, 0.3);
    font-size: 1rem;
}

.ranking-controls button:hover {
    background: linear-gradient(135deg, #c10511, #e07a1a);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(227, 6, 19, 0.4);
}

.ranking-controls button:active {
    transform: translateY(0);
}

.contestant {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.contestant:hover {
    background: #f8f9fa;
    transform: translateX(5px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.contestant:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.contestant-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
    display: flex;
    align-items: center;
}

.contestant-name::before {
    content: "🏆";
    margin-right: 10px;
    color: #f68b1f;
}

.contestant-points {
    background: linear-gradient(135deg, #e30613, #f68b1f);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(227, 6, 19, 0.3);
    display: flex;
    align-items: center;
}

.contestant-points::before {
    content: "⭐";
    margin-right: 5px;
}

/* Prize Management Styles */
.prize-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
    padding: 1.5rem;
    background: rgba(246, 139, 31, 0.05);
    border-radius: 12px;
    border: 1px dashed #f68b1f;
}

.prize-controls input {
    padding: 0.9rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.prize-controls input:focus {
    border-color: #f68b1f;
    outline: none;
    box-shadow: 0 0 0 3px rgba(246, 139, 31, 0.2);
}

.prize-controls button {
    padding: 0.9rem 1.7rem;
    background: linear-gradient(135deg, #e30613, #f68b1f);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(227, 6, 19, 0.3);
    font-size: 1rem;
}

.prize-controls button:hover {
    background: linear-gradient(135deg, #c10511, #e07a1a);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(227, 6, 19, 0.4);
}

.prize-controls button:active {
    transform: translateY(0);
}

.prize {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

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

.prize:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.prize-info {
    display: flex;
    flex-direction: column;
}

.prize-name {
    font-weight: bold;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.prize-name::before {
    content: "🎁";
    margin-right: 10px;
    color: #e30613;
}

.prize-details {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.prize-quantity, .prize-rank, .prize-winner {
    background: linear-gradient(135deg, #f68b1f, #e30613);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(246, 139, 31, 0.3);
    display: flex;
    align-items: center;
}

.prize-quantity::before {
    content: "📦";
    margin-right: 5px;
}

.prize-rank {
    background: linear-gradient(135deg, #e30613, #f68b1f);
}

.prize-rank::before {
    content: "🏅";
    margin-right: 5px;
}

.prize-winner {
    background: linear-gradient(135deg, #007bff, #00d4ff);
}

.prize-winner::before {
    content: "👑";
    margin-right: 5px;
}

/* Pack Ranking Styles */
#pack-ranking .ranking-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
    padding: 1.5rem;
    background: rgba(246, 139, 31, 0.05);
    border-radius: 12px;
    border: 1px dashed #f68b1f;
}

#pack-ranking .ranking-controls select,
#pack-ranking .ranking-controls input {
    padding: 0.9rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#pack-ranking .ranking-controls select:focus,
#pack-ranking .ranking-controls input:focus {
    border-color: #f68b1f;
    outline: none;
    box-shadow: 0 0 0 3px rgba(246, 139, 31, 0.2);
}

#pack-ranking .ranking-controls button {
    padding: 0.9rem 1.7rem;
    background: linear-gradient(135deg, #e30613, #f68b1f);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(227, 6, 19, 0.3);
    font-size: 1rem;
}

#pack-ranking .ranking-controls button:hover {
    background: linear-gradient(135deg, #c10511, #e07a1a);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(227, 6, 19, 0.4);
}

#pack-ranking .ranking-controls button:active {
    transform: translateY(0);
}

.pack-ranking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.pack-ranking-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.pack-ranking-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.pack-ranking-info {
    display: flex;
    flex-direction: column;
}

.pack-ranking-rank {
    font-weight: bold;
    color: #f68b1f;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.pack-ranking-rank::before {
    content: "🏅";
    margin-right: 10px;
}

.pack-ranking-pack {
    font-weight: bold;
    color: #e30613;
    font-size: 1.1rem;
    margin: 0.3rem 0;
    display: flex;
    align-items: center;
}

.pack-ranking-pack::before {
    content: "📦";
    margin-right: 10px;
}

.pack-ranking-contestant {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
}

.pack-ranking-contestant::before {
    content: "👤";
    margin-right: 8px;
}

.pack-ranking-points {
    background: linear-gradient(135deg, #f68b1f, #e30613);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(246, 139, 31, 0.3);
    display: flex;
    align-items: center;
}

.pack-ranking-points::before {
    content: "⭐";
    margin-right: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.2rem;
    }
    
    header p {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
    
    .tracker-controls, .ranking-controls, .prize-controls {
        flex-direction: column;
    }
    
    .tracker-controls button, 
    .ranking-controls button, 
    .prize-controls button {
        width: 100%;
    }
    
    .tracker-controls input, 
    .tracker-controls select,
    .ranking-controls input, 
    .ranking-controls select,
    .prize-controls input {
        width: 100%;
    }
    
    #rumble-map-table td {
        padding: 0.8rem;
        min-width: 50px;
        height: 50px;
        font-size: 0.9rem;
    }
    
    .pack {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .pack-actions {
        align-self: flex-end;
    }
    
    .contestant, .prize, .pack-ranking-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .contestant-points, .prize-details, .pack-ranking-points {
        align-self: flex-end;
    }
    
    #auth-controls {
        position: static;
        margin-top: 1rem;
        justify-content: center;
    }
}
/* Poster Section */
.poster-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#poster-display {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#no-poster-message {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem;
}

#no-poster-message i {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.5;
}

#no-poster-message p {
    font-size: 1.2rem;
}

#poster-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
}

.poster-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.upload-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.upload-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.upload-button i {
    font-size: 1.1rem;
}

#remove-poster {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

#remove-poster:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

#remove-poster i {
    font-size: 1.1rem;
}

/* Mobile responsive for poster */
@media (max-width: 768px) {
    #poster-display {
        min-height: 200px;
    }
    
    #poster-image {
        max-height: 400px;
    }
    
    .poster-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .upload-button,
    #remove-poster {
        width: 100%;
        justify-content: center;
    }
}
