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

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background: #000;
    color: #fff;
    position: relative;
    overflow-x: hidden;
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/handball_bg.jpg') no-repeat center center;
    background-size: cover;
    filter: blur(12px) brightness(0.25) saturate(1.2);
    z-index: -2;
    transform: scale(1.15);
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(120, 80, 200, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(80, 150, 200, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.85) 100%);
    z-index: -1;
}

.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease;
}

.success-overlay {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
}

.closed-overlay {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f87171 100%);
}

.overlay-content {
    text-align: center;
    padding: 40px;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.overlay-icon {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 40px;
    font-size: 80px;
    font-weight: bold;
    animation: pulse 2s ease-in-out infinite;
}

.success-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 5px solid rgba(255, 255, 255, 0.5);
}

.closed-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 5px solid rgba(255, 255, 255, 0.5);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.overlay-content h1 {
    font-size: 3.5em;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.overlay-content p {
    font-size: 1.5em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.btn-overlay {
    padding: 18px 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-size: 1.2em;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-overlay:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 8000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 14px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
}

.notification-show {
    transform: translateX(0);
}

.notification-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9) 0%, rgba(22, 163, 74, 0.9) 100%);
    border: 1px solid rgba(34, 197, 94, 0.5);
}

.notification-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9) 0%, rgba(220, 38, 38, 0.9) 100%);
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.notification-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    color: #fff;
    font-size: 0.95em;
    font-weight: 500;
}

.notification-close {
    cursor: pointer;
    font-size: 1.5em;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 0 5px;
}

.notification-close:hover {
    opacity: 1;
}

.barcelona-clock {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 15px;
    letter-spacing: 2px;
    font-weight: 400;
}

header {
    padding: 70px 20px 50px;
    text-align: center;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    border-radius: 2px;
}

header h1 {
    font-size: 4em;
    font-weight: 800;
    letter-spacing: 6px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 0%, #b8b8b8 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 80px rgba(255,255,255,0.1);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { filter: drop-shadow(0 0 20px rgba(255,255,255,0.1)); }
    100% { filter: drop-shadow(0 0 40px rgba(255,255,255,0.2)); }
}

main {
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 25px;
}

#countdown-container {
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: 50px;
    margin-bottom: 60px;
    text-align: center;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

#countdown-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 60%);
    animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#countdown-container h2 {
    color: rgba(255,255,255,0.9);
    font-size: 1.4em;
    font-weight: 400;
    margin-bottom: 35px;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
}

#countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
}

.countdown-item {
    background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 30px 35px;
    border-radius: 20px;
    min-width: 110px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.countdown-item:hover {
    transform: translateY(-8px) scale(1.02);
    background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.08) 100%);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 50px rgba(0,0,0,0.4);
}

.countdown-item span {
    display: block;
    font-size: 3.2em;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.countdown-item label {
    display: block;
    font-size: 0.7em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 12px;
    letter-spacing: 3px;
    font-weight: 500;
}

#countdown-status {
    margin-top: 25px;
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    position: relative;
}

.activitats {
    margin-bottom: 60px;
}

.activitats h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2em;
    font-weight: 600;
    letter-spacing: 2px;
    position: relative;
}

.activitats h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    border-radius: 2px;
}

.activitats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 35px;
}

.activitat-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
}

.activitat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.activitat-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.5);
    border-color: rgba(255, 255, 255, 0.25);
}

.activitat-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.9) saturate(1.1);
}

.activitat-card:hover img {
    transform: scale(1.08);
    filter: brightness(1) saturate(1.2);
}

.card-content {
    padding: 30px;
    position: relative;
}

.activitat-card h3 {
    text-align: center;
    color: #fff;
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 22px;
    letter-spacing: 1px;
}

.btn-inscriure {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    border-radius: 14px;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-inscriure::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-inscriure:hover::before {
    left: 100%;
}

.btn-inscriure:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.1) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.02);
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(180deg, #1c1c1c 0%, #0a0a0a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 45px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.close {
    position: absolute;
    top: 22px;
    right: 28px;
    font-size: 30px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

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

.modal-content h2 {
    color: #fff;
    margin-bottom: 8px;
    font-size: 1.6em;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.modal-activitat {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 35px;
    font-size: 1.15em;
    letter-spacing: 0.5px;
}

.form-group {
    margin-bottom: 26px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    font-size: 1em;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-group select option {
    background: #1a1a1a;
    color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.05);
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #e8e8e8 100%);
    color: #000;
    border: none;
    border-radius: 14px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Poppins', sans-serif;
    margin-top: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 5px 25px rgba(255,255,255,0.15);
}

.btn-submit:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 10px 40px rgba(255,255,255,0.2);
}

.alert {
    padding: 22px 30px;
    border-radius: 18px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 500;
    backdrop-filter: blur(15px);
    animation: alertSlide 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.alert-success {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2) 0%, rgba(46, 204, 113, 0.1) 100%);
    color: #5eff9e;
    border: 1px solid rgba(46, 204, 113, 0.3);
    box-shadow: 0 10px 40px rgba(46, 204, 113, 0.15);
}

.alert-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2ecc71, transparent);
}

.alert-error {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.2) 0%, rgba(231, 76, 60, 0.1) 100%);
    color: #ff7b6b;
    border: 1px solid rgba(231, 76, 60, 0.3);
    box-shadow: 0 10px 40px rgba(231, 76, 60, 0.15);
}

footer {
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.5) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    padding: 40px;
    margin-top: 60px;
    font-size: 0.9em;
    letter-spacing: 2px;
    text-transform: uppercase;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}

.char-counter {
    display: block;
    text-align: right;
    font-size: 0.75em;
    color: rgba(255,255,255,0.5);
    margin-top: 5px;
}

.char-counter span {
    color: rgba(255,255,255,0.7);
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.5em;
        letter-spacing: 3px;
    }
    
    .barcelona-clock {
        font-size: 0.95em;
    }
    
    #countdown-container {
        padding: 35px 25px;
    }
    
    .countdown-item {
        min-width: 75px;
        padding: 22px 18px;
    }
    
    .countdown-item span {
        font-size: 2.2em;
    }
    
    .activitats-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 35px 28px;
    }
    
    .activitats h2 {
        font-size: 1.8em;
    }
    
    .overlay-content h1 {
        font-size: 2em;
        letter-spacing: 2px;
    }
    
    .overlay-icon {
        width: 100px;
        height: 100px;
        font-size: 50px;
    }
    
    .overlay-content p {
        font-size: 1.1em;
    }
    
    #notification-container {
        left: 10px;
        right: 10px;
    }
    
    .notification {
        max-width: 100%;
    }
    
    .main-nav {
        flex-wrap: wrap;
    }
    
    .nav-btn {
        flex: 1;
        min-width: 120px;
    }
}

/* Navegació principal */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0 20px 30px;
    max-width: 800px;
    margin: 0 auto;
}

.nav-btn {
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
}

.nav-btn.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* Seccions */
.main-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.main-section.active {
    display: block;
}

.section-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.section-container h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
    color: #fff;
}

/* No data message */
.no-data-message {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.no-data-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-data-message p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2em;
}

.closed-message {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
    border-radius: 20px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.closed-icon-inline {
    width: 80px;
    height: 80px;
    background: rgba(239, 68, 68, 0.2);
    border: 3px solid rgba(239, 68, 68, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5em;
    color: #ef4444;
}
.closed-message h2 {
    color: #fff;
    margin-bottom: 10px;
}
.closed-message p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1em;
}

/* Partits */
.partits-grid {
    display: grid;
    gap: 15px;
}

.partit-card {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 25px;
    transition: all 0.3s ease;
}

.partit-card:hover {
    transform: translateX(5px);
    border-color: rgba(139, 92, 246, 0.3);
}

.partit-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 25px;
    margin-right: 25px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 80px;
}

.partit-data .dia {
    font-size: 1.3em;
    font-weight: 700;
    color: #fff;
}

.partit-data .hora {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.5);
}

.partit-equips {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.partit-equips .equip {
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    color: #fff;
}

.partit-equips .equip:last-child {
    text-align: right;
}

.partit-equips .vs {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 700;
    color: #fff;
}

/* Classificació */
.classificacio-table {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.table-header, .table-row {
    display: grid;
    grid-template-columns: 50px 1fr 60px 60px 60px;
    align-items: center;
    padding: 15px 20px;
}

.table-header {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.table-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

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

.table-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.table-row .pos {
    font-weight: 700;
    font-size: 1.1em;
}

.table-row .equip-nom {
    font-weight: 600;
    color: #fff;
}

.table-row .stat {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.table-row .stat.punts {
    font-weight: 700;
    color: #fcd34d;
    font-size: 1.1em;
}

.table-row.top-1 {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.15) 0%, transparent 100%);
}

.table-row.top-1 .pos {
    color: #ffd700;
}

.table-row.top-2 {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.1) 0%, transparent 100%);
}

.table-row.top-2 .pos {
    color: #c0c0c0;
}

.table-row.top-3 {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.1) 0%, transparent 100%);
}

.table-row.top-3 .pos {
    color: #cd7f32;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85em;
}

@media (max-width: 600px) {
    .table-header, .table-row {
        grid-template-columns: 40px 1fr 45px 45px 45px;
        padding: 12px 15px;
        font-size: 0.9em;
    }
    
    .partit-card {
        flex-direction: column;
        text-align: center;
    }
    
    .partit-data {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0 0 15px 0;
        margin: 0 0 15px 0;
        flex-direction: row;
        gap: 10px;
    }
    
    .partit-equips {
        flex-direction: column;
        gap: 10px;
    }
    
    .partit-equips .equip:last-child {
        text-align: center;
    }
}
