/* CRYOTALE · AI影像馆 entry points (entry.js). The bottom dock gets a 5th, icon-only tab at its left end; every icon is
   re-assigned to its new position and the glowing indicator is computed for 5 cells. Loaded after r37-chat.css. */
html.cryo-ui-v31 :is(#cryoV31OfficialDock,.mobile-switch).cryo-theater-dock{grid-template-columns:repeat(5,minmax(0,1fr))!important}
html.cryo-ui-v31 :is(#cryoV31OfficialDock,.mobile-switch).cryo-theater-dock > button:nth-child(1){--r37-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.4' y='4.6' width='17.2' height='13.2' rx='2.6'/%3E%3Cpath d='M10.2 8.6v5.4l4.6-2.7z' fill='black' stroke-width='1.2'/%3E%3Cpath d='M8.4 21h7.2'/%3E%3C/svg%3E")}
html.cryo-ui-v31 :is(#cryoV31OfficialDock,.mobile-switch).cryo-theater-dock > button:nth-child(2){--r37-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.6 12V4.3l4.5 3.4a8.2 8.2 0 0 1 5.8 0l4.5-3.4V12'/%3E%3Cpath d='M4.6 12a7.4 7.4 0 0 0 14.8 0'/%3E%3Cpath d='M9.2 12.4v1.1M14.8 12.4v1.1'/%3E%3Cpath d='M10.5 16.3q.75.75 1.5 0q.75.75 1.5 0'/%3E%3C/svg%3E")}
html.cryo-ui-v31 :is(#cryoV31OfficialDock,.mobile-switch).cryo-theater-dock > button:nth-child(3){--r37-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='12.5' height='16' rx='2.2'/%3E%3Cpath d='M19.5 7v11.2a2.8 2.8 0 0 1-2.8 2.8H8'/%3E%3Cpath d='M10.25 7.2l1 2.4 2.4 1-2.4 1-1 2.4-1-2.4-2.4-1 2.4-1z' fill='black' stroke-width='1'/%3E%3C/svg%3E")}
html.cryo-ui-v31 :is(#cryoV31OfficialDock,.mobile-switch).cryo-theater-dock > button:nth-child(4){--r37-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8.2' r='3.1'/%3E%3Cpath d='M3.4 19.8a5.6 5.6 0 0 1 11.2 0'/%3E%3Cpath d='M15.2 5.3a3.1 3.1 0 0 1 0 5.8'/%3E%3Cpath d='M17.2 14.3a5.6 5.6 0 0 1 3.4 5.5'/%3E%3Cpath d='M19.6 2.4v3M18.1 3.9h3'/%3E%3C/svg%3E")}
html.cryo-ui-v31 :is(#cryoV31OfficialDock,.mobile-switch).cryo-theater-dock > button:nth-child(5){--r37-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6.6A2.6 2.6 0 0 1 6.6 4h10.8A2.6 2.6 0 0 1 20 6.6v7.8a2.6 2.6 0 0 1-2.6 2.6H11.2L6.8 20.4V17h-.2A2.6 2.6 0 0 1 4 14.4z'/%3E%3Cpath d='M8.6 10.6h.01M12 10.6h.01M15.4 10.6h.01' stroke-width='2.6'/%3E%3C/svg%3E")}
html.cryo-ui-v31 :is(#cryoV31OfficialDock,.mobile-switch).cryo-theater-dock::after{left:calc(6px + (100% - 28px) / 5 * (var(--r37-i) + .5) + 4px * var(--r37-i) - 10px)!important}
html.cryo-ui-v31 #cryoV31OfficialDock.cryo-theater-dock{--r37-i:1}
html.cryo-ui-v31 .mobile-switch.cryo-theater-dock:has(> button:nth-child(2).chosen){--r37-i:1}
html.cryo-ui-v31 .mobile-switch.cryo-theater-dock:has(> button:nth-child(3).chosen){--r37-i:2}
html.cryo-ui-v31 .mobile-switch.cryo-theater-dock:has(> button:nth-child(4).chosen){--r37-i:3}
html.cryo-ui-v31 .mobile-switch.cryo-theater-dock:has(> button:nth-child(5).chosen){--r37-i:4}
/* fallback when r37 is not on the page: the dock still has 5 equal cells */
:is(#cryoV31OfficialDock,.mobile-switch).cryo-theater-dock{grid-template-columns:repeat(5,minmax(0,1fr))}

/* desktop · AI-girl page sidebar, under 多人聊天室: same family as the rooms button, brighter (owner: 显眼一些) */
.sidebar #cryo-theater-side{position:relative;overflow:hidden;width:calc(100% - 8px);margin:-17px 4px 24px;display:flex;align-items:center;gap:11px;
  padding:12px 14px;border-radius:14px;text-decoration:none;color:#f0fbff;border:1px solid rgba(170,214,255,.62);
  background:linear-gradient(120deg,rgba(22,86,128,.88),rgba(58,46,128,.78));
  box-shadow:0 0 22px rgba(110,180,255,.26),inset 0 1px 0 rgba(220,245,255,.18);transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.sidebar #cryo-theater-side::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(105deg,transparent 30%,rgba(210,240,255,.20) 46%,transparent 62%);transform:translateX(-120%);
  animation:cryo-theater-sheen 4.8s ease-in-out infinite}
@keyframes cryo-theater-sheen{0%,55%{transform:translateX(-120%)}85%,100%{transform:translateX(120%)}}
.sidebar #cryo-theater-side:hover{transform:translateY(-1px);border-color:#bfe9ff;box-shadow:0 0 28px rgba(120,190,255,.42)}
.sidebar #cryo-theater-side .cryo-theater-side-icon{flex:none;width:30px;height:30px;border-radius:10px;
  background:radial-gradient(circle at 50% 40%,rgba(190,240,255,.35),rgba(80,140,230,.18));box-shadow:0 0 12px rgba(140,210,255,.55);
  display:grid;place-items:center}
.sidebar #cryo-theater-side .cryo-theater-side-icon::before{content:"";width:20px;height:20px;background:#d8f6ff;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.4' y='4.6' width='17.2' height='13.2' rx='2.6'/%3E%3Cpath d='M10.2 8.6v5.4l4.6-2.7z' fill='black' stroke-width='1.2'/%3E%3Cpath d='M8.4 21h7.2'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.4' y='4.6' width='17.2' height='13.2' rx='2.6'/%3E%3Cpath d='M10.2 8.6v5.4l4.6-2.7z' fill='black' stroke-width='1.2'/%3E%3Cpath d='M8.4 21h7.2'/%3E%3C/svg%3E") center/contain no-repeat}
.sidebar #cryo-theater-side .cryo-theater-side-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.sidebar #cryo-theater-side strong{font-size:15px;font-weight:800;letter-spacing:.02em;white-space:nowrap}
.sidebar #cryo-theater-side .cryo-theater-side-hint{font-size:11.5px;color:#bcdcf0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar #cryo-theater-side .cryo-theater-trailing{color:#cbe9ff}
.cryo-theater-new{display:inline-block;margin-left:7px;padding:1px 6px;border-radius:999px;font-size:10px;font-weight:800;letter-spacing:.06em;
  line-height:1.5;vertical-align:2px;color:#13123a;background:linear-gradient(120deg,#b8f3ff,#b7a8ff);box-shadow:0 0 10px rgba(170,170,255,.6)}
/* cards page sidebar item */
#theaterNav.cryo-theater-nav{color:#e6f6ff}
#theaterNav.cryo-theater-nav .ni{color:#b9e9ff;text-shadow:0 0 8px rgba(140,210,255,.75)}
@media(prefers-reduced-motion:reduce){.sidebar #cryo-theater-side::after{animation:none;opacity:0}}
