/*
 * Copyright AlpineReplay Inc, 2026. All rights reserved.
 *
 * Team page additions on top of Tailwind + components.css: the highlight
 * strip, the games signpost, compact game rows, the sticky mobile subscribe
 * bar and the highlight modal. Result and pitch colours are the state-page
 * mockup's; everything teal comes from variables.css.
 */

/* ---------- highlight strip ---------- */
.reel-strip{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding:12px 0 8px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.reel-strip::-webkit-scrollbar{display:none}
.reel-tile{flex:0 0 auto;width:148px;aspect-ratio:9/14;border-radius:16px;overflow:hidden;position:relative;scroll-snap-align:start;background:#0d1a1c;color:#f2f7f7;text-align:left;border:0;padding:0;cursor:pointer;isolation:isolate;box-shadow:0 1px 0 rgba(0,0,0,.05)}
@media(min-width:768px){.reel-tile{width:172px}}
.reel-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 40%;transform:scale(1.02);transition:transform .5s ease}
.reel-tile:hover img{transform:scale(1.08)}
.reel-tile::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(13,26,28,.15) 0%,rgba(13,26,28,0) 30%,rgba(13,26,28,.25) 55%,rgba(13,26,28,.92) 100%)}
.reel-tile .top{position:absolute;top:10px;left:10px;right:10px;display:flex;justify-content:space-between;align-items:center;z-index:1;font-size:11px;font-weight:700}
.reel-tile .chip{background:rgba(13,26,28,.55);backdrop-filter:blur(6px);border-radius:999px;padding:3px 8px;color:#f2f7f7;white-space:nowrap}
.reel-tile .chip.cam{background:var(--teal-40-color);color:#fff}
.reel-tile .play{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.92);display:grid;place-items:center;z-index:1;transition:transform .2s}
.reel-tile:hover .play{transform:translate(-50%,-50%) scale(1.08)}
.reel-tile .play svg{width:16px;height:16px;margin-left:2px;fill:#0d1a1c}
.reel-tile .info{position:absolute;left:10px;right:10px;bottom:10px;z-index:1}
.reel-tile .jersey{font-size:30px;font-weight:800;letter-spacing:-.04em;line-height:1}
.reel-tile .jersey small{font-size:13px;font-weight:700;letter-spacing:0;margin-left:5px;vertical-align:8px}
.reel-tile .what{font-size:12px;font-weight:700;margin-top:4px;text-shadow:0 1px 2px rgba(0,0,0,.4)}
.reel-tile.more{background:#f5f8f8;color:#1b2427;border:1px dashed var(--charcoal-10-color);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;padding:14px;cursor:default;box-shadow:none}
.reel-tile.more::after{display:none}
.reel-tile.more .big{font-size:28px;font-weight:800;letter-spacing:-.03em}
.reel-tile.more .sm{font-size:12px;color:#6f7d82;font-weight:600}

/* ---------- avatar stack ---------- */
.avatar-stack{display:inline-flex;align-items:center;flex:none}
.avatar-stack .av{width:28px;height:28px;border-radius:50%;border:2px solid #fff;background:var(--teal-40-color);color:#fff;font-size:10px;font-weight:800;letter-spacing:.02em;display:inline-grid;place-items:center;margin-left:-9px;object-fit:cover;overflow:hidden;flex:none}
.avatar-stack .av:first-child{margin-left:0}
.avatar-stack .av:nth-child(2){background:#2aa9b1}
.avatar-stack .av:nth-child(3){background:#0f6d73}
.avatar-stack .av:nth-child(4){background:#5fc3c9}

/* ---------- games signpost ---------- */
.signpost{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:12px 14px;text-align:left;cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.signpost .t{font-weight:700;font-size:14px;color:#111827}
.signpost .s{font-size:12px;color:#6b7280;font-weight:500;margin-top:2px}
.signpost .arrow{width:34px;height:34px;border-radius:50%;background:#f3f4f6;display:grid;place-items:center;flex:none;font-size:16px;transition:transform .2s}
.signpost:hover .arrow{transform:translateY(2px)}
.months{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.months span{font-size:11px;font-weight:700;color:#4b5563;background:#f3f4f6;border-radius:999px;padding:3px 8px}

/* ---------- game rows ---------- */
#games{scroll-margin-top:80px}
.game-month{margin-top:18px}
.game-month h3{font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#6b7280;padding-bottom:8px;border-bottom:1px solid #e5e7eb}
.game-row{display:grid;grid-template-columns:72px 1fr auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #e5e7eb}
.game-row:last-child{border-bottom:0}
.game-row .thumb{display:block;width:72px;aspect-ratio:16/10;border-radius:8px;overflow:hidden;background:#0d1a1c;position:relative}
.game-row .thumb img{width:100%;height:100%;object-fit:cover;display:block}
.game-row a.thumb::after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border-style:solid;border-width:5px 0 5px 9px;border-color:transparent transparent transparent #fff;filter:drop-shadow(0 1px 2px rgba(0,0,0,.5))}
.game-row .d{font-size:12px;color:#6b7280;font-weight:600}
.game-row .o{font-size:14px;font-weight:700;color:#111827;margin-top:1px;letter-spacing:-.01em}
.game-row .v{font-size:12px;color:#6b7280;margin-top:1px}
.score{font-size:14px;font-weight:800;border-radius:8px;padding:6px 9px;min-width:56px;text-align:center;letter-spacing:.02em;font-variant-numeric:tabular-nums}
.score small{display:block;font-size:10px;letter-spacing:.08em;font-weight:800;opacity:.8;text-transform:uppercase}
.score.w{background:#eaf6ee;color:#16693a}
.score.l{background:#fceeec;color:#9b2c22}
.score.d{background:#eef1f2;color:#4a585d}
.score.none{background:#f3f4f6;color:#9ca3af}

/* ---------- sticky mobile subscribe bar ---------- */
.team-cta{position:fixed;left:0;right:0;bottom:0;z-index:40;background:#fff;border-top:1px solid #e5e7eb;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));display:flex;align-items:center;justify-content:space-between;gap:12px;box-shadow:0 -6px 20px -12px rgba(0,0,0,.25)}
.team-cta-text{font-size:12px;color:#6b7280;font-weight:600;line-height:1.3;min-width:0}
.team-cta-text b{display:block;color:#111827;font-size:14px;font-weight:800}
.team-cta .btn-primary{flex:none}

/* ---------- highlight modal ---------- */
.reel-modal{position:fixed;inset:0;z-index:60;background:rgba(9,9,11,.6);display:flex;align-items:center;justify-content:center;padding:16px}
.reel-modal[hidden]{display:none}
.reel-dlg{background:#fff;border-radius:18px;max-width:calc(100vw - 32px);width:100%;max-height:calc(100dvh - 32px);overflow-y:auto;padding:22px;position:relative;box-shadow:0 10px 15px -3px rgb(0 0 0/.1),0 4px 6px -4px rgb(0 0 0/.1)}
.reel-dlg h3{font-size:18px;font-weight:800;color:#111827;padding-right:32px;line-height:1.2}
.reel-dlg p{color:#4b5563;font-size:14px;margin-top:6px}
.reel-dlg .x{position:absolute;top:12px;right:12px;border:none;background:#f3f4f6;color:#111827;width:30px;height:30px;border-radius:50%;font-size:16px;line-height:1;cursor:pointer}
.reel-dlg .vid{border-radius:12px;overflow:hidden;background:#111;margin:12px auto 0;position:relative}
.reel-dlg .vid video{display:block;width:100%;height:100%;object-fit:contain}
.reel-dlg .vid canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;mix-blend-mode:overlay}
.reel-dlg .vid:fullscreen{width:100vw!important;height:100vh!important;margin:0;border-radius:0}
.reel-dlg .reel-fullscreen{margin-top:8px;font-size:12px;padding:5px 12px;border:0;border-radius:999px;background:var(--teal-10-color);color:var(--teal-40-color);font-weight:700;cursor:pointer}
.reel-dlg .reel-caption{margin-top:8px;font-size:13px;font-weight:700;color:#111827}
.reel-dlg .reel-caption small{display:block;font-weight:600;color:#6b7280}
.reel-dlg #reel-status{color:#6b7280;font-size:13px;margin-top:6px}
.reel-dlg #reel-status[hidden]{display:none}
.reel-dlg .acts{margin-top:14px}

@media(prefers-reduced-motion:reduce){.reel-tile img,.reel-tile .play,.signpost .arrow{transition:none}}
