﻿    html { background-color: #0a0a0a; overscroll-behavior-x: none; }
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    :root {
      --pink:     #FF56B4;
      --blue:     #00CCFF;
      --bg:       #1E1E1E;
      --surface:  #252525;
      --surface2: #2d2d2d;
      --border:   rgba(255,255,255,0.07);
      --text:     #f0f0f0;
      --muted:    #9a9a9a;
      --dim:      #555;
    }
    body {
      background:
        linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
        url('assets/background.png') repeat center top / auto;
      color: var(--text);
      font-family: 'Syne', sans-serif;
      min-height: 100vh;
      padding: 2.5rem 1.25rem 2rem;
    }
    .container { max-width: 860px; margin: 0 auto; }

    /* HEADER */
    .header {
      display: flex; align-items: center; justify-content: center; gap: 1.25rem;
      margin-bottom: 2.5rem; padding-bottom: 2rem;
      border-bottom: 1px solid var(--border);
      position: relative;
    }
    @keyframes avatar-pulse {
      0%   { box-shadow: 0 0 0 0 rgba(0,204,255,0);     border-color: rgba(0,204,255,0.4); }
      25%  { box-shadow: 0 0 0 10px rgba(0,204,255,0.2); border-color: rgba(0,204,255,0.7); }
      50%  { box-shadow: 0 0 0 0 rgba(255,86,180,0);    border-color: rgba(255,86,180,0.4); }
      75%  { box-shadow: 0 0 0 10px rgba(255,86,180,0.2); border-color: rgba(255,86,180,0.7); }
      100% { box-shadow: 0 0 0 0 rgba(0,204,255,0);     border-color: rgba(0,204,255,0.4); }
    }
    .avatar-ring {
      flex-shrink: 0; border-radius: 50%;
      width: 52px; height: 52px;
      border: 2px solid rgba(0,204,255,0.4);
      animation: avatar-pulse 4s ease-in-out infinite;
      transition: transform 0.2s;
      overflow: visible;
      display: flex; align-items: center; justify-content: center;
    }
    @keyframes avatar-pulse-live {
      0%,100% { box-shadow: 0 0 0 0 rgba(229,23,58,0);     border-color: rgba(229,23,58,0.4); }
      50%     { box-shadow: 0 0 0 10px rgba(229,23,58,0.25); border-color: rgba(229,23,58,0.8); }
    }
    body.is-live .avatar-ring {
      animation: avatar-pulse-live 1.8s ease-in-out infinite;
      border-color: rgba(229,23,58,0.4);
    }
    .avatar-ring:hover { transform: scale(1.06); }
    .avatar-ring img {
      width: 66px; height: 66px;
      border-radius: 50%; object-fit: cover; display: block;
    }

    .streamer-name {
      font-family: 'Russo One', 'Syne', sans-serif;
      font-size: 2rem; font-weight: normal;
      letter-spacing: 0.02em; line-height: 1;
      color: var(--blue);
      text-decoration: none;
    }
    .tagline { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }

    /* LIVE NOW */
    body.is-live::before {
      content: '';
      position: fixed;
      top: 0; left: 0; right: 0;
      height: 2px;
      background: #e5173a;
      z-index: 100;
      animation: live-bar 1.8s ease-in-out infinite;
    }
    @keyframes live-bar {
      0%, 100% { opacity: 1; }
      50%       { opacity: 0.25; }
    }
    .live-now {
      margin-bottom: 2rem;
      border-radius: 14px;
      overflow: hidden;
      border: 1px solid rgba(229,23,58,0.35);
      background: var(--surface);
    }
    .live-now-thumb {
      display: block;
      position: relative;
      aspect-ratio: 16/9;
      overflow: hidden;
      background: #111;
    }
    .live-now-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .live-now-overlay {
      position: absolute; inset: 0;
      display: flex; align-items: center; justify-content: center;
      background: rgba(0,0,0,0.3);
      transition: background 0.2s;
    }
    .live-now-thumb:hover .live-now-overlay { background: rgba(0,0,0,0.12); }
    .live-now-btn {
      background: #e5173a; color: #fff;
      font-weight: 700; font-size: 0.95rem;
      padding: 0.6rem 1.5rem; border-radius: 100px;
      letter-spacing: 0.02em; transition: transform 0.18s;
    }
    .live-now-thumb:hover .live-now-btn { transform: scale(1.06); }
    .live-now-meta { padding: 0.9rem 1.2rem 1rem; }
    .live-now-title {
      font-size: 0.9rem; font-weight: 700; color: var(--text);
      margin-bottom: 4px; overflow: hidden;
      white-space: nowrap; text-overflow: ellipsis;
    }
    .live-now-sub { font-size: 0.75rem; color: var(--muted); display: flex; gap: 6px; }
    .live-now-sep { color: var(--dim); }

    /* TZ BANNER */
    .tz-banner {
      display: flex; align-items: center; gap: 10px;
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 10px; padding: 0.75rem 1.1rem; margin-bottom: 1.5rem;
    }
    .tz-dot {
      width: 8px; height: 8px; border-radius: 50%;
      background: var(--pink); flex-shrink: 0;
      animation: pulse 2.2s ease-in-out infinite;
    }
    @keyframes pulse {
      0%,100% { opacity:1; transform:scale(1); }
      50%      { opacity:0.35; transform:scale(0.7); }
    }
    .tz-text { font-size: 0.8rem; color: var(--muted); }
    .tz-name { color: var(--text); font-weight: 700; }

    /* STREAM CONFIRMATION BADGE */
    .countdown-inner { position: relative; }
    .confirm-badge {
      position: absolute; top: 0.9rem; right: 1.2rem;
      font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
      letter-spacing: 0.08em; padding: 3px 9px; border-radius: 100px;
      display: none; align-items: center; gap: 5px;
    }
    .countdown-label { padding-right: 7rem; }
    .confirm-badge.confirmed {
      display: flex;
      background: rgba(255,86,180,0.15); color: var(--pink);
      border: 1px solid rgba(255,86,180,0.35);
    }
    .confirm-badge.unconfirmed {
      display: flex;
      background: rgba(255,255,255,0.04); color: var(--dim);
      border: 1px solid var(--border);
    }
    .confirm-badge.cancelled {
      display: flex;
      background: rgba(229,23,58,0.12); color: #e5173a;
      border: 1px solid rgba(229,23,58,0.35);
    }
    .confirm-badge-dot {
      width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0;
    }
    .confirmed .confirm-badge-dot   { background: var(--pink); animation: pulse 2.2s ease-in-out infinite; }
    .unconfirmed .confirm-badge-dot { background: var(--dim); }
    .cancelled .confirm-badge-dot   { background: #e5173a; }

    /* CANCELLED STATE */
    .countdown-cancel-msg { display: none; }
    .countdown-inner.is-cancelled {
      border-color: rgba(229,23,58,0.35);
      border-left-color: #e5173a;
      background: rgba(229,23,58,0.08);
    }
    .countdown-inner.is-cancelled .countdown-label { display: none; }
    .countdown-inner.is-cancelled .countdown-cancel-msg {
      display: block;
      font-size: 1.4rem; font-weight: 700; color: #e5173a;
      margin: 0.4rem 0 0.6rem; letter-spacing: -0.01em;
      padding-right: 7rem;
    }
    .countdown-inner.is-cancelled .countdown-timer,
    .countdown-inner.is-cancelled .countdown-time,
    .countdown-inner.is-cancelled .countdown-progress-wrap,
    .countdown-inner.is-cancelled .countdown-progress-labels { display: none; }

    /* COUNTDOWN */
    .countdown { display: none; margin-bottom: 1.75rem; }
    .countdown.visible { display: block; }
    .countdown-inner {
      border: 1px solid rgba(0,204,255,0.3);
      border-left: 3px solid var(--blue);
      border-radius: 14px; padding: 1.3rem 1.5rem;
      background: rgba(0,204,255,0.15);
    }
    .countdown-label {
      font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
      letter-spacing: 0.13em; color: var(--blue); margin-bottom: 12px;
    }
    .countdown-day  { font-size: 0.9rem; color: var(--muted); margin-bottom: 2px; }
    .countdown-time {
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.8rem; margin-top: 10px;
      padding-top: 10px;
      border-top: 1px solid rgba(255,255,255,0.07);
    }
    .ct-spain { color: var(--muted); }
    .ct-sep   { color: var(--dim); }
    .ct-local { color: var(--blue); font-weight: 600; }
    .countdown-timer {
      font-family: 'JetBrains Mono', monospace;
      font-size: 2.5rem; font-weight: 600; line-height: 1;
      color: #fff; letter-spacing: -0.01em;
      text-shadow: 0 0 20px rgba(0,204,255,0.5), 0 0 40px rgba(0,204,255,0.2);
      animation: timer-pulse 2.4s ease-in-out infinite;
      will-change: opacity;
    }
    @keyframes timer-pulse {
      0%, 100% { opacity: 1; }
      50%       { opacity: 0.75; }
    }
    .countdown-disclaimer {
      margin-top: 0.7rem; font-size: 0.7rem; font-weight: 600;
      text-transform: uppercase; letter-spacing: 0.1em;
      color: var(--muted); opacity: 0.7;
    }
    .countdown-progress-wrap {
      margin-top: 1rem;
      background: rgba(255,255,255,0.06);
      border-radius: 100px;
      height: 4px;
      overflow: hidden;
    }
    .countdown-progress-bar {
      height: 100%;
      width: 100%;
      background: linear-gradient(90deg, rgba(0,204,255,0.3), var(--blue));
      border-radius: 100px;
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 1s linear;
      box-shadow: 0 0 8px rgba(0,204,255,0.5);
      will-change: transform;
    }
    .countdown-progress-labels {
      display: flex;
      justify-content: space-between;
      margin-top: 5px;
      font-size: 0.6rem;
      color: var(--dim);
      letter-spacing: 0.05em;
    }

    /* SCHEDULE */
    .section-label {
      font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
      letter-spacing: 0.13em; color: var(--dim); margin-bottom: 0.8rem;
      display: flex; align-items: center; gap: 8px;
    }
    .section-label::before {
      content: '';
      display: inline-block; width: 3px; height: 10px;
      border-radius: 2px; background: var(--blue); flex-shrink: 0;
    }
    .schedule { display: flex; flex-direction: column; gap: 10px; margin-bottom: 2rem; }

    .stream-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 14px; padding: 1.2rem 1.4rem;
      display: grid; grid-template-columns: 1fr auto;
      gap: 1rem; align-items: center; transition: background 0.2s, box-shadow 0.2s;
    }
    .stream-card:hover { background: var(--surface2); }
    .stream-card.pink-card:hover { box-shadow: 0 0 20px rgba(255,86,180,0.15); }
    .stream-card.blue-card:hover { box-shadow: 0 0 20px rgba(0,204,255,0.15); }
    .stream-card.pink-card { border-left: 3px solid var(--pink); }
    .stream-card.blue-card { border-left: 3px solid var(--blue); }

    .day-range {
      font-size: 1rem; font-weight: 700;
      margin-bottom: 5px; display: flex; align-items: center; gap: 8px;
    }
    .next-badge {
      background: var(--pink); color: #fff;
      font-size: 0.58rem; font-weight: 700; text-transform: uppercase;
      letter-spacing: 0.1em; padding: 2px 8px; border-radius: 100px;
    }
    body.is-live .next-badge {
      background: #e5173a;
      display: inline-flex; align-items: center; gap: 5px;
    }
    .spain-time {
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.76rem; color: var(--dim);
    }
    .local-block { text-align: right; }
    .local-time-val {
      font-family: 'JetBrains Mono', monospace;
      font-size: 1.75rem; font-weight: 600;
      color: var(--blue); display: block; white-space: nowrap;
    }
    .local-time-val.col-pink { color: var(--pink); }
    .local-lbl { font-size: 0.7rem; color: var(--dim); }

    /* SCHEDULE OVERRIDE NOTE */
    .schedule-override-note {
      font-size: 0.82rem; font-weight: 600; color: var(--blue);
      background: rgba(0,204,255,0.06); border: 1px solid rgba(0,204,255,0.2);
      border-radius: 10px; padding: 0.5rem 0.85rem; margin-bottom: 0.25rem;
    }

    /* ADMIN PANEL */
    .admin-panel {
      margin-bottom: 1.25rem;
      border: 1px solid rgba(0,204,255,0.25);
      border-left: 3px solid var(--blue);
      border-radius: 14px; padding: 1rem 1.3rem;
      background: rgba(0,204,255,0.03);
    }
    .admin-panel-top {
      display: flex; justify-content: space-between; align-items: center;
    }
    .aop-title {
      font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
      letter-spacing: 0.08em; color: var(--blue);
    }
    .admin-sep { border: none; border-top: 1px solid var(--border); margin: 0.75rem 0; }
    .aop-status { font-size: 0.82rem; color: var(--dim); margin-bottom: 0.8rem; }
    .aop-form { display: flex; gap: 0.45rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
    .aop-input {
      flex: 1; min-width: 110px;
      background: rgba(255,255,255,0.06); border: 1px solid var(--border);
      border-radius: 8px; padding: 0.42rem 0.65rem;
      color: var(--text); font-size: 0.82rem; font-family: inherit; outline: none;
    }
    .aop-input:focus { border-color: rgba(0,204,255,0.5); }
    .aop-buttons { display: flex; gap: 0.45rem; flex-wrap: wrap; }
    .aop-btn {
      padding: 0.38rem 0.95rem; border-radius: 8px; border: none;
      font-size: 0.8rem; font-weight: 700; cursor: pointer; font-family: inherit;
    }
    .aop-btn-set   { background: var(--blue); color: #111; }
    .aop-btn-clear { background: rgba(255,255,255,0.06); color: var(--dim); border: 1px solid var(--border); }
    .aop-msg       { font-size: 0.78rem; margin-top: 0.5rem; min-height: 1.1em; }
    .aop-msg-ok    { color: #4caf50; }
    .aop-msg-error { color: #e5173a; }
    .aop-grace { font-size: 0.8rem; }
    .aop-grace-title { font-weight: 700; margin-bottom: 0.35rem; }
    .aop-grace-on .aop-grace-title { color: #FFD700; }
    .aop-grace-off .aop-grace-title { color: var(--dim); }
    .aop-grace-row { display: flex; justify-content: space-between; gap: 1rem; color: var(--dim); line-height: 1.7; }
    .aop-grace-remaining { color: var(--text); font-weight: 700; }

    /* SOCIAL */
    .social-grid {
      display: grid; grid-template-columns: repeat(5, 1fr);
      gap: 9px; margin-bottom: 1.5rem;
    }
    .social-btn {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 12px; padding: 1rem 0.5rem;
      text-decoration: none; color: var(--muted);
      display: flex; flex-direction: column;
      align-items: center; gap: 7px;
      font-size: 0.76rem; font-weight: 700; transition: all 0.18s;
    }
    .social-btn svg { width: 21px; height: 21px; fill: currentColor; transition: filter 0.18s; }
    .social-btn.s-twitch:hover    { border-color:#9147ff; color:#9147ff; background:rgba(145,71,255,.08); }
    .social-btn.s-youtube:hover   { border-color:#ff0000; color:#ff0000; background:rgba(255,0,0,.08); }
    .social-btn.s-instagram:hover { border-color:var(--pink); color:var(--pink); background:rgba(255,86,180,.08); }
    .social-btn.s-tiktok          { text-shadow: -1px -1px transparent, 1px 1px transparent; }
    .social-btn.s-tiktok svg      { filter: drop-shadow(-1px -1px 0 transparent) drop-shadow(1px 1px 0 transparent); }
    .social-btn.s-tiktok:hover    { border-color:#00f2ea; color:#000; background:rgba(0,242,234,.08); text-shadow: -1px -1px #00f2ea, 1px 1px #ff0050; }
    .social-btn.s-tiktok:hover svg { filter: drop-shadow(-1px -1px 0 #00f2ea) drop-shadow(1px 1px 0 #ff0050); }
    .social-btn.s-share { cursor: pointer; font-family: inherit; border-color: rgba(0,204,255,0.3); background: rgba(0,204,255,0.15); color: var(--text); }
    .social-btn.s-share:hover { border-color: var(--blue); color: var(--blue); background: rgba(0,204,255,.08); }

    /* DISCORD */
    .discord-card {
      display: flex; align-items: center; gap: 1rem;
      background: var(--surface);
      border: 1px solid rgba(88,101,242,0.25);
      border-left: 3px solid #5865f2;
      border-radius: 14px; padding: 1.15rem 1.4rem;
      text-decoration: none; transition: background 0.2s;
      margin-bottom: 2rem;
    }
    .discord-card:hover { background: var(--surface2); }
    .discord-card--grouped { margin-bottom: 0; border-radius: 14px 14px 0 0; border-bottom: none; }
    .discord-icon {
      width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
      background: rgba(88,101,242,0.1);
      display: flex; align-items: center; justify-content: center;
      color: #5865f2;
    }
    .discord-icon svg { width: 22px; height: 22px; fill: currentColor; }
    .discord-body { flex: 1; }
    .discord-title { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
    .discord-desc  { font-size: 0.78rem; color: var(--muted); }
    .discord-arrow { color: #5865f2; font-size: 1.1rem; font-weight: 700; }

    /* ALLMYLINKS */
    .allmy-card {
      display: flex; align-items: center; gap: 1rem;
      background: var(--surface);
      border: 1px solid rgba(240,41,109,0.25);
      border-left: 3px solid #f0296d;
      border-radius: 0 0 14px 14px; padding: 1.15rem 1.4rem;
      text-decoration: none; transition: background 0.2s;
      margin-bottom: 2rem;
    }
    .allmy-card:hover { background: var(--surface2); }
    .allmy-icon {
      width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
      background: rgba(240,41,109,0.1);
      display: flex; align-items: center; justify-content: center;
      color: #f0296d;
    }
    .allmy-icon svg { width: 20px; height: 20px; }
    .allmy-body { flex: 1; }
    .allmy-title { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
    .allmy-desc  { font-size: 0.78rem; color: var(--muted); }
    .allmy-arrow { color: #f0296d; font-size: 1.1rem; font-weight: 700; }

    /* SHARE + NOTIFY BUTTONS */
    .notify-btn {
      background: none; border: 1px solid var(--border); border-radius: 8px;
      color: var(--muted); cursor: pointer; padding: 5px 10px;
      display: inline-flex; align-items: center; gap: 5px;
      font-size: 0.72rem; font-family: inherit; transition: all 0.18s;
      margin-top: 14px;
    }
    .notify-btn:hover  { border-color: var(--pink); color: var(--pink); }
    .notify-btn.active { border-color: var(--pink); color: var(--pink); }
    .notify-btn svg { width: 13px; height: 13px; fill: currentColor; }

    /* LIVE ELAPSED */
    .live-elapsed { font-size: 0.72rem; color: var(--muted); margin-top: 3px; }

    /* SUPPORT BUTTON */
    .header-name-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .header-actions { display: inline-flex; align-items: center; gap: 6px; }
    .donate-btn {
      display: inline-flex; align-items: center; gap: 6px;
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 50px; padding: 0.3rem 0.65rem;
      font-size: 0.75rem; color: var(--text); text-decoration: none;
      transition: border-color 0.2s, background 0.2s, transform 0.15s;
    }
    .donate-btn:hover { border-color: rgba(255,86,180,0.4); background: var(--surface2); transform: scale(1.06); }
    @keyframes wave-pop {
      0%   { transform: scale(1) rotate(0deg); }
      25%  { transform: scale(1.3) rotate(-15deg); }
      50%  { transform: scale(1.3) rotate(15deg); }
      75%  { transform: scale(1.1) rotate(-8deg); }
      100% { transform: scale(1) rotate(0deg); }
    }
    .support-btn {
      display: inline-flex; align-items: center; gap: 6px;
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 50px; padding: 0.3rem 0.65rem; cursor: pointer;
      transition: border-color 0.2s, background 0.2s;
    }
    .support-btn { transition: border-color 0.2s, background 0.2s, transform 0.15s; }
    .support-btn:hover { border-color: rgba(255,86,180,0.4); background: var(--surface2); transform: scale(1.06); }
    .support-btn.supported { border-color: rgba(255,86,180,0.4); }
    .support-heart { font-size: 0.9rem; line-height: 1; display: inline-block; }
    .support-heart.pop { animation: wave-pop 0.5s ease; }
    .support-count { font-size: 0.7rem; color: var(--muted); }

    /* FOOTER */
    .footer {
      margin-top: 2.5rem; padding-top: 1.5rem;
      border-top: 1px solid var(--border);
      text-align: center; font-size: 0.76rem; color: var(--dim);
    }
    @media (min-width: 700px) {
      html { font-size: 20px; }
      body { padding: 3rem 2rem 2.5rem; }
      .avatar-ring { width: 63px; height: 63px; }
      .avatar-ring img { width: 80px; height: 80px; }
    }

    @media (max-width: 480px) {
      body { padding: 1.75rem 1rem 1.75rem; }
      .streamer-name { font-size: 1.75rem; }
      .countdown-timer { font-size: 2rem; }
      .local-time-val  { font-size: 1.35rem; }
      .social-grid { grid-template-columns: repeat(2, 1fr); }
      .social-btn.s-share { grid-column: 1 / -1; flex-direction: row; padding: 0.85rem 1rem; }
    }
    /* ENTRANCE ANIMATION */
    @keyframes fade-up {
      from { opacity: 0; transform: translateY(14px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .header                { animation: fade-up 0.5s ease both; }
    .tz-banner             { animation: fade-up 0.5s ease 0.08s both; }
    .countdown.visible     { animation: fade-up 0.4s ease both; }
    .section-label         { animation: fade-up 0.5s ease 0.12s both; }
    .schedule              { animation: fade-up 0.5s ease 0.18s both; }
    .social-grid           { animation: fade-up 0.5s ease 0.22s both; }
    .discord-card          { animation: fade-up 0.5s ease 0.26s both; }
    .allmy-card            { animation: fade-up 0.5s ease 0.3s both; }
    #games-label, #clips-label, #top-clips-label { animation: none; }
    .scroll-reveal         { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
    .scroll-reveal.in-view { opacity: 1; transform: none; }

    /* LIVE STATUS */
    .live-badge {
      display: inline-flex; align-items: center; gap: 5px;
      background: #e5173a; color: #fff;
      font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
      letter-spacing: 0.1em; padding: 3px 9px; border-radius: 100px;
      vertical-align: middle; margin-left: 8px;
    }
    .live-dot {
      width: 6px; height: 6px; border-radius: 50%; background: #fff;
      animation: pulse 1.4s ease-in-out infinite;
    }
    .now-playing {
      font-size: 0.75rem; color: var(--muted); margin-top: 5px;
    }
    .now-playing-link {
      color: var(--text); font-weight: 700; text-decoration: none;
      border-bottom: 1px solid rgba(255,255,255,0.2); transition: color 0.18s, border-color 0.18s;
    }
    .now-playing-link:hover { color: var(--blue); border-color: var(--blue); }
    .now-playing-skel { display: inline-block; width: 90px; height: 0.8em; border-radius: 4px; vertical-align: middle; border: none; }
    /* MILESTONE */
    .milestone { margin-top: 8px; }
    .milestone-label { font-size: 0.7rem; color: var(--muted); margin-bottom: 4px; }
    .milestone-label strong { color: var(--text); }
    .milestone-label-skel { display: inline-block; width: 120px; height: 0.7em; border-radius: 3px; vertical-align: middle; }
    .milestone-track { background: var(--surface2); border-radius: 99px; height: 6px; overflow: hidden; }
    .milestone-fill { height: 100%; border-radius: 99px; background: var(--pink); transition: width 1s ease-out; }
    .milestone-fill.skeleton { border-radius: 99px; }
    .milestone.achieved .milestone-track { box-shadow: 0 0 8px rgba(255,215,0,0.35); }
    .milestone.achieved .milestone-fill {
      background: linear-gradient(90deg, #f5c200 0%, #ffe566 45%, #f5c200 100%);
      background-size: 200% 100%;
      animation: milestoneShine 2.2s ease-in-out infinite;
    }
    .milestone.achieved .milestone-label strong {
      color: #FFD700;
      animation: milestoneGlow 2.2s ease-in-out infinite;
    }
    @keyframes milestoneShine {
      0%   { background-position:  200% 0; }
      100% { background-position: -200% 0; }
    }
    @keyframes milestoneGlow {
      0%, 100% { text-shadow: 0 0 4px rgba(255,215,0,0.3); }
      50%       { text-shadow: 0 0 10px rgba(255,215,0,0.75); }
    }

    /* RECENT GAMES */
    .games-row {
      display: flex;
      gap: 10px;
      margin-bottom: 2rem;
      overflow-x: auto;
      padding-bottom: 4px;
      scrollbar-width: none;
    }
    .games-row::-webkit-scrollbar { display: none; }
    .game-cover {
      flex: 1;
      text-decoration: none;
      border-radius: 8px;
      border: 1px solid var(--border);
      overflow: hidden;
      transition: border-color 0.18s;
    }
    @media (hover: hover) and (pointer: fine) { .game-cover:hover { border-color: var(--blue); } }
    .game-cover img {
      width: 100%;
      aspect-ratio: 3/4;
      object-fit: cover;
      display: block;
      transition: transform 0.18s;
    }
    @media (hover: hover) and (pointer: fine) { .game-cover:hover img { transform: scale(1.05); } }
    .game-cover-name {
      font-size: 0.62rem;
      color: var(--muted);
      margin-top: 5px;
      line-height: 1.3;
      text-align: center;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    /* SKELETONS */
    @keyframes card-in {
      from { opacity: 0; transform: translateY(12px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .card-in { animation: card-in 0.3s ease both; }

    @keyframes shimmer {
      0%   { background-position: -200% 0; }
      100% { background-position:  200% 0; }
    }
    .skeleton {
      background: linear-gradient(90deg, var(--surface2) 25%, var(--surface) 50%, var(--surface2) 75%);
      background-size: 200% 100%;
      animation: shimmer 1.4s ease-in-out infinite;
      border-radius: 8px;
    }

    /* CLIPS */
    .clips-grid {
      display: grid; grid-template-columns: repeat(3, 1fr);
      gap: 8px; margin-bottom: 2rem;
    }
    .clip-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 10px; overflow: hidden;
      text-decoration: none; display: block; transition: background 0.18s;
    }
    @media (hover: hover) and (pointer: fine) { .clip-card:hover { background: var(--surface2); } }
    .clip-thumb {
      position: relative; width: 100%; aspect-ratio: 16/9;
      overflow: hidden; background: var(--surface2);
    }
    .clip-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .clip-thumb::after {
      content: '';
      position: absolute; bottom: 0; left: 0; right: 0;
      height: 45%;
      background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
      pointer-events: none;
    }
    .clip-play-overlay {
      position: absolute; inset: 0;
      display: flex; align-items: center; justify-content: center;
      background: rgba(0,0,0,0.25); opacity: 0; transition: opacity 0.2s;
    }
    @media (hover: hover) and (pointer: fine) { .clip-card:hover .clip-play-overlay { opacity: 1; } }
    .clip-play-btn {
      width: 30px; height: 30px; border-radius: 50%;
      background: rgba(145,71,255,0.9);
      display: flex; align-items: center; justify-content: center;
    }
    .clip-play-btn svg { width: 11px; height: 11px; fill: #fff; margin-left: 2px; }
    .clip-info { padding: 0.45rem 0.6rem 0.5rem; }
    .clip-title {
      font-size: 0.68rem; font-weight: 700; color: var(--text);
      line-height: 1.3; margin-bottom: 2px;
      display: -webkit-box; -webkit-line-clamp: 2;
      -webkit-box-orient: vertical; overflow: hidden;
    }
    .clip-footer { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
    .clip-views { font-size: 0.6rem; color: var(--muted); }
    .clip-react-trigger {
      background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
      padding: 2px 6px; cursor: pointer; border-radius: 999px; line-height: 1;
      display: flex; align-items: center; gap: 3px;
      transition: background 0.15s, border-color 0.15s;
    }
    @media (hover: hover) and (pointer: fine) { .clip-react-trigger:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.22); } }
    .clip-reactions-preview { font-size: 0.62rem; color: var(--muted); letter-spacing: 0.01em; }
    .clip-reactions-preview:empty::before { content: '👏'; font-size: 0.8rem; opacity: 0.55; }
    .clip-share-btn {
      position: absolute; top: 6px; right: 6px; z-index: 2;
      background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
      border: none; border-radius: 5px; padding: 4px 7px; cursor: pointer;
      color: #fff; display: flex; align-items: center; gap: 4px;
      font-size: 0.6rem; font-weight: 600; line-height: 1;
      transition: background 0.15s, color 0.15s;
    }
    .clip-share-btn svg { width: 11px; height: 11px; flex-shrink: 0; }
    @media (hover: hover) and (pointer: fine) { .clip-share-btn:hover { background: rgba(145,71,255,0.85); } }
    .clip-share-btn.done { background: rgba(76,175,80,0.85); }

    @keyframes ken-burns {
      from { transform: scale(1) translate(0, 0); }
      to   { transform: scale(1.09) translate(-1.5%, -1%); }
    }
    @media (hover: hover) and (pointer: fine) { .clip-card:hover .clip-thumb img { animation: ken-burns 6s ease-out forwards; } }

    .konami-hint {
      margin-left: 0.5rem; color: var(--border);
      font-size: 0.65rem; letter-spacing: 0.05em;
      user-select: none; cursor: default;
      transition: color 0.3s;
    }
    .konami-hint:hover { color: var(--dim); }
    .clip-duration {
      position: absolute; bottom: 4px; right: 5px; z-index: 1;
      background: rgba(0,0,0,0.72); color: #fff;
      font-size: 0.6rem; font-weight: 700; font-family: 'JetBrains Mono', monospace;
      padding: 1px 4px; border-radius: 3px; pointer-events: none;
    }

    /* SCHEDULE DATE */
    .next-date { font-size: 0.7rem; color: var(--muted); margin-top: 3px; }

    /* BACK TO TOP */
    #back-top {
      position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 200;
      width: 38px; height: 38px; border-radius: 50%;
      background: var(--surface); border: 1px solid var(--border);
      color: var(--muted); font-size: 1rem; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      opacity: 0; pointer-events: none;
      transition: opacity 0.25s, transform 0.25s, background 0.18s;
    }
    #back-top.visible { opacity: 1; pointer-events: auto; }
    #back-top:hover { background: var(--surface2); color: var(--text); transform: translateY(-3px); }

    /* CLIP MODAL */
    .clip-modal {
      position: fixed; inset: 0; z-index: 1000;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: 14px;
    }
    @keyframes modal-backdrop-in  { from { opacity: 0; } to { opacity: 1; } }
    @keyframes modal-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
    @keyframes modal-box-in  { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: none; } }
    @keyframes modal-box-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(0.95) translateY(10px); } }
    .clip-modal-backdrop {
      position: absolute; inset: 0; background: rgba(0,0,0,0.88);
      touch-action: none;
      animation: modal-backdrop-in 0.2s ease;
    }
    .clip-modal.is-closing .clip-modal-backdrop      { animation: modal-backdrop-out 0.18s ease forwards; }
    .clip-modal.is-closing .clip-modal-box           { animation: modal-box-out 0.18s ease forwards; }
    .clip-modal.is-closing .clip-modal-close-bottom  { animation: modal-box-out 0.15s ease forwards; }
    .clip-modal-box {
      position: relative; z-index: 1;
      width: min(880px, 95vw); border-radius: 12px; overflow: hidden; background: #000;
      transition: transform 0.25s ease;
      animation: modal-box-in 0.22s ease;
    }
    .clip-modal-close-bottom {
      animation: modal-box-in 0.25s ease;
    }
    .clip-modal-player { position: relative; padding-top: 56.25%; }
    .clip-modal-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
    .clip-modal-nav {
      display: flex; align-items: center; gap: 4px;
      padding: 0.4rem 0.5rem 0;
    }
    .clip-modal-title {
      flex: 1; min-width: 0;
      font-size: 0.75rem; font-weight: 600; color: var(--text);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
      text-align: center;
    }
    .clip-modal-nav-btn {
      flex-shrink: 0; border: none; cursor: pointer;
      background: rgba(255,255,255,0.1); color: #fff;
      font-size: 1.1rem; line-height: 1; padding: 0;
      width: 32px; height: 32px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      transition: background 0.15s; visibility: hidden;
    }
    @media (hover: hover) and (pointer: fine) { .clip-modal-nav-btn:hover { background: rgba(145,71,255,0.75); } }
    .clip-modal-close {
      position: absolute; top: 0.6rem; right: 0.6rem; z-index: 2;
      width: 30px; height: 30px; border-radius: 50%;
      background: rgba(0,0,0,0.65); border: none; color: #fff;
      font-size: 0.85rem; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: background 0.15s;
    }
    .clip-modal-close:hover { background: rgba(255,255,255,0.15); }
    .clip-modal-reactions {
      position: relative; z-index: 1;
      display: flex; gap: 8px;
      animation: modal-box-in 0.28s ease;
    }
    .clip-modal.is-closing .clip-modal-reactions { animation: modal-box-out 0.15s ease forwards; }
    .reaction-btn {
      background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
      border-radius: 50px; padding: 5px 11px; cursor: pointer;
      color: #fff; font-size: 0.78rem;
      display: flex; align-items: center; gap: 5px;
      transition: background 0.15s, transform 0.15s, border-color 0.15s;
    }
    .reaction-btn:hover { background: rgba(255,255,255,0.2); transform: scale(1.08); }
    .reaction-btn.voted { background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.5); }
    .reaction-count { font-size: 0.7rem; color: rgba(255,255,255,0.65); }

    /* Konami Code */
    @keyframes konami-flash {
      0%   { background: transparent; }
      12%  { background: rgba(255,86,180,0.45); }
      25%  { background: rgba(0,204,255,0.45); }
      38%  { background: rgba(145,71,255,0.45); }
      50%  { background: rgba(255,86,180,0.35); }
      65%  { background: rgba(0,204,255,0.25); }
      80%  { background: rgba(145,71,255,0.15); }
      100% { background: transparent; }
    }
    .konami-flash-overlay {
      position: fixed; inset: 0; z-index: 9998; pointer-events: none;
      animation: konami-flash 0.85s ease forwards;
    }
    @keyframes konami-toast-in  { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
    @keyframes konami-toast-out { from { transform: translateX(0); opacity: 1; } to { transform: translateX(110%); opacity: 0; } }
    .konami-toast {
      position: fixed; bottom: 24px; right: 24px; z-index: 9999;
      background: #1c1c1e; border: 1px solid rgba(255,215,0,0.45);
      border-radius: 10px; padding: 11px 14px;
      display: flex; align-items: center; gap: 11px;
      box-shadow: 0 4px 24px rgba(0,0,0,0.6);
      animation: konami-toast-in 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
      max-width: 270px;
    }
    .konami-toast.is-out { animation: konami-toast-out 0.3s ease forwards; }
    .konami-toast img { width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0; }
    .konami-toast-label { font-size: 0.58rem; color: #FFD700; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
    .konami-toast-title { font-size: 0.78rem; color: #fff; font-weight: 600; margin-top: 2px; }
    .card-react-popover {
      position: fixed; display: flex; align-items: center; gap: 2px;
      padding: 6px 10px;
      background: var(--surface2); border: 1px solid rgba(255,255,255,0.15); border-radius: 999px;
      box-shadow: 0 6px 24px rgba(0,0,0,0.7);
      z-index: 500;
      opacity: 0; pointer-events: none;
      transform: scale(0.82) translateY(6px);
      transition: opacity 0.14s ease, transform 0.14s ease;
    }
    .card-react-popover.visible { opacity: 1; pointer-events: auto; transform: scale(1) translateY(0); }
    .card-react-btn {
      background: none; border: none; cursor: pointer;
      font-size: 1.25rem; padding: 3px 5px; border-radius: 8px; line-height: 1;
      transition: transform 0.12s, background 0.12s;
    }
    .card-react-btn:hover { transform: scale(1.35); background: rgba(255,255,255,0.07); }
    .card-react-btn.voted { background: rgba(139,92,246,0.2); outline: 1px solid rgba(139,92,246,0.5); border-radius: 8px; }

    .clip-modal-close-bottom {
      position: relative; z-index: 1;
      width: 48px; height: 48px; border-radius: 50%;
      background: rgba(0,0,0,0.65); border: none; cursor: pointer;
      color: #fff; font-size: 1.2rem;
      display: flex; align-items: center; justify-content: center;
      transition: background 0.15s;
    }
    .clip-modal-close-bottom:hover { background: rgba(255,255,255,0.15); }

/* Pausar animaciones infinitas cuando la pestaña está en segundo plano */
body.page-hidden .countdown-timer,
body.page-hidden .tz-dot,
body.page-hidden .confirm-badge-dot,
body.page-hidden.is-live::before,
body.page-hidden .live-dot,
body.page-hidden .milestone-fill,
body.page-hidden .milestone-label strong,
body.page-hidden .skeleton { animation-play-state: paused; }
