/* Going Mary: the shell (MainActivity.kt) and Home (HomeScreen, HomeShelfViews,
   RotatingHero, HomeCalendar, TrailerPreview, SailingLoader). Android dp x 2.
   Animations use transform/opacity only; no box-shadows on moving things. */

/* ---------------------------------------------------------------- shell */

.gm-shell { position: absolute; top: 0; left: 0; width: 1920px; height: 1080px; overflow: hidden; background: linear-gradient(180deg, #000 0%, #292929 100%); }
.gm-content { position: absolute; top: 0; left: 0; width: 1920px; height: 1080px; overflow: hidden; }

/* Darkens the page's leading edge while the sidebar is open (360.dp). */
.gm-scrim { position: absolute; top: 0; left: 0; width: 720px; height: 1080px; background: linear-gradient(90deg, rgba(0,0,0,0.9), rgba(0,0,0,0)); opacity: 0; transition: opacity 220ms ease; pointer-events: none; }
.gm-scrim.open { opacity: 1; }

/* Sidebar: a column of icons that opens with names when focus moves in. */
.gm-sidebar { position: absolute; top: 0; left: 0; height: 1080px; padding: 56px 0 56px 36px; display: flex; flex-direction: column; justify-content: center; }
.gm-side-panel { border-radius: 52px; background: rgba(30,30,32,0.6); padding: 20px; transition: background-color 200ms ease; }
.gm-sidebar.open .gm-side-panel { background: rgba(30,30,32,0.94); }
.gm-side-brand { color: var(--silver); font-size: 26px; font-weight: 600; padding: 16px 0 12px 28px; }
.gm-side-item { display: flex; flex-direction: row; align-items: center; padding: 18px 22px; border-radius: 999px; color: rgba(168,173,184,0.7); background: transparent; transition: background-color 150ms, color 150ms; }
.gm-side-item + .gm-side-item { margin-top: 8px; }
.gm-sidebar.open .gm-side-item { color: var(--silver); }
.gm-side-item.selected, .gm-sidebar.open .gm-side-item.selected { background: rgba(255,255,255,0.16); color: #fff; }
.gm-side-item.focused, .gm-sidebar.open .gm-side-item.focused { background: #fff; color: #000; }
.gm-side-label { width: 192px; margin: 0 20px 0 24px; font-size: 32px; font-weight: 500; white-space: nowrap; overflow: hidden; animation: gm-fade 220ms ease-out both; }
.gm-side-item.selected .gm-side-label, .gm-side-item.focused .gm-side-label { font-weight: 600; }

/* NoticeBanner */
.gm-notice { position: absolute; top: 40px; left: 50%; max-width: 1600px; transform: translateX(-50%); padding: 20px 44px; border-radius: 999px; background: rgba(42,42,44,0.9); color: #fff; font-size: 30px; text-align: center; animation: gm-fade 200ms ease-out both; }

/* Up Next offer */
.gm-upnext { position: absolute; top: 0; left: 0; width: 1920px; height: 1080px; background: rgba(0,0,0,0.9); display: flex; align-items: center; justify-content: center; text-align: center; }
.gm-upnext-label { color: #ffd60a; font-size: 36px; font-weight: 700; letter-spacing: 4px; }
.gm-upnext-title { color: #fff; font-size: 72px; font-weight: 700; max-width: 1600px; }
.gm-upnext-show { color: var(--silver); font-size: 44px; max-width: 1600px; }
.gm-upnext-count { color: var(--silver); font-size: 36px; }

.gm-sheet-layer { position: absolute; top: 0; left: 0; width: 1920px; height: 1080px; }
.gm-sheet-layer:empty { display: none; }
.gm-player-layer { position: absolute; top: 0; left: 0; width: 1920px; height: 1080px; background: #000; }

/* ---------------------------------------------------------------- crossfade */

.gm-fill { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.gm-xfade { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; }
.gm-xfade-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.gm-xfade-layer.enter { animation-name: gm-fade; animation-timing-function: ease-out; animation-fill-mode: both; }
.gm-cover { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ---------------------------------------------------------------- HeroShelvesPage */

.gm-hsp { position: absolute; top: 0; left: 0; width: 1920px; height: 1080px; overflow: hidden; }
.gm-rows { position: absolute; left: 0; right: 0; bottom: 0; overflow: hidden; }
.gm-rows-item + .gm-rows-item { margin-top: 16px; }
.gm-corner { position: absolute; top: 48px; right: 72px; }

/* Focus-Driven hero: artwork 72% wide at the trailing edge, 350.dp tall. */
.gm-hero-art { position: absolute; top: 0; left: 0; width: 1920px; height: 700px; pointer-events: none; }
.gm-hero-art-img { position: absolute; top: 0; right: 0; width: 72%; height: 100%; }
.gm-hero-banner { position: absolute; top: 0; left: 0; width: 1920px; height: 544px; }
.gm-hero-words { position: absolute; left: 184px; bottom: 12px; max-width: 860px; }
.gm-hero-facts { color: var(--silver); font-size: 28px; font-weight: 500; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.gm-hero-cert { color: var(--silver); font-size: 22px; font-weight: 700; border-radius: 8px; background: rgba(255,255,255,0.12); padding: 2px 10px; white-space: nowrap; }
.gm-hero-synopsis { color: var(--accent); font-size: 28px; line-height: 38px; }
.gm-cast-face { width: 68px; height: 68px; border-radius: 50%; overflow: hidden; background: var(--surface); position: relative; flex: none; }
.gm-cast-face + .gm-cast-face { margin-left: -16px; }
.gm-cast-names { color: #fff; font-size: 28px; }

/* Rotating hero */
.gm-rhero { position: absolute; top: 0; left: 0; width: 1920px; overflow: hidden; }
.gm-rhero-words { max-width: 1240px; }
.gm-rhero-facts { color: rgba(255,255,255,0.9); font-size: 28px; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.gm-dots { display: flex; flex-direction: row; padding-top: 8px; }
.gm-dot { width: 14px; height: 14px; border-radius: 7px; background: rgba(255,255,255,0.4); flex: none; }
.gm-dot + .gm-dot { margin-left: 12px; }
.gm-dot.on { width: 36px; background: #fff; }
.gm-rhero-card { position: absolute; top: 48px; bottom: 16px; left: 184px; right: 0; display: flex; flex-direction: row; }
.gm-rhero-card-main { position: relative; flex: 1; min-width: 0; height: 100%; border-radius: 44px; overflow: hidden; background: var(--chip); }
.gm-rhero-card-peek { position: relative; width: 240px; height: 100%; margin-left: 36px; flex: none; border-radius: 44px 0 0 44px; overflow: hidden; background: var(--chip); }
.gm-rhero-stage-poster { position: relative; width: 300px; height: 450px; flex: none; border-radius: 24px; overflow: hidden; background: var(--chip); border: 2px solid rgba(255,255,255,0.2); }
.gm-push { animation: gm-push 12s linear both; transform-origin: center; }
@keyframes gm-push { from { transform: scale(1); } to { transform: scale(1.09); } }
.gm-strip { position: absolute; right: 72px; bottom: 20px; display: flex; flex-direction: row; align-items: flex-end; }
.gm-strip-item { position: relative; width: 160px; height: 90px; border-radius: 16px; overflow: hidden; background: var(--chip); flex: none; }
.gm-strip-item + .gm-strip-item { margin-left: 16px; }
.gm-strip-item.on { width: 208px; height: 116px; }
.gm-strip-item.on::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border: 4px solid #fff; border-radius: 16px; }
.gm-strip-dim { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); }

/* ---------------------------------------------------------------- cards (Surface with a focus border) */

.gm-card { position: relative; flex: none; border-radius: 24px; background: var(--chip); transition: transform 180ms var(--ease); }
.gm-card-clip { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 24px; overflow: hidden; }
.gm-card.focused { z-index: 2; }
.gm-card.focused::after { content: ""; position: absolute; top: -4px; left: -4px; right: -4px; bottom: -4px; border: 4px solid #fff; border-radius: 28px; pointer-events: none; }
.gm-card.s105.focused { transform: scale(1.05); }
.gm-card.s106.focused { transform: scale(1.06); }

/* Home rows */
.gm-skel-row { display: flex; flex-direction: row; padding: 24px 0 32px 184px; overflow: hidden; }
.gm-skel { width: 220px; height: 330px; border-radius: 20px; background: rgba(255,255,255,0.06); flex: none; }
.gm-skel + .gm-skel { margin-left: 36px; }
.gm-row-title { padding: 0 72px 0 184px; }
.gm-wide-col { width: 600px; }
.gm-wide { width: 600px; height: 338px; }
.gm-wide-shade { background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.75) 100%); }
.gm-wide-foot { position: absolute; left: 24px; right: 24px; bottom: 24px; }
.gm-wide-left { color: rgba(255,255,255,0.9); font-size: 24px; font-weight: 700; }
.gm-wide-bar { height: 8px; border-radius: 4px; overflow: hidden; background: rgba(255,255,255,0.4); margin-top: 12px; }
.gm-wide-left + .gm-wide-bar { margin-top: 12px; }
.gm-wide-fill { height: 8px; background: var(--accent); }
.gm-wide-name { color: #fff; font-size: 28px; font-weight: 600; margin-top: 12px; }
.gm-wide-sub { color: var(--muted); font-size: 24px; margin-top: 12px; }
.gm-wide-rank { position: absolute; left: 20px; bottom: 12px; color: #fff; font-size: 80px; font-weight: 900; line-height: 1; }
.gm-wide-scores { position: absolute; top: 0; right: 0; }
.gm-pack-name { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); text-align: center; color: var(--silver); font-size: 32px; font-weight: 700; }

/* Home calendar strip */
.gm-cal-head { padding: 0 72px 0 184px; }
.gm-cal-range { color: var(--muted); font-size: 28px; white-space: nowrap; }
.gm-cal-quiet { width: 124px; height: 300px; background: rgba(28,28,28,0.85); }
.gm-cal-quiet.today { background: #1c1c1c; }
.gm-cal-quiet.focused { background: var(--chip); }
.gm-cal-quiet-in { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.gm-cal-dow { color: var(--muted); font-size: 22px; font-weight: 700; }
.gm-cal-num { color: #fff; font-size: 48px; font-weight: 700; line-height: 1.2; }
.gm-cal-mon { color: var(--muted); font-size: 24px; }
.gm-cal-today { color: var(--accent); font-size: 22px; font-weight: 700; }
.gm-cal-ep { width: 540px; height: 300px; background: var(--surface); }
.gm-cal-ep-shade { background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.88) 100%); }
.gm-cal-ep-in { position: absolute; top: 0; left: 0; right: 0; bottom: 0; padding: 24px; display: flex; flex-direction: column; }
.gm-cal-ep-date { display: flex; flex-direction: row; align-items: flex-end; }
.gm-cal-ep-num { color: #fff; font-size: 52px; font-weight: 700; line-height: 1.1; }
.gm-cal-ep-when { color: #fff; font-size: 28px; margin: 0 0 8px 12px; white-space: nowrap; }
.gm-cal-ep-title { color: #fff; font-size: 32px; font-weight: 700; margin-top: auto; }
.gm-cal-ep-sub { color: rgba(255,255,255,0.85); font-size: 26px; }

/* ---------------------------------------------------------------- trailer */

.gm-trailer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; background: transparent; transition: opacity 800ms ease; }

/* ---------------------------------------------------------------- SailingLoader */

.gm-sail { width: 100%; display: flex; flex-direction: column; align-items: center; }
.gm-sail-scene { position: relative; width: 100%; min-width: 840px; height: 210px; overflow: hidden; }
.gm-sail-abs { position: absolute; left: 50%; bottom: 0; }
/* Spans the scene and slides across it, so a translate in % is a share of the scene's width. */
.gm-sail-track { position: absolute; left: 0; bottom: 0; width: 100%; height: 0; }
.gm-sail-body { position: absolute; left: 0; bottom: 0; margin-left: -26.4px; }
.gm-sail-island { position: absolute; left: 0; bottom: 0; }
.gm-sail-hill { position: absolute; left: 0; bottom: 0; width: 100%; overflow: hidden; }
/* Apple's rotationEffect(anchor: .bottom): the boat rocks about the middle of its bottom edge. */
.gm-sail-boat { transform-origin: 50% 100%; }
.gm-sail-text { color: var(--muted); font-size: 38px; margin-top: 18px; }
.gm-sail-wave { position: absolute; left: 0; bottom: 0; width: 100%; height: 56px; overflow: hidden; }
.gm-sail-wave svg { display: block; animation: gm-wave 2.4s linear infinite; }
@keyframes gm-wave { from { transform: translate3d(0,0,0); } to { transform: translate3d(-40%,0,0); } }
.gm-sail-star { position: absolute; width: 4.8px; height: 4.8px; margin-left: -2.4px; border-radius: 50%; background: #fff; }
