/* Mobile-specific comprehensive overrides — mobile-first responsive design */

.topbar .mobile-menu-toggle { display: none; }

@media (max-width: 640px) {
    /* Location picker: the desktop layout crams a full-width search input,
       a text button, and a close button into one flex row, and adds a
       120px alphabet-index column — both blow out on a 375px viewport and
       squeeze the search box down to nothing. Stack everything instead. */
    .location-modal__card {
        grid-template-columns: 1fr;
        margin: 0;
        max-width: 100%;
        height: 100%;
        border-radius: 0;
        padding: 16px;
        overflow-y: auto;
    }
    .location-modal__header {
        flex-wrap: wrap;
    }
    .location-search {
        flex: 1 1 100% !important;
        order: -1;
    }
    .alpha-index {
        display: none;
    }
    .popular-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Profile header: the desktop row (120px avatar + name column + "Edit
       Profile" button, all in one nowrap flex row) pushes the button almost
       entirely off-screen at 375px — it's rendered but unreachable. Rebuild
       as a compact gradient "identity hero" card, matching the app's
       AccountProfileScreen IdentityHero (navy → green gradient, avatar +
       name inline, no button squeeze). */
    .profile-container .detail-header {
        background: linear-gradient(135deg, #07111F 0%, #102B52 55%, #0A3D2A 100%) !important;
        border-radius: 24px !important;
        padding: 20px !important;
        gap: 14px !important;
        margin-bottom: 24px !important;
        flex-wrap: wrap !important;
    }
    .profile-container .detail-header > div:first-child {
        width: 64px !important;
        height: 64px !important;
    }
    .profile-container .detail-header > div:first-child img {
        border-color: rgba(255, 255, 255, 0.3) !important;
    }
    .profile-container .detail-header > div:nth-child(2) {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
    .profile-container .detail-header .detail-header__title {
        color: #fff !important;
        font-size: 19px !important;
        margin-bottom: 4px !important;
        overflow-wrap: break-word;
    }
    .profile-container .detail-header .detail-header__meta {
        color: rgba(255, 255, 255, 0.7) !important;
        font-size: 12.5px !important;
    }
    .profile-container .detail-header .detail-header__meta svg {
        stroke: rgba(255, 255, 255, 0.7) !important;
    }
    .profile-container .detail-header .detail-meta-divider {
        color: rgba(255, 255, 255, 0.3) !important;
    }
    .profile-container .detail-header .detail-badge {
        background: rgba(255, 255, 255, 0.15) !important;
    }
    .profile-container .detail-header > div:last-child {
        width: 100%;
        order: 3;
    }
    .profile-container .detail-header > div:last-child .btn {
        width: 100%;
        justify-content: center;
        background: rgba(255, 255, 255, 0.12) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }

    /* "My Event Bookings" / "My ActionBoard Matches" section headers:
       heading + action button crammed into one row wraps awkwardly. */
    .reviews-section-header {
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 20px !important;
    }
    .reviews-section-header h3 {
        font-size: 19px !important;
    }
    .reviews-section-header .btn {
        flex-shrink: 0;
    }
}

@media (max-width: 1024px) {
    :root {
        --mobile-padding: 12px;
        --mobile-gap: 8px;
        --touch-target: 44px;
    }

    html { font-size: 15px; }
    body { font-size: 15px; }

    /* --- HEADER / TOPBAR --- */
    .topbar {
        padding: 8px 0;
        position: sticky;
        top: 0;
        z-index: 100;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        transition: box-shadow 180ms ease, border-color 180ms ease;
    }
    /* Flat at the top, gains a subtle elevation once the page scrolls.
       Toggled by JS (.is-scrolled) so it feels anchored, not floating. */
    .topbar.is-scrolled {
        border-bottom-color: transparent;
        box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
    }
    .topbar__inner {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "location icons"
            "search search"
            "buttons buttons";
        align-items: center;
        row-gap: 8px;
        column-gap: 10px;
        padding: 6px 12px;
    }

    /* Brand (Haraan logo): hidden on mobile — the app header shows only the
       location pill (left) and the profile icon (right). */
    .brand {
        display: none;
    }
    .brand__mark {
        width: 34px;
        height: 34px;
        flex-shrink: 0;
    }
    .brand__logo { display: none; }
    .brand__mark--text {
        display: inline-flex;
        width: 34px;
        height: 34px;
        align-items: center;
        justify-content: center;
        background: #0b1620;
        color: #fff;
        font-weight: 800;
        font-size: 12px;
        border-radius: 50%;
        box-shadow: 0 1px 0 rgba(0,0,0,0.06);
    }
    .brand__text { display: none; }

    /* Location pill: far left, row 1 */
    .location-pill {
        grid-area: location;
        display: flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        color: inherit;
        padding: 0 4px 0 0;
        justify-self: start;
    }
    .location-pill__pin {
        display: flex;
        align-items: center;
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        margin-right: 6px;
    }
    .location-pill__pin lord-icon { width: 18px !important; height: 18px !important; }
    .location-pill__label { font-size: 12px; }
    .location-pill__label strong { font-size: 12px; font-weight: 600; line-height: 1; color: #1a1d21; }
    .location-pill__label small { color: #8a8f98; }

    /* Location is a secondary control — keep it neutral so the search bar and
       the Events/GameHub switch stay the primary focal points. The mode accent
       lives on the pin icon only, not the whole label. */
    body.mode-events .location-pill__pin { color: #2563EB; }
    body.mode-gamehub .location-pill__pin { color: #00C853; }

    /* Hide login button */
    .topbar__actions .btn { display: none; }

    /* Icons: right side, row 1 */
    .topbar__actions {
        grid-area: icons;
        display: flex;
        gap: 16px;
        align-items: center;
        justify-content: flex-end;
        justify-self: end;
        padding-left: 6px;
    }

    /* Remove pseudo icons; use real image for profile */
    .topbar__actions::before,
    .topbar__actions::after { display: none; }

    .topbar__account {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        object-fit: cover;
        box-shadow: 0 1px 0 rgba(0,0,0,0.06);
        background: #ffffff; /* neutral fallback */
        border: 1px solid rgba(0,0,0,0.06);
        filter: grayscale(100%) contrast(0.95) brightness(1);
        display: inline-block;
        margin-left: 4px;
    }

    .topbar__search {
        grid-area: search;
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 50px;
        background: #ffffff;
        border-radius: 12px;
        padding: 10px 14px;
        border: 1px solid rgba(0,0,0,0.14);
        box-shadow: 0 2px 10px rgba(0,0,0,0.06);
        width: 100%;
        max-width: none;
        z-index: 8;
        margin-top: 4px;
    }
    .topbar__search:focus-within {
        border-color: rgba(0,0,0,0.14);
        box-shadow: 0 6px 18px rgba(0,0,0,0.06);
        background: #fff;
    }
    .search-icon { 
        display: flex; 
        align-items: center;
        color: #9aa3b2;
        width: 28px;
        height: 28px;
        flex-shrink: 0;
        justify-content: center;
    }
    .topbar__search-input { 
        font-size: 15px;
        padding: 0 6px;
        flex: 1;
        border: none;
        background: transparent;
        outline: none;
        color: #222;
    }
    .topbar__search-input::placeholder {
        color: #8a8f98; /* WCAG AA on white */
        font-size: 14px;
    }

    /* Action buttons: full width, row 3 */
    .topbar .mobile-action-buttons {
        grid-area: buttons;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        margin-top: 4px;
        width: 100%;
    }
    .mobile-action-btn {
        padding: 12px 18px;
        min-height: 48px;
        border-radius: 26px;
        border: none;
        font-weight: 600;
        font-size: 15px;
        cursor: pointer;
        text-transform: none;
        text-decoration: none;
        display: inline-block;
        text-align: center;
        transition: all 200ms ease;
        letter-spacing: 0;
    }
    /* Button container style to appear like a switch */
    .topbar .mobile-action-buttons {
        background: #f4f6f7;
        padding: 4px;
        border-radius: 28px;
        align-items: center;
    }

    .mobile-action-btn--events,
    .mobile-action-btn--gamehub {
        background: transparent;
        color: #333;
        border: none;
    }

    /* Active states (switch thumb colors) */
    .mobile-action-btn.is-active.mobile-action-btn--events {
        background: #2563EB; /* Mumbai Indians blue */
        color: #fff;
        box-shadow: 0 2px 6px rgba(0,87,184,0.18);
    }
    .mobile-action-btn.is-active.mobile-action-btn--gamehub {
        background: #00C853; /* green */
        color: #fff;
        box-shadow: 0 2px 6px rgba(40,167,69,0.18);
    }

    /* Hide desktop nav & hamburger */
    .topnav { display: none !important; }
    .topbar .mobile-menu-toggle { display: none !important; }

    /* --- OFF-CANVAS MOBILE NAV (HIDDEN) --- */
    .mobile-nav { display: none !important; }
    .mobile-nav-backdrop { display: none !important; }

    /* --- MAIN CONTAINER & PADDING --- */
    main.container { padding: 12px; padding-bottom: 64px; }

    /* --- TYPOGRAPHY --- */
    h1 { font-size: 24px; line-height: 1.2; }
    h2 { font-size: 20px; line-height: 1.3; }
    h3 { font-size: 18px; line-height: 1.3; }
    h4 { font-size: 16px; }
    p { font-size: 14px; line-height: 1.5; }
    small { font-size: 13px; }

    /* --- BUTTONS --- */
    .btn {
        min-height: var(--touch-target);
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
    }
    .btn--full { width: 100%; }

    /* --- HERO SECTION --- */
    .gamehub-hero {
        flex-direction: column-reverse;
        gap: 12px;
        padding: 0;
    }
    .gamehub-hero__copy h1 { margin-bottom: 8px; }
    .gamehub-hero__art { display: none; }

    /* --- SEARCH STRIP --- */
    .search-strip {
        flex-direction: column;
        gap: 8px;
    }
    .search-field { min-height: var(--touch-target); }
    .filter-button { min-height: var(--touch-target); width: 100%; }

    /* --- ACTION CARDS --- */
    .gamehub-actions {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
    }
    
    /* Mobile: make category grid three across for compact layout */
    .event-explore-grid--filters,
    .event-explore-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        align-items: start;
    }

    .event-explore-card {
        padding: 6px;
        border-radius: 12px;
        min-height: 68px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .event-explore-card__title {
        font-size: 11px;
        font-weight: 700;
        margin-top: 6px;
    }

    .event-explore-card__icon img,
    .event-explore-card__icon svg {
        width: 44px;
        height: 44px;
    }
    .gamehub-action-card {
        gap: 8px;
        padding: 12px;
        border-radius: 12px;
        font-size: 14px;
    }
    .action-card__icon-wrapper { min-width: 48px; }
    .action-card__badge { display: none; }

    /* --- SPORT GRID --- */
    .sport-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        margin: 12px 0;
    }
    .sport-card {
        padding: 12px;
        border-radius: 12px;
        min-height: 72px;
        display: flex;
        align-items: flex-start;
        gap: 8px;
    }
    .sport-card__icon {
        width: 56px;
        height: 56px;
        flex-shrink: 0;
    }
    .sport-card__icon img,
    .sport-card__icon svg {
        width: 36px;
        height: 36px;
    }
    .sport-card span { font-size: 16px; }
    .sport-card small { font-size: 13px; }

    /* Football card special sizing */
    .sport-card--football .sport-card__icon { width: 64px; height: 64px; }
    .sport-card--football .sport-card__icon svg,
    .sport-card--football .sport-card__icon img { width: 44px; height: 44px; }

    /* --- EVENT/VENUE CARDS --- */
    .events-grid,
    .gamehub-venues-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .event-card__thumb {
        min-height: 180px;
        border-radius: 12px;
    }
    .event-card__body {
        padding: 10px;
    }
    /* Venue card — align to the app VenueListCard language (mobile) */
    .gamehub-venue-card {
        background: #fff; border: none; border-radius: 20px; overflow: hidden;
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10), 0 2px 6px rgba(15, 23, 42, 0.08);
    }
    .gamehub-venue-card .event-card__thumb { height: 150px; }
    .gamehub-venue-card__body { padding: 14px; }
    .gamehub-venue-card__category { font-size: 12px; padding: 4px 8px; color: #64748B; }
    .gamehub-venue-card__star { color: #FFB000; }          /* gold rating, like the app */
    .gamehub-venue-card__price { font-size: 17px; font-weight: 800; color: #0F172A; background: transparent; box-shadow: none; padding: 0; }
    .gamehub-venue-card__btn {
        padding: 10px 16px; font-size: 12px; font-weight: 700;
        background: #00C853; border-radius: 12px;
        box-shadow: 0 6px 14px rgba(0, 200, 83, 0.28);
    }
    .gamehub-venue-card .venue-badge {
        top: 10px; left: 10px; border-radius: 8px; padding: 4px 10px; font-size: 10px;
    }

    /* Venue detail: rating stars gold, matching the app (stars are gold; green = actions). */
    .detail-meta-star,
    .review-star.is-active,
    .rating-selector-stars .star-btn.is-active { color: #FFB000; }

    /* --- Live now strip (mirrors the app ActionboardLiveStrip) --- */
    .gh-live { display: block; margin: 2px 0 6px; }
    .gh-live__head { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 10px; }
    .gh-live__title { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; color: #0F172A; }
    .gh-live__dot { width: 8px; height: 8px; border-radius: 50%; background: #D32F2F; animation: gh-live-pulse 1.6s infinite; }
    @keyframes gh-live-pulse {
        0%   { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.45); }
        70%  { box-shadow: 0 0 0 7px rgba(211, 47, 47, 0); }
        100% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0); }
    }
    .gh-live__all { font-size: 13px; font-weight: 700; color: #00A046; text-decoration: none; }
    .gh-live__scroll {
        display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none;
    }
    .gh-live__scroll::-webkit-scrollbar { display: none; }
    .gh-live__card {
        scroll-snap-align: start; flex: 0 0 82%; max-width: 300px;
        background: #fff; border-radius: 16px; padding: 14px;
        text-decoration: none; color: inherit;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    }
    .gh-live__cardhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
    .gh-live__comp { font-size: 11px; font-weight: 600; color: #64748B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .gh-live__badge {
        flex-shrink: 0; margin-left: 8px; font-size: 9.5px; font-weight: 800; letter-spacing: 0.05em;
        color: #fff; background: #D32F2F; padding: 3px 7px; border-radius: 5px;
    }
    .gh-live__team { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
    .gh-live__logo {
        flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
        background: #EEF2F6; color: #0F172A; font-size: 10px; font-weight: 800;
        display: grid; place-items: center;
    }
    .gh-live__abbr { font-size: 14px; font-weight: 700; color: #0F172A; }
    .gh-live__team.is-batting .gh-live__abbr { font-weight: 800; }
    .gh-live__name { flex: 1; min-width: 0; font-size: 12px; color: #64748B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .gh-live__score { font-size: 15px; font-weight: 700; color: #0F172A; font-variant-numeric: tabular-nums; }
    .gh-live__team.is-batting .gh-live__score { font-weight: 800; }
    .gh-live__ov { font-size: 11px; color: #94A3B8; font-variant-numeric: tabular-nums; }

    /* Defensive hardening for GameHub mobile: constrain sections and images so
       nothing can push the page wider than the screen. */
    .gamehub-page { max-width: 100%; overflow-x: clip; }
    .gamehub-page img { max-width: 100%; height: auto; }
    .gamehub-page .events-section,
    .gamehub-page .gamehub-hero,
    .gamehub-page .section-shell__header,
    .gamehub-page .search-strip { min-width: 0; max-width: 100%; }
    .gamehub-page .section-shell__header h2,
    .gamehub-page .gamehub-hero__copy p { overflow-wrap: anywhere; }
    .event-card__thumb { overflow: hidden; }
    .event-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
    /* search-strip is a grid, not flex — collapse it to one column on mobile */
    .gamehub-page .search-strip { display: grid; grid-template-columns: 1fr; }

    /* --- DETAIL CARD PANELS --- */
    .detail-card-panel {
        padding: 12px;
        border-radius: 12px;
        margin-bottom: 8px;
    }
    .detail-card-panel__title { font-size: 16px; margin-bottom: 12px; }
    .detail-card-panel__text { font-size: 14px; line-height: 1.5; }

    /* --- TWO COLUMN LAYOUT --- */
    .detail-two-column {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* --- SECTIONS --- */
    .events-section {
        gap: 8px;
        padding: 12px;
        border-radius: 12px;
        margin-bottom: 12px;
    }

    /* Handpicked experiences: two-up poster grid for mobile */
    .events-grid-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .event-list-card {
        background: transparent;
        border: none;
        border-radius: 12px;
        overflow: visible;
        box-shadow: none;
        display: block;
    }

    .event-list-card__media {
        width: 100%;
        aspect-ratio: 3/4;
        overflow: hidden;
        border-radius: 12px;
        box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    }

    .event-list-card__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 12px;
        transform-origin: center;
    }

    .event-list-card__content {
        padding: 8px 4px 0 4px;
        display: block;
    }

    .event-list-card__title {
        font-size: 14px;
        font-weight: 700;
        color: #111827;
        margin: 6px 0 4px;
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Make event titles MI blue when in Events mode */
    body.mode-events .event-list-card__title {
        color: #2563EB;
    }

    .event-list-card__date,
    .event-list-card__venue,
    .event-list-card__price {
        font-size: 12px;
        color: #6b7280;
        margin: 0;
    }

    /* Make the first featured card span two columns on very small screens if desired */
    @media (max-width: 420px) {
        .events-grid-list {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    .section-shell__header {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .section-shell__header h2 {
        margin: 0;
    }

    /* Mobile: Events heading color when in events mode */
    body.mode-events .section-shell__header h2 {
        color: #2563EB;
    }
    .text-link { display: inline-block; margin-top: 8px; }

    /* --- AMENITIES GRID --- */
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .amenity-item {
        padding: 12px;
        text-align: center;
        font-size: 12px;
    }
    .amenity-item img { width: 28px; height: 28px; }

    /* --- FOOTER --- */
    .site-footer { padding: 20px 16px; margin-bottom: 0; }
    .footer-brand-hero h2 { font-size: 18px; }
    .footer-hero-actions {
        flex-direction: column;
        gap: 10px;
    }
    .footer-hero-btn { width: 100%; padding: 12px; }
    .footer-main-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-column h3 { font-size: 16px; }
    .footer-column p { font-size: 13px; }

    /* --- DATE PICKER --- */
    .date-picker-strip {
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    .date-pill {
        flex-shrink: 0;
        padding: 10px 12px;
        border-radius: 20px;
        font-size: 13px;
    }

    /* --- GALLERY --- */
    .gallery-airbnb-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .gallery-thumbs-wrapper { display: none; }

    /* --- ACCORDION --- */
    .accordion-header { padding: 12px 0; min-height: var(--touch-target); }
    .accordion-title { font-size: 14px; }

    /* --- REVIEWS --- */
    .review-card { padding: 12px; margin-bottom: 12px; }
    .review-card__header { margin-bottom: 8px; }
    .review-user-name { font-size: 14px; }
    .review-date { font-size: 12px; }

    /* --- BADGE --- */
    .eyebrow { font-size: 12px; }
}

@media (min-width: 1025px) {
    .topbar .mobile-menu-toggle { display: none !important; }
    .mobile-nav, .mobile-nav-backdrop { display: none !important; }
    main.container { padding-bottom: unset; }
}

/* ================================================================= */
/* APP-STYLE MOBILE HOME — mirrors the Android app (Haraan tokens)    */
/*   bg #F4F7FB · surface #fff · text #0F172A/#64748B/#94A3B8         */
/*   EventsBlue #2563EB · GameHubGreen #00C853 · LiveRed #D32F2F      */
/* ================================================================= */
@media (max-width: 720px) {
    /* Slate app canvas + edge-to-edge feel */
    body { background: #F4F7FB; }
    main.container { padding: 0 0 88px; background: #F4F7FB; }

    .mhome {
        font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
        color: #0F172A;
        /* Sky-blue gradient wash behind the greeting, like the app Events header */
        background: linear-gradient(180deg, #E0F2FE 0%, #F4F7FB 220px);
        padding: 14px 16px 8px;
    }

    /* --- Greeting --- */
    .mhome__greet { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 16px; }
    .mhome__hi { margin: 0; font-size: 13px; font-weight: 600; color: #64748B; }
    .mhome__title { margin: 2px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: #0F172A; line-height: 1.15; }

    /* --- Section header --- */
    .mhome__head { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 2px 12px; }
    .mhome__head h3 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; color: #0F172A; }
    .mhome__head a { font-size: 13px; font-weight: 700; color: #2563EB; text-decoration: none; }

    /* --- Horizontal scrollers --- */
    .mhome__scroll {
        display: flex; gap: 14px;
        overflow-x: auto; scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        margin: 0 -16px; padding: 2px 16px 6px;
        scrollbar-width: none;
    }
    .mhome__scroll::-webkit-scrollbar { display: none; }

    /* --- Poster card ("For You") — full-bleed hero, mirrors HaraanEventCard --- */
    .mposter {
        position: relative; display: block;
        scroll-snap-align: start;
        flex: 0 0 76%; max-width: 300px;
        aspect-ratio: 3 / 4;
        border-radius: 28px; overflow: hidden;
        text-decoration: none; color: inherit;
        background-size: cover; background-position: center; background-color: #0F172A;
        box-shadow: 0 16px 34px rgba(15, 23, 42, 0.20), 0 3px 8px rgba(15, 23, 42, 0.16);
    }
    .mposter__grad {
        position: absolute; inset: 0;
        background: linear-gradient(to top, rgba(8,12,22,0.92) 4%, rgba(8,12,22,0.35) 34%, rgba(8,12,22,0) 62%);
    }
    .mposter__cat {
        position: absolute; top: 14px; left: 14px; z-index: 2;
        background: rgba(8, 12, 22, 0.45); color: #fff; backdrop-filter: blur(6px);
        font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em;
        padding: 5px 12px; border-radius: 999px;
    }
    .mposter__rating {
        position: absolute; top: 14px; right: 14px; z-index: 2;
        display: inline-flex; align-items: center; gap: 4px;
        background: rgba(8, 12, 22, 0.55); color: #fff; backdrop-filter: blur(6px);
        font-size: 11px; font-weight: 800; padding: 5px 9px; border-radius: 10px;
    }
    .mposter__rating i { color: #F5A623; font-style: normal; font-size: 11px; }
    .mposter__rating--soon { font-weight: 800; letter-spacing: 0.02em; }
    .mposter__overlay {
        position: absolute; inset: auto 0 0 0; z-index: 2;
        display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
        padding: 16px;
    }
    .mposter__text { min-width: 0; }
    .mposter__date {
        margin: 0 0 4px; font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
        text-transform: uppercase; color: rgba(255,255,255,0.9);
    }
    .mposter__overlay h4 {
        margin: 0 0 6px; font-size: 16px; font-weight: 800; line-height: 1.2; color: #fff;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .mposter__meta {
        margin: 0; font-size: 12px; color: rgba(255,255,255,0.66);
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .mposter__book {
        flex: 0 0 44px; width: 44px; height: 44px; border-radius: 999px;
        background: #fff; color: #2563EB;
        display: grid; place-items: center;
        box-shadow: 0 4px 12px rgba(8, 12, 22, 0.28);
    }

    /* --- Trending: ranked Top-10 (mirrors TrendingRowSection) --- */
    .mhome__scroll--sm { gap: 30px; padding-left: 30px; }
    .mtrend {
        position: relative; scroll-snap-align: start; flex: 0 0 132px;
        text-decoration: none; color: inherit;
    }
    .mtrend__img {
        position: relative;
        height: 168px; border-radius: 22px; overflow: hidden;
        background-size: cover; background-position: center;
        background-color: #0F172A; box-shadow: 0 10px 22px rgba(15, 23, 42, 0.20);
    }
    .mtrend__grad {
        position: absolute; inset: 0;
        background: linear-gradient(to top, rgba(8,12,22,0.9) 8%, rgba(8,12,22,0) 55%);
    }
    .mtrend__img h5 {
        position: absolute; left: 12px; right: 10px; bottom: 10px; z-index: 2;
        margin: 0; font-size: 12px; font-weight: 800; line-height: 1.25; color: #fff;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .mtrend__sold {
        position: absolute; left: 10px; top: 10px; z-index: 2;
        display: inline-flex; align-items: center; gap: 3px;
        background: rgba(8, 12, 22, 0.6); backdrop-filter: blur(4px);
        color: #fff; font-size: 10px; font-weight: 700;
        padding: 3px 8px; border-radius: 999px;
    }
    .mtrend__rank {
        position: absolute; left: -22px; bottom: -14px; z-index: 3;
        font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
        font-size: 84px; font-weight: 900; line-height: 1; letter-spacing: -0.04em;
        color: #F4F7FB;
        -webkit-text-stroke: 3px #203A5C;
        text-shadow: 0 6px 16px rgba(15, 23, 42, 0.28);
        pointer-events: none;
    }
    .mtrend > p { margin: 10px 2px 0; font-size: 13px; font-weight: 800; color: #2563EB; }

    /* --- Categories — left-aligned cards (mirrors HaraanCategoryCard) --- */
    .mhome__cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .mcat {
        display: flex; flex-direction: column; align-items: flex-start;
        justify-content: space-between; gap: 14px; height: 96px;
        background: #fff; border: 1px solid #E2E8F0; border-radius: 16px;
        padding: 12px; text-decoration: none; text-align: left;
    }
    .mcat__ico {
        font-size: 20px; width: 36px; height: 36px; border-radius: 10px;
        display: grid; place-items: center;
    }
    .mcat--blue .mcat__ico { background: rgba(37, 99, 235, 0.10); }
    .mcat--green .mcat__ico { background: rgba(0, 200, 83, 0.12); }
    .mcat__txt { display: block; }
    .mcat strong { display: block; font-size: 13px; font-weight: 700; color: #0F172A; }
    .mcat small { display: block; font-size: 11px; color: #94A3B8; margin-top: 1px; }

    /* --- Explore Nearby: 2-col grid of vertical cards (mirrors EventListCard) --- */
    .mhome__head--stack { flex-direction: column; align-items: flex-start; gap: 2px; }
    .mhome__eyebrow {
        font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
        color: #94A3B8;
    }
    .mhome__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
    .mcard { text-decoration: none; color: inherit; display: block; }
    .mcard__img {
        position: relative; width: 100%; aspect-ratio: 1 / 1;
        border-radius: 16px; overflow: hidden;
        background-size: cover; background-position: center; background-color: #F7F7F9;
    }
    .mcard__fast {
        position: absolute; top: 10px; left: 10px;
        display: inline-flex; align-items: center; gap: 4px;
        background: rgba(8, 12, 22, 0.75); border: 0.5px solid rgba(255,255,255,0.15);
        color: #fff; font-size: 9px; font-weight: 800; letter-spacing: 0.05em;
        padding: 4px 8px; border-radius: 6px;
    }
    .mcard__fast i { color: #F6AD55; font-style: normal; font-size: 10px; }
    .mcard__date {
        margin: 8px 2px 2px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em;
        text-transform: uppercase; color: #2563EB;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .mcard__title {
        margin: 0 2px 2px; font-size: 14px; font-weight: 800; line-height: 1.25; color: #1A202C;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .mcard__venue {
        margin: 0 2px 3px; font-size: 12px; color: #4A5568;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .mcard__price { margin: 0 2px; font-size: 14px; font-weight: 800; color: #2563EB; letter-spacing: -0.01em; }
    .mcard__price span { font-size: 11px; font-weight: 500; color: rgba(37, 99, 235, 0.8); }
}
