/* Scoped Phase 2 home; the shared Phase 1 navigation stays unchanged. */
.of-home{--blue:#245b9b;--ink:#253245;--muted:#738094;--line:#e4e9f0;--surface:#f6f8fb;color:var(--ink);min-height:100vh;background:var(--surface);margin:-10px -10px 0;font-size:14px;overflow-wrap:anywhere}
.of-home *, .of-home *::before,.of-home *::after{box-sizing:border-box}
.of-home a{color:var(--blue);text-decoration:none}
.of-home a:hover{text-decoration:underline}
.of-home button{font:inherit}
.of-home-topbar{height:72px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:20px;padding:0 28px;position:sticky;top:0;z-index:100}
.of-home-top-title{font-size:20px;font-weight:700;white-space:nowrap}
.of-home-brand-mobile{display:none}
.of-home-search{display:flex;align-items:center;gap:10px;max-width:510px;flex:1;margin-left:auto;background:#f4f6f9;border:1px solid #e6ebf1;border-radius:24px;padding:8px 14px;color:var(--muted);min-width:0}
.of-home-search input{background:none;border:0;outline:none;width:100%;min-width:0;color:var(--ink);font-size:13px}
.of-home-search-submit{border:0;background:none;color:var(--blue);white-space:nowrap;font-size:12px}
.of-home-notification,.of-home-avatar{width:38px;height:38px;display:flex;align-items:center;justify-content:center;flex:none;position:relative;font-size:19px;border-radius:50%;color:#51647a!important}
.of-home-avatar{background:#e9eff7;overflow:hidden;font-size:16px}
.of-home-avatar img{width:100%;height:100%;object-fit:cover}
.of-home-unread{position:absolute;top:-1px;right:-2px;background:#d6404e;color:#fff;border:2px solid white;border-radius:20px;min-width:19px;height:19px;display:grid;place-items:center;font-size:10px;font-weight:700;padding:0 2px}
.of-home-layout{max-width:1240px;margin:0 auto;padding:26px 30px 50px;display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,320px);grid-template-areas:"feed rail";gap:24px;align-items:start}
.of-home-feed{grid-area:feed;min-width:0}
.of-home-rail{grid-area:rail;min-width:0;display:grid;gap:16px}
.of-home-card{background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:0 2px 8px rgba(34,54,78,.035);min-width:0}
.of-home h1,.of-home h2,.of-home p{margin-top:0}
.of-home h2{font-size:15px;line-height:1.45;font-weight:700;margin:0}
.of-home-section-head{display:flex;align-items:center;justify-content:space-between;gap:6px}
.of-home-section-head a{white-space:nowrap;font-size:12px}
.of-home-schedule,.of-home-quick,.of-home-news{padding:17px}
.of-home-schedule-scroll{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;margin:15px 0 0}
.of-home-schedule-card{flex:0 0 100%;min-width:0;scroll-snap-align:start}
.of-home-schedule-date{font-size:13px;font-weight:600;color:var(--blue);margin-bottom:13px}
.of-home-pill{padding:4px 9px;border-radius:16px;background:#edf3fc;font-size:11px;color:var(--blue)}
.of-home-schedule-event{display:flex;gap:12px;align-items:center;color:var(--ink)!important;margin-bottom:14px}
.of-home-schedule-event>.of-home-schedule-name{min-width:0;flex:1;color:var(--ink)}
.of-home-schedule-event strong{display:block;font-size:14px;line-height:1.5}
.of-home-schedule-event small{display:block;font-size:11px;color:var(--muted);margin-top:3px}
.of-home-schedule-image{width:66px;height:76px;flex:none;background:#e7eef8;border-radius:8px;display:grid;place-items:center;color:#8295b0;overflow:hidden}
.of-home-schedule-image img{width:100%;height:100%;object-fit:cover}
.of-home-schedule-link{display:flex;align-items:center;justify-content:center;gap:8px;background:#edf4fd;border:1px solid #dbe9fb;border-radius:9px;padding:11px 5px;font-size:12px;font-weight:600}
.of-home-next-slot{background:#edf6ef;border:1px solid #dceee0;border-radius:10px;padding:12px;margin-bottom:12px;color:#326346;display:grid;gap:4px}
.of-home-next-slot small,.of-home-next-slot span{font-size:12px}
.of-home-countdown{font-weight:700}
.of-home-schedule-caption,.of-home-swipe-hint{font-size:11px;color:var(--muted);margin:9px 0 0;text-align:center}
.of-home-quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:13px}
.of-home-quick-grid a{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:9px;padding:12px 3px;border:1px solid var(--line);border-radius:10px;font-size:11px;color:var(--ink)}
.of-home-quick-grid i{font-size:20px;color:var(--blue)}
.of-home-news-item{display:grid;gap:5px;border-bottom:1px solid var(--line);padding:12px 0;font-size:12px}
.of-home-news-item:last-child{border-bottom:0;padding-bottom:0}
.of-home-news-item small,.of-home-rail-footer{color:var(--muted);font-size:11px}
.of-home-rail-footer{padding:0 6px;margin:0}
.of-home-feed-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 14px}
.of-home-feed-heading h1{font-size:22px;font-weight:700;margin:0}
.of-home-feed-heading>a{font-size:12px;color:var(--muted);white-space:nowrap}
.of-home-tabs{display:flex;align-items:stretch;background:white;border:1px solid var(--line);border-radius:12px;position:sticky;top:72px;z-index:90;margin-bottom:15px}
.of-home-tabs a{flex:1;text-align:center;padding:14px 4px;white-space:nowrap;color:var(--muted);font-size:13px;font-weight:500;position:relative}
.of-home-tabs a.active{color:var(--blue);font-weight:700}
.of-home-tabs a.active::after{content:"";height:3px;border-radius:3px;position:absolute;bottom:0;left:17%;right:17%;background:var(--blue)}
.of-home-event,.of-home-promo{margin-bottom:15px;overflow:hidden}
.of-home-event-reason{display:flex;align-items:center;gap:6px;padding:12px 16px;color:#596e84;font-size:12px}
.of-home-event-reason small{margin-left:auto;color:var(--muted);white-space:nowrap;font-size:11px}
.of-home-reason-favorite{color:#987323;font-weight:600}
.of-home-poster{min-height:164px;background:linear-gradient(135deg,#e6e7f5,#e0edf8);color:#4c6087!important;text-align:center;padding:23px 20px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px}
.of-home-poster i{font-size:23px;opacity:.65}
.of-home-poster strong{font-size:clamp(19px,2.5vw,29px);line-height:1.25}
.of-home-poster small{font-size:12px;letter-spacing:.08em}
.of-home-event .event-image-mosaic{margin:0 auto!important;padding:0!important;width:calc(100% - 32px);max-width:320px;overflow-x:auto;overflow-y:hidden}
.of-home-event .event-image-mosaic-page{width:100%;margin:0}
.of-home-event .event-image-mosaic-button{border:0;padding:0;background:#f2f4f8;width:100%;display:block;overflow:hidden;border-radius:10px;cursor:zoom-in}
.of-home-event .event-image-mosaic-img{display:block;width:100%;height:auto;max-height:460px;object-fit:contain}
.of-home-event .event-image-mosaic-grid,.of-home-event .event-image-mosaic-page-grid-3,.of-home-event .event-image-mosaic-stack{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px}
.of-home-event .event-image-mosaic-stack{grid-template-columns:1fr}
.of-home-event .event-image-mosaic-grid img,.of-home-event .event-image-mosaic-page-grid-3 img{height:100%;max-height:320px;object-fit:cover}
.of-home-event-body{padding:16px}
.of-home-event-title{display:flex;align-items:start;justify-content:space-between;gap:10px}
.of-home-event-title>a{color:var(--ink)}
.of-home-event-title h2{font-size:18px}
.of-home-bookmark{border:0;background:none;color:#697c91!important;min-width:35px;padding:1px 4px;display:grid;justify-items:center;gap:4px;flex:none;font-size:19px!important}
.of-home-bookmark small{font-size:11px}
.of-home-bookmark[aria-pressed=true]{color:var(--blue)!important}
.of-home-event-meta{font-size:12px;color:var(--muted);margin-top:6px}
.of-home-event-meta i{width:15px;text-align:center}
.of-home-performers{display:flex;flex-wrap:wrap;gap:5px;margin-top:12px}
.of-home-performers span{font-size:11px;border-radius:5px;background:#f1f4f7;padding:4px 7px;color:#52667b}
.of-home-performers span.favorite{background:#fff4d9;color:#936c1f}
.of-home-actors{display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin-top:12px}
.of-home-actors img{width:25px;height:25px;object-fit:cover;border-radius:50%}
.of-home-actors i{font-size:24px;color:#9baac0}
.of-home-people-button{border:0;background:none;color:var(--muted);font-size:11px!important;text-align:left}

.of-home-promo{padding:17px;display:flex;gap:14px;background:#f6faff;border-color:#dce8f5}
.of-home-promo-icon,.of-home-notification-icon{width:40px;height:40px;flex:none;border-radius:12px;display:grid;place-items:center;background:#e6effd;color:var(--blue);font-size:18px}
.of-home-promo-content{min-width:0}
.of-home-promo-content>small{color:var(--blue);font-size:11px;font-weight:700}
.of-home-promo-content h2{margin:4px 0 8px}
.of-home-promo-text{font-size:13px;color:#54677d}
.of-home-promo-text img{max-width:100%;height:auto}
.of-home-empty{text-align:center;padding:24px 14px;color:var(--muted);font-size:13px}
.of-home-empty>i{font-size:28px;margin-bottom:12px;color:#8498b0}
.of-home-primary{display:inline-block;padding:10px 16px;border-radius:9px;background:var(--blue);color:white!important;font-weight:600;font-size:13px}
.of-home-load-more{display:block;text-align:center;background:white;border:1px solid var(--line);border-radius:10px;padding:14px;font-weight:600}
.of-home-guest{grid-template-columns:minmax(0,1fr);grid-template-areas:"hero" "feed";max-width:850px}
.of-home-hero{grid-area:hero;background:linear-gradient(130deg,#eaf1fb,#edf0f9);border:1px solid #dce6f4;border-radius:18px;padding:32px}
.of-home-hero>small{color:var(--blue);letter-spacing:.12em;font-size:11px;font-weight:700}
.of-home-hero h1{font-size:30px;margin:12px 0}
.of-home-hero p{color:#53677f;line-height:1.8}
.of-home-hero-login{margin-left:16px}
.of-home-drawer{border:0;padding:0;margin:0 0 0 auto;height:100%;max-height:100%;width:min(440px,100%);max-width:100%;color:var(--ink);background:white;box-shadow:-12px 0 40px #26364b33}
.of-home-drawer::backdrop{background:#142b4366}
.of-home-drawer-header{display:flex;align-items:center;justify-content:space-between;padding:17px 20px;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:1}
.of-home-drawer-header h2{font-size:19px}
.of-home-drawer-header button{background:none;border:0;padding:8px;color:var(--muted);font-size:18px}
#home-users-body{padding:20px}
.of-home-notification-list{padding:16px}
.of-home-notification-row{display:flex;align-items:flex-start;gap:12px;padding:14px;border-bottom:1px solid var(--line);border-radius:8px;margin:5px 0}
.of-home-notification-row.unseen{background:#edf4fc}
.of-home-notification-text{min-width:0;flex:1;display:grid;gap:5px;font-size:13px}
.of-home-notification-text small{color:var(--muted)}
.of-home-notification-text button,.of-home-read-all button{background:none;border:0;padding:0;color:var(--blue);font-size:12px;text-align:left}
.of-home-notification-text button.btn{border:1px solid #b5cce8;padding:6px 9px;width:fit-content}
.of-home-read-all{text-align:right;padding:5px 0 12px}
.of-home-unseen-dot{width:8px;height:8px;flex:none;background:var(--blue);border-radius:50%;margin-top:7px}
.of-home-notification-pages{display:flex;justify-content:center;gap:20px;padding:18px;color:var(--muted);font-size:12px}
.of-home-notification-main{max-width:720px;margin:20px auto;background:white;border:1px solid var(--line);border-radius:12px}
.of-home-toast{position:fixed;z-index:2200;bottom:78px;left:50%;transform:translateX(-50%);background:#233c59;color:white;padding:12px 22px;border-radius:10px;max-width:90%;box-shadow:0 4px 18px #20344b33}
.of-home :focus-visible{outline:2px solid #3977bd;outline-offset:2px}
@media(max-width:1100px){.of-home-layout{padding:20px;gap:16px;grid-template-columns:minmax(0,1fr) minmax(240px,275px)}.of-home-guest{grid-template-columns:1fr}.of-home-topbar{padding:0 20px}}
@media(max-width:980px){.of-home-layout:not(.of-home-guest){grid-template-columns:1fr;grid-template-areas:"rail" "feed"}.of-home-rail{grid-template-columns:repeat(2,minmax(0,1fr))}.of-home-news,.of-home-rail-footer{grid-column:1/-1}}
@media(max-width:768px){.of-home{margin:0;min-height:calc(100vh - 57px)}.of-home-topbar{height:auto;min-height:57px;flex-wrap:wrap;gap:9px;padding:10px 15px;position:relative}.of-home-brand-mobile{display:inline;font-size:22px}.of-home-label-desktop{display:none}.of-home-search{order:3;max-width:none;flex:0 0 100%;padding:9px 13px;margin:0}.of-home-top-title{margin-right:auto}.of-home-notification,.of-home-avatar{width:34px;height:34px}.of-home-layout,.of-home-layout:not(.of-home-guest){display:grid;grid-template-columns:1fr;padding:13px 12px 24px;gap:15px}.of-home-rail{grid-template-columns:1fr;gap:10px}.of-home-rail-footer,.of-home-news{display:none}.of-home-schedule,.of-home-quick{padding:13px}.of-home-quick h2{display:none}.of-home-quick-grid{margin-top:0}.of-home-quick-grid a{padding:9px 3px;gap:6px}.of-home-feed-heading h1{font-size:18px}.of-home-feed-heading{margin-bottom:9px}.of-home-tabs{top:0;margin-bottom:12px;border-radius:9px}.of-home-tabs a{padding:12px 2px;font-size:12px}.of-home-event-reason{padding:10px 12px;font-size:11px}.of-home-event-body{padding:12px}.of-home-event-title h2{font-size:16px}.of-home-poster{min-height:137px}.of-home-hero{padding:23px 18px}.of-home-hero h1{font-size:24px}.of-home-notification-main{margin:12px}.of-home-notification-list{padding:10px}}

/* Skeleton placeholders keep the feed shape visible during asynchronous loading. */
.of-home-tabs a[hidden]{display:none!important}.of-home-skeleton-card{pointer-events:none;overflow:hidden;margin-bottom:15px}.of-home-skeleton-reason{height:39px;display:flex;align-items:center;padding:12px 16px;gap:8px}.of-home-skeleton-shape{display:block;background:#e7ebf0;border-radius:6px;animation:of-home-skeleton-pulse 1.35s ease-in-out infinite}.of-home-skeleton-circle{width:15px;height:15px;border-radius:50%}.of-home-skeleton-reason .of-home-skeleton-line{width:55%;height:11px}.of-home-skeleton-poster{height:164px;border-radius:0;background:#e4e8ee}.of-home-skeleton-body{padding:16px;display:grid;gap:12px}.of-home-skeleton-title{height:18px;width:76%}.of-home-skeleton-meta{height:12px;width:48%}.of-home-skeleton-short{height:12px;width:32%}.of-home-skeleton-footer .of-home-skeleton-shape{height:44px;width:100%;border-radius:7px}.of-home-load-more[aria-disabled=true]{opacity:.6;pointer-events:none}@keyframes of-home-skeleton-pulse{0%,100%{opacity:.65}50%{opacity:1}}@media(prefers-reduced-motion:reduce){.of-home-skeleton-shape{animation:none}}@media(max-width:768px){.of-home-skeleton-poster{height:137px}.of-home-skeleton-body{padding:12px}.of-home-skeleton-reason{padding:10px 12px}}

/* Match the card body inset without enlarging existing event thumbnails. */
.of-home-event .of-home-poster,.of-home-skeleton-poster{margin-inline:16px;border-radius:10px}
.of-home-skeleton-poster{width:calc(100% - 32px);max-width:320px;margin-inline:auto}
@media(max-width:768px){
    .of-home-event .event-image-mosaic,.of-home-skeleton-poster{width:calc(100% - 24px)}
    .of-home-event .of-home-poster{margin-inline:12px}
}

.of-home-schedule-image[data-event-image-preview]{border:0;padding:0;cursor:zoom-in}

/* Event-linked promotions reuse the standard event card below their heading. */
.of-home-promotion-event{border-color:#dce8f5}
.of-home-promotion-event-heading{display:flex;gap:14px;padding:17px;background:#f6faff;border-bottom:1px solid #dce8f5}
.of-home-promotion-event-heading .of-home-promo-content{flex:1;overflow-wrap:anywhere}
@media(max-width:768px){.of-home-promotion-event-heading{padding:12px;gap:10px}}
