﻿/* ------------------------------------------------------
   NEO-GLASS NEON GLOW — FULL WOW STYLE
------------------------------------------------------ */

body {
    background: radial-gradient(circle at 20% 20%, #1a1a1f, #0d0d12 60%, #000000 100%) !important;
    font-family: 'Karla', 'Segoe UI', sans-serif;
    color: #e5faff;
    overflow-x: hidden;
}

/* כותרות */
h1, .country-title, .genre-title {
    font-family: 'Fraunces', 'Segoe UI', serif;
    font-size: 46px !important;
    font-weight: 600;
    color: #b4e7ff !important;
    letter-spacing: -0.01em;
    text-shadow: 0 0 12px rgba(0, 255, 255, 0.35), 0 0 22px rgba(0, 150, 255, 0.25);
    margin-bottom: 25px;
}

/* ------------------------------------------------------
   COLLECTION HERO — נוסף 19/09/2026. כותרת דף הקולקציה + פקדי
   Play All, בפאנל אחד עם נפח אמיתי — לא עוד שורה דחוסה שבה
   הכותרת מצטמצמת ליד הכפתורים (h1.page-inline-title למטה
   דרס בעבר את גודל ה-h1 הכללי כאן, כי הייתה לו ספציפיות
   גבוהה יותר — זו הייתה הסיבה האמיתית שהכותרת בדף האוסף
   נשארה קטנה גם אחרי שהוגדל h1 באופן גלובלי).
   כל דפי הקולקציה מקבלים את המסגרת/הכותרת הגדולה; עבור
   אוספים עם JSON וידאו, heroCollage.js ממלא בנוסף קולאז'
   מטושטש מתמונות אמיתיות של אותו אוסף ספציפי ברקע (עצמאי
   לגמרי מ-VideoGrid.js, ר' הערה בקובץ עצמו).
------------------------------------------------------ */
.collection-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 16px;
    padding: 40px 40px 24px;
    margin: 4px 0 28px;
    background:
        radial-gradient(circle at 12% 15%, rgba(0,255,255,0.10), transparent 55%),
        linear-gradient(160deg, #0d1f1f, #0a1414 85%);
    border: 1px solid rgba(0,255,255,0.16);
}

    .collection-hero-bg {
        position: absolute;
        inset: 0;
        z-index: 0;
    }

        .collection-hero-bg .hero-bg-strip {
            display: flex;
            width: 100%;
            height: 100%;
        }

            .collection-hero-bg .hero-bg-strip img {
                flex: 1 1 25%;
                min-width: 0;
                height: 100%;
                object-fit: cover;
                filter: saturate(1.15) brightness(0.8);
            }

        .collection-hero-bg::after {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(175deg, rgba(6,14,16,0.35) 0%, rgba(6,14,16,0.82) 62%, rgba(8,17,17,0.96) 100%);
        }

    /* השורה "> h1.page-inline-title" הוחלפה ב-"> .collection-hero-titlerow"
       ב-23/09/2026: ה-h1 עבר להיות נכד (לא ילד ישיר) של collection-hero,
       עטוף יחד עם collection-hero-back — ר' ההערה הגדולה ב-cshtml. */
    .collection-hero > .collection-hero-titlerow,
    .collection-hero > .playall-controls {
        position: relative;
        z-index: 1;
    }

    .collection-hero h1.page-inline-title {
        display: block;
        -webkit-line-clamp: unset;
        overflow: visible;
        font-size: clamp(38px, 6vw, 60px) !important;
        line-height: 1.05;
        margin: 0 0 20px !important;
    }

    .collection-hero .playall-controls {
        margin-bottom: 0 !important;
    }

@media (max-width: 600px) {
    .collection-hero {
        padding: 28px 22px 18px;
    }

        .collection-hero h1.page-inline-title {
            font-size: clamp(28px, 9vw, 40px) !important;
        }
}

/* ------------------------------------------------------
   BACK-TO-X באותה שורה עם הכותרת — נוסף 23/09/2026, בדסקטופ בלבד,
   לפי בקשה מפורשת: "תשים את ה בק טו קנטריז באותה שורה כמו שם המדינה
   כך שיחסוך מקום". page-topbar (השורה הנפרדת המקורית, מעל הפאנל) ממשיך
   להיות מה שמוצג במובייל — שם אין מספיק רוחב לדחוק קישור-חזרה+כותרת-
   ענקית זה-לצד-זה בלי לפגוע בקריאוּת. collection-hero-back (העותק השני,
   בתוך הפאנל) מוצג רק בדסקטופ. שני ה-media queries חייבים להישאר
   תמונת-מראה מדויקת אחד של השני (901px גבול-תחתון כאן = 900px גבול-עליון
   של essay-artist-grid למעלה — אותו "דסקטופ" בדיוק בכל העמוד הזה).
   29/09/2026: בכל עמודי האוסף collection-hero-back מוצג גם במובייל (כגלולה
   בצד ימין של שורת השם), ו-page-topbar הופך לכפתור צף — ר' סקשן
   "MOBILE — כפתור חזרה צף" מתחת ל-collection-grid-heading. */
.collection-hero-back {
    display: none;
}

/* שורת הכותרת העליונה של הדף (back-button + מד-ההתקדמות של מובייל) —
   הוחלף מ-style מוטבע ל-class ב-23/09/2026, כדי שיהיה אפשר להסתיר אותה
   בדסקטופ במדיה-קוורי מיד למטה — style מוטבע מנצח תמיד מדיה-קוורי
   חיצוני, אז זה היה הכרחי. אותם ערכים בדיוק כמו ה-style הקודם. *הכלל
   הזה חייב לבוא לפני ה-media query הבא* (לא אחריו, למרות שזה ה"בסיס")
   — לשניהם אותה specificity, אז ב-CSS מנצח המאוחר-יותר בקובץ; לו הוא
   היה אחרי, ה-display:none של הדסקטופ היה נדרס תמיד. */
.page-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

@media (min-width: 901px) {
    .page-topbar {
        display: none;
    }

    .collection-hero-titlerow {
        display: flex;
        align-items: baseline;
        flex-wrap: wrap;
        column-gap: 18px;
        row-gap: 4px;
    }

        .collection-hero-back {
            display: inline-block;
            flex-shrink: 0;
            white-space: nowrap;
            font-size: 15px;
        }

    /* יעד-הנחיתה של playall-controls אחרי ההזזה ע"י bcPlaceControls()
       ב-CollectionPage.cshtml (נקודה 3 בבקשה, 23/09/2026): collection-grid-
       heading הופך לשורת flex כדי שהקיקר "The Collection" והכפתורים
       (שהוזזו-בפועל לכאן ב-JS, לא שוכפלו) יישבו ממש ליד זה את זה. אין צורך
       ב-!important למרות שיש כלל-בסיס ל-essay-kicker/playall-controls עם
       margin-bottom: הסלקטור כאן דו-מחלקתי אז הספציפיות שלו גבוהה יותר
       ומנצחת ממילא, בלי תלות בסדר-בקובץ (בניגוד לבאג ה-cascade שתועד
       ב-page-topbar).
       תוקן באותו יום: justify-content היה space-between (קיקר בקצה שמאל,
       כפתורים בקצה ימין — כמו page-topbar) — אבל במסך רחב בפועל זה יצר
       פער-ענק ביניהם, כך שלא נראו "ליד" זה את זה בכלל אלא כשני אלמנטים
       נפרדים בקצוות מנוגדים של השורה. המשתמש חזר במפורש: "אני רוצה אותם
       ליד ה-The Collection". הוחלף ל-flex-start כדי שהקיקר והכפתורים
       יתקבצו צמוד אחד לשני בצד שמאל של השורה, בלי תלות ברוחב-המסך. */
    .collection-grid-heading {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: wrap;
        column-gap: 20px;
        row-gap: 8px;
    }

        .collection-grid-heading .essay-kicker,
        .collection-grid-heading .playall-controls {
            margin-bottom: 0;
        }
}

/* קיקר "The Collection" — ממשיך את שפת "The Story" של המאמר;
   מופיע רק כשיש בכלל מאמר, כדי שלא יהיו שני "פרקים" בלי סיפור
   ראשון שמצדיק את החלוקה */
.collection-grid-heading {
    margin: 4px 0 18px;
}

/* ------------------------------------------------------
   MOBILE — כפתור חזרה צף (כל עמודי האוסף) + הסדר בעמודי מדינות
   נוסף 29/09/2026 לפי בקשה מפורשת: "במובייל - במדינות: שורה ראשונה:
   שם המדינה ו בק טו ראנטריז(את בק טו קאנטריז ארצה לעשות ככפתור צף)
   שורה שניה: כתבות שורה שלישית: פליי אול, שאפלד\פיקסד אורדר, 4\1
   בשורה שורה חמישית: וידאואים". באותו יום הכפתור הצף הורחב לפי בקשה
   מפורשת: "תעשה את הכפתור הצף גם ב Genres, Specials ו-Big Town וARTISTS".
   1) שורה ראשונה — השם, ובצד ימין של אותה שורה "← Countries" /
      "← Genres" / "← Specials" / "← Big Town" (collection-hero-back,
      שעד היום הוצג רק בדסקטופ). השורה הנפרדת "Back to ..." שמעל
      ה-hero (page-topbar) כבר לא תופסת מקום. במובייל רק "← Countries"
      וכו' (ה-span של "Back to " מוסתר) — הנוסח המלא דוחק את השם לשורה
      נפרדת ב-390px. בפרופיל-אמן אין שורת שם (הכל ממורכז, התמונה
      ראשונה), אז "← Artists" יושב בשורה קטנה משלו מעל התמונה, מיושר
      לימין (bc-back-row).
   2) הכפתור הצף — הקישור שב-page-topbar הופך לגלולה קבועה
      (position:fixed) שמוסתרת עד שהעותק שבדף (bc-back-slot) מגיע בגלילה
      לקו שמתחת להדר, ואז מופיעה בדיוק שם ונשארת צפה לאורך כל הדף
      (הסקריפט ב-CollectionPage.cshtml). הקו = ה-top של הגלולה הצפה:
      ≤600px — מתחת לגלולת ההתקדמות (#mobile-bar-wrap: top 90, גובה
      ‏25px) שכבר יושבת בפינה הימנית-העליונה; 601-900px — שם אין גלולת
      התקדמות ואין שורת קישורים קבועה, אז 12px מתחת להדר (60px), ועם
      שורת ה-Now Playing (22px) — מתחתיה. z-index 1400 — כמו גלולת
      ההתקדמות: מתחת לתפריט הצד (1500) ול-#floating-playall.
   3) עמודי מדינות בלבד (הם היחידים עם כתבות): הכפתורים יורדים מתחת
      לכתבות — זה כבר ב-HTML (PlayAllControls ב-cshtml). כאן: הקיקר
      "The Collection" מוסתר במובייל, ו-margin-bottom של הכפתורים
      מתאפס — 40px מהכתבות (ה-margin הקיים של essay-artist-scroll-wrap)
      ו-18px עד הסרטונים, כך שהשורה נקראת ככותרת של הסרטונים ולא
      כהמשך של הכתבות.
   הכל בתוך max-width: 900px — אותו גבול בדיוק כמו page-topbar/
   collection-hero-back למעלה — אז בדסקטופ לא משתנה אף פיקסל.
   ספציפיות: הסלקטורים של העותק שבדף הם דו-מחלקתיים (.back-button.
   bc-back-slot) בכוונה — הכלל הכללי .back-button (font-size 18px,
   text-shadow) מופיע בהמשך הקובץ, ובספציפיות שווה הוא היה מנצח.
------------------------------------------------------ */
.bc-back-row {
    display: none;
}

@media (max-width: 900px) {
    .page-topbar--floatback {
        margin-bottom: 0;
    }

    /* שני העותקים — אותו מראה בדיוק (גלולה בשפה של #mobile-bar-wrap),
       כדי שההחלפה ביניהם בזמן גלילה לא תורגש */
    .page-topbar--floatback .back-button,
    .back-button.bc-back-slot {
        align-items: center;
        margin: 0;
        padding: 6px 12px;
        border-radius: 999px;
        font-size: 13px;
        line-height: 1.2;
        white-space: nowrap;
        text-shadow: none;
        background: rgba(10, 25, 32, 0.92);
        border: 1px solid rgba(0, 255, 255, 0.3);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }

        .page-topbar--floatback .back-button:hover,
        .back-button.bc-back-slot:hover {
            text-decoration: none;
            text-shadow: none;
        }

        .page-topbar--floatback .bc-back-to,
        .bc-back-slot .bc-back-to {
            display: none;
        }

    body[data-theme="light"] .page-topbar--floatback .back-button,
    body[data-theme="light"] .back-button.bc-back-slot {
        background: #ffffff;
        border-color: #c9a84c;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .page-topbar--floatback .back-button {
        display: none;
        position: fixed;
        top: 72px;
        right: 12px;
        z-index: 1400;
    }

    body.now-playing-active .page-topbar--floatback .back-button {
        top: 94px;
    }

    body.bc-back-docked .page-topbar--floatback .back-button {
        display: inline-flex;
    }

    body.bc-back-docked .back-button.bc-back-slot {
        visibility: hidden;
    }

    /* שורה ראשונה: השם משמאל, הגלולה בקצה הימני. min-width:auto (במקום
       ה-0 הכללי של page-inline-title) — כדי ששם ארוך לא יישבר באמצע
       מילה. כשהמילה הארוכה ביותר + הגלולה לא נכנסות ברוחב (נמדד על כל
       113 המדינות: ב-390px זה 7 שמות שיש בהם מילה ארוכה מדי — Mozambique,
       Afghanistan, Guadeloupe, Switzerland, Philippines וכו'), הגלולה
       עוברת לשורה משלה — wrap-reverse שם אותה *מעל* השם, בפינה הימנית-
       העליונה של הפאנל, ולא משתלשלת מתחתיו; השם נשאר שלם ובגודל הרגיל.
       max-width:100% — רק למילה שרחבה אפילו מכל השורה (לא קורה אף פעם
       במדינות, אבל אפשרי בשמות של ז'אנרים/ספיישלס): בלעדיו min-width:auto
       היה משאיר אותה רחבה מהפאנל, והיא הייתה נחתכת בקצה (overflow:hidden
       של ה-hero); איתו היא נשברת לשורה הבאה, כמו שהיה לפני השינוי. */
    .collection-hero--floatback .collection-hero-titlerow {
        display: flex;
        align-items: center;
        flex-wrap: wrap-reverse;
        column-gap: 10px;
        row-gap: 8px;
    }

        .collection-hero--floatback .collection-hero-back {
            display: inline-flex;
            order: 2;
            flex-shrink: 0;
            margin-left: auto;
        }

        .collection-hero--floatback h1.page-inline-title {
            min-width: auto;
            max-width: 100%;
        }

    /* פרופיל-אמן: השורה של "← Artists" מעל התמונה, מיושרת לימין. 8px
       מלמעלה — כך שב-≤600px היא נוחתת בדיוק על הקו של הכפתור הצף
       (123px), ומתחילה לצוף כבר בפיקסל הראשון של הגלילה בלי לזוז. */
    .bc-back-row {
        display: flex;
        justify-content: flex-end;
        margin: 8px 0 10px;
    }

        .bc-back-row .back-button.bc-back-slot {
            display: inline-flex;
        }

    /* hero בלי כפתורים (עמוד עם כתבות): בלי ה-20px שהיו שמורים מתחת
       לשם עבור שורת הכפתורים, וריווח שווה למעלה ולמטה */
    .collection-hero--titleonly {
        padding-top: 24px;
        padding-bottom: 24px;
    }

        .collection-hero--titleonly h1.page-inline-title {
            margin-bottom: 0 !important;
        }

    .collection-grid-heading .essay-kicker {
        display: none;
    }

    .collection-grid-heading .playall-controls {
        margin-bottom: 0;
    }
}

@media (max-width: 600px) {
    .page-topbar--floatback .back-button,
    body.now-playing-active .page-topbar--floatback .back-button {
        top: 123px;
    }

    /* בלי שורת ה-"Back to ..." הישנה, ה-hero עלה עד כמעט-מגע עם גלולת
       ההתקדמות הצפה (תחתיתה ב-115px, ה-hero התחיל ב-119px) — 14px
       אוויר ביניהן במקום 4 */
    .collection-hero--floatback {
        margin-top: 14px;
    }

    .collection-hero--titleonly {
        padding-top: 22px;
        padding-bottom: 22px;
    }
}

/* מאמר מקור — עוצב-מחדש 23/09/2026 לפי בקשה מפורשת: "תוריד את החלק
   שכתוב בו - דה סטורי, טראקס, ספאן וארק. ואת הכתבה+התמונה תעשה בגודל
   של הכתבות+התמונה שיש בעמודי הריבועים כמו יפן". שני שינויים ביחד:
   1) בלוק essay-meta (קיקר "The Story" + סטטיסטיקות Tracks/Span/Arc)
      הוסר לגמרי מה-cshtml (לא רק מוסתר כאן) — ר' CollectionPage.cshtml.
   2) הפאנל-הירו הרחב הקודם (עד 1180px, עמודת-מטא+גוף+תמונה-בצד-עם-bleed)
      הוחלף בכרטיס צר יחיד בסגנון essay-artist-tile: תמונה בראש הכרטיס
      (כמו essay-artist-image), טקסט מתחתיה, אותו רקע כהה-שטוח (#110e14)
      ואותם פינות/צל כמו essay-artist-card — בלי מסגרת מופרדת. הטקסט
      האמיתי (4 פסקאות מלאות) ארוך בהרבה מביו-אמן של 2-4 משפטים, אז
      בניגוד לכרטיס הריבועי אין aspect-ratio קבוע — הגובה גדל חופשי לפי
      התוכן; רק הרוחב תואם את קנה-המידה של כרטיס יחיד. חל על brasil/
      ireland/newzealand/australia/ethiopia/jamaica — כל העמודים שעדיין
      משתמשים בפורמט "כתבה בודדת" (paragraphs) ולא במבנה-האמנים (artists)
      כמו יפן/ישראל/צרפת/איטליה/סקוטלנד/גרמניה. אין עוד הבדל מבני בין
      .collection-essay ל-.collection-essay--featured (המחלקה עדיין
      מתווספת ב-cshtml כשיש featureImage, אבל לא צריכה כלל-CSS נפרד
      משלה יותר — התמונה, כשקיימת, פשוט מופיעה בתוך אותו פריסת-flex). */
.collection-essay {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 440px;
    margin: 0 0 40px;
    background: #110e14;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 42px -14px rgba(0,0,0,0.65), 0 8px 18px -8px rgba(0,0,0,0.5);
}

    .essay-kicker {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-family: 'IBM Plex Mono', 'Segoe UI', monospace;
        font-size: 11px;
        letter-spacing: 0.12em;
        color: #061414;
        background: #5af7ff;
        padding: 4px 10px;
        border-radius: 999px;
        margin-bottom: 20px;
    }

    .essay-body {
        order: 2;
        padding: 22px 24px 26px;
    }

    .collection-essay h2 {
        font-family: 'Fraunces', 'Segoe UI', serif;
        font-size: 22px !important;
        font-weight: 600;
        color: #ffffff !important;
        letter-spacing: -0.01em;
        text-shadow: none;
        margin: 0 0 12px;
    }

    .collection-essay p {
        max-width: none;
        color: #c9e8e8;
        font-size: 13.5px;
        line-height: 1.7;
        margin: 0 0 13px;
    }

        .collection-essay p:last-child {
            margin-bottom: 0;
        }

    /* תמונה בראש הכרטיס — כמו essay-artist-image ביפן: גובה קבוע,
       object-fit:cover, גרדיאנט-דהייה תחתון (לא עוד bleed צידי כמו
       בעיצוב הקודם). נתון אופציונלי (essay.featureImage) — לא כל
       אוסף חייב להגדיר אותו; כשאין, essay-body פשוט תופס את הכרטיס לבד. */
    .essay-feature-image {
        order: 1;
        position: relative;
        height: 220px;
        flex-shrink: 0;
        overflow: hidden;
    }

        .essay-feature-image::before {
            content: "";
            position: absolute;
            inset: 0;
            z-index: 1;
            background: linear-gradient(180deg, rgba(17,14,20,0) 55%, rgba(17,14,20,0.92) 100%);
        }

        .essay-feature-image img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: saturate(1.1) brightness(0.85);
        }

    /* מבנה "משבצות" — כתבה קצרה נפרדת לכל אמן, כל אחת עם תמונה משלה.
       נוסף 20/09/2026 לדף יפן, נתון אופציונלי (essay.Artists); כשקיים,
       הוא מחליף לגמרי את פאנל ה-.collection-essay הרציף. */
    .essay-intro {
        max-width: 1180px;
        margin: 4px 0 28px;
    }

        .essay-intro h2 {
            font-family: 'Fraunces', 'Segoe UI', serif;
            font-size: 38px;
            font-weight: 600;
            color: #ffffff;
            letter-spacing: -0.01em;
            margin: 14px 0 18px;
        }

    .essay-stats--row {
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
    }

        .essay-stats--row div {
            margin-bottom: 0;
        }

    /* גלילה אופקית — נוסף 21/09/2026 למובייל בלבד, אז הורחב שוב ל-3
       עמודות+זיגזג בדסקטופ (ר' git history). **הורחב פעם נוספת
       23/09/2026 לכל רוחב מעל 640px, לפי בקשה מפורשת:** "תשים את כל
       הכתבות בשורה אחת ואם הם עולים על שורה שיגללו ימינה ושמאלה" —
       6+ כרטיסים בגריד-3-עמודות-עם-זיגזג תפסו הרבה יותר מדי גובה
       בדסקטופ (זוהה: ~1070px לישראל לבדה). עכשיו אותו מנגנון-גלילה
       בדיוק שכבר הוכח על מובייל (flex+overflow-x+snap) הוא ברירת
       המחדל לכל רוחב מעל 640px — הגריד/הזיגזג/החלוקה-ל-2-עמודות-
       ב-900px (שהיו כאן קודם) הוסרו כי אין יותר "עמודות" לדבר עליהן.
       רוחב הכרטיס בדסקטופ (ר' essay-artist-tile למטה) הוא clamp
       רספונסיבי, לא 78vw כמו במובייל (78vw היה נראה ענק על מסך רחב).
       ניסיון ראשון (300-380px) יצר גלישה אמיתית בתוויות/שמות-אמנים
       ארוכים בכמה מדינות קיימות (סקוטלנד עד 94px, איטליה, גרמניה) —
       נבדק ותוקן באותו יום עם מדידת-DOM אמיתית (scrollWidth-clientWidth,
       לא ספירת-תווים) על כל 19 עמודי-משבצות הקיימים, לא רק ישראל, כי
       זה שינוי ב-CSS משותף. הערך הסופי (400-440px) עבר את אותה בדיקה
       בלי אף גלישה אחת. המשמעות: פחות כרטיסים נראים בבת-אחת (כ-2 מלאים
       + הצצה בדסקטופ רגיל, לא 3) — עדיפות מכוונת לתוכן שלם וקריא על
       פני צפיפות ויזואלית מקסימלית. כפתורי הקודם/הבא (essay-scroll-nav)
       מוצגים כברירת מחדל בכל רוחב מסך מאותה סיבה — לא רק במובייל
       כמו קודם. */
    .essay-artist-scroll-wrap {
        position: relative;
        margin: 28px 0 40px;
    }

    .essay-artist-grid {
        display: flex;
        align-items: flex-start;
        gap: 16px;
        margin: 0;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scroll-behavior: smooth;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(90, 247, 255, 0.3) transparent;
    }

        .essay-artist-grid::-webkit-scrollbar {
            height: 6px;
        }

        .essay-artist-grid::-webkit-scrollbar-track {
            background: transparent;
        }

        .essay-artist-grid::-webkit-scrollbar-thumb {
            background: rgba(90, 247, 255, 0.3);
            border-radius: 999px;
        }

    /* selector מקומי (essay-artist-scroll-wrap .essay-scroll-nav, לא רק
       essay-scroll-nav) כי לכפתור יש גם מחלקת ah-btn הקיימת, שמגדירה
       display:inline-flex בלי media query — באותה specificity, ומאוחר
       יותר בקובץ, אז הייתה מנצחת display:none "רגיל". הוספת ה-wrapper
       ל-selector מעלה את ה-specificity כדי שה-הצגה תנצח בוודאות (עכשיו
       מוצגים בברירת המחדל, לא רק במובייל — ר' ההערה למעלה). */
    .essay-artist-scroll-wrap .essay-scroll-nav {
        display: inline-flex;
    }

    .essay-scroll-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        /* z-index:6 ולא 2 — גבוה מ-.essay-artist-tile.expanded (z-index:5),
           כדי שכפתורי הקודם/הבא (כשמוצגים, במובייל) יישארו לחיצים גם
           כשהכרטיס הראשון בשורה פתוח (מצב expanded), ולא ייחסמו מתחתיו.
           נמצא ב-preview 21/09/2026. */
        z-index: 6;
        background: rgba(10, 14, 16, 0.55);
        backdrop-filter: blur(4px);
    }

    .essay-scroll-prev {
        left: -6px;
    }

    .essay-scroll-next {
        right: -6px;
    }

        /* כרטיסי האמנים — עוצב-מחדש שנית 20/09/2026, אחרי השוואה מפורשת
           מול תמונת-הרפרנס שהמשתמש שלח, נקודה-נקודה:
           1) תא אחיד כמעט-ריבועי לכל כרטיס (aspect-ratio קבוע על העטיפה
              החיצונית) — לא גובה משתנה לפי אורך הטקסט.
           2) פינות "סקוורקל" רכות ויותר עגולות (28px על הכרטיס הפנימי).
           3) צל נוכח כבר במנוחה, לא רק ב-hover.
           4) שכבת-זוהר מטושטשת מאחורי הכרטיס, מהתמונה האמיתית של האמן
              עצמו (essay-artist-glow — כבר קיים ב-HTML), לא גרדיאנט גנרי.
           5) בלי מסגרת ורודה גלויה — רק צל מפריד בין הכרטיסים.
           6) משטח שטוח כמעט-שחור ("מסך"), לא גרדיאנט אלכסוני מעוצב.
           7-8) שורה אחת נגללת אופקית לכל רוחב מסך מעל 640px (עודכן
              23/09/2026 — ר' ההערה הגדולה ליד essay-artist-scroll-wrap
              למעלה); רוחב הכרטיס קבוע-רספונסיבי (clamp), לא "עמודה
              מתוך N" יותר. במובייל (≤640px) אותו עיקרון בדיוק, רק
              רוחב-יחס-למסך (78vw) במקום clamp, ר' @media(max-width:640px)
              למטה.
           9) התוכן מורכב לתוך קנבס קבוע (line-clamp על הפסקה) ולא זורם
              ומותח את הכרטיס.
           מבנה: essay-artist-tile = עטיפה חיצונית relative, קובעת את
           היחס-גובה-רוחב הקבוע ומארחת את הזוהר (בורח מעבר לשוליים).
           essay-artist-card = עטיפה פנימית absolute/inset:0, זו שנחתכת
           ומוצללת בפועל — כדי שהזוהר לא ייחתך יחד עם הכרטיס. */
        .essay-artist-tile {
            position: relative;
            aspect-ratio: 1 / 1.05;
            flex: 0 0 clamp(400px, 30vw, 440px);
            scroll-snap-align: start;
        }

            /* "זיגזג" (היסטי, הוצג 20/09-23/09/2026) — הוסר כליל 23/09/2026
               לפי בקשה מפורשת: "אני רוצה אותם כשורה בגובה זהה". היה
               תלוי ב-3-עמודות-גריד (העמודה קבעה איזה margin-top); עכשיו
               שהפריסה היא שורה-אחת-נגללת (flex, לא grid), "מיקום בעמודה"
               כבר לא קיים כמושג, וכל הכרטיסים יושבים ישר, אותו גובה,
               אותו קו-עליון — בדיוק כמו שכבר עבד במובייל מאז 21/09. */

            /* הזוהר עצמו נשאר תמונת-האמן האמיתית (לא הומצא) — אבל נוסף
               20/09/2026 ::after ורוד/מג'נטה עם mix-blend-mode:color
               שצובע אותה מחדש לכיוון הפלטה של הרפרנס (עדיין "מטושטש
               מהתמונה עצמה", לא גרדיאנט גנרי - ה-blend רק מחליף גוון,
               לא מחליף תוכן). ה-::after יורש את ה-blur של ה-glow כי
               filter על ההורה חל גם על פסאודו-אלמנטים שלו. */
            .essay-artist-glow {
                position: absolute;
                inset: -18px;
                background-size: cover;
                background-position: center;
                filter: blur(30px) saturate(1.4) brightness(0.5);
                opacity: 0.65;
                border-radius: 40px;
                z-index: 0;
                transition: opacity .3s ease;
            }

                .essay-artist-glow::after {
                    content: "";
                    position: absolute;
                    inset: 0;
                    background: radial-gradient(120% 120% at 50% 30%, #ff2d7a 0%, #ff0a5c 55%, transparent 85%);
                    mix-blend-mode: color;
                    border-radius: inherit;
                }

                .essay-artist-tile:hover .essay-artist-glow {
                    opacity: 0.9;
                }

            .essay-artist-card {
                position: absolute;
                inset: 0;
                z-index: 1;
                display: flex;
                flex-direction: column;
                background: #110e14;
                border-radius: 28px;
                overflow: hidden;
                box-shadow: 0 20px 42px -14px rgba(0,0,0,0.65), 0 8px 18px -8px rgba(0,0,0,0.5);
                transition: transform .3s cubic-bezier(.19,1,.22,1), box-shadow .3s ease;
            }

                .essay-artist-tile:hover .essay-artist-card {
                    transform: translateY(-6px);
                    box-shadow: 0 26px 50px -12px rgba(0,0,0,0.7), 0 10px 22px -8px rgba(0,0,0,0.55);
                }

                .essay-artist-image {
                    position: relative;
                    height: 56%;
                    flex-shrink: 0;
                    overflow: hidden;
                }

                    .essay-artist-image img {
                        display: block;
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                        filter: saturate(1.1) brightness(0.85);
                        transition: transform .4s ease;
                    }

                    .essay-artist-tile:hover .essay-artist-image img {
                        transform: scale(1.05);
                    }

                    .essay-artist-image::after {
                        content: "";
                        position: absolute;
                        inset: 0;
                        background: linear-gradient(180deg, rgba(17,14,20,0) 60%, rgba(17,14,20,0.95) 100%);
                    }

                    /* קרדיט צלם על התמונה — נוסף 26/09/2026 (רק לתמונות Wikimedia
                       ברישיון CC, ר' ההערה ב-CollectionPage.cshtml). פינה ימנית-
                       עליונה ולא תחתונה: למטה יושב ה-::after (גרדיאנט שמתמזג לטקסט
                       הכרטיס) והקרדיט היה נקרא כחלק מהכרטיס עצמו. top/right של
                       12/16px ולא צמוד יותר — הכרטיס חתוך בפינות 28px עגולות, ותגית
                       צמודה לפינה הייתה נחתכת. z-index:2 כדי לעלות מעל ה-::after.
                       אותו עיצוב בשתי התמות בכוונה: התגית יושבת על התמונה עצמה, לא
                       על רקע הכרטיס, ופיל כהה-שקוף עם טקסט לבן קריא על כל תמונה.
                       שורה אחת עם "…" (כמו essay-artist-label) — אף פעם לא נשבר. */
                    .essay-photo-credit {
                        position: absolute;
                        top: 12px;
                        right: 16px;
                        z-index: 2;
                        max-width: calc(100% - 32px);
                        white-space: nowrap;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        font-family: 'Karla', 'Segoe UI', sans-serif;
                        font-size: 10.5px;
                        line-height: 1.5;
                        letter-spacing: 0.01em;
                        color: rgba(255,255,255,0.9);
                        background: rgba(12,10,14,0.58);
                        -webkit-backdrop-filter: blur(4px);
                        backdrop-filter: blur(4px);
                        padding: 1px 8px;
                        border-radius: 999px;
                        text-decoration: none;
                        opacity: 0.85;
                        transition: opacity .2s ease, background-color .2s ease;
                    }

                        a.essay-photo-credit:hover,
                        a.essay-photo-credit:focus-visible {
                            opacity: 1;
                            color: #ffffff;
                            background: rgba(12,10,14,0.82);
                            text-decoration: underline;
                        }

                .essay-artist-text {
                    flex: 1;
                    min-height: 0;
                    display: flex;
                    flex-direction: column;
                    padding: 14px 18px 16px;
                }

                    /* max-width/nowrap/ellipsis נוספו 21/09/2026: תווית ארוכה
                       (כמו "A thousand-year-old poem, freshly arranged" אצל
                       HaBrera HaTiv'it) הייתה נשברת לשתי שורות ברוחב הכרטיס
                       הקבוע החדש (~230px אחרי המעבר לגלילה), ובלי min-height
                       מוגן (ל-h3/p יש overflow:hidden שמבטל את הרצפה
                       האוטומטית שלהם ב-flexbox) שתי השורות "דחסו" את הכותרת
                       שמתחת עד שנחתכה/חפפה אותן. פתרון תואם למה ש-h3 כבר
                       עושה: שורה אחת עם "…". display השתנה ל-inline-block כי
                       text-overflow:ellipsis לא עובד אמין על inner-flex. */
                    .essay-artist-label {
                        display: inline-block;
                        align-self: flex-start;
                        max-width: 100%;
                        white-space: nowrap;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        font-family: 'IBM Plex Mono', 'Segoe UI', monospace;
                        font-size: 10px;
                        letter-spacing: 0.06em;
                        text-transform: uppercase;
                        color: #ff9fc7;
                        background: rgba(255,45,122,0.14);
                        border: 1px solid rgba(255,45,122,0.32);
                        padding: 4px 10px;
                        border-radius: 999px;
                        margin-bottom: 8px;
                    }

                    .essay-artist-tile h3 {
                        font-family: 'Fraunces', 'Segoe UI', serif;
                        font-size: 18px;
                        font-weight: 700;
                        color: #ffffff;
                        letter-spacing: -0.01em;
                        margin: 0 0 6px;
                        white-space: nowrap;
                        overflow: hidden;
                        text-overflow: ellipsis;
                    }

                    .essay-artist-tile p {
                        font-family: 'Karla', 'Segoe UI', sans-serif;
                        font-size: 13px;
                        line-height: 1.55;
                        color: #cdbdc7;
                        margin: 0;
                        display: -webkit-box;
                        -webkit-line-clamp: 2;
                        -webkit-box-orient: vertical;
                        overflow: hidden;
                    }

                    /* "קרא עוד" — נוסף 21/09/2026 כי ה-line-clamp (הכרחי לתא אחיד,
                       ר' ההערה למעלה) השאיר משפטים נראים "חתוכים" בלי דרך להשלים
                       אותם. כפתור טקסט קטן, טהור-CSS מלבד toggle class אחד ב-onclick
                       (שני span שמתחלפים לפי .expanded — אותו פטרן בדיוק כמו
                       החלפת אייקון שמש/ירח ב-Artists.css). בברירת מחדל מוצג על כל
                       כרטיס — כל ה-6 הביוגרפיות ביפן ארוכות מ-2 שורות בפועל, אז אין
                       צורך במדידת-JS כדי להחליט מתי להראות אותו. */
                    .essay-artist-more {
                        align-self: flex-start;
                        margin-top: 8px;
                        background: none;
                        border: none;
                        padding: 0;
                        font-family: 'IBM Plex Mono', 'Segoe UI', monospace;
                        font-size: 10.5px;
                        letter-spacing: 0.05em;
                        text-transform: uppercase;
                        color: #ff6fa8;
                        cursor: pointer;
                    }

                        .essay-artist-more:hover {
                            color: #ff9fc7;
                        }

                        .essay-artist-tile .ea-less-label {
                            display: none;
                        }

                        .essay-artist-tile.expanded .ea-more-label {
                            display: none;
                        }

                        .essay-artist-tile.expanded .ea-less-label {
                            display: inline;
                        }

                    /* מצב "מורחב" — שובר את גובה-האחיד רק לתא הזה (הגריד מזרים
                       מחדש את שאר השורה סביבו, כרגיל ב-CSS Grid); שאר התאים
                       נשארים בדיוק באותו גודל. */
                    .essay-artist-tile.expanded {
                        aspect-ratio: unset;
                        z-index: 5;
                    }

                        .essay-artist-tile.expanded .essay-artist-card {
                            position: static;
                        }

                        .essay-artist-tile.expanded .essay-artist-image {
                            height: 200px;
                        }

                        .essay-artist-tile.expanded .essay-artist-tile h3,
                        .essay-artist-tile.expanded h3 {
                            white-space: normal;
                        }

                        .essay-artist-tile.expanded p {
                            -webkit-line-clamp: unset;
                            display: block;
                            overflow: visible;
                        }

/* בלוק @media(max-width:900px) שהיה כאן (גריד 2-עמודות) הוסר כליל
   23/09/2026 — התייתר לגמרי: הבסיס כבר שורה-אחת-נגללת מ-641px ומעלה,
   אין יותר "עמודות" שצריך לצמצם מ-3 ל-2 בטווח הזה. */

@media (max-width: 640px) {
    /* הבלוק הקודם כאן (grid-template-columns/essay-meta/תיקון ה-position
       ל-essay-feature-image) בוטל כולו 23/09/2026: העיצוב-מחדש של
       .collection-essay לכרטיס-יחיד בסגנון essay-artist-tile (ר' ההערה
       הגדולה למעלה, ליד ההגדרה הבסיסית) כבר עובד מלא-רוחב/flex-column
       בכל רוחב מסך מהבסיס עצמו — אין יותר grid להפוך ל-1fr, אין עוד
       essay-meta שצריך order, ו-position:relative על essay-feature-image
       כבר קבוע בכלל הבסיסי (לא רק כאן), כך שהבאג המתועד למעלה כבר
       לא יכול לקרות. נשאר רק כיוונון עדין למסכים צרים. */
    .essay-feature-image {
        height: 180px;
    }

    .essay-body {
        padding: 18px 20px 22px;
    }

    .essay-intro h2 {
        font-size: 28px;
    }

    .essay-stats--row {
        gap: 20px;
    }

    /* עודכן 23/09/2026: מאז שהבסיס עצמו הפך לשורה-אחת-נגללת (ר' ההערה
       הגדולה ליד essay-artist-scroll-wrap למעלה), הבלוק הזה כבר לא
       "הופך" גריד לגלילה — רק מכוונן שני פרטים ספציפיים-למובייל: רוחב
       כרטיס יחסי-למסך (78vw במקום ה-clamp של דסקטופ, למטה) ו-padding/
       gap קצת שונים. הזיגזג (:nth-child) הוסר כליל מהבסיס, לא רק כאן. */
    .essay-artist-grid {
        display: flex;
        align-items: flex-start;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scroll-behavior: smooth;
        padding: 22px 6px 18px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(90, 247, 255, 0.3) transparent;
    }

        .essay-artist-grid::-webkit-scrollbar {
            height: 6px;
        }

        .essay-artist-grid::-webkit-scrollbar-track {
            background: transparent;
        }

        .essay-artist-grid::-webkit-scrollbar-thumb {
            background: rgba(90, 247, 255, 0.3);
            border-radius: 999px;
        }

    .essay-artist-tile {
        flex: 0 0 78vw;
        scroll-snap-align: start;
    }

    /* טקסט נחתך בכרטיס — תוקן 29/09/2026. הכרטיס בגובה קבוע (יחס
       1:1.05), והתמונה תפסה 56% ממנו. בטלפון לא נשאר מספיק גובה לכיתוב,
       לשם, לשתי שורות הטקסט ול-"Read more" (כ-154 פיקסלים), ולכן השם
       והטקסט נדחסו: ב-360 השם קיבל כ-15 פיקסלים גובה, והזנב של האותיות
       והשורה השנייה של הטקסט נחתכו. עכשיו הטקסט מקבל את הגובה הטבעי שלו,
       והתמונה ממלאת את מה שנשאר (object-fit: cover חותך אותה קצת יותר
       מלמעלה ולמטה). הכרטיס עצמו לא משנה גודל. במצב "Read more" הכלל
       של .expanded (ספציפי יותר) עדיין קובע לתמונה 200px. */
    .essay-artist-image {
        height: auto;
        flex: 1 1 auto;
        min-height: 0;
    }

    .essay-artist-text {
        flex: 0 0 auto;
    }

    /* selector מקומי (essay-artist-scroll-wrap .essay-scroll-nav) שוב,
       כדי לנצח בוודאות את essay-scroll-nav.display:none של ה-base —
       זה המקום היחיד שבו כפתורי הקודם/הבא בכלל מוצגים. */
    .essay-artist-scroll-wrap .essay-scroll-nav {
        display: inline-flex;
    }
}

/* כפתור חזרה */
.back-button {
    color: #5af7ff !important;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(0,255,255,0.4);
}

    .back-button:hover {
        color: #9affff !important;
        text-shadow: 0 0 14px rgba(0,255,255,0.6);
    }

/* ------------------------------------------------------
   VIDEO CARD
------------------------------------------------------ */

.video-card {
    position: relative;
    border-radius: 20px !important;
    padding: 10px;
    background: rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 255, 255, 0.28) !important;
    box-shadow: inset 0 0 18px rgba(0, 255, 255, 0.15), 0 0 22px rgba(0, 255, 255, 0.18), 0 8px 28px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    transition: transform .35s cubic-bezier(.19,1,.22,1);
    scroll-margin-top: 76px; /* keeps the card clear of the fixed 60px header when jumped to */
}

    .video-card:hover {
        transform: translateY(-10px) scale(1.04);
    }

.video-thumb {
    width: 100%;
    border-radius: 14px;
    display: block;
}

/* ------------------------------------------------------
   PLAY ICON — overlay on thumbnail before playback
   Always visible (works on touch/mobile), brightens on hover (desktop)
------------------------------------------------------ */

.play-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 5;
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    transition: opacity 0.25s ease, background 0.25s ease;
}

.video-card:hover .play-icon {
    opacity: 1;
    background: rgba(0, 0, 0, 0.35);
}

.play-icon::before {
    content: "";
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    border: 2px solid rgba(255, 255, 255, 0.65);
    transition: transform 0.25s ease;
}

.video-card:hover .play-icon::before {
    transform: scale(1.1);
}

.play-icon::after {
    content: "";
    position: relative;
    z-index: 1;
    width: 0;
    height: 0;
    margin-left: 6px; /* optical centering of the triangle inside the circle */
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.video-title {
    color: #c2f9ff !important;
    font-size: 16px !important;
    font-weight: 600;
    margin-top: 12px;
    margin-bottom: 32px;
}

.favorite-btn {
    position: absolute;
    bottom: 10px;
    right: 12px;
    font-size: 24px;
    cursor: pointer;
}

/* ------------------------------------------------------
   RATING BUTTONS (Like / Dislike / Neutral)
------------------------------------------------------ */

.rating-btns {
    position: absolute;
    bottom: 10px;
    left: 12px;
    display: flex;
    gap: 6px;
}

.rating-btn {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.15s;
}

    .rating-btn:hover {
        opacity: 1;
        transform: scale(1.15);
    }

    .rating-btn.active {
        opacity: 1;
        border-color: rgba(255, 255, 255, 0.5);
        background: rgba(255, 255, 255, 0.15);
    }

/* מסגרות דירוג */
.video-card.rated-like {
    border: 2px solid rgba(0, 220, 80, 0.8) !important;
    box-shadow: inset 0 0 18px rgba(0, 220, 80, 0.15), 0 0 22px rgba(0, 220, 80, 0.25), 0 8px 28px rgba(0, 0, 0, 0.6) !important;
}

.video-card.rated-dislike {
    border: 2px solid rgba(220, 50, 50, 0.8) !important;
    box-shadow: inset 0 0 18px rgba(220, 50, 50, 0.15), 0 0 22px rgba(220, 50, 50, 0.25), 0 8px 28px rgba(0, 0, 0, 0.6) !important;
}

.video-card.rated-neutral {
    border: 2px solid rgba(250, 200, 0, 0.8) !important;
    box-shadow: inset 0 0 18px rgba(250, 200, 0, 0.15), 0 0 22px rgba(250, 200, 0, 0.25), 0 8px 28px rgba(0, 0, 0, 0.6) !important;
}

.video-wrapper {
    position: relative;
    width: 100%;
}

/* ------------------------------------------------------
   פריסה דו-טורית בדסקטופ רחב (1200px ומעלה) — נוסף 28/09/2026
   לפי בקשה מפורשת: הסרטונים "ממש מקדימה", בערך 3/4 מהמסך משמאל,
   והכתבות כטור של בערך רבע מסך מימין (ר' ההערה ב-CollectionPage.cshtml).
   חל רק על עמודים עם כתבה (collection-layout--split).
   - רוחב הטור: clamp(380px, 23vw, 440px) ולא 25% בדיוק. ב-1280 רבע
     זה 320px, והכרטיסים היו יוצאים צרים כמו במובייל (בהדמיה 13
     כיתובים נחתכו ב-"…"). 380 הוא המינימום שבו כמעט כולם נכנסים,
     ו-23vw נותן בדיוק 440 (רוחב כרטיס בשורה של היום) במסך של 1920.
   - מתחת ל-1200px אין מקום לשלושה סרטונים בשורה וגם לטור, ולכן שם
     נשארת הפריסה הקודמת (שורת כתבות מעל הסרטונים) בלי שום שינוי.
   - הטור דביק (sticky) עם גלילה משלו: הוא נשאר ליד הסרטונים כשגוללים
     ביניהם, ולא משאיר חצי עמוד ריק בעמודים עם כתבה אחת או שתיים.
     top = הכותרת הקבועה של האתר (60px) + מרווח. כשפס ה-Now Playing
     מוצג (עוד 22px, body.now-playing-active) הטור יורד בהתאם.
   - margin שלילי ו-padding באותו גודל בשני הצדדים: הטור רחב ב-14px
     לכל צד מהתא שלו בגריד, כדי שהזוהר המטושטש סביב כל כרטיס
     (essay-artist-glow, inset:-18px) לא ייחתך צמוד לקצה הגלילה,
     בלי להצר את הכרטיסים עצמם.
   - align-items:start חובה: בלעדיו הטור נמתח לגובה של כל הגריד,
     ו-sticky לא עושה כלום.
------------------------------------------------------ */
@media (min-width: 1200px) {
    .collection-layout--split {
        display: grid;
        grid-template-columns: minmax(0, 1fr) clamp(380px, 23vw, 440px);
        grid-template-areas: "main side";
        column-gap: 28px;
        align-items: start;
    }

        .collection-layout--split > .collection-main {
            grid-area: main;
            min-width: 0;
        }

            /* 240 ולא 250 כמו בגריד הרגיל: ב-1280 (עם פס-הגלילה של Windows,
               17px) נשארים לסרטונים כ-790px, ועם מינימום של 250 נכנסו רק 2
               סרטונים בשורה, גדולים מאוד. עם 240 נכנסים 3 (כ-245px כל אחד).
               !important + 2 מחלקות — כי הכלל הרגיל של .video-grid (למטה) גם
               הוא !important. */
            .collection-layout--split .video-grid {
                grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
            }

        .collection-layout--split > .collection-side {
            grid-area: side;
            position: sticky;
            top: 76px;
            max-height: calc(100vh - 92px);
            box-sizing: border-box; /* ה-max-height כולל את ה-padding — אחרת הטור בולט 34px מתחת לתחתית המסך */
            overflow-y: auto;
            margin: 0 -14px;
            padding: 10px 14px 24px;
            scrollbar-width: thin;
            scrollbar-color: rgba(90, 247, 255, 0.3) transparent;
        }

    body.now-playing-active .collection-layout--split > .collection-side {
        top: 98px;
        max-height: calc(100vh - 114px);
    }

    .collection-side .essay-artist-scroll-wrap {
        margin: 0;
    }

    .collection-side .essay-artist-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        overflow: visible;
        scroll-snap-type: none;
        padding-bottom: 0;
    }

    .collection-side .essay-artist-tile {
        flex: none;
        width: 100%;
    }

    /* 3 מחלקות — גובר על ".essay-artist-scroll-wrap .essay-scroll-nav"
       (2 מחלקות, display:inline-flex). בטור אנכי אין מה לגלול הצידה. */
    .collection-side .essay-artist-scroll-wrap .essay-scroll-nav {
        display: none;
    }

    .collection-side .collection-essay {
        max-width: none;
        margin: 0;
    }

    /* בלי זה ה-sticky לא עובד בכלל (נמצא בבדיקה, 28/09/2026: אחרי גלילה
       של 1500px הטור ברח עם העמוד, top=-1234). הסיבה: בראש הקובץ הזה
       body מקבל overflow-x:hidden, ו-site.css נותן ל-html overflow-y:scroll.
       כש-html עצמו לא visible, ה-overflow של body לא "עובר" לחלון, ו-body
       הופך למיכל-גלילה (overflow-y מחושב ל-auto) שלעולם לא נגלל — וה-sticky
       נצמד אליו במקום לחלון. overflow-x:clip חותך בדיוק כמו hidden אבל לא
       יוצר מיכל-גלילה. מוגבל בכוונה לעמודים עם הפריסה הדו-טורית ולרוחב
       הזה בלבד (‎:has), כדי לא לגעת בשום עמוד אחר באתר. */
    body:has(.collection-layout--split) {
        overflow-x: clip;
    }
}

/* ------------------------------------------------------
   GRID
------------------------------------------------------ */

.video-grid {
    position: relative;
    display: grid !important;
    gap: 26px !important;
    padding: 20px 8px;
}

@media (min-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    }
}

/* ------------------------------------------------------
   COMPACT GRID VIEW (מובייל בלבד) — טוגל 1 ↔ 4 סרטונים בשורה
   נוסף 30/08/2026 עבור עמודי קולקשן/Recommended/Search Results/
   Favorites בלבד (לא דף הבית — לדף הבית יש פריסת שורות נפרדת
   ולא נוגעים בו). מופעל ע"י #compact-grid-toggle-btn
   (js/compactGrid.js), שמוסיף/מוריד את המחלקה body.compact-grid-view.

   תוקן 31/08/2026: בהתחלה הותנה כאן לפי רוחב מסך (max-width:600px,
   כמו רוב שאר הדף) — אבל זה נשבר בסיבוב טלפון לרוחב (landscape),
   כי אז הרוחב בפועל קופץ הרבה מעל 600px וכל הבלוק הזה הפסיק לחול.
   הוחלף בבדיקת יכולת-מגע (hover:none + pointer:coarse) — אותה שיטה
   בדיוק שה-JS isMobile() כבר משתמש בה בכל האתר (VideoGrid.js,
   RecommendedVideos.js, favorites.js, SearchResults) — כי היא בודקת
   "האם זה מכשיר מגע" ולא "כמה רחב המסך כרגע", ולכן לא תלויה בכיוון.
------------------------------------------------------ */

@media (hover: none) and (pointer: coarse) {
    body.compact-grid-view .video-grid,
    body.compact-grid-view .sr-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important;
        padding: 10px 4px !important;
    }

    /* מכווץ כל כרטיסייה כדי ש-4 ייכנסו בנוחות בשורה */
    body.compact-grid-view .video-card {
        padding: 4px;
        border-radius: 8px !important;
    }

    body.compact-grid-view .video-title {
        font-size: 9px !important;
        margin-top: 4px;
        margin-bottom: 18px;
        line-height: 1.15;
        /* קיצוץ לשתי שורות כדי שכותרת ארוכה לא תנפח את גובה הכרטיסייה */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    body.compact-grid-view .sr-label {
        font-size: 7px;
        margin-top: 2px;
        margin-bottom: 4px;
    }

    body.compact-grid-view .favorite-btn {
        font-size: 13px;
        bottom: 3px;
        right: 4px;
    }

    body.compact-grid-view .rating-btns {
        bottom: 3px;
        left: 4px;
        gap: 3px;
    }

    body.compact-grid-view .rating-btn {
        width: 16px;
        height: 16px;
        font-size: 8px;
    }

    body.compact-grid-view .play-icon::before {
        width: 26px;
        height: 26px;
    }

    body.compact-grid-view .play-icon::after {
        border-width: 6px 0 6px 10px;
        margin-left: 3px;
    }

    /* כרטיסייה שמנגנת כרגע (זוהה לפי iframe בפועל בפנים — עובד גם
       ב-Favorites, ששם לחיצה ידנית על סרטון לא תמיד מוסיפה את
       is-playing) חוזרת תמיד לרוחב מלא וגודל רגיל, בלי קשר למצב
       הקומפקטי — נגן ברוחב רבע-שורה היה בלתי שמיש. */
    body.compact-grid-view .video-card:has(iframe) {
        grid-column: 1 / -1;
        padding: 10px 10px 54px 10px;
        border-radius: 20px !important;
    }

    body.compact-grid-view .video-card:has(iframe) .video-title {
        font-size: 16px !important;
        margin-top: 12px;
        margin-bottom: 32px;
        -webkit-line-clamp: unset;
    }

    body.compact-grid-view .video-card:has(iframe) .sr-label {
        font-size: 0.68rem;
        margin-top: -20px;
        margin-bottom: 12px;
    }

    body.compact-grid-view .video-card:has(iframe) .favorite-btn {
        font-size: 24px;
        bottom: 10px;
        right: 12px;
    }

    body.compact-grid-view .video-card:has(iframe) .rating-btns {
        bottom: 10px;
        left: 12px;
        gap: 6px;
    }

    body.compact-grid-view .video-card:has(iframe) .rating-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

/* ------------------------------------------------------
   Background glow
------------------------------------------------------ */

body::before {
    content: "";
    position: fixed;
    top: -200px;
    right: -200px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,255,255,0.25), transparent 70%);
    filter: blur(80px);
    z-index: -1;
}

/* טקסטורת רעש עדינה על כל הדף — שוברת את הרושם ה"שטוח" של גרדיאנט נקי */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.045;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    z-index: -1;
}

/* ======================================================
   CINEMATIC SILENCE
====================================================== */

.cinema-overlay {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(14px);
    background: radial-gradient(circle at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0.9) 100%);
    z-index: 1;
    animation: cinemaFadeIn 1.2s ease forwards;
}

.silence-screen {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    position: relative;
    z-index: 2;
}

.coming-soon {
    margin-bottom: 40px;
    font-size: 1rem;
    letter-spacing: 3px;
    opacity: 0;
    animation: fadeInText 1.4s ease forwards;
}

/* ======================================================
   VINYL RECORD — realistic grooves + label + hole
====================================================== */

.vinyl {
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #0a0a0a 0%, #000 4.2%, transparent 4.8%), radial-gradient(circle at center, #12082a 4.8%, #1c0d3a 14%, #22104a 24%, rgba(0,255,255,0.12) 26.2%, transparent 27% ), repeating-radial-gradient(circle at center, #050505 27%, #1a1a1a 28%, #0a0a0a 29.5%, #141414 30.5%, #050505 32% );
    border: 1px solid rgba(0,255,255,0.14);
    margin-bottom: 40px;
    animation: vinylSpin 18s linear infinite;
    box-shadow: 0 0 60px rgba(0,255,255,0.25), 0 0 0 3px rgba(0,0,0,0.8), 0 0 0 5px rgba(255,255,255,0.04);
    position: relative;
}

    .vinyl::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: linear-gradient( 120deg, transparent 35%, rgba(255,255,255,0.18) 50%, transparent 65% );
        animation: glossSweep 7s linear infinite;
        pointer-events: none;
    }

.vinyl-gloss {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(90,247,255,0.22) 0%, transparent 70%);
    border: 1px solid rgba(90,247,255,0.25);
    pointer-events: none;
}

/* ------------------------------------------------------
   SILENCE TEXT + DOT
------------------------------------------------------ */

.silence-text h1 {
    font-size: 3rem;
    margin: 0;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    animation: fadeInText 2.2s ease forwards;
}

.silence-text h2 {
    font-size: 1.4rem;
    margin-top: 12px;
    opacity: 0;
    animation: fadeInText 3s ease forwards;
}

.silence-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00ffff;
    box-shadow: 0 0 8px #00ffff, 0 0 16px rgba(0,255,255,0.4);
    flex-shrink: 0;
    animation: silenceDotPulse 1.4s ease-in-out infinite;
}

@keyframes silenceDotPulse {
    0%, 100% {
        opacity: 0.25;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(2);
    }
}

@keyframes vinylSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes glossSweep {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInText {
    to {
        opacity: 1;
    }
}

@keyframes cinemaFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ------------------------------------------------------
   VIDEO HOVER CARD
------------------------------------------------------ */

.video-hover-card {
    position: fixed;
    width: 340px;
    max-width: 92%;
    background: rgba(10, 25, 32, 0.92);
    backdrop-filter: blur(18px);
    padding: 18px 22px;
    border-radius: 16px;
    border: 1px solid rgba(0,255,255,0.28);
    box-shadow: 0 0 22px rgba(0,255,255,0.25), inset 0 0 35px rgba(0,255,255,0.18), 0 8px 28px rgba(0,0,0,0.55);
    color: #dffaff;
    font-size: 14px;
    line-height: 1.45;
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .25s ease, transform .25s ease;
}

    .video-hover-card.visible {
        opacity: 1;
        transform: translateY(0);
        pointer-events: all;
    }

.hover-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #8ffbff;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0,255,255,0.45);
}

.hover-card-text {
    font-size: 14px;
    white-space: pre-line;
    opacity: 0.9;
    line-height: 1.55;
}

.hover-card-empty {
    font-size: 13px;
    opacity: 0.55;
    font-style: italic;
}

/* ------------------------------------------------------
   INFO BUTTON
------------------------------------------------------ */

.info-btn, .fav-info-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(0, 255, 255, 0.35);
    color: #5af7ff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.2s ease, background 0.2s ease;
}

    .info-btn:hover, .fav-info-btn:hover {
        opacity: 1;
        background: rgba(0, 255, 255, 0.18);
    }

/* ------------------------------------------------------
   INFO POPUP — דסקטופ
------------------------------------------------------ */

.video-hover-card.popup-desktop {
    width: 300px;
    max-width: 92vw;
    max-height: 70vh;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,255,255,0.3) transparent;
}

    .video-hover-card.popup-desktop.expanded {
        overflow-y: auto;
    }

    .video-hover-card.popup-desktop::-webkit-scrollbar {
        width: 4px;
    }

    .video-hover-card.popup-desktop::-webkit-scrollbar-track {
        background: transparent;
    }

    .video-hover-card.popup-desktop::-webkit-scrollbar-thumb {
        background: rgba(0,255,255,0.3);
        border-radius: 4px;
    }

/* ------------------------------------------------------
   INFO POPUP — מובייל
------------------------------------------------------ */

.video-hover-card.popup-mobile {
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) translateY(6px);
    width: 88vw;
    max-width: 420px;
    max-height: 75vh;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,255,255,0.3) transparent;
}

    .video-hover-card.popup-mobile.expanded {
        overflow-y: auto;
    }

    .video-hover-card.popup-mobile::-webkit-scrollbar {
        width: 4px;
    }

    .video-hover-card.popup-mobile::-webkit-scrollbar-thumb {
        background: rgba(0,255,255,0.3);
        border-radius: 4px;
    }

    .video-hover-card.popup-mobile.visible {
        transform: translate(-50%, -50%) translateY(0);
    }

/* ------------------------------------------------------
   כפתור סגירה בפופאפ
------------------------------------------------------ */

.info-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: #5af7ff;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.7;
    line-height: 1;
    padding: 0;
    z-index: 10;
}

    .info-popup-close:hover {
        opacity: 1;
    }

.info-popup-inner {
    padding-right: 18px;
}

/* ------------------------------------------------------
   SHOW MORE BUTTON
------------------------------------------------------ */

.show-more-btn {
    display: inline-block;
    margin-top: 8px;
    background: none;
    border: none;
    color: #5af7ff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 0;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

    .show-more-btn:hover {
        color: #9affff;
    }

/* ------------------------------------------------------
   COMPLETION BAR
------------------------------------------------------ */

.completion-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    width: 50%;
}

.completion-bar-bg {
    flex: 1;
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.completion-bar-fill {
    height: 100%;
    width: 0%;
    background: #5af7ff;
    border-radius: 999px;
    transition: width 0.6s ease, background 0.6s ease;
    box-shadow: 0 0 10px rgba(90, 247, 255, 0.4);
}

.completion-label {
    font-size: 0.8rem;
    color: #e5faff;
    white-space: nowrap;
    transition: color 0.4s ease;
}

/* ------------------------------------------------------
   IS PLAYING
------------------------------------------------------ */

.video-card.is-playing {
    border: 2px solid rgba(90, 247, 255, 0.9) !important;
    box-shadow: inset 0 0 22px rgba(90, 247, 255, 0.2), 0 0 30px rgba(90, 247, 255, 0.4), 0 8px 28px rgba(0, 0, 0, 0.6) !important;
    transform: translateY(-6px) scale(1.02);
    padding-bottom: 54px;
}

.now-playing-badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(90, 247, 255, 0.5);
    color: #5af7ff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    animation: pulseBadge 2s ease-in-out infinite;
}

@keyframes pulseBadge {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.55;
    }
}

/* ------------------------------------------------------
   FLOATING PLAY ALL WIDGET (visible while scrolled past
   the main Play All controls)
------------------------------------------------------ */

#floating-playall {
    display: none;
    position: fixed;
    top: 95px;
    left: 28px;
    z-index: 1500;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(10, 25, 32, 0.92);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(0, 255, 255, 0.35);
    border-radius: 14px;
    box-shadow: 0 0 22px rgba(0, 255, 255, 0.25), 0 8px 28px rgba(0, 0, 0, 0.55);
    max-width: calc(100vw - 24px);
}

@media (max-width: 600px) {
    #floating-playall {
        /* מתחת ל-header (60px) + לשורת ה-Now Playing של הנייד (22px),
           לא מעליה — אחרת הוא מסתיר את הטקסט של מה שמתנגן עכשיו */
        top: 90px;
        left: 12px;
        gap: 6px;
        padding: 8px 10px;
        border-radius: 12px;
    }

        #floating-playall .pa-btn {
            padding: 8px 10px;
            font-size: 0.85rem;
        }

    .pa-stop-label {
        display: none;
    }
}

/* ------------------------------------------------------
   PLAY ALL CONTROLS
------------------------------------------------------ */

.playall-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    min-height: 42px;
    align-items: center;
    position: relative;
}

/* כל עוד Play All לא פעיל: prev/next/pin לא רק מוסתרים (visibility)
   אלא גם לא תופסים מקום (display), כדי שכפתור ה-Play All וכפתור
   השאפל (שמתווסף אחריהם ע"י VideoGrid.js) יישארו צמודים באותה
   שורה — בכל רוחב מסך, כולל דסקטופ. ברגע שלוחצים Play All ומתווסף
   pa-active ל-body, הם חוזרים להתנהג כרגיל. */
body:not(.pa-active) #pa-prev-btn,
body:not(.pa-active) #pa-next-btn,
body:not(.pa-active) #pa-pin-btn {
    display: none;
}

.pa-btn {
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.35);
    color: #5af7ff;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

    .pa-btn:hover {
        background: rgba(0, 255, 255, 0.18);
    }

/* כפתור טוגל התצוגה הקומפקטית (js/compactGrid.js) — מוצג רק במובייל.
   חשוב: כלל ה"כבוי" חייב לבוא לפני ה-media query שמדליק אותו מחדש —
   לשתי המחלקות אותה ספציפיות, ו-CSS נותן לכלל התואם המאוחר יותר
   לנצח; סדר הפוך היה משאיר את הכפתור מוסתר גם במובייל.
   מזוהה לפי יכולת-מגע (hover:none+pointer:coarse), לא לפי רוחב מסך —
   ר' הסבר מלא בסקשן COMPACT GRID VIEW למעלה (תוקן 31/08/2026 בעקבות
   באג בסיבוב טלפון לרוחב). */
#compact-grid-toggle-btn {
    display: none;
}

@media (hover: none) and (pointer: coarse) {
    #compact-grid-toggle-btn {
        display: inline-flex;
    }
}

.pa-stop {
    background: rgba(192, 57, 43, 0.2);
    border-color: #c0392b;
    color: #e74c3c;
}

/* ------------------------------------------------------
   TOOLTIP מותאם-אישית לכפתור 📍 — מוצג מתחת לכפתור (לא
   בצד, כי בצד ימין יש את כפתור השאפל ובצד שמאל את שאר
   כפתורי ה-Play All) כדי שלא יסתיר ויזואלית אף כפתור שכן
------------------------------------------------------ */
.pa-btn.pa-pin {
    position: relative;
}

.pa-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 25, 32, 0.95);
    color: #dffaff;
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 255, 0.35);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 2000;
}

.pa-btn.pa-pin:hover .pa-tooltip {
    opacity: 1;
}

body[data-theme="light"] .pa-tooltip {
    background: #fff;
    border: 1px solid #c9a84c;
    color: #333;
}

/* כפתור סגירה זמנית ל-widget הצף של Play All — ברירת מחדל מוסתר;
   playAll.js (דפי אוסף) ו-favorites.js (Favorites) חושפים ומחברים אותו. */
#floating-playall .fp-close-btn {
    display: none;
    background: none;
    border: none;
    color: #5af7ff;
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 6px;
    opacity: 0.65;
    transition: opacity 0.2s;
}

    #floating-playall .fp-close-btn:hover {
        opacity: 1;
    }

body[data-theme="light"] #floating-playall .fp-close-btn {
    color: #c9a84c;
}

.stop-playing-btn {
    background: none;
    border: none;
    color: #5af7ff;
    font-size: 12px;
    cursor: pointer;
    padding: 0 0 0 6px;
    opacity: 0.7;
    vertical-align: middle;
    line-height: 1;
}

    .stop-playing-btn:hover {
        opacity: 1;
    }

/* ------------------------------------------------------
   MOBILE
------------------------------------------------------ */

@media (max-width: 600px) {
    #now-playing-wrap,
    #now-playing-sep,
    #header-completion-wrap {
        display: none !important;
    }
}

@media (min-width: 601px) {
    #mobile-bar-wrap {
        display: none !important;
    }
}

@media (max-width: 600px) {
    /* בדסקטופ אחוז ההשלמה יושב בהדר הקבוע (#header-completion-wrap) ולכן
       תמיד נגיש. בנייד הוא חי בתוך תוכן הדף (ליד "Back to...") ולכן
       נעלם כשגוללים מטה — נותן אותו טיפול כמו ל-#mobile-now-playing-bar
       ול-#floating-playall: מקבע אותו לפינה כדי שיישאר גלוי תמיד. */
    #mobile-bar-wrap {
        position: fixed;
        top: 90px;
        right: 12px;
        z-index: 1400;
        background: rgba(10, 25, 32, 0.92);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(0, 255, 255, 0.3);
        border-radius: 999px;
        padding: 6px 12px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
        touch-action: none; /* אנחנו שולטים בגרירה בעצמנו, לא הדפדפן */
    }

    /* גם ה-widget הצף של Play All ניתן לגרירה בנייד */
    #floating-playall {
        touch-action: none;
    }

    /* כפתור ✕ קטן שיושב על הפינה של בר ההתקדמות בנייד בלבד —
       ממוקם ביחס ל-#mobile-bar-wrap עצמו, כי position:fixed שם
       כבר מהווה containing block לילדים עם position:absolute */
    .mobile-widget-close {
        position: absolute;
        top: -7px;
        right: -7px;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: rgba(10, 25, 32, 0.95);
        border: 1px solid rgba(0, 255, 255, 0.4);
        color: #5af7ff;
        font-size: 10px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 0;
        z-index: 1;
    }
}

/* ── כותרת + כפתורים באותה שורה ── */
.playall-header-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .playall-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .playall-controls {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .pa-tooltip {
        display: none;
    }
}

h1.page-inline-title {
    flex: 1;
    min-width: 0;
    margin: 0 !important;
    font-size: clamp(18px, 5vw, 32px) !important;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 600px) {
    h1.page-inline-title {
        font-size: 20px !important;
    }
}

/* בדסקטופ בלבד: מיישר את שורת Play All/Shuffled עם ה-padding הפנימי
   של video-grid (20px 8px — ר' section GRID למעלה), כך שהכפתורים
   יתחילו באותו קו אנכי כמו הכרטיסייה הראשונה בגריד. וניסיון ראשון
   לצמצם רושם אופטי של הכותרת כ"נמוכה מדי" ביחס לכפתורים — אם עדיין
   נראה נמוך, אפשר להגדיל את הערך. */
@media (min-width: 601px) {
    .playall-header-row {
        padding-left: 8px;
    }

    h1.page-inline-title {
        margin-top: -3px !important;
    }
}

/* ======================================================
   LIGHT THEME OVERRIDES
====================================================== */

body[data-theme="light"] {
    background: #f5f5f5 !important;
    color: #222;
}

    body[data-theme="light"] h1,
    body[data-theme="light"] .country-title,
    body[data-theme="light"] .genre-title {
        color: #222 !important;
        text-shadow: none;
    }

    /* כרטיס-יחיד בהיר — תואם עכשיו בדיוק לטיפול הבהיר של essay-artist-card
       ביפן (רקע קרם שטוח + צל חם, בלי מסגרת), עוצב-מחדש 23/09/2026 יחד
       עם הכלל הכהה למעלה. essay-stats dt/dd הוסרו — orphaned, essay-meta
       שהם שירתו הוסר לגמרי מה-cshtml. */
    body[data-theme="light"] .collection-essay {
        background: #fbf1dc;
        box-shadow: 0 14px 32px -16px rgba(42,32,21,0.28);
    }

    /* בהיר: אין קולאז'-תמונות טיל-כהה (אותה החלטה כמו ה-body::before/
       after הקיימים — אפקטים "אווירתיים" עם תמונות/זוהר נשארים כהה-בלבד,
       בהיר מקבל פאנל נקי אחיד, תואם ל-.collection-essay הבהיר) */
    body[data-theme="light"] .collection-hero-bg {
        display: none;
    }

    body[data-theme="light"] .collection-hero {
        background: linear-gradient(160deg, #fbf1dc, #f7ead0 85%);
        border-color: #e8d8b0;
    }

        body[data-theme="light"] .essay-kicker {
            color: #fffaf0;
            background: #a07830;
        }

        body[data-theme="light"] .collection-essay h2 {
            color: #2a2015 !important;
            text-shadow: none;
        }

        body[data-theme="light"] .collection-essay p {
            color: #4a3f2f !important;
        }

        body[data-theme="light"] .essay-feature-image::before {
            background: linear-gradient(180deg, rgba(251,241,220,0) 55%, rgba(247,234,208,0.92) 100%);
        }

        body[data-theme="light"] .essay-intro h2 {
            color: #2a2015;
            text-shadow: none;
        }

        body[data-theme="light"] .essay-artist-glow {
            display: none;
        }

        body[data-theme="light"] .essay-scroll-nav {
            background: rgba(255, 255, 255, 0.75);
        }

        body[data-theme="light"] .essay-artist-card {
            background: #fbf1dc;
            box-shadow: 0 14px 32px -16px rgba(42,32,21,0.28);
        }

            body[data-theme="light"] .essay-artist-tile:hover .essay-artist-card {
                box-shadow: 0 20px 40px -14px rgba(160,120,48,0.26);
            }

            body[data-theme="light"] .essay-artist-image::after {
                background: linear-gradient(180deg, rgba(251,241,220,0) 55%, rgba(247,234,208,0.95) 100%);
            }

        body[data-theme="light"] .essay-artist-label {
            color: #7a5a20;
            background: rgba(160,120,48,0.12);
            border-color: rgba(160,120,48,0.35);
        }

        body[data-theme="light"] .essay-artist-tile h3 {
            color: #2a2015;
        }

        body[data-theme="light"] .essay-artist-tile p {
            color: #4a3f2f;
        }

        body[data-theme="light"] .essay-artist-more {
            color: #7a5a20;
        }

            body[data-theme="light"] .essay-artist-more:hover {
                color: #a07830;
            }

    body[data-theme="light"] .back-button {
        color: #c9a84c !important;
        text-shadow: none;
    }

        body[data-theme="light"] .back-button:hover {
            color: #a07830 !important;
            text-shadow: none;
        }

    body[data-theme="light"] .video-card {
        background: #ffffff !important;
        border: 1px solid #e4e4e4 !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.07) !important;
        backdrop-filter: none;
    }

    body[data-theme="light"] .video-title {
        color: #222 !important;
    }

    body[data-theme="light"] .rating-btn {
        background: #f5f5f5;
        border: 1px solid #e0e0e0;
    }

        body[data-theme="light"] .rating-btn.active {
            border-color: #c9a84c;
            background: #fdf6e3;
        }

    body[data-theme="light"] body::before,
    body[data-theme="light"] body::after {
        display: none;
    }

    body[data-theme="light"] .video-hover-card {
        background: #ffffff;
        border: 1px solid #e0e0e0;
        box-shadow: 0 8px 32px rgba(0,0,0,0.12);
        color: #222;
        backdrop-filter: none;
    }

    body[data-theme="light"] .hover-card-title {
        color: #c9a84c;
        text-shadow: none;
    }

    body[data-theme="light"] .info-popup-close {
        color: #999;
    }

    body[data-theme="light"] .show-more-btn {
        color: #c9a84c;
        text-shadow: none;
    }

        body[data-theme="light"] .show-more-btn:hover {
            color: #a07830;
        }

    body[data-theme="light"] .completion-bar-bg {
        background: #e8e8e8;
        border: 1px solid #ddd;
    }

    body[data-theme="light"] .completion-bar-fill {
        background: #c9a84c;
        box-shadow: none;
    }

    body[data-theme="light"] .completion-label {
        color: #555;
    }

    body[data-theme="light"] .video-card.is-playing {
        border: 2px solid #c9a84c !important;
        box-shadow: 0 0 16px rgba(201,168,76,0.25), 0 4px 16px rgba(0,0,0,0.1) !important;
    }

    body[data-theme="light"] .now-playing-badge {
        background: #c9a84c;
        border: 1px solid #a07830;
        color: #fff;
    }

    body[data-theme="light"] .pa-btn {
        background: #fff;
        border: 1px solid #c9a84c;
        color: #c9a84c;
    }

        body[data-theme="light"] .pa-btn:hover {
            background: #fdf6e3;
        }

    body[data-theme="light"] .stop-playing-btn {
        color: #c9a84c;
    }

    body[data-theme="light"] .silence-dot {
        background: #c9a84c;
        box-shadow: 0 0 8px rgba(201,168,76,0.6);
    }

    body[data-theme="light"] .info-btn, body[data-theme="light"] .fav-info-btn {
        background: rgba(255,255,255,0.85);
        border: 1px solid #ddd;
        color: #c9a84c;
    }

        body[data-theme="light"] .info-btn:hover, body[data-theme="light"] .fav-info-btn:hover {
            background: #fff;
        }

    body[data-theme="light"] .video-hover-card.popup-desktop {
        scrollbar-color: rgba(0,0,0,0.2) transparent;
    }

        body[data-theme="light"] .video-hover-card.popup-desktop::-webkit-scrollbar-thumb,
        body[data-theme="light"] .video-hover-card.popup-mobile::-webkit-scrollbar-thumb {
            background: rgba(0,0,0,0.2);
        }

/* ============================================================
   ARTIST PROFILE HERO — נוסף 20/09/2026
   מחליף את .collection-hero הרגיל רק כש-type=="artists" (ר'
   CollectionPage.cshtml, Model.IsArtistPage) — לפי תמונת-רפרנס
   ("Fomu" app): תמונה גדולה, שם, כפתורים אמיתיים בלבד. בכוונה
   בלי "מאזינים"/מחיר/Follow/תג-מאומת — לא קיימים כנתון אמיתי
   באתר, המשתמש אישר במפורש להוריד אותם ולהשאיר רק מה שאמיתי.
   ============================================================ */

.artist-hero{
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 36px;
    align-items: end;
    max-width: 1180px;
    margin: 4px 0 34px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.artist-hero-photo{
    width: 220px; height: 220px; border-radius: 22px; overflow: hidden;
    background: #14141a;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 22px 46px -18px rgba(0,0,0,0.75);
}
.artist-hero-photo img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.artist-hero-kicker{
    font-family: 'IBM Plex Mono','Segoe UI',monospace; font-size: 11px; letter-spacing: 0.1em;
    text-transform: uppercase; color: #5af7ff; margin: 0 0 10px;
}
.artist-hero-name{
    font-family: 'Fraunces','Segoe UI',serif; font-weight: 700; font-size: 52px;
    letter-spacing: -0.015em; line-height: 1.02; color: #fff; margin: 0 0 20px;
}
.artist-hero-actions{ display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ah-btn{
    font-family: 'Karla','Segoe UI',sans-serif; font-weight: 600; font-size: 14px;
    padding: 11px 22px; border-radius: 999px; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid transparent; background: none; color: #fff;
}
.ah-btn svg{ width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.ah-btn-primary{ background: #5af7ff; color: #012; }
.ah-btn-primary svg{ fill: #012; stroke: none; }
.ah-btn-primary:hover{ box-shadow: 0 0 18px rgba(0,255,255,0.35); }
.ah-btn-ghost{ border-color: rgba(255,255,255,0.16); }
.ah-btn-ghost:hover{ border-color: rgba(90,247,255,0.5); color: #5af7ff; }
.ah-btn-icon{ padding: 11px 14px; }
.artist-hero-stat{
    margin-left: auto;
    font-family: 'IBM Plex Mono','Segoe UI',monospace; font-size: 12.5px; color: #9199a1;
}
.artist-hero-stat b{ color: #fff; font-size: 16px; }

@media (max-width: 700px){
    .artist-hero{ grid-template-columns: 1fr; text-align: center; justify-items: center; padding-bottom: 22px; }
    .artist-hero-photo{ width: 168px; height: 168px; }
    .artist-hero-name{ font-size: 36px; }
    .artist-hero-actions{ justify-content: center; }
    .artist-hero-stat{ margin-left: 0; width: 100%; text-align: center; margin-top: 4px; }
}

/* "← Back to Artists" בשורה של שם האמן, בדסקטופ — נוסף 29/09/2026 לפי
   בקשה מפורשת: "כן תוסיף בעמודי אמנים קישור "Back to Artists"". תמונת-
   מראה של collection-hero-titlerow (סקשן BACK-TO-X למעלה): אותו flex,
   אותו baseline ואותו רווח — כך שהקישור יושב ליד שם האמן בדיוק כמו
   "← Back to Countries" ליד שם המדינה. הקישור עצמו הוא collection-hero-
   back, שמוצג רק מ-901px (ר' שם). flex:1 + min-width:0 לשם — כמו
   page-inline-title בעמודי האוסף: שם ארוך נשבר לשורה הבאה בתוך הטור שלו,
   והקישור נשאר צמוד לשורה הראשונה במקום לעמוד לבד מעליו. מתחת ל-901px
   artist-hero-titlerow הוא div רגיל בלי שום כלל — המובייל לא משתנה. */
@media (min-width: 901px){
    .artist-hero-titlerow{
        display: flex;
        align-items: baseline;
        flex-wrap: wrap;
        column-gap: 18px;
        row-gap: 4px;
    }
    .artist-hero-titlerow .artist-hero-name{ flex: 1; min-width: 0; overflow-wrap: break-word; }
}

body[data-theme="light"] .artist-hero{ border-bottom-color: #e5e5e5; }
body[data-theme="light"] .artist-hero-photo{ background: #ececec; border-color: #e0e0e0; }
body[data-theme="light"] .artist-hero-kicker{ color: #a07830; }
body[data-theme="light"] .artist-hero-name{ color: #222; }
body[data-theme="light"] .ah-btn{ color: #222; }
body[data-theme="light"] .ah-btn-primary{ background: #c9a84c; color: #fff; }
body[data-theme="light"] .ah-btn-primary svg{ fill: #fff; }
body[data-theme="light"] .ah-btn-primary:hover{ box-shadow: none; background: #a07830; }
body[data-theme="light"] .ah-btn-ghost{ border-color: #ddd; }
body[data-theme="light"] .ah-btn-ghost:hover{ border-color: #c9a84c; color: #a07830; }
body[data-theme="light"] .artist-hero-stat{ color: #7a7a7a; }
body[data-theme="light"] .artist-hero-stat b{ color: #222; }


/* ------------------------------------------------------
   01/10/2026: 2 ו-3 בשורה (לא רק 1 ו-4) — נבחר מחלונית ההגדרות בפס של
   הטלפון (_Layout.cshtml). compactGrid.js מדליק compact-grid-view מ-2
   ומעלה ומוסיף body[data-grid-cols]; כאן רק הגדלים שבין 1 ל-4. כרטיס
   שמנגן (iframe) לא נכלל — הוא ממשיך לתפוס שורה מלאה, כמו קודם.
------------------------------------------------------ */
@media (hover: none) and (pointer: coarse) {
    body.compact-grid-view[data-grid-cols="2"] .video-grid,
    body.compact-grid-view[data-grid-cols="2"] .sr-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 10px 6px !important;
    }
    body.compact-grid-view[data-grid-cols="2"] .video-card:not(:has(iframe)) { padding: 6px; border-radius: 12px !important; }
    body.compact-grid-view[data-grid-cols="2"] .video-card:not(:has(iframe)) .video-title { font-size: 12px !important; margin-bottom: 26px; }
    body.compact-grid-view[data-grid-cols="2"] .video-card:not(:has(iframe)) .sr-label { font-size: 9px; }
    body.compact-grid-view[data-grid-cols="2"] .video-card:not(:has(iframe)) .favorite-btn { font-size: 17px; bottom: 5px; right: 6px; }
    body.compact-grid-view[data-grid-cols="2"] .video-card:not(:has(iframe)) .rating-btns { bottom: 5px; left: 6px; gap: 4px; }
    body.compact-grid-view[data-grid-cols="2"] .video-card:not(:has(iframe)) .rating-btn { width: 22px; height: 22px; font-size: 11px; }
    body.compact-grid-view[data-grid-cols="2"] .video-card:not(:has(iframe)) .play-icon::before { width: 34px; height: 34px; }
    body.compact-grid-view[data-grid-cols="2"] .video-card:not(:has(iframe)) .play-icon::after { border-width: 8px 0 8px 13px; margin-left: 4px; }

    body.compact-grid-view[data-grid-cols="3"] .video-grid,
    body.compact-grid-view[data-grid-cols="3"] .sr-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        padding: 10px 5px !important;
    }
    body.compact-grid-view[data-grid-cols="3"] .video-card:not(:has(iframe)) { padding: 5px; border-radius: 10px !important; }
    body.compact-grid-view[data-grid-cols="3"] .video-card:not(:has(iframe)) .video-title { font-size: 10.5px !important; margin-bottom: 22px; }
    body.compact-grid-view[data-grid-cols="3"] .video-card:not(:has(iframe)) .sr-label { font-size: 8px; }
    body.compact-grid-view[data-grid-cols="3"] .video-card:not(:has(iframe)) .favorite-btn { font-size: 15px; bottom: 4px; right: 5px; }
    body.compact-grid-view[data-grid-cols="3"] .video-card:not(:has(iframe)) .rating-btns { bottom: 4px; left: 5px; gap: 3px; }
    body.compact-grid-view[data-grid-cols="3"] .video-card:not(:has(iframe)) .rating-btn { width: 19px; height: 19px; font-size: 9.5px; }
    body.compact-grid-view[data-grid-cols="3"] .video-card:not(:has(iframe)) .play-icon::before { width: 30px; height: 30px; }
    body.compact-grid-view[data-grid-cols="3"] .video-card:not(:has(iframe)) .play-icon::after { border-width: 7px 0 7px 11px; margin-left: 3px; }
}

/* ------------------------------------------------------
   17/10/2026: בטלפון ב-2/3/4 בשורה, השיר שמתנגן נשאר גם במקום שלו
   בשורה (עותק קטן, .np-ghost) והנגן הגדול נפתח מתחת לשורה הזו
   (.np-under). הסידור עצמו ב-js/compactGrid.js (CSS order). העותק
   מסומן במסגרת של "מתנגן" ובפסי אקולייזר על התמונה; נגיעה בו גוללת
   אל הנגן.
------------------------------------------------------ */
@media (hover: none) and (pointer: coarse) {
    body.compact-grid-view .video-card.np-under { grid-column: 1 / -1; }

    body.compact-grid-view .video-card.np-ghost {
        border: 1.5px solid rgba(90, 247, 255, 0.9) !important;
        box-shadow: inset 0 0 14px rgba(90, 247, 255, 0.16), 0 0 16px rgba(90, 247, 255, 0.35) !important;
        cursor: pointer;
        transform: none;
    }
    body.compact-grid-view .np-ghost .np-thumb { position: relative; }
    body.compact-grid-view .np-ghost .video-thumb { filter: brightness(0.5) saturate(0.85); }
    body.compact-grid-view .np-ghost .video-title { color: #5af7ff !important; }

    .np-eq {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        gap: 2px;
        padding-bottom: 30%;
        pointer-events: none;
    }
    .np-eq i {
        display: block;
        width: 3px;
        height: 34%;
        border-radius: 2px;
        background: #5af7ff;
        box-shadow: 0 0 6px rgba(90, 247, 255, 0.6);
        transform-origin: bottom;
        animation: npEq 1.1s ease-in-out infinite;
    }
    .np-eq i:nth-child(2) { animation-duration: 0.9s; animation-delay: -0.4s; }
    .np-eq i:nth-child(3) { animation-duration: 1.25s; animation-delay: -0.7s; }
    .np-eq i:nth-child(4) { animation-duration: 0.8s; animation-delay: -0.2s; }

    body[data-grid-cols="2"] .np-eq { gap: 3px; }
    body[data-grid-cols="2"] .np-eq i { width: 4px; }

    body[data-theme="light"].compact-grid-view .video-card.np-ghost {
        border: 1.5px solid #c9a84c !important;
        box-shadow: 0 0 12px rgba(201, 168, 76, 0.3) !important;
    }
    body[data-theme="light"].compact-grid-view .np-ghost .video-title { color: #8a6420 !important; }
    body[data-theme="light"] .np-eq i { background: #f3dc93; box-shadow: 0 0 6px rgba(201, 168, 76, 0.7); }
}

@keyframes npEq {
    0%, 100% { transform: scaleY(0.35); }
    50% { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
    .np-eq i { animation: none; transform: scaleY(0.7); }
}
