:root{
  --bg: #0b0d10;
  --panel: #12161b;
  --text: #e8edf2;
  --muted: #a9b4c0;
  --accent: #7c9cff;
  --card: #0f1318;
  --border: #202832;
  --ring: rgba(124,156,255,0.35);
}
body[data-theme="light"] {
  --bg: #f7f9fc; --panel:#ffffff; --text:#0f141a; --muted:#566370;
  --accent:#3b63ff; --card:#ffffff; --border:#e6ebf2; --ring:rgba(59,99,255,.25);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height:1.6;
}
img{max-width:100%; display:block}
a{color: var(--accent); text-decoration: none}
.container{width:min(1050px, 92%); margin-inline:auto}
.eyebrow{font-size:0.8rem; letter-spacing:2px; text-transform:uppercase; color:var(--accent); font-weight:600; margin:0 0 8px}

.contact-note{margin:6px 0 0; color:var(--muted)}

/* Header */
.site-header{
  position: sticky; top:0; z-index:10; backdrop-filter: blur(8px);
  background: color-mix(in hsl, var(--bg) 85%, transparent);
  border-bottom:1px solid var(--border);
  transition: transform .3s ease-out;
}
.site-header.is-scrolled {
  transform: translateY(-100%);
}
.nav{display:flex; align-items:center; justify-content:space-between; padding:14px 0}
.brand{font-weight:700; font-size:1.15rem; letter-spacing:0.4px}
.brand span{color:var(--accent)}
.nav-links{list-style:none; display:flex; align-items:center; gap:20px; margin:0; padding:0}
.nav-links a{padding:8px 10px; border-radius:12px; display: block; transition: background-color 0.2s, color 0.2s;}
.nav-links a:hover {
  background-color: var(--accent);
  color: var(--bg);
}
.nav-links .btn{padding:10px 14px}
.nav-toggle{display:none; background:none; border:0}
.theme-toggle {
  background: var(--panel);
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%23a9b4c0' viewBox='0 0 16 16'%3E%3Cpath d='M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform .3s ease-out, background .2s, box-shadow .2s;
}
.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 8px var(--ring);
}
body[data-theme="light"] .theme-toggle {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%23566370' viewBox='0 0 16 16'%3E%3Cpath d='M8 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm0 1a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0zm0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13zm8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5zM3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8zm10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0zm-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0zm9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707zM4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708z'/%3E%3C/svg%3E");
  transform: rotate(180deg);
}
.nav-toggle .bar{
  display:block; width:22px; height:2px; background:var(--text); margin:5px 0;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
/* Animate hamburger to X */
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero{display:grid; grid-template-columns: 1.1fr 0.9fr; gap:36px; padding:54px 0 24px}
.hero-text h1{
  font-size: clamp(28px, 4vw, 44px); line-height:1.15; margin:0 0 10px;
  /* Reserve space for 2 lines to prevent layout shift from typewriter */
  min-height: calc(2 * 1.15em);
}
.typewriter {
  color: var(--accent);
  white-space: nowrap;
  position: relative;
}
.typewriter::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 80%;
  background: var(--accent);
  animation: blink 1s step-end infinite;
}
.accent{color: var(--accent)}
.hero-text p{color: var(--muted); margin:6px 0 18px}
.cta-row{display:flex; gap:12px; flex-wrap:wrap}
.btn{
  display:inline-block; padding:12px 16px; border-radius:14px; font-weight:600;
  background: var(--accent); color:white; border:1px solid color-mix(in hsl, var(--accent) 80%, black 20%);
  box-shadow: 0 0 0 0 var(--ring); transition: box-shadow .2s, transform .05s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--ring);
}
.btn:active{transform: translateY(1px)}
.btn-icon {
  background: transparent; border:1px solid var(--border); padding: 10px;
  display: grid;
  place-items: center;
}
.btn-icon img { height: 24px; }
.hero-media{
  align-self:center; background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 30%, transparent), transparent);
  padding:12px; border-radius:20px; border:1px solid var(--border);
  position: relative;
}
.hero-media img{
  border-radius:16px;
  width: 100%;
  height: 450px;
  object-fit: cover;
  object-position: center;
}

/* Spotify Widget in About Section */
.spotify-widget {
  margin-top: 24px;
}
.spotify-header {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin: 0 0 8px;
}
.spotify-body {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--border); 
  border-radius: 12px;
  position: relative;
  padding: 12px 12px 32px; /* Add bottom padding for progress bar */
  transition: background .2s;
}
.spotify-body:hover {
  background: var(--card);
}
.spotify-album-art {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  background: var(--bg);
  border-radius: 12px;
  flex-shrink: 0;
  object-fit: cover;
}
.spotify-track-info {
  min-width: 0;
}
.spotify-title {
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}
.spotify-artist {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spotify-album {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spotify-status {
  font-size: 0.65rem;
  color: var(--muted);
  opacity: 0.9;
}
.spotify-status.is-playing {
  color: var(--accent);
  display: flex;
  align-items: center;
}
.spotify-status.is-playing::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #1DB954;
  border-radius: 50%;
  margin-right: 6px;
  animation: pulse-green 2s infinite;
}
.spotify-status.is-stopped::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #e5484d; /* Red color for stopped state */
  border-radius: 50%;
  margin-right: 6px;
}
.spotify-logo {
  width: 28px;
  height: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%231DB954' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.669 11.538a.498.498 0 0 1-.686.165c-1.879-1.147-4.243-1.407-7.028-.77a.5.5 0 0 1-.422-.577c.035-.24.243-.425.48-.462 3.06-.678 5.694-.396 7.76.863a.5.5 0 0 1 .166.686zm.979-2.178a.624.624 0 0 1-.858.205c-2.15-1.321-5.428-1.704-7.972-.932a.625.625 0 0 1-.658-.713c.045-.303.32-.52.63-.565 2.868-.847 6.522-.432 8.986 1.063a.625.625 0 0 1 .206.858zm.084-2.268C10.154 5.56 5.9 5.419 3.438 6.166a.748.748 0 1 1-.434-1.432c2.825-.857 7.523-.692 10.492 1.07a.747.747 0 1 1-.764 1.288z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  margin-left: auto;
  flex-shrink: 0;
}
.spotify-progress-container {
  position: absolute;
  bottom: 12px;
  left: 84px; /* album art width + gap */
  right: 52px; /* logo width + padding */
  display: none; /* Hidden by default, shown by JS */
  align-items: center;
  gap: 8px;
}
.spotify-progress {
  flex-grow: 1;
  height: 2px; /* Make the bar thinner */
  background: color-mix(in srgb, var(--border) 50%, transparent);
  border-radius: 3px;
  overflow: hidden;
}
.spotify-progress-bar {
  height: 100%;
  background: var(--accent);
  width: var(--progress-width, 0%);
  transition: width 0.2s linear;
}
.spotify-time {
  font-size: 0.65rem;
  color: var(--muted);
}

/* Sections */
.section{padding:56px 0}
.section h2{font-size: clamp(22px, 3vw, 32px); margin:0 0 18px}

/* Cards */
.grid{display:grid; grid-template-columns: repeat(3, 1fr); gap:18px}
.card{
  background: var(--card); border:1px solid var(--border); border-radius:18px; padding:22px;
  display:flex; flex-direction:column; gap:12px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px var(--ring);
}
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.animate-in.is-visible { opacity: 1; transform: translateY(0); }
.card-icon{height:64px; width:auto; max-width:120px; object-fit:contain; align-self:flex-start;}
.card h3{margin:0}
.card p{margin:0; color: var(--muted)}
.card-location{font-size:0.9rem; color:var(--muted)}
.card-points{margin:0; padding-left:18px; display:grid; gap:6px; color:var(--muted); font-size:0.95rem}
.experience-card{padding:0}
.card-summary{padding:22px; display:grid; gap:12px}
.card-toggle{
  background:none; border:none; color:var(--accent); font:inherit; font-weight:600;
  padding:4px 0; margin-top:4px; cursor:pointer; text-align:left; justify-self:start;
}
.card-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.card-photos:empty::before{content:'Photos coming soon...'}
.card-photos img {  
  width: 100%;
  aspect-ratio: 16 / 10; /* Use aspect ratio instead of fixed height */
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.meta{display:flex; gap:8px; list-style:none; padding:0; margin:0; flex-wrap:wrap}
.meta li{padding:6px 10px; border:1px solid var(--border); border-radius:999px; font-size:0.9rem; color:var(--muted)}
.link{font-weight:600}

/* Modal */
.modal-open{overflow:hidden}
.modal-overlay{
  position:fixed; inset:0; z-index:20;
  background:rgba(0,0,0,0.5);
  backdrop-filter:blur(4px);
  opacity:0;
  transition: opacity .3s ease-out;
  pointer-events:none;
}
.modal-overlay.is-visible{
  opacity:1;
  pointer-events:auto;
}
.modal{
  position:fixed;
  /* A more robust centering method */
  top: 0; bottom: 0; left: 0; right: 0;
  margin: auto;
  z-index:30; width:min(640px, 90vw); height: fit-content;
  background:var(--panel); border:1px solid var(--border); border-radius:18px;
  padding:0;
}
.modal[open]{animation: modal-in .3s ease-out}
.modal.is-closing{animation: modal-out .2s ease-in}
.modal::backdrop{display:none} /* We use our own overlay */
.modal-content{
  padding:32px; overflow-y:auto; max-height:85vh; text-align: center;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}
.modal-content .card-icon{height:48px; margin: 0 auto 12px;}
.modal-content .card-points {
  display: inline-block;
  text-align: left;
}
.modal-content .card-location{margin-top:-8px; margin-bottom:12px}
.modal-content h3{color:var(--text)}
.modal-close{
  position:absolute; top:10px; right:10px;
  width:36px; height:36px; border-radius:50%;
  background:var(--bg); border:1px solid var(--border);
  color:var(--muted); font-size:1.8rem; line-height:1;
  display:grid; place-items:center; cursor:pointer;
  z-index:1;
}
.modal-close:hover{color:var(--text)}

/* Modal content inherits card styles */
.modal .card-details{display:grid; gap:16px}

@keyframes modal-in {
  from { opacity:0; transform: scale(0.95); }
}
@keyframes modal-out {
  to { opacity:0; transform: scale(0.95); }
}

@keyframes blink {
  from, to { background-color: transparent }
  50% { background-color: var(--accent); }
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Study Abroad */
.abroad-section {
  text-align: center;
}
.abroad-section h2 {
  margin-bottom: 24px;
}
.abroad-stack {
  display: grid;
  gap: 18px;
  justify-items: center;
}
.abroad-stage {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* Momentum scrolling on iOS */
  width: 100%;
  padding-bottom: 18px; /* Space for scrollbar */
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  margin: 0 auto;
}
.abroad-stage::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari, and Opera */
}
.abroad-card {
  flex: 0 0 min(420px, 88vw);
  scroll-snap-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease-out;
}
.abroad-card:not(:last-child) {
  margin-right: 18px;
}
.abroad-card img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.abroad-card figcaption {
  margin: 0;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--muted);
  background: color-mix(in hsl, var(--panel) 80%, transparent);
  border-top: 1px solid var(--border);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.abroad-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.abroad-arrow {
  display: block; /* Hidden by default */
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.abroad-arrow:hover {
  background: var(--card);
  transform: scale(1.1);
}
.abroad-dots {
  display: flex;
  gap: 8px;
}
.abroad-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.abroad-dot.is-active {
  background: var(--accent);
}

/* About */
.two-col{display:grid; grid-template-columns: 1.2fr .8fr; gap:18px}
.two-col h3 {
  margin-top: 0;
  margin-bottom: 12px;
}
.timeline {
  position: relative;
  padding-left: 30px;
  border-left: 2px solid var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -39px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--panel);
  border: 3px solid var(--accent);
}
.timeline-item h4 { margin: 0 0 4px; font-size: 1rem; color: var(--text); }
.timeline-item p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.timeline-item.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 920px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-column, .soccer-column {
  display: flex;
  flex-direction: column;
}
.contact {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
}
label{display:grid; gap:8px; font-weight:600; align-items:start}
.contact-note{margin-top: auto; padding-top: 12px; color:var(--muted); display:flex; align-items:center; gap:12px; flex-wrap:wrap;}
.label-text{font-weight:600}
.input-wrap{position:relative; display:block}
.input-icon{
  position:absolute; top:50%; left:16px; transform:translateY(-50%);
  width:28px; height:28px; display:grid; place-items:center; pointer-events:none;
}
.input-icon img{width:24px; height:24px}
input, textarea{
  background: var(--panel); color: var(--text); border:1px solid var(--border); border-radius:12px;
  padding:12px 12px; font:inherit;
}
.input-wrap input, .input-wrap textarea{width:100%; padding-left:54px; font-weight:400}
.input-wrap textarea{padding-top:16px; padding-bottom:16px}
input:focus, textarea:focus{outline:none; border-color: var(--accent); box-shadow:0 0 0 6px var(--ring)}
.copy-email-wrap{
  position: relative;
  display:flex; align-items:center; gap:8px; background:var(--panel);
  border:1px solid var(--border); border-radius:12px; padding:4px 4px 4px 12px;
}
.copy-btn{
  width:32px; height:32px; border-radius:8px; border:0; background:var(--bg); cursor:pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23a9b4c0' viewBox='0 0 16 16'%3E%3Cpath d='M4 1.5H3a2 2 0 0 0-2 2V14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2h-1v1h1a1 1 0 0 1 1 1V14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1h1v-1z'/%3E%3Cpath d='M9.5 1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h3zM-1 7a.5.5 0 0 1 .5-.5h15a.5.5 0 0 1 0 1H-.5A.5.5 0 0 1-1 7z'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:center;
}
.copy-btn.is-copied{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%237c9cff' viewBox='0 0 16 16'%3E%3Cpath d='M12.736 3.97a.733.733 0 0 1 1.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 0 1-1.065.02L3.217 8.384a.757.757 0 0 1 0-1.06.733.733 0 0 1 1.047 0l3.052 3.093 5.4-6.425a.247.247 0 0 1 .02-.022Z'/%3E%3C/svg%3E");
}
.copy-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: var(--accent);
  color: white;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.copy-btn.is-copied + .copy-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.site-footer{border-top:1px solid var(--border); margin-top:40px}
.footer-inner{display:flex; align-items:center; justify-content:space-between; padding:16px 0; gap: 16px; flex-wrap: wrap; font-size: 0.9rem;}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 10;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* Barca Widget */
#barca-widget {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}
#barca-widget .live {
  color: var(--accent);
  font-weight: 600;
  animation: pulse 1.5s infinite;
}

/* Soccer Widget Section */
.soccer-column h2 { text-align: center; }
.soccer-widget {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--muted);
  position: relative;
  overflow: hidden;
  transition: background .4s ease-out;
}
.soccer-widget::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  background-image: url('images/icons/FC_Barcelona_(crest).svg.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.04;
  z-index: 0;
}
.soccer-widget > * {
  position: relative;
  z-index: 1;
}
.soccer-widget.is-live {
  background: radial-gradient(circle, color-mix(in hsl, var(--accent) 15%, var(--panel)), var(--panel) 70%);
}
.soccer-widget.is-win {
  background: radial-gradient(circle, color-mix(in hsl, var(--accent) 25%, var(--panel)), var(--panel) 80%);
}
.soccer-logo {
  height: 60px;
  margin: 0 auto 16px;
}
.soccer-widget .live {
  color: #22c55e;
  font-weight: 600;
  animation: glow 1.5s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { text-shadow: 0 0 5px #22c55e, 0 0 10px #22c55e; }
  50% { text-shadow: 0 0 10px #22c55e, 0 0 20px #22c55e; }
}

.soccer-standings {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.soccer-standings th, .soccer-standings td {
  padding: 8px 4px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.soccer-standings th { font-weight: 600; color: var(--text); }
.soccer-standings .team-name { text-align: left; display: flex; align-items: center; gap: 10px; }
.soccer-standings .team-crest { width: 24px; height: 24px; }
.soccer-standings .is-current-team {
  background: color-mix(in hsl, var(--accent) 10%, transparent);
  font-weight: 600;
  color: var(--text);
}
.soccer-standings tbody tr:last-child td {
  border-bottom: none;
}

.soccer-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
  text-align: left;
  grid-template-columns: 1fr; /* Change to single column */
}
.next-game-info {
  font-size: 0.9rem;
  margin-top: 4px;
}
.next-game-date {
  font-size: 0.9rem;
  color: var(--muted);
}
.skeleton {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  z-index: 2;
  position: relative;
}
.skeleton-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--border);
  animation: skeleton-pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.skeleton-line {
  border-radius: 8px;
  background-color: var(--border);
  animation: skeleton-pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.skeleton-table {
  width: 100%;
  margin-top: 12px;
}

@keyframes skeleton-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@media (min-width: 900px){
}
/* Responsive */
@media (max-width: 920px){
  .hero{grid-template-columns: 1fr; gap:20px}
  .grid{grid-template-columns: 1fr 1fr}
  .two-col{grid-template-columns: 1fr}
}
@media (max-width: 640px){
  .grid{grid-template-columns: 1fr}
  .nav-toggle{display:block}
  .nav-links{position: absolute; top:56px; right:4%; background:var(--panel); border:1px solid var(--border);
    border-radius:14px; padding:10px; flex-direction:column; gap:4px; display:none; min-width:200px}
  .nav-links.show{display:flex}
  .nav-links li { width: 100%; }
  .nav-links a { padding: 12px 14px; }
  .hero-media img { height: 320px; }
  .spotify-link { display: none; } /* Hide on mobile for a cleaner look */
  .abroad-stage{width:88vw; margin: 0 auto;}
  .abroad-card img{height:360px}
  .footer-inner { justify-content: center; text-align: center; }
}
