/* Estils generals */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Capçalera */
header {
    background-color: #d40000;
    color: white;
    padding: 20px 0;
    text-align: center;
    border-bottom: 5px solid #a30000;
}

header h1 {
    font-size: 3.5rem;
	color: white;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
	color: white;
}

/* Navegació */
nav {
    background-color: #ff0000;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s;
}

nav ul li a:hover {
    background-color: #a30000;
    transform: translateY(-2px);
}

/* Contingut principal */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Estils per a les targetes d'equips */
.card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid #d40000;
}

.card-content {
    padding: 15px;
}

.card-content h3 {
    margin-bottom: 10px;
    color: #d40000;
    font-size: 1.3rem;
}

.card-content p {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

/* Estils per a les taules */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: white;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #d40000;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

/* Seccions */
section {
    margin-bottom: 40px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

section h2 {
    color: #d40000;
    margin-bottom: 15px;
    font-size: 1.5rem;
    border-bottom: 2px solid #d40000;
    padding-bottom: 8px;
}

/* Detalls dels equips */
.team-details {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.team-details h2 {
    color: #d40000;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.team-details p {
    margin-bottom: 8px;
}

.team-details strong {
    color: #333;
}

/* Peu de pàgina */
footer {
    background-color: #d40000;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 5px solid #a30000;
}

footer p {
    margin-bottom: 5px;
}

/* Enllaços */
a {
    color:red;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #a30000;
    text-decoration: underline;
}

.fuente {
    font-size: 0.9rem;
    text-align: right;
    margin-top: 10px;
    color: #666;
}

/* Estils responsius */
@media (max-width: 900px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 8px 10px;
    }
}

@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 5px 0;
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
    
    .container {
        grid-template-columns: 1fr;
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
		color: white;
    }
    
    section h2 {
        font-size: 1.3rem;
    }
}

/* Classes específiques per a estadístiques */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.stats-section {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Classes específiques per a classificació */
.clasificacion-section {
    margin-bottom: 40px;
}

/* Classes específiques per a equips */
.equipos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}  <style>
    body {
      font-family: Arial, sans-serif;
      margin: 0;
      background-color: #f2f2f2;
    }

    header {
      background-color: #d50000;
      color: white;
      padding: 20px;
      text-align: center;
    }

    nav {
      background-color: #ff0000; /* rojo chillón */
    }

    nav ul {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      justify-content: center;
    }

    nav ul li {
      margin: 0 15px;
    }

    nav ul li a {
      display: block;
      padding: 15px 10px;
      color: white;
      text-decoration: none;
      font-weight: bold;
    }

    nav ul li a:hover {
      background-color: #cc0000;
      border-radius: 4px;
    }

    main {
      max-width: 800px;
      margin: 30px auto;
      background: white;
      padding: 20px;
      border-radius: 10px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    section {
      margin-bottom: 50px;
    }

    h2 {
      color: #d50000;
    }

    iframe, img {
      width: 100%;
      border-radius: 8px;
      margin-top: 10px;
    }

    p {
      font-size: 1rem;
    }
  </style>
  
    <style>
    body {
      font-family: Arial, sans-serif;
      margin: 0;
      background-color: #f2f2f2;
    }

    header {
      background-color: #d50000;
      color: white;
      padding: 20px;
      text-align: center;
    }

    nav {
      background-color: #ff0000;
    }

    nav ul {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      justify-content: center;
    }

    nav ul li {
      margin: 0 15px;
    }

    nav ul li a {
      display: block;
      padding: 15px 10px;
      color: white;
      text-decoration: none;
      font-weight: bold;
    }

    nav ul li a:hover {
      background-color: #cc0000;
      border-radius: 4px;
    }

    main {
      max-width: 800px;
      margin: 30px auto;
      background: white;
      padding: 30px;
      border-radius: 10px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    h2 {
      color: #d50000;
    }

    p {
      font-size: 1.1rem;
      line-height: 1.6;
    }

    form {
      margin-top: 30px;
    }

    label {
      display: block;
      margin-top: 15px;
      font-weight: bold;
    }

    input, textarea {
      width: 100%;
      padding: 10px;
      margin-top: 5px;
      border: 1px solid #ccc;
      border-radius: 5px;
    }

    button {
      margin-top: 20px;
      padding: 10px 20px;
      background-color: #d50000;
      color: white;
      border: none;
      border-radius: 5px;
      font-weight: bold;
      cursor: pointer;
    }

    button:hover {
      background-color: #b20000;
    }
  </style>
  
      <style>
        .top-section {
            margin-bottom: 50px;
        }
        
        .section-title {
            color: #d40000;
            text-align: center;
            margin: 40px 0 30px;
            font-size: 2rem;
            border-bottom: 3px solid #d40000;
            padding-bottom: 10px;
        }
        
        .players-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 25px;
            margin: 0 auto;
            max-width: 1200px;
        }
        
        .player-card {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transition: transform 0.3s, box-shadow 0.3s;
        }
        
        .player-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.2);
        }
        
        .player-img {
            width: 100%;
            height: 220px;
            object-fit: cover;
            border-bottom: 4px solid #d40000;
        }
        
        .player-info {
            padding: 20px;
            text-align: center;
        }
        
        .player-position {
            display: inline-block;
            width: 36px;
            height: 36px;
            background-color: #d40000;
            color: white;
            border-radius: 50%;
            font-weight: bold;
            font-size: 1.2rem;
            line-height: 36px;
            margin-bottom: 12px;
        }
        
        .player-name {
            font-size: 1.2rem;
            font-weight: bold;
            margin-bottom: 8px;
            color: #333;
        }
        
        .player-stats {
            font-size: 1rem;
            color: #666;
            margin-bottom: 5px;
        }
        
        .player-detail {
            font-size: 0.9rem;
            color: #888;
            margin-top: 10px;
        }
        
        @media (max-width: 768px) {
            .players-grid {
                grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
                gap: 15px;
            }
            
            .player-img {
                height: 180px;
            }
            
            .section-title {
                font-size: 1.6rem;
            }
        }
    </style>