/**
 * Learning Library — section styles
 * Inherits lr-card, lr-btn, lr-upgrade-banner from existing dashboard CSS.
 * @since 2.71.0
 */

.lr-ll-coming-soon { padding:24px; }

/* Sport switcher (v2.72.1) — sits above the tab row */
.lr-ll-sport-switcher {
    display:flex;
    align-items:center;
    gap:10px;
    margin: 0 0 14px;
    flex-wrap:wrap;
}
.lr-ll-sport-switcher .lr-ll-picker-label {
    font-size:13px;
    opacity:.7;
}

/* Tabs — selectors raised to beat .lr-section button { color: ... } in dashboard.css */
.lr-ll-tabs {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin: 0 0 16px;
    border-bottom:1px solid rgba(255,255,255,.08);
    padding-bottom:8px;
}
/*
 * !important added v2.71.3 — LiteSpeed Cache + browser-default button gradient
 * were both winning over the v2.71.1 selectors. background-image:none kills the
 * WebKit/Chrome native gradient that survives appearance:none on macOS.
 */
.lr-ll-tabs button.lr-ll-tab,
.lr-section .lr-ll-tabs .lr-ll-tab,
.lr-section .lr-learning-library .lr-ll-tabs button.lr-ll-tab {
    background-color: rgba(255,255,255,.05) !important;
    background-image: none !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    color: rgba(255,255,255,.92) !important;
    padding: 8px 14px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background-color .15s, color .15s, border-color .15s !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    line-height: 1.2 !important;
    text-shadow: none !important;
    box-shadow: none !important;
}
.lr-ll-tabs button.lr-ll-tab:hover,
.lr-section .lr-ll-tabs .lr-ll-tab:hover,
.lr-section .lr-learning-library .lr-ll-tabs button.lr-ll-tab:hover {
    background-color: rgba(255,255,255,.10) !important;
    color: #fff !important;
    border-color: rgba(255,255,255,.30) !important;
}
.lr-ll-tabs button.lr-ll-tab.active,
.lr-section .lr-ll-tabs .lr-ll-tab.active,
.lr-section .lr-learning-library .lr-ll-tabs button.lr-ll-tab.active {
    background-color: rgba(212,175,55,.18) !important;
    color: #d4af37 !important;
    border-color: rgba(212,175,55,.55) !important;
}

.lr-ll-panel { margin-top:8px; }

/* Position picker */
.lr-ll-position-picker {
    display:flex; align-items:center; gap:10px;
    margin:0 0 14px;
}
.lr-ll-picker-label { font-size:13px; opacity:.7; }
.lr-ll-select {
    background:rgba(255,255,255,.06);
    color:#fff;
    border:1px solid rgba(255,255,255,.15);
    padding:6px 10px;
    border-radius:6px;
    font-size:14px;
}

/* Position content blocks */
.lr-ll-tagline { color:rgba(255,255,255,.75); margin: 4px 0 14px; }
.lr-ll-fundamentals, .lr-ll-mistakes, .lr-ll-drills { padding-left:18px; }
.lr-ll-fundamentals li,
.lr-ll-mistakes li,
.lr-ll-drills li { margin-bottom:10px; line-height:1.5; }

/* Rules */
.lr-ll-rule { padding:10px 0; border-bottom:1px solid rgba(255,255,255,.06); }
.lr-ll-rule:last-child { border-bottom:none; }
.lr-ll-rule h4 { margin: 0 0 6px; font-size:15px; }
.lr-ll-rule p  { margin:0 0 6px; line-height:1.55; }
.lr-ll-source { font-size:12px; margin:6px 0 0; }
.lr-ll-source a {
    color:rgba(212,175,55,.9);
    text-decoration:underline;
}
.lr-ll-verified-at {
    margin-left:8px;
    opacity:.55;
    font-style:italic;
}

/* Glossary (Terms tab) */
.lr-ll-glossary-group {
    margin: 18px 0 6px;
    padding-bottom: 4px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(212, 175, 55, .85);
    border-bottom: 1px solid rgba(212, 175, 55, .25);
}
.lr-ll-glossary-group:first-child { margin-top: 6px; }
.lr-ll-glossary { display:grid; grid-template-columns: max-content 1fr; gap:8px 16px; margin:6px 0 0; }
.lr-ll-glossary dt {
    font-weight:600;
    color:#fff;
}
.lr-ll-glossary dd {
    margin:0;
    line-height:1.5;
    color:rgba(255,255,255,.85);
}

/* Strategy items */
.lr-ll-strategy { padding:10px 0; border-bottom:1px solid rgba(255,255,255,.06); }
.lr-ll-strategy:last-child { border-bottom:none; }
.lr-ll-strategy h4 { margin: 0 0 6px; font-size:15px; }
.lr-ll-strategy p  { margin:0; line-height:1.55; }

/* Greats */
.lr-ll-great { padding:18px; position:relative; }
.lr-ll-great-meta { font-size:13px; opacity:.7; margin: 0 0 6px; }
.lr-ll-great-teams {
    font-size: 13px;
    opacity: .7;
    margin: 0 0 12px;
    line-height: 1.45;
}
.lr-ll-great-teams-label {
    font-weight: 600;
    color: rgba(212,175,55,.85);
    margin-right: 4px;
}
.lr-ll-keystat { background:rgba(212,175,55,.06); border-left:3px solid rgba(212,175,55,.45); padding:8px 12px; margin: 10px 0; border-radius:0 4px 4px 0; font-size:14px; }
.lr-ll-great-typebadge {
    display:inline-block;
    font-size:10px;
    letter-spacing:.06em;
    text-transform:uppercase;
    padding:3px 8px;
    border-radius:4px;
    margin:0 0 8px;
    font-weight:700;
}
.lr-ll-great-player .lr-ll-great-typebadge { background:rgba(255,255,255,.08); color:rgba(255,255,255,.7); }
.lr-ll-great-play   .lr-ll-great-typebadge { background:rgba(96,165,250,.14); color:#60a5fa; }
.lr-ll-great-team   .lr-ll-great-typebadge { background:rgba(34,197,94,.14);  color:#22c55e; }
.lr-ll-video {
    margin: 12px 0;
    position:relative;
    padding-bottom:56.25%; /* 16:9 */
    height:0;
    overflow:hidden;
    border-radius:6px;
}
.lr-ll-video iframe {
    position:absolute;
    top:0; left:0;
    width:100%; height:100%;
    border:none;
}
.lr-ll-video-caption {
    font-size:12px;
    opacity:.7;
    margin:4px 0 0;
}
.lr-ll-video-channel {
    margin-left:8px;
    font-style:italic;
    opacity:.7;
}

/* Ask the Coach chat */
/* v2.72.67 — bumped from 18px to 36px so the chat container doesn't
 * visually bleed into the legend-card carousel bottom on mobile. The
 * swipe-deck CSS sets the carousel container to ~140vw tall on mobile;
 * with cards using gold borders that occupy the full visual frame,
 * 18px was reading as "no gap" against the chat header below. */
.lr-ll-coach-card { margin-top: 36px; }
.lr-lc-chat-container { display:flex; flex-direction:column; }
.lr-lc-chat-header {
    display:flex; align-items:center; gap:12px;
    padding-bottom:12px;
    border-bottom:1px solid rgba(255,255,255,.08);
    margin-bottom:12px;
}
.lr-lc-bot-avatar {
    width:36px; height:36px;
    background:rgba(212,175,55,.12);
    border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    color:#d4af37;
}
.lr-lc-header-info h3 { margin:0; font-size:15px; }
.lr-lc-header-info span { font-size:12px; opacity:.7; }

.lr-lc-messages {
    max-height: 320px;
    overflow-y:auto;
    padding: 4px 4px 4px 0;
    margin: 0 0 12px;
}
.lr-lc-message { margin: 0 0 10px; }
.lr-lc-message-user { text-align:right; }
.lr-lc-message-user .lr-lc-message-text {
    display:inline-block;
    background:rgba(212,175,55,.15);
    padding:8px 12px;
    border-radius:10px 10px 2px 10px;
    max-width:80%;
    text-align:left;
}
.lr-lc-message-bot .lr-lc-message-text {
    display:inline-block;
    background:rgba(255,255,255,.06);
    padding:8px 12px;
    border-radius:10px 10px 10px 2px;
    max-width:80%;
    white-space:pre-wrap;
}
.lr-lc-bot-label {
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.04em;
    opacity:.6;
    margin-bottom:4px;
}
.lr-lc-typing .lr-lc-message-text { opacity:.6; }

.lr-lc-input-area {
    display:flex; align-items:flex-end; gap:8px;
    border-top:1px solid rgba(255,255,255,.08);
    padding-top:12px;
}
.lr-lc-input {
    flex:1;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.10);
    color:#fff;
    padding:8px 10px;
    border-radius:8px;
    font-size:14px;
    line-height:1.4;
    resize:none;
    min-height:36px;
    max-height:120px;
}
.lr-lc-send-btn {
    background:#d4af37;
    color:#1a1a1a;
    border:none;
    width:36px; height:36px;
    border-radius:8px;
    display:flex; align-items:center; justify-content:center;
    cursor:pointer;
}
.lr-lc-send-btn:disabled { opacity:.4; cursor:not-allowed; }
.lr-lc-disclaimer {
    font-size:11px;
    opacity:.55;
    margin-top:8px;
    line-height:1.45;
}

/* Mobile */
@media (max-width: 640px) {
    .lr-ll-glossary { grid-template-columns: 1fr; }
    .lr-ll-glossary dt { padding-top:8px; }
    .lr-ll-tabs { gap:6px; }
    .lr-ll-tab { padding:6px 10px; font-size:13px; }
    .lr-lc-messages { max-height: 240px; }
}

/* =========================================================
   v2.72.4 — Mobile Greats playing-card carousel
   ========================================================= */

/* Desktop: track is a no-op wrapper, photo slot hidden, swipe hint hidden. */
.lr-ll-greats-track { display: contents; }
.lr-ll-great-photo-placeholder { display: none; }
.lr-ll-greats-swipe-hint { display: none; }

@media (max-width: 768px) {
    .lr-ll-greats-swipe-hint {
        display: block;
        margin: 0 0 8px;
        font-size: 12px;
        letter-spacing: .04em;
        opacity: .55;
        text-transform: uppercase;
        text-align: center;
    }
    .lr-ll-greats-track {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding: 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 -16px;
        padding: 4px 16px 20px;
    }
    .lr-ll-greats-track::-webkit-scrollbar { display: none; }

    .lr-ll-greats-track .lr-ll-great {
        flex: 0 0 auto;
        width: calc(100vw - 56px);
        max-width: 380px;
        max-height: 78vh;
        overflow-y: auto;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        padding: 14px;
        border-radius: 14px;
        background: linear-gradient(180deg, #1a2538 0%, #111d33 100%);
        border: 2px solid rgba(212,175,55,.35);
        box-shadow: 0 6px 24px rgba(0,0,0,.35);
        position: relative;
    }
    .lr-ll-greats-track .lr-ll-great::-webkit-scrollbar { width: 0; }
    .lr-ll-greats-track .lr-ll-great h3 {
        font-size: 18px;
        margin: 6px 0 4px;
    }
    .lr-ll-greats-track .lr-ll-great .lr-ll-great-meta,
    .lr-ll-greats-track .lr-ll-great .lr-ll-great-teams {
        font-size: 12px;
    }

    /* Photo slot — visible only on mobile, where the playing-card layout
       needs a portrait at the top of every player card. Photos are added
       in a later release; this placeholder reserves the slot. */
    .lr-ll-great-photo-placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        aspect-ratio: 4 / 3;
        background:
            linear-gradient(135deg, rgba(212,175,55,.08) 0%, rgba(255,255,255,.02) 100%),
            repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 6px, rgba(255,255,255,0) 6px 12px);
        border: 1px solid rgba(255,255,255,.08);
        border-radius: 10px;
        margin: 0 0 12px;
        color: rgba(255,255,255,.35);
        font-size: 11px;
        letter-spacing: .12em;
        text-transform: uppercase;
    }
    .lr-ll-great-photo-placeholder::after { content: "Photo"; }
}

/* ==========================================================================
   v2.72.7 — Lightning Legends Player Card
   ==========================================================================
   Brand-aligned playing-card style for player-type entries in the Greats tab.
   460px max width @ 5/7 aspect ratio. Renders on both desktop and mobile;
   the swipe-track parent handles horizontal scroll-snap on small screens.
   Plays + teams continue to use the original .lr-ll-great markup. */

.lr-legend-card {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.lr-legend-card-border {
    border-radius: 18px;
    padding: 10px;
    background: linear-gradient(145deg, #f3e3a3 0%, #D4AF37 26%, #b8941e 58%, #8a6e0a 100%);
    box-shadow: 0 2px 0 rgba(255,255,255,.35) inset,
                0 20px 50px rgba(0,0,0,.45),
                0 0 0 1px rgba(212,175,55,.30);
    position: relative;
}
.lr-legend-card-mat {
    width: 100%;
    border-radius: 12px;
    background: #0f172a;
    padding: 6px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.4) inset;
}
.lr-legend-card-inner {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(160deg, #0a1628 0%, #0f2035 40%, #162d4a 100%);
    display: flex;
    flex-direction: column;
}
.lr-legend-card-inner::before {
    content: '';
    position: absolute; inset: 0;
    z-index: 0;
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.020) 0 2px, transparent 2px 14px);
    pointer-events: none;
}
.lr-legend-card-inner::after {
    content: '';
    position: absolute; inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse 70% 50% at 50% 30%, rgba(212,175,55,.16), transparent 62%);
    pointer-events: none;
}

/* Top ribbon — team line + card number */
.lr-legend-card-ribbon {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 12px;
    background: linear-gradient(90deg, rgba(10,22,40,.9), rgba(22,45,74,.55));
    border-bottom: 2px solid #D4AF37;
}
.lr-legend-card-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.lr-legend-card-bolt {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.5));
}
.lr-legend-card-team-name {
    font-size: 12px;
    font-weight: 900;
    color: #fff;
    letter-spacing: .5px;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lr-legend-card-cardno {
    flex-shrink: 0;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,.60);
}
.lr-legend-card-cardno strong {
    color: #e0c25d;
}

/* Photo + overlays */
.lr-legend-card-photo-wrap {
    position: relative;
    z-index: 1;
    aspect-ratio: 5 / 5;
    overflow: hidden;
    background: #0a1628;
}
.lr-legend-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 16%;
    display: block;
}
.lr-legend-card-photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, rgba(212,175,55,.04), rgba(212,175,55,.10));
}
.lr-legend-card-photo--placeholder svg {
    opacity: .9;
}
.lr-legend-card-photo-wrap::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 42%;
    background: linear-gradient(180deg, transparent, rgba(10,22,40,.55) 55%, #0f172a 100%);
    pointer-events: none;
}

/* Position badge — circular medallion top-right */
.lr-legend-card-pos-badge {
    position: absolute;
    z-index: 4;
    top: 10px;
    right: 10px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f3e3a3, #b8960c);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.45), 0 0 0 2px rgba(10,22,40,.85);
    line-height: 1;
    padding: 4px;
    box-sizing: border-box;
    text-align: center;
}
.lr-legend-card-pos-badge b {
    font-size: 16px;
    font-weight: 900;
    color: #0a1628;
}
.lr-legend-card-pos-badge small {
    display: block;
    font-size: 6.5px;
    font-weight: 800;
    letter-spacing: 1px;
    color: rgba(10,22,40,.7);
    text-transform: uppercase;
    margin-top: 1px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Cursive signature overlay on the photo */
.lr-legend-card-signature {
    position: absolute;
    z-index: 4;
    left: 14px;
    bottom: 14px;
    font-family: 'Brush Script MT', 'Segoe Script', cursive;
    font-size: 26px;
    color: #fff;
    transform: rotate(-6deg);
    text-shadow: 0 2px 8px rgba(0,0,0,.6);
    opacity: .92;
    pointer-events: none;
    max-width: 70%;
}

/* Name banner — gold strip with the player name */
.lr-legend-card-banner {
    position: relative;
    z-index: 5;
    margin: -1px 0 0;
    padding: 10px 16px 12px;
    background: linear-gradient(90deg, #b8960c, #D4AF37 50%, #b8960c);
    border-top: 2px solid #f3e3a3;
    border-bottom: 2px solid #8a6e0a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.lr-legend-card-name {
    flex: 1;
    min-width: 0;
    font-size: 28px;
    font-weight: 900;
    color: #0a1628;
    line-height: .9;
    letter-spacing: -1px;
    text-shadow: 0 1px 0 rgba(255,255,255,.25);
}
.lr-legend-card-fname {
    display: block;
    font-style: normal;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(10,22,40,.72);
    margin-bottom: 2px;
}
.lr-legend-card-name small {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(10,22,40,.7);
    margin-top: 3px;
}
.lr-legend-card-meta {
    flex-shrink: 0;
    text-align: right;
    line-height: 1.25;
}
.lr-legend-card-meta span {
    display: block;
    font-size: 9.5px;
    font-weight: 700;
    color: rgba(10,22,40,.78);
    letter-spacing: .3px;
}
.lr-legend-card-meta span strong {
    color: #0a1628;
}

/* Career stats grid + accolades footer */
.lr-legend-card-career {
    position: relative;
    z-index: 3;
    background: #0a1628;
    padding: 9px 12px 11px;
}
.lr-legend-card-career-title {
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #e0c25d;
    margin-bottom: 7px;
    text-align: center;
}
.lr-legend-card-career-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 6px;
    overflow: hidden;
}
.lr-legend-card-cstat {
    background: rgba(15,23,42,.92);
    padding: 6px 2px 5px;
    text-align: center;
    min-width: 0;
}
.lr-legend-card-cstat-num {
    font-size: 13px;
    font-weight: 900;
    color: #D4AF37;
    line-height: 1;
    letter-spacing: -.5px;
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lr-legend-card-cstat-lbl {
    font-size: 6px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lr-legend-card-accolades {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}
.lr-legend-card-accolade {
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #e0c25d;
    background: rgba(212,175,55,.08);
    border: 1px solid rgba(212,175,55,.30);
    padding: 3px 7px;
    border-radius: 999px;
}

/* Photo attribution line (CC BY / CC BY-SA license requirement) */
.lr-legend-card-attribution {
    margin: 6px 0 0;
    font-size: 10px;
    color: rgba(255,255,255,.4);
    text-align: center;
    line-height: 1.4;
}

/* Hide the v2.72.4 placeholder slot when the new card is in use; we
   render our own photo/placeholder inside the card. */
.lr-legend-card + .lr-ll-great-photo-placeholder,
.lr-ll-great-photo-placeholder + .lr-legend-card {
    display: none;
}

/* =====================================================================
   v2.72.61 — Sports Library polish pass
   =====================================================================
   Three refinements applied without disturbing the existing premium
   Lightning Legends card design:

   (1) Tool intros — each of the 7 Sports Library tabs has its own
       intro header. Earlier these were raw inline-styled h2 + p. Now
       they get a gold accent rule + refined typography so each tool
       feels like its own product, not a row in a list.

   (2) Historic Plays + Historic Teams cards — previously bare
       .lr-card surfaces, looked downgraded next to the gold-bordered
       Legends player cards. Now they get a subtle gold rule + tighter
       typographic hierarchy + better breathing room.

   (3) Paywall block — was a single flat gradient panel. Now uses
       refined layered glow + a gold underline accent so the upgrade
       CTA feels intentional rather than perfunctory.

   Tabs are NOT changed in this pass — the current gold-pill active
   state is already working and the !important fight against theme
   CSS / LiteSpeed makes any change here high-risk.
   ===================================================================== */

/* ---------- (1) Tool intros ---------- */
.lr-ll-tool-intro {
    position: relative;
    margin: 0 0 22px;
    padding: 4px 0 14px 16px;
    border-left: 3px solid rgba(212,175,55,.55);
}
.lr-ll-tool-intro h2 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.lr-ll-tool-intro p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: rgba(255,255,255,.65);
    max-width: 640px;
}

/* ---------- (2) Historic Plays + Historic Teams cards ---------- */
/* The plays + teams cards inside their own panels (TAB 5, TAB 6) live
 * inside an .ll-carousel just like the Legends carousel. Each card uses
 * .lr-ll-great-play or .lr-ll-great-team. Polish their appearance so
 * they read as premium curated cards, not raw narrative blocks. */
.lr-ll-great-play,
.lr-ll-great-team {
    position: relative;
    padding: 18px 20px 20px;
    background: linear-gradient(165deg, #11243f 0%, #0f1d33 100%);
    border: 1px solid rgba(212,175,55,.30);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.02) inset;
    line-height: 1.55;
}
.lr-ll-great-play::before,
.lr-ll-great-team::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 14px;
    background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(212,175,55,.10), transparent 60%);
}
.lr-ll-great-play > *,
.lr-ll-great-team > * {
    position: relative;
    z-index: 1;
}
.lr-ll-great-play h3,
.lr-ll-great-team h3 {
    margin: 4px 0 6px;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: #fff;
}
.lr-ll-great-play .lr-ll-great-meta,
.lr-ll-great-team .lr-ll-great-meta {
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(212,175,55,.75);
    margin: 0 0 14px;
    opacity: 1;
}
.lr-ll-great-play p,
.lr-ll-great-team p {
    margin: 0 0 10px;
    color: rgba(255,255,255,.85);
    font-size: 14.5px;
    line-height: 1.65;
}
.lr-ll-great-play p:last-of-type,
.lr-ll-great-team p:last-of-type {
    margin-bottom: 0;
}
.lr-ll-great-play .lr-ll-keystat,
.lr-ll-great-team .lr-ll-keystat {
    margin-top: 14px;
    background: rgba(212,175,55,.08);
    border-left: 3px solid rgba(212,175,55,.55);
    border-radius: 0 6px 6px 0;
    padding: 10px 14px;
    font-size: 13.5px;
    line-height: 1.55;
    color: rgba(255,255,255,.92);
}
.lr-ll-great-play .lr-ll-keystat strong,
.lr-ll-great-team .lr-ll-keystat strong {
    color: #d4af37;
    letter-spacing: .02em;
}

/* Refine the type badge so it sits on the new card surface cleanly */
.lr-ll-great-play .lr-ll-great-typebadge,
.lr-ll-great-team .lr-ll-great-typebadge {
    background: rgba(212,175,55,.10);
    color: #d4af37;
    border: 1px solid rgba(212,175,55,.35);
    font-size: 9.5px;
    letter-spacing: .12em;
    padding: 4px 9px;
    border-radius: 999px;
}

/* ---------- (3) Paywall polish ---------- */
.lr-ll-paywall {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.lr-ll-paywall::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(212,175,55,.18), transparent 65%),
                radial-gradient(ellipse 100% 60% at 50% 100%, rgba(15,23,42,.85), transparent 70%);
    pointer-events: none;
}
.lr-ll-paywall::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 56px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    border-radius: 2px;
}
.lr-ll-paywall h3 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.lr-ll-paywall a.lr-btn,
.lr-ll-paywall .lr-btn-gold {
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
    box-shadow: 0 4px 14px rgba(212,175,55,.35);
}
.lr-ll-paywall a.lr-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(212,175,55,.5);
}

/* ---------- Section breathing room ---------- */
/* Slightly more vertical rhythm between cards and the paywall block. */
.lr-learning-library .lr-card + .lr-card,
.lr-learning-library .lr-card + .lr-ll-paywall,
.lr-learning-library .ll-carousel + .lr-ll-paywall {
    margin-top: 14px;
}

/* ---------- Refined position taglines + rule typography ---------- */
.lr-ll-tagline {
    color: rgba(212,175,55,.85);
    font-style: italic;
    font-size: 14px;
    margin: 6px 0 16px;
    line-height: 1.5;
}
.lr-ll-rule h4,
.lr-ll-strategy h4 {
    color: #fff;
    font-weight: 700;
    letter-spacing: -.005em;
}
.lr-ll-rule p,
.lr-ll-strategy p {
    color: rgba(255,255,255,.85);
    line-height: 1.65;
}

/* ---------- Mobile refinements ---------- */
@media (max-width: 640px) {
    .lr-ll-tool-intro {
        margin-bottom: 16px;
        padding-left: 12px;
    }
    .lr-ll-tool-intro h2 {
        font-size: 20px;
    }
    .lr-ll-tool-intro p {
        font-size: 12.5px;
    }
    .lr-ll-great-play,
    .lr-ll-great-team {
        padding: 16px;
        border-radius: 12px;
    }
    .lr-ll-great-play h3,
    .lr-ll-great-team h3 {
        font-size: 19px;
    }
    .lr-ll-great-play p,
    .lr-ll-great-team p {
        font-size: 13.5px;
    }
}

/* ============================================================
   v2.72.316 — card-system pass (approved card-menu sample).
   Cascade utility: direct children rise in with the sample's exact
   curve (.55s cubic-bezier(.19,1,.22,1), 55ms stagger, capped after
   the 11th child so long lists don't crawl). Pure CSS — add the
   .lr-ll-cascade class to any container.
   ============================================================ */
@keyframes lrLLCardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.lr-ll-cascade > * {
  animation: lrLLCardIn .55s cubic-bezier(.19,1,.22,1) backwards;
}
.lr-ll-cascade > *:nth-child(1)  { animation-delay: 0ms; }
.lr-ll-cascade > *:nth-child(2)  { animation-delay: 55ms; }
.lr-ll-cascade > *:nth-child(3)  { animation-delay: 110ms; }
.lr-ll-cascade > *:nth-child(4)  { animation-delay: 165ms; }
.lr-ll-cascade > *:nth-child(5)  { animation-delay: 220ms; }
.lr-ll-cascade > *:nth-child(6)  { animation-delay: 275ms; }
.lr-ll-cascade > *:nth-child(7)  { animation-delay: 330ms; }
.lr-ll-cascade > *:nth-child(8)  { animation-delay: 385ms; }
.lr-ll-cascade > *:nth-child(9)  { animation-delay: 440ms; }
.lr-ll-cascade > *:nth-child(10) { animation-delay: 495ms; }
.lr-ll-cascade > *:nth-child(11) { animation-delay: 550ms; }
.lr-ll-cascade > *:nth-child(n+12) { animation-delay: 605ms; }
@media (prefers-reduced-motion: reduce) {
  .lr-ll-cascade > * { animation: none; }
}

/* Terms & Strategy — each term/strategy is its own card row with the
   gold top stripe (sample treatment; replaces the dl/dt/dd lists). */
.lr-ll-term-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 13px 14px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}
.lr-ll-term-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #d4af37, transparent);
  pointer-events: none;
}
.lr-ll-term-word {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #d4af37;
}
.lr-ll-term-def {
  font-size: 13px;
  color: rgba(255,255,255,.72);
  line-height: 1.55;
  margin-top: 3px;
}

/* Position Playbook — positions are tappable cards (abbr + name),
   replacing the dropdown (sample treatment). Active = gold. */
.lr-ll-pos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}
.lr-ll-pos-card {
  background: rgba(255,255,255,.03);
  background-image: none;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  color: inherit;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  transition: transform .12s ease, border-color .15s ease, background-color .15s ease;
}
.lr-ll-pos-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #d4af37, transparent);
  pointer-events: none;
}
.lr-ll-pos-card:hover { border-color: rgba(255,255,255,.22); }
.lr-ll-pos-card:active { transform: scale(0.96); }
.lr-ll-pos-card.active {
  background: rgba(212,175,55,.12);
  border-color: rgba(212,175,55,.55);
}
.lr-ll-pos-abbr {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .03em;
  color: #d4af37;
  line-height: 1.1;
}
.lr-ll-pos-name {
  font-size: 11px;
  color: rgba(255,255,255,.65);
  margin-top: 3px;
}

/* ============================================================
   v2.72.316 — Lightning Legends mini-card grid (card-system pass 2,
   approved sample anatomy: gold frame -> navy mat -> pinstriped inner,
   ribbon, photo + signature + medallion, name banner). Tap = flip to
   Quick Note; expand chip / view pills = full card. lr-llg-* namespace.
   ============================================================ */
.lr-ll-legend-viewrow {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 0 0 12px;
}
.lr-llg-viewpill {
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  background-image: none;
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.75);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  transition: color .25s ease, background-color .25s ease, border-color .25s ease;
}
.lr-llg-viewpill.active {
  background: rgba(212,175,55,.16);
  border-color: rgba(212,175,55,.55);
  color: #d4af37;
}

.lr-ll-legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.lr-llg-card {
  perspective: 1000px;
  -webkit-perspective: 1000px;
  aspect-ratio: 5 / 6.8;
  cursor: pointer;
  outline: none;
}
.lr-llg-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform .65s cubic-bezier(.19,1,.22,1);
}
.lr-llg-card.flipped .lr-llg-inner { transform: rotateY(180deg); }
.lr-llg-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.lr-llg-back { transform: rotateY(180deg); }

/* front anatomy — palette copied from the live legend card / sample */
.lr-llg-frame {
  height: 100%;
  border-radius: 12px;
  padding: 5px;
  background: linear-gradient(145deg, #f3e3a3 0%, #d4af37 26%, #b8941e 58%, #8a6e0a 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 10px 26px rgba(0,0,0,.45);
  box-sizing: border-box;
}
.lr-llg-mat {
  height: 100%;
  border-radius: 8px;
  background: #0f172a;
  padding: 3px;
  box-sizing: border-box;
}
.lr-llg-in {
  position: relative;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(160deg, #0a1628 0%, #0f2035 40%, #162d4a 100%);
  display: flex;
  flex-direction: column;
}
.lr-llg-in::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 2px, transparent 2px 14px);
  pointer-events: none;
}
.lr-llg-ribbon {
  position: relative; z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 8px;
  background: linear-gradient(90deg, rgba(10,22,40,.9), rgba(22,45,74,.55));
  border-bottom: 1.5px solid #d4af37;
}
.lr-llg-team {
  min-width: 0;
  font-size: 8px; font-weight: 800; letter-spacing: .5px;
  text-transform: uppercase; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lr-llg-no { flex-shrink: 0; font-size: 7px; font-weight: 800; letter-spacing: 1px; color: rgba(255,255,255,.6); text-transform: uppercase; }
.lr-llg-no b { color: #e0c25d; }
.lr-llg-photo {
  position: relative; z-index: 1;
  flex: 1;
  min-height: 0;
  background: linear-gradient(160deg, rgba(212,175,55,.04), rgba(212,175,55,.10));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.lr-llg-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.lr-llg-photo svg { width: 42%; height: auto; color: rgba(212,175,55,.5); }
.lr-llg-photo::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  background: linear-gradient(180deg, transparent, rgba(10,22,40,.55) 55%, #0f172a 100%);
  pointer-events: none;
}
.lr-llg-sign {
  position: absolute; z-index: 4;
  left: 8px; bottom: 6px;
  font-family: 'Brush Script MT', 'Segoe Script', cursive;
  font-size: 15px;
  color: #fff;
  transform: rotate(-6deg);
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
  opacity: .92;
  pointer-events: none;
  max-width: 70%;
  white-space: nowrap;
  overflow: hidden;
}
/* v2.72.317 — corner position ribbon (the original card's banner, scaled
   to the mini card; replaces the abbreviation circle) */
.lr-llg-posribbon {
  position: absolute; z-index: 4;
  top: 0; right: 0;
  width: 84px; height: 84px;
  overflow: hidden;
  pointer-events: none;
}
.lr-llg-posribbon > div {
  position: absolute;
  top: 17px; right: -28px;
  width: 115px;
  transform: rotate(45deg);
  text-align: center;
  background: linear-gradient(90deg, #b8960c, #d4af37 50%, #b8960c);
  color: #0a1628;
  font-weight: 900;
  text-transform: uppercase;
  padding: 3px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.45);
  border-top: 1px solid #f3e3a3;
  border-bottom: 1px solid #8a6e0a;
  line-height: 1;
}
.lr-llg-expand {
  position: absolute; z-index: 6;
  top: 6px; left: 6px;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,.5);
  background: rgba(10,22,40,.75);
  background-image: none;
  color: #d4af37;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: transform .12s ease, background-color .15s ease;
}
.lr-llg-expand:active { transform: scale(0.85); background: rgba(212,175,55,.25); }
.lr-llg-expand svg { width: 12px; height: 12px; }
.lr-llg-banner {
  position: relative; z-index: 5;
  padding: 5px 8px 6px;
  background: linear-gradient(90deg, #b8960c, #d4af37 50%, #b8960c);
  border-top: 1.5px solid #f3e3a3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.lr-llg-banner-names { min-width: 0; }
/* v2.72.317 — team logo medallions in the gold band (the original card's
   v2.72.90 medallions, scaled to the mini card) */
.lr-llg-banner-logos {
  flex-shrink: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  flex-wrap: wrap;
  max-width: 46%;
}
.lr-llg-teamlogo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff6da 0%, #d4af37 48%, #8a6e0a 100%);
  padding: 1.5px;
  box-shadow: 0 1px 3px rgba(0,0,0,.4), 0 0 0 1px rgba(10,22,40,.45);
  box-sizing: border-box;
  overflow: hidden;
}
.lr-llg-teamlogo img {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #ffffff, #e8eaed);
  object-fit: contain;
  display: block;
}
.lr-llg-teamlogo-flag img { object-fit: cover; background: none; }
.lr-llg-fname {
  font-size: 7px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; color: rgba(10,22,40,.72);
}
.lr-llg-lname {
  font-size: 15px; font-weight: 900; color: #0a1628;
  line-height: 1; letter-spacing: -0.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lr-llg-era { font-size: 7px; font-weight: 700; letter-spacing: .5px; color: rgba(10,22,40,.72); margin-top: 2px; }

/* quick-note back face */
.lr-llg-backframe {
  height: 100%;
  border-radius: 12px;
  padding: 5px;
  background: linear-gradient(145deg, #8a6e0a 0%, #b8941e 40%, #d4af37 100%);
  box-sizing: border-box;
}
.lr-llg-backin {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(160deg, #0a1628, #162d4a);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  box-sizing: border-box;
  text-align: center;
}
.lr-llg-back-title {
  font-size: 10px; font-weight: 800; letter-spacing: .14em;
  color: #e0c25d; text-transform: uppercase;
}
.lr-llg-back-fact { font-size: 12px; color: #f4f4f8; line-height: 1.5; }
/* pointer to the full card (Christian 2026-07-19) */
.lr-llg-back-hint { font-size: 10px; color: rgba(224,194,93,0.75); margin-top: 8px; font-style: italic; }

/* v2.72.317 — expanded = the ORIGINAL pre-update card (learning-legend-
   card.php included inside .lr-llg-full): full 460:700 card, tap spins it,
   bio + video on the back. The expand chip ANIMATES the swap (Christian
   2026-07-06: "should have an animation, not just an instant change"). */
.lr-llg-full { display: none; }
.lr-llg-card.expanded {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  cursor: default;
}
.lr-llg-card.expanded .lr-llg-inner { display: none; }
.lr-llg-card.expanded .lr-llg-full {
  display: flex;
  justify-content: center;
  position: relative;
  animation: lrLlgGrow .5s cubic-bezier(.19,1,.22,1) backwards;
}
@keyframes lrLlgGrow {
  from { opacity: 0; transform: translateY(12px) scale(.62); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
/* collapsing back replays the mini card's own entrance */
.lr-llg-card.collapsing .lr-llg-inner {
  animation: lrLlgMiniIn .4s cubic-bezier(.19,1,.22,1) backwards;
}
@keyframes lrLlgMiniIn {
  from { opacity: 0; transform: scale(.9); }
  to   { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .lr-llg-card.expanded .lr-llg-full,
  .lr-llg-card.collapsing .lr-llg-inner { animation: none; }
}
/* the original card flips via the same convention as the old carousel */
.lr-llg-full .ll-card-flipper.is-flipped {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}
.lr-llg-collapse {
  position: absolute; z-index: 7;
  /* sits on the photo's top-left corner (below the team band) — the same
     spot the mini card's expand chip occupies; top of the card would cover
     the team name */
  top: 62px; left: calc(50% - min(230px, 50vw - 16px) + 14px);
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,.5);
  background: rgba(10,22,40,.75);
  background-image: none;
  color: #d4af37;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: transform .12s ease, background-color .15s ease;
}
.lr-llg-collapse:active { transform: scale(0.85); background: rgba(212,175,55,.25); }
.lr-llg-collapse svg { width: 14px; height: 14px; }

@media (max-width: 480px) {
  .lr-ll-legend-grid { grid-template-columns: 1fr 1fr; }
}

/* v2.72.316 — card-system pass 3: Historic Plays + Historic Teams as a
   vertical cascading stack of full-width narrative cards (replaces the
   460:700 swipe deck whose fixed aspect + inner scroll fought the
   variable-length content). Content unchanged. */
.lr-ll-greats-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 18px;
}
.lr-ll-greats-list .lr-ll-great { margin: 0; }
