/* All nine first frames share one decoded sheet, so switching never waits for a GIF. */
.feature-link .exhibit-picture {
  display: block;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  height: 100%;
}
.feature-link .exhibit-picture::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 40%;
  width: 100%;
  height: 100%;
  width: max(100cqw, 66.66667cqh);
  height: max(100cqh, 150cqw);
  transform: translate(-50%, -40%);
  background-image: url("data:image/webp;base64,UklGRkgYAABXRUJQVlA4IDwYAACwUgCdASp4ALQAPr1QnkwnJSKiNv6aYOAXiWwAvcdViLSVOU+9bb9xh7p31fSV/ad3L5sfOS9Lf+D33fonPWM/yNrM8Rv2/gj5g/q/776FWLPr01F++PHjvf+XeoRij/uu2LAF1sGrRkB8IFQK8m7/f8ruoWQeFt2UY+9x9U5oA6lKjsOUsQmHytgQSg3Ri0pN3bkWi991/LN9rP9Sv6nOtuBEy4G7TIKPcoQF+LsgLZCFg3nWSRYgEPDsTnhgMSfr7wixp2DUsVaAduK0XIiTlknxSWiJfNidam7fQzjFmNlENdN9ZIjjeoTKseO3VBx9T0RZyBnN8VsPtq6YWoJrABBMLGngFdCNKEHg2/SAd5IcPvVFvDOn2mhtMFobY6t9gE1LpB5hEopI9NoKl5jKh2lNbjB+/LEIn3K/lK3k5duX8p+6n9aNr4XMoDqiDXdyMzSAxC9UgmlYMyP5qqZPHzIiATJCNMZLLrxwC/YZkYGCYJoJllRz/9+aEyJZ/3+ghpACCCBHQ/U1cVL3hLf0PFI2m+uYaD68rypFmhSpHRIEuKRhUhf1nBtXB7dZC9O4wn4uvJoXye1dniI5hyMcmDBNcYYcjnFxjpoSX1yd7SdWGrybLKS8dn7l3Wz9lANAZnN1e/eU9MaVT61arrqsB7Vjbp1pdit6Djh/3v8xv4O9Ez+oC6lBIPiQsQ2u5pm/RjEAiJ32nXK5yui2krkIobrRqnmgQa0p+yEh32KdAe2znCO5k97tgptonyw7H9MDFRz2hoxWKFouqSBbnj/7zMScppu4wb9KEflluz7n9Abnqpyt8CynDrVsIqxuxxf6qoSIZ93v90wA2JRK4a23fhCYU9HMsQSbcua+FW15K3MhgxH7tL23eCPphYPAAP7y7O4rhjg7OXvR8qZTqCqmw2ub7dor85BUUMXyh+G0oU9RQHAhCzlKW58rtOZqBBcMAwQD5ToOl/lyVgw1JJaoMtEAj/C8tlwcO5hqoOpj905CnDLXrVe948qQBEuXTpmocAsQc7Th4hapn0c2dqFsdSY7rm3eyKGS1ZkY3sV4Hun0P0iAAxU+DqfgfJkY1w0ipix91wWVwSnf42no7BvyxliNSFMOF+KkV0s2krJpSwTqCtzG4xVatEYHF3Pie1wUyDEO01o0jE80PlMf2ni6r1VI17yEcqawumJTFkhnBI3siEXbNfiqO/9e6zYLM25YF0vDEAwQLIYOjsFSF21waWFviQTnlsmiF+W02AyMqZUHKEQBb2NWtYfpAgQlhSP/8EdTtL48XfAvqRij7tCSbEpOwIRCATNSlgq7qdVUrIoRgX+H16glB6iq9TI5hD8tA+3xrH7WuQHsgHeGGZWBYD3Ht3Yl2HDkjSeT6Mo9AQy71SH9c7MHLURlCPF+kF3JieHdknKxzie/NYJ9p1gRGrem0T6apud5ZxONtAqQo57t+Rgu0FJkral76uJsamJ00FKvw86xlUyNvHUP0ROH1uRUxiUwLRNsj5Qitl4Vwqos8C4L0CLXOgaluR300k7r5mjj4R6tZWem5mKQkFCQzxCc6TmMdg6dzSjO6AT9tMDUNLMuhIxA3w7aSq4D/fWMRuoS4r/psHijqbpP8DevsBtEVbv/hIbOAQ7ICshIrzXzoebMIn11eObJzEkYzNmbf1A+FgHlZ7PobOOUV+X78RWkefCbCke+dhDorQxaiHs+OQ5K1fVjTAWF+vUjxn4LziBS0lvZZwBGXQ4KImnOMW21bL676i3m0nQmzCKviQNJWaayuIo92cBOid3JT1B3S+vYfT8OUq44RWScDm5qrW2qdZvaveob1KFJSYPhbCiLf/uWTeZxIP6wVyx8wnEa4URyOawh0UdgYDJyT0hKhN+BtM+Vp+k/t4RkWeHBzX5+bzPEePg1AoTr2lWHixL3GPo3ihiBHPjM9Zn7uo/9DT9fFT3KG1Vm4eabLsPjEYS4anuVTzwH4zFFohyR4w6onR9NNvLRvQp3OwAMIjd87VTzWlYnv4zETnlTIDikWSRL1E6XwNuRkNz/+7EWWEMcqirS0NeZKkkxv8+pmIW8v0DwOHyZqWkNYwBW4kPnhB5ZHQPu+irsAExDQ2Ix/ISFO39solOSU0gtN4PY07w4pj4xsiUeMDkQPidUXpesu9XzlfYbJiahrExgAA6cg+7FiQPQoxKnvDjlCf/YK4BTsJslA3eg9CKsiJK+s0gzXK0fdVczqg/kEN0QVE2NqhieusEoQc4mXF04zM5i+zAU9HEtI+ILRT39NIlUbk5TaHN9ZxAXo5O4t5HmrkrGdNXsS2X3/avqPiTgysAtosdjGMJMs74wgmKuEMvyOHS9Ikxw+ep2lcgNXrOy6e9nNebjOLiAHI9acfkPdosCsFGqC0ooQgqEK629Y0Sk5W3PMdBS2Qzukeq/7wOUfC7oxeXtfbYfVFPeCk3w7TjmhQaQv42yxmJVouE6mx4wrymJ/W/uk0DPydAMpJE88eTDMxDvrFhJ70bVZx+l29UsAkdutnDDhTkxQqNkCroUWyhM8l13deiptTWs3bTap3mqMeEWHSuJWsoSNZAj9qrJrUc9A8mNbaUjxcGUq4YrzU0xZgoVzN1RTm+GUoEW5z2cWJH60Bjj+J5Ekn52eJSa6n9ECwuj/wgvI4Jt5UDeJq93+wqmhua6PmiPYWyzwkgnRUBBLk6u8FwMt1MTKGLLzI/1I+quz3AEXESlmzc20pHJsS4SGvYeoujOx3fH6AWN+s7jEJR40LCRY0r0hom7mVaSnk4K3JEWjSsHdAxRksK6bpKoIRt+W0O+m48bPhTsd+VX05NxinfADxaZBSfbzCos+iWq0ZL678x/Sr//unmuAVMF69PL0qV+f+HRCUp3ASEncyRLc98vIOdM6PxrRf0O3+noDBgNWbioLcrIKbRHtryQxj1Nz3zVimSROPG5ctYT0DWeq5gRky/usN3KyosqIJrNu3H5BbcgAOTIjNuoz6cm2FLh3vUW6VMl0ojDCIP7StqOYIXc0DlyVpJay0o2nopuw/wJSU1WHLCDWSW8XTTD6xDVG76N6RIULSzvPLhOm/wD2Qv+OAQHkIDiHw1dGZ9PmWE86R+XnBR5ukwXjZzsufSYG3NEsKQlyaHuklLQFBTx4opEgV0PwWejdwW6cZcUn+L9a2ZVdNuZjpcTAvUngzY22/yLstWhq6hW8kjN54xomdXF9DgI2bIOIM1xmpDAHyJKI27n8t1/9ElFswTnNZyWB72LjLxnuPnh9IPXUcLwucyzLm/JkhQ+98i6yYwdiF22RK12uUx/JAkL38A6iUniyL2hdirR2p0q7TLVVLvFx6K/GkFbCOpRK4YTK0ZsqbxYjRhdb2/S9S0D6l6AQhwtGKKSYLsjuDAHSc2n5b5I3fIb0aKstE/69/Az/hkXKC/xulkTEX1DAkWl7xmwfimVlKChwp9plXxdiXbhoe2Kflbrio3qrgD06bdLr6r7gh35BUNAHQ1PDbqBvEFgrKhMZJB87z1YWBSQNKKVpLsi5P21/bvd8njkXTEgJHdUblBYWATZ11UKsfLDSFeZIOywYXKEWtyVCzi5DU7MI/X+oGCEA6Ak1Ce6J3V9+FKHyPcdUSlCecB587EMIH7ybx9uhZMtBOICk+SAwe6e+GBYTLCNZe1eMBQ6OOZXhwiQs9QerzAx5HEpV4W2BipE3fYQ3Eaycs4Fb1Fwj/HGx36iFuoumTmr6ygxTvGTnxuyqY4eZ2P+ogm/SOX+Zk1RhG0wr668BCru9W4IfsskZWRg+68hsOpMxRKe5lHpmSLr/Hi4ejZmwMf6h4CrKbsSa5GXE9m/avCwhIn4qN3BaN5H3X4BVkeEm4HnwrBZFxzoJDNVgTcZ8KaMlEY0IfjRiLEw/Sbj2zoj4Cr2mnISsZ21F5TzSYiZq/u2U7fhLU3KgFJrBQH5V6z5bkEsl65M8qlKsXk8j/hVwaeO8nmF0VY2P1n6GAbGIMnY6+GnPSQBuQY6iNYLJHrYznids5PWLM7Ho+bFadslpZ4ubMW50fx2yqonGgl+ehcKQh78mwODwzQ6YiCoTzWIl190Tiqf9qjwV3bZHp31OBsqbRktlDI5uHNApVF0hUZMXw/Pu8kxT8Dgfbyb1DvoZZK0SE7mxyY8crbzKhQEgbTiSemU01TVxT0D7oNXjUE8eFT/ae+lNbe1L+Xr9kK2Q//xO1y8SnNAvdjvnDi3rM8X33HoA8YYu4PdMev1p0l3RE2uBol5FKtUQecFFkP728M43gaz6vWR8U9fq5CeotbJLepFxblGRAofLoIhPfwAiRTRFwOe5x0truHuxNw9RHdm/afXfixAgMyERwCDCu5OG6j3GWLSTEpYf+ofIUM+wPF5+zMfEV1zOQHTr8XGZFjGqp4B+0pa4zpGSCKWsg2U9zIwC1jMRU1GewXFl7HT5hPUdR5yATkqX7x/uSydBVMeGCEsl9ACzrJlc+N4Rn3x7Ju0mC5y4JOzhgAUZvMIr73GLIz2N2YLKwjtr7GnLuqiQ1v7ApXbVsCbm+Ky96R0Ym4q/dIbVK4WNC/EUncqqJLEEbPI1ONvjSqKYbgDL2K0pDbYL/arWxNLeMPWSDXW8zO+wVILA1DoXWMeJS7J6HtQ1/0sSZC0AMe1L/DHFqX3tFga0ECoJlyQ1vJWl67zVgHfppQfkvp5ukz9vKNUzHLaBMf/QHwVfSaRDA/h1FEWw7T4iW1cFVR0meXPIRfesAQPPbTOnox60Hjjpmu8UTp6FweuMpGxULe7lxwZvIJ7O4OoToGtegvglii8aBmRnDrzIrcTBBpTjnrG6W9zuSoVE3OB1d1ndc5Z+dv7YZC3joLMZWI7gUr/CjEKXFOutdBDTxBa8pn955cdzH85RFjgIdd26LIzx0/pYas9qBf93bi7l2Ti4GH21R5vkDnIl/cSx6qhYjYvQz3BeCulncYI0QfeJIM8MWnN1IkoY0DXoXq/0XSt9jGe8wAG4T8Tv9Es4om6ungRLjoVt+Bj+mFW3FZLVLVsNxiamHbEktmdVcfx/YL7t9xNu5dM6rBK97xEXjaLEBZxZnJiW2Lkuv+7kXb+F1Jst4ULpiy/bF4oqZr+qCTwkr2CUwwq8i6Tw3EMWY7B3f2NgZsPR3YF3fXv3EaIvhkZOHsuzi2w0500L3l4KmIZ9rZhFZH38IDW7JVAfa+AM5HoevkgAYBuOCtE5hBYHpfQsgKk8Yido6YzQi5jQe8s7NfpUJGPsbPwpClRJhQmT1cuTVN5yz/cZZLYtspf79zzdfwJjsRx4PEGaoAH6W6w2kzrRLIJKy0Zb9H2LI+660BNI4ax7vue2Y+R9Qh5mw6onU/GdvK8QQ9ULvrQNt7DPXinQksD1j0SZwTYXYVHDLKj5QDc06VQvNEjAjPBI7pKdQr7nBtehAKqKZUU89EEMoAEco5wB4AMPVOJT5vNRpQUe6YFYcFKSKJlgsAgE6EGEyaDBEI641Q138/Jd8OxjnIAQ1Lpco+SWvgfrJfYNf8jcf0VucSMjubZa78GZAHEpqB8LsJ5Qc9SmbHEeh/SQ8KZs1DDMPcWJUWOTQF5mNW3r9ZHabwhoSDsNacQL1aJo0eLOGMSwXwaK/fbrNXRavATjfDawCneO0HNsk5fuRPWFXnqI5LavsbJIdK4vrKwKu41pLxABnu/1cMmeyAYr1Q65EHZdyzA+xzUNL4OdMs7uL6LKshJRK2HnpkYTKGg0oGMU/avbU3bZXOXmZgtOaHNiMi8PMhXelPghi2zxAwcye6yoS8542bskSq/L7nPFj4TS71My08fYBJw/QepQMKoiQ8n7h9qe3/s+yPpr7/xkEPkp42d3vzd7EQ8tdPRr2JTyxROwvlUmGg6+QJuhpfL1ci/B28trpCEymG2b+O58Mbs9AjzQmpVAkppvBVTHmdEs6Im4IxDCCh49o9FIV6vpvNiPsEzcHX9ef8nhfb9ZgFkeEXCq5Pj1nmnU1j7gL6xRdrlfOYCCFiwlHNtHX+ieDCDYx7bFsP1sdG8DtPuscFRhmRbGeMR8xARIhfKbfYa8XVnRlbNuRROcrDjUSu+9r1ltTWKL+HiTiXtCyTztQHgobWJh0cFGDWHSbbqKkiVwXeMC1mjlQUQLdjXvBpJS66y8/jjaWTpuMbsF6sysRLMwhaZU5c2JEMALWOw/w7isn8jyFNPBfDyXOA2NWXbZ7MiGVhmqpyJgAtcbOF5Wi4350YJ7sbq2PJ2Yw+XkBTrszW+MTjjQwryUR+IWRCkSD5YqCXc2IYHRAfPHWRVWQWzRe74RgfUBus3NjKRNutnYfG514inlzKcx8MmwrDHH6zREllqOBlx9IQ+5Vog0H2FduAZ9s8fvzzvlwc6S8GJGqCnkUapOfAMTdTNUmGOnF/Nz7tGD8QnvkXEVq7IjeHZL6vlPLSeFr1hcp/9y8hws127aWbz2am+XflSfdeQl5sO5IyfuVj2sHeKm/G6r6FVOqrRs4FJIP4L1QxLFpMuDI2z8L0GbyPcOOOx9SRY+R+cMbI6aH/YBq4HlKu69N7eyPOlMSU6yu5aqdNU8lACpwYg4mYsavnC/pjtkVmfWl60JtT2zRlgD5zLpM9xHhAcEthxSJ6hTVNStsmad3RQY9aGd9+2bNV54XO/Hg31guoMz4ACsMJ5ksK92bJ0KKFRYYXjAQWBGlHu4x+zmfI+sYx2Khx0IqQT7RTgUpuuwWer5wmlDaFgLO1NF9YUvffL9FxMeR9EYusfs5YfIyzezgm8pAJT93mslBcBrwapryQ/NY1ku4e1K3aa+ZuiHDCK8ZnZ4I37nWoS7y9y53c3KkS4oV+fukw5K4bMtdyOnJA03qI+w4mzOukLPHFz1T4Mm9D07bufopqV/0cdV3xa3E0xojUXwRWGhuBBNin2grKVyuuft6LBJiwyhvxL60fSv8kuHZuDOhRj9QGwq7K1O2wKyTCVqd0ukxpQ2v5EW6TjdQIcozMwPCw+UTnlZfsC0z00f/w0VlNfqWTkGPWqBJBK1dEophvlO6sMUMX0sL1GJGigDJ4LaY4sJb5cEBw7re42qQf2cbCR3auOmkf7XKEX4eFDEYrbLyaunx1F1HW0M0x6WprhemdW82YG0txpvsNIVUcAdqHE0s+RX9iPrR5m45DEsue3aj+Ek3Iizw8YvB1eRxzDEYHA50XJd77Ce6o7saPcCf66Ci8TYhApv2GF9YoOZxZhPNGDR8vk6TQw7RgaeYdCPO7WBQt0u+y3P62h4k+b+ycN8JMgKT6fa/JDJaieVXQa1p7QxaA/cLMBcvot1MGm/SebSGkqNFTZlI5GgtxpI9Ejmt4LEzlirZlSpDsycdPQkRbuKPbiu1KK6l2FUpuS8NRR6wAlyvtp1O+KZGKElnsu/pP+S8OhRrQkwS8RwAGj/u+edAEKtjzOyDq5s0s8jiubSLCkn24TAD03AB0gbKIfzgq0ZaNV9nBUip2HaooqsQYJg+EBuED6L9XHUzsDhGbNQEC+BZv61t58au75TFmliUWX6X+QSHMqU0ozsiX4S9bhFOMaX2DQ2OPiMKnNUWv3hDn0CXuBcnEMhQtHFNo6iQez7YPou2I/EFl+LCaiKVKGejQ/5Qf2w2SvnjqN+diP2mvMw9ouBlygX/3jbGAIIyRYxWxEk+ZXrKN/5SClLjem7J1Qz03qW6ghvHj9t79o+EfKHPbeXs49TUwRi3BLrL6N32flwPxxLo4MtxA0UvMG1KAOYC1gLMNNcEpzKx83XIZiAGsJMW8ertXMbMk1THxEyrs5ZmXFwwQeoBA/u37WEpewByxmtmJ7RCJ2/iymj8VQ++v2nlPs1S81L9kGJJckarz/ZRKzH4vBU4fQAdHI9FtV39mLZcRVIQgyV2vOjYxwRkz6W5JsZW8VP5vVefvlflS18vrT18vP2lmyAO2vqas2xL+SyI3giiRcBe+zO+h82XfTmQmTryLD0LB2E+M62U6Eu6Ni6YJwAACL+ziXr1f5/qe/+SyMvkgqmVM9EbMeu3N1ZfmeFEKxZHlH0T0BA7+axBKprWTA4nByVFUdKGO0KioAanTUIij2/5NSmKlQixTaXudrt/bz/znOwhA/4KHv1TCoI/IEfEAKaUtbO7g9Wws5n/yKn/iC4/76xIvUF5/pvpsuwkbEx/aRYPYtg83fbvRQMhSHODysR/GvSUC6xlRXAuusCOYLF9HuyrzaH+r78FlMOuqIT8I17ihUi3Zuy8kG0EtYTi+oDAEA44uDCihTZaV3CiesrvqDLol/JulAAAA=");
  background-size: 300% 300%;
  background-position: var(--exhibit-cell);
  background-repeat: no-repeat;
}
.exhibit-picture[data-exhibit="145"] { --exhibit-cell: 0% 0%; }
.exhibit-picture[data-exhibit="212"] { --exhibit-cell: 50% 0%; }
.exhibit-picture[data-exhibit="207"] { --exhibit-cell: 100% 0%; }
.exhibit-picture[data-exhibit="205"] { --exhibit-cell: 0% 50%; }
.exhibit-picture[data-exhibit="206"] { --exhibit-cell: 50% 50%; }
.exhibit-picture[data-exhibit="176"] { --exhibit-cell: 100% 50%; }
.exhibit-picture[data-exhibit="209"] { --exhibit-cell: 0% 100%; }
.exhibit-picture[data-exhibit="218"] { --exhibit-cell: 50% 100%; }
.exhibit-picture[data-exhibit="175"] { --exhibit-cell: 100% 100%; }


:root{color-scheme:dark;--bg:#0b0e15;--panel:#121722;--line:#252c3a;--muted:#8e98ad;--text:#f0f3fa;--accent:#c5ff6b;--purple:#9d85ef;--red:#ff9da9;--amber:#f6cc77;--max:1280px}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:4px}button:disabled{cursor:default}button svg, .searchbox svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}[hidden]{display:none!important}.skip{position:fixed;top:-80px;left:20px;z-index:100;background:var(--accent);color:#142000;padding:14px}.skip:focus{top:8px}.ambient{position:absolute;pointer-events:none;z-index:-1}.ambient-one{top:0;right:0;width:64%;height:700px;background:radial-gradient(ellipse at 70% 30%,#39295640,transparent 64%)}.header{max-width:var(--max);height:92px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:0 28px;border-bottom:1px solid #ffffff0c;gap:20px}.brand{display:flex;align-items:center;gap:12px;flex-shrink:0}.brand-mark{width:43px;height:43px;background:var(--accent);border-radius:12px;color:#15220c;font-size:29px;font-weight:900;font-style:italic;display:grid;place-items:center;position:relative;line-height:1}.brand-mark span{position:absolute;right:5px;top:4px;font-size:16px;color:#15220c}.brand-text{font-size:17px;font-weight:700;letter-spacing:.05em}.brand-text small{display:block;font-size:8px;color:var(--muted);letter-spacing:3.7px;margin-top:5px;font-weight:500}.header nav{display:flex;gap:27px;align-items:center}.nav-link{border:0;background:none;min-height:44px;padding:6px 0;font-size:13px;color:#a4aec1;display:flex;align-items:center;gap:7px;position:relative}.nav-link:hover,.nav-link.active{color:var(--text)}.nav-link.active:after{position:absolute;content:"";height:3px;width:18px;bottom:-5px;left:calc(50% - 9px);border-radius:5px;background:var(--accent)}.saved-nav b{font-size:11px;color:var(--accent);background:#c5ff6b15;padding:2px 7px;border-radius:5px;font-weight:600}.saved-nav svg{width:16px;height:17px}main{max-width:var(--max);margin:auto;padding:0 28px}.hero{position:relative;display:grid;grid-template-columns:1.15fr 1fr;min-height:460px;align-items:center;gap:28px;padding:46px 0 40px}.eyebrow{font-size:10px;font-weight:600;letter-spacing:2.4px;color:var(--muted);display:flex;align-items:center;gap:9px;margin:0 0 20px}.live-dot{width:6px;height:6px;background:var(--accent);border-radius:50%;box-shadow:0 0 13px #c5ff6b6b}.eyebrow-year{border-left:1px solid #424753;margin-left:8px;padding-left:14px;letter-spacing:1.2px;color:#b0b9c9}h1{font-size:clamp(34px,3.5vw,49px);line-height:1.35;letter-spacing:-1.5px;margin:0;font-weight:800}h1 span{color:var(--accent)}.hero-intro{font-size:13px;line-height:1.9;color:var(--muted);margin:18px 0 25px}.hero-actions{display:flex;gap:18px;align-items:center}.primary-button,.ghost-button{display:inline-flex;align-items:center;justify-content:center;min-height:45px;gap:18px;border:0;font-size:12px;font-weight:650;border-radius:7px;padding:12px 19px}.primary-button{color:#1d290e;background:var(--accent);box-shadow:0 3px 22px #c5ff6b0c;transition:transform .2s,background .2s}.primary-button:hover{transform:translateY(-2px);background:#d3ff91}.primary-button span{font-size:18px}.ghost-button{background:transparent;color:#c0c8d7;padding:10px 2px;gap:8px}.ghost-button:hover{color:var(--accent)}.ghost-button svg{width:17px}.hero-stats{display:flex;gap:32px;margin-top:32px}.hero-stats>div{padding-right:32px;border-right:1px solid var(--line)}.hero-stats>div:last-child{padding:0;border:0}.hero-stats strong{font-size:27px;font-weight:600;letter-spacing:-1px;display:block;line-height:1}.hero-stats strong span{font-size:10px;color:var(--muted);font-weight:400;margin-left:5px;letter-spacing:0}.hero-stats small{font-size:10px;color:var(--muted);display:block;margin-top:8px;letter-spacing:.7px}.hero-art{position:relative;height:365px;isolation:isolate;display:grid;place-items:center}.hero-art:before{position:absolute;content:"";width:360px;height:340px;background:radial-gradient(ellipse,#6b4da833,transparent 70%);z-index:-1}.orbit{position:absolute;width:420px;height:280px;border:1px solid #a993e51c;border-radius:50%;transform:rotate(-32deg);z-index:-1}.orbit-two{transform:rotate(40deg);width:430px;height:250px;border-style:dashed;border-color:#c5ff6b14}.poster-stack{width:100%;height:300px;position:relative}.hero-poster{position:absolute;padding:0;overflow:hidden;border:1px solid #ffffff30;background:#181d2b;border-radius:12px;box-shadow:0 18px 40px #0008;transition:filter .3s,transform .3s}.hero-poster img{display:block;width:100%;height:100%;object-fit:cover}.hero-poster>span{position:absolute;bottom:0;left:0;width:100%;padding:48px 13px 15px;background:linear-gradient(transparent,#060913f0);font-size:12px;text-align:left;font-weight:600}.hero-poster i{display:block;color:var(--accent);font-size:9px;margin-bottom:7px;font-style:normal}.poster-left{width:168px;height:244px;left:8%;top:31px;transform:rotate(-13deg);filter:brightness(.72)}.poster-right{width:168px;height:244px;right:5%;top:28px;transform:rotate(14deg);filter:brightness(.8)}.poster-center{width:188px;height:274px;left:calc(50% - 94px);top:0;transform:rotate(-2deg);z-index:2;animation:float 7s ease-in-out infinite}.hero-poster:hover{filter:brightness(1);z-index:3}.poster-left:hover{transform:rotate(-8deg) translateY(-8px)}.poster-right:hover{transform:rotate(8deg) translateY(-8px)}.floating-note{position:absolute;bottom:7px;left:19%;border:1px solid #bda5ff30;border-radius:7px;padding:11px 17px;background:#1a1729d9;backdrop-filter:blur(12px);font-size:10px;letter-spacing:1px;z-index:4;transform:rotate(-4deg);box-shadow:0 8px 30px #0003}.floating-note span{color:var(--accent);margin-right:9px}.vertical-caption{position:absolute;right:-13px;top:38px;writing-mode:vertical-rl;font-size:8px;letter-spacing:2px;color:#758197}.art-cross{position:absolute;color:var(--accent);font-size:22px;font-weight:200}.cross-one{top:0;left:15%}.cross-two{bottom:32px;right:12%;color:#a78ce5;font-size:16px}.catalog{padding:26px 0 65px;border-top:1px solid var(--line)}.catalog-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:23px}.catalog-heading .eyebrow{margin-bottom:9px;font-size:8px;letter-spacing:2.4px;color:#737e94}h2{font-size:23px;letter-spacing:-.5px;margin:0;font-weight:650}.catalog-heading h2 span{font-size:11px;vertical-align:middle;margin-left:12px;letter-spacing:0;color:var(--muted);background:#1c2331;border:1px solid #283141;border-radius:5px;padding:4px 7px;font-weight:500}.catalog-note{font-size:11px;color:#798397;margin:0 0 3px}.filter-panel{background:#111620;border:1px solid #222a39;border-radius:12px;padding:16px 18px 13px}.search-row{display:flex;gap:12px}.searchbox{display:flex;gap:10px;align-items:center;flex:1;min-width:0;background:#0b1019;border:1px solid #2a3446;border-radius:7px;padding:0 13px;height:45px}.searchbox:focus-within{border-color:#b0dc67;box-shadow:0 0 0 2px #c5ff6b0d}.searchbox svg{width:17px;color:#7f8ba4;flex-shrink:0}.searchbox input{background:transparent;border:0;outline:0!important;color:var(--text);width:100%;height:100%;font-size:12px;min-width:0}.searchbox input::placeholder{color:#737f95}.searchbox kbd{font-family:inherit;color:#66748d;border:1px solid #293345;border-radius:4px;min-width:20px;text-align:center;font-size:11px}.select-box{height:45px;display:flex;align-items:center;gap:9px;border:1px solid #2a3446;border-radius:7px;background:#0b1019;padding:0 12px}.select-box span{color:#76839a;font-size:10px;flex-shrink:0}.select-box select{color:#c8d0df;background:transparent;border:0;outline:0;max-width:155px;min-height:42px;font-size:11px;cursor:pointer}.select-box option{background:#151c29;color:var(--text)}.filter-row{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:13px}.tabs{display:flex;gap:5px;flex-wrap:wrap}.tabs button{background:none;border:0;font-size:11px;color:#939fb6;border-radius:6px;padding:9px 12px;min-height:38px;white-space:nowrap}.tabs button span{margin-left:5px;font-size:9px;opacity:.65}.tabs button.active{background:var(--accent);color:#1e2c0d;font-weight:650}.tabs button:not(.active):hover{color:#fff;background:#202839}.reset-button{padding:8px 0;font-size:10px;color:#b8c2d5;background:none;border:0;white-space:nowrap}.reset-button:hover{color:var(--accent)}.genre-row{display:flex;gap:12px;align-items:center;margin-top:11px;border-top:1px solid #232a38;padding-top:9px}.genre-label{font-size:10px;color:#62718b;white-space:nowrap}.genre-row>div{display:flex;gap:5px;overflow-x:auto;scrollbar-width:none;align-items:center}.genre-row>div::-webkit-scrollbar{display:none}.genre{font-size:10px;border:0;border-radius:5px;padding:7px 10px;min-height:32px;white-space:nowrap;color:#96a1b8;background:none}.genre:hover{color:#fff}.genre.active{background:#c5ff6b10;color:var(--accent)}.result-line{display:flex;justify-content:space-between;color:#758198;font-size:10px;align-items:center;margin:19px 0 15px}.result-line p{margin:0}.result-line b{color:#c0cadb;font-weight:600}.result-line>span{font-size:9px;color:#5f6d83}.anime-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:28px 18px}.anime-card{min-width:0;position:relative;animation:reveal .45s both;animation-delay:calc(var(--i,0)*24ms)}.poster{position:relative;aspect-ratio:2/3;border-radius:9px;overflow:hidden;background:#171f2c;border:1px solid #ffffff0b;isolation:isolate}.poster-open{border:0;background:transparent;padding:0;width:100%;height:100%;display:block}.poster-open img{width:100%;height:100%;display:block;object-fit:contain;transition:transform .45s,filter .3s}.poster:after{position:absolute;content:"";inset:65% 0 0;background:linear-gradient(transparent,#070a12a8);pointer-events:none;z-index:1}.poster-open:hover img{transform:scale(1.045);filter:brightness(1.08)}.card-year{position:absolute;bottom:10px;left:11px;color:#e1e8f5;font-size:10px;font-weight:550;z-index:2;pointer-events:none;letter-spacing:1px}.save-button{position:absolute;right:8px;top:8px;width:32px;height:34px;display:grid;place-items:center;background:#080d1bb3;color:#e4eaf4;backdrop-filter:blur(5px);border:1px solid #ffffff20;border-radius:7px;z-index:3;transition:background .2s,color .2s}.save-button svg{width:16px;height:18px}.save-button:hover,.save-button.saved{color:var(--accent);background:#151e16e6;border-color:#c5ff6b69}.save-button.saved svg{fill:currentColor}.rating-badge{position:absolute;left:8px;top:10px;font-size:9px;font-weight:650;letter-spacing:.5px;padding:5px 7px;border-radius:4px;z-index:2;background:#eeb8bd;color:#3d1822;box-shadow:0 2px 12px #0003;pointer-events:none}.rating-badge.caution{background:#ecd18a;color:#493514}.card-title{padding:0;background:none;border:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-align:left;font-size:12px;line-height:1.6;max-width:100%;min-height:38px;margin:11px 0 5px;font-weight:600;color:#e0e6f0;word-break:break-word}.card-title:hover{color:var(--accent)}.card-tags{display:flex;gap:5px;flex-wrap:nowrap;overflow:hidden;min-height:19px;color:#7b88a0;font-size:9px}.card-tags span{white-space:nowrap}.card-tags span+span:before{content:"·";margin-right:5px;opacity:.6}.card-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #ffffff0b;padding-top:8px;margin-top:8px;gap:5px}.portal-link{font-size:10px;min-height:31px;display:inline-flex;align-items:center;gap:8px;color:#b6c69f;font-weight:500;flex-shrink:0}.portal-link:hover{color:var(--accent)}.portal-link.netflix{color:#bfa7f2}.portal-link.disabled{color:#616e84;cursor:default}.card-index{font-size:8px;color:#44506a;font-variant-numeric:tabular-nums;letter-spacing:1px}.load-row{text-align:center;margin-top:38px}.load-more{border:1px solid #364330;border-radius:7px;background:#c5ff6b09;color:#c9d7bc;padding:12px 28px;font-size:12px;min-height:46px;transition:background .2s}.load-more span{margin-left:25px}.load-more:hover{background:#c5ff6b18;border-color:#6c844f}.load-row p{font-size:9px;letter-spacing:1px;color:#56637b;margin-top:14px}.empty-state{padding:65px 20px;text-align:center}.empty-icon{display:block;font-size:45px;color:var(--accent);margin-bottom:15px}.empty-state h3{font-size:20px}.empty-state p{color:var(--muted);font-size:12px;line-height:1.8;margin:0 0 22px}footer{max-width:var(--max);padding:32px 28px 40px;margin:auto;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:30px}.footer-brand .brand-mark{width:32px;height:32px;font-size:24px;border-radius:8px}.footer-brand .brand-mark span{font-size:11px}.footer-brand .brand-text{font-size:13px}.footer-brand small{font-size:7px;letter-spacing:1.8px;color:#69758d}.footer-notes{text-align:right;font-size:9px;color:#69768e;line-height:1.8}.footer-notes p{margin:2px 0}.footer-notes button{background:none;border:0;color:#a8b59b;font-size:10px;padding:6px 0}.back-top{position:fixed;bottom:22px;right:22px;width:42px;height:42px;background:#202a1a;border:1px solid #c5ff6b4f;border-radius:10px;color:var(--accent);font-size:21px;z-index:5;box-shadow:0 5px 20px #0006}dialog{border:1px solid #394155;border-radius:17px;background:#111722;color:var(--text);max-width:min(780px,calc(100vw - 36px));width:780px;padding:0;box-shadow:0 30px 130px #0009;max-height:88dvh;overflow:auto}dialog::backdrop{background:#060912c9;backdrop-filter:blur(12px)}.dialog-close{position:absolute;right:15px;top:13px;border:1px solid #ffffff20;border-radius:50%;background:#0a0e19b3;color:#e3e8f3;width:36px;height:36px;font-size:26px;z-index:3;line-height:1}.dialog-close:hover{color:var(--accent)}.detail-layout{display:grid;grid-template-columns:270px 1fr;padding:32px;gap:28px}.detail-cover{width:100%;max-height:385px;aspect-ratio:2/3;object-fit:contain;border-radius:10px;background:#0a0d15;border:1px solid #ffffff0b;align-self:start}.detail-copy{padding-top:12px;min-width:0}.detail-copy .eyebrow{font-size:9px;color:var(--accent);margin-bottom:16px;letter-spacing:2px}.detail-copy h2{font-size:25px;line-height:1.6;word-break:break-word;padding-right:12px}.detail-genres{color:#97a4bc;font-size:12px;line-height:1.8;margin:15px 0 17px}.detail-rating{display:inline-flex;font-size:11px;border-radius:5px;background:#ff9da914;color:var(--red);padding:7px 10px}.detail-rating.caution{color:var(--amber);background:#f6cc7714}.detail-meta{padding:16px 0 0;border-top:1px solid #293141;margin-top:24px;font-size:11px;line-height:1.8;color:#8491aa}.detail-meta b{font-weight:500;color:#c0cadb}.detail-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.detail-actions .primary-button{font-size:11px;min-height:44px}.detail-save{border:1px solid #48533d;background:transparent;border-radius:7px;padding:10px 14px;color:#c0c9b7;font-size:11px;min-height:44px}.detail-save.saved{color:var(--accent);background:#c5ff6b09}.detail-disabled{border:1px solid #30394a;border-radius:7px;padding:12px 15px;color:#808ba0;font-size:11px}.detail-hint{font-size:9px;color:#64738c;line-height:1.8;margin-top:12px}.about-content{padding:38px;line-height:1.9}.about-content h2{font-size:23px;padding-right:25px}.about-content p{font-size:13px;color:#9eabc0}.about-content .eyebrow{font-size:9px;color:var(--accent);margin-top:0}.strong-text{color:var(--red)}.caution-text{color:var(--amber)}.toast{position:fixed;left:50%;bottom:30px;transform:translate(-50%,20px);opacity:0;pointer-events:none;transition:.2s;z-index:50;background:#e2edce;color:#253316;border:1px solid #c5ff6b;border-radius:8px;padding:12px 21px;font-size:12px;box-shadow:0 10px 40px #0006;white-space:nowrap}.toast.visible{transform:translate(-50%,0);opacity:1}.noscript{padding:50px;text-align:center;color:var(--accent)}
@keyframes float{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-9px) rotate(0deg)}}@keyframes reveal{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1500px){:root{--max:1380px}.hero{min-height:490px}.hero-art{height:400px}.poster-left,.poster-right{width:185px;height:267px}.poster-center{width:205px;height:296px;left:calc(50% - 102px)}.floating-note{bottom:8px}}
@media(max-width:1100px){.anime-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:25px 16px}.hero{gap:10px;grid-template-columns:1.1fr 1fr}h1{font-size:37px}.hero-art{height:330px}.poster-left,.poster-right{width:135px;height:212px;top:40px}.poster-center{width:165px;height:245px;left:calc(50% - 82px);top:14px}.orbit{width:330px}.orbit-two{width:350px}.floating-note{bottom:0}.vertical-caption{right:0}.brand-text{font-size:15px}.header nav{gap:20px}}
@media(max-width:850px){.anime-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:25px 15px}.hero{grid-template-columns:1.1fr .9fr;min-height:410px}h1{font-size:30px;letter-spacing:-.8px}.hero-intro{font-size:11px}.eyebrow{font-size:8px;letter-spacing:1.6px}.eyebrow-year{margin-left:0;padding-left:8px;font-size:8px}.hero-art{height:285px}.poster-left,.poster-right{width:110px;height:175px;top:48px}.poster-left{left:0}.poster-right{right:0}.poster-center{width:140px;height:208px;left:calc(50% - 70px);top:26px}.hero-poster span{font-size:9px;padding:45px 9px 11px}.hero-poster i{font-size:7px}.orbit{width:270px;height:210px}.orbit-two{width:280px;height:210px}.vertical-caption{display:none}.floating-note{font-size:8px;left:8%;padding:10px}.hero-actions{gap:13px}.hero-actions .primary-button{padding:11px 14px;font-size:11px;gap:10px}.ghost-button{font-size:10px}.hero-stats{gap:23px;margin-top:28px}.hero-stats>div{padding-right:23px}.hero-stats strong{font-size:24px}.hero-stats small{font-size:9px}.header nav{gap:15px}.nav-link{font-size:11px}.brand-text{font-size:14px}.brand-mark{width:36px;height:36px;font-size:26px}.brand-text small{font-size:7px;letter-spacing:3px}.select-box{padding:0 9px;gap:5px}.select-box span{display:none}.catalog-note{font-size:9px}.detail-layout{grid-template-columns:210px 1fr;gap:23px;padding:30px}.detail-copy h2{font-size:22px}footer{gap:20px}.footer-notes{font-size:8px}}
@media(max-width:600px){html{scroll-padding-top:20px}.header{height:76px;padding:0 18px;gap:10px}.brand{gap:9px}.brand-text{font-size:13px;letter-spacing:.02em}.brand-text small{font-size:6px;letter-spacing:2.9px;margin-top:4px}.brand-mark{width:33px;height:33px;font-size:24px;border-radius:9px}.brand-mark span{font-size:12px}.header nav{gap:0}.header .nav-link:not(.saved-nav){display:none}.saved-nav{font-size:10px;gap:5px}.saved-nav span{display:none}.saved-nav b{padding:3px 6px;font-size:10px}.saved-nav svg{width:18px;height:20px}.nav-link.active:after{display:none}main{padding:0 18px}.hero{display:block;padding:31px 0 25px;min-height:0;overflow:hidden}.hero-copy{position:relative;z-index:2}.hero .eyebrow{margin-bottom:17px;font-size:8px;letter-spacing:1.7px}h1{font-size:clamp(29px,7.7vw,43px);line-height:1.4;letter-spacing:-1px}.hero-intro{margin:15px 0 20px;font-size:11px;line-height:1.8}.hero-actions{gap:20px}.hero-actions .primary-button{font-size:11px;min-height:44px;padding:10px 16px;gap:16px}.ghost-button{font-size:11px;min-height:44px}.hero-stats{margin-top:24px;gap:27px}.hero-stats>div{padding-right:27px}.hero-stats strong{font-size:25px}.hero-stats small{font-size:9px;margin-top:7px}.hero-art{height:255px;max-width:400px;margin:15px auto -5px}.poster-stack{height:240px;max-width:330px}.poster-left,.poster-right{width:118px;height:177px;top:39px}.poster-left{left:5%}.poster-right{right:4%}.poster-center{width:143px;height:209px;left:calc(50% - 71px);top:15px}.hero-poster span{padding:38px 10px 12px}.orbit{width:320px;height:210px}.orbit-two{width:315px;height:200px}.floating-note{left:20%;bottom:-1px;font-size:9px;padding:10px 15px}.cross-one{top:19px;left:8%;font-size:17px}.cross-two{right:5%;bottom:24px}.ambient-one{width:100%;height:750px}.catalog{padding-top:22px}.catalog-heading{margin-bottom:18px}.catalog-heading h2{font-size:19px;letter-spacing:-.5px}.catalog-heading .eyebrow{font-size:7px;letter-spacing:2px;margin-bottom:9px}.catalog-heading h2 span{font-size:9px;margin-left:7px;padding:3px 5px}.catalog-note{display:none}.filter-panel{padding:12px;border-radius:10px}.search-row{display:grid;grid-template-columns:1fr 1fr;gap:9px}.searchbox{grid-column:1/-1;height:45px;padding:0 11px}.searchbox input{font-size:13px}.searchbox kbd{display:none}.select-box{height:40px;min-width:0;justify-content:space-between;padding:0 10px}.select-box span{display:block;font-size:10px}.select-box select{width:100%;max-width:none;min-height:39px;font-size:11px;text-align:right}.filter-row{margin-top:10px;gap:0;flex-wrap:wrap}.tabs{gap:3px;justify-content:space-between;width:100%}.tabs button{font-size:10px;padding:8px 7px;min-height:38px}.tabs button span{font-size:8px;margin-left:3px}.reset-button{width:100%;text-align:right;padding:10px 3px 0;font-size:10px}.genre-row{gap:5px;margin-top:9px;padding-top:7px}.genre-label{font-size:9px}.genre{padding:9px 8px;min-height:35px;font-size:10px}.result-line{font-size:10px;margin:17px 0 12px}.result-line>span{font-size:8px}.anime-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:23px 13px}.poster{border-radius:8px}.save-button{width:35px;height:36px;top:7px;right:7px}.rating-badge{font-size:9px;left:7px;top:10px;padding:5px 6px}.card-year{font-size:10px;bottom:9px;left:10px}.card-title{font-size:12px;min-height:39px;margin-top:9px}.card-tags{font-size:9px;min-height:18px}.card-footer{margin-top:6px;padding-top:5px}.portal-link{font-size:10px;min-height:36px}.card-index{font-size:8px}.load-row{margin-top:28px}.load-more{font-size:11px}.catalog{padding-bottom:38px}footer{padding:26px 18px 34px;flex-direction:column;gap:20px}.footer-notes{text-align:left;font-size:9px;line-height:1.9}.footer-brand .brand-text{font-size:13px}.footer-brand small{font-size:7px}.back-top{width:39px;height:39px;right:14px;bottom:18px;font-size:20px}dialog{max-width:calc(100vw - 24px);border-radius:14px;max-height:90dvh}.dialog-close{right:12px;top:11px;width:35px;height:35px}.detail-layout{display:block;padding:23px}.detail-cover{display:block;max-width:158px;max-height:230px;margin:auto}.detail-copy{padding-top:23px}.detail-copy .eyebrow{font-size:9px;margin-bottom:10px}.detail-copy h2{font-size:21px;padding-right:0;line-height:1.5}.detail-genres{font-size:11px;margin:12px 0}.detail-meta{margin-top:18px;padding-top:13px;font-size:10px}.detail-actions{gap:8px;margin-top:19px}.detail-actions .primary-button,.detail-save{font-size:11px;flex:1;white-space:nowrap;min-height:46px;padding:12px 10px}.detail-hint{font-size:9px}.detail-rating{font-size:10px}.about-content{padding:30px 23px}.about-content h2{font-size:21px;line-height:1.5}.about-content p{font-size:12px}.toast{max-width:calc(100vw - 30px);font-size:11px;white-space:normal;text-align:center;width:max-content;bottom:24px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}
@media(max-width:600px){.searchbox input{font-size:16px}.select-box{height:44px}.select-box select{font-size:16px;min-width:0;flex:1;min-height:42px}.select-box span{font-size:9px}.save-button{width:40px;height:40px}.portal-link{min-height:40px}}

.card-title{font-size:13px}.card-tags{font-size:10px}.portal-link{font-size:11px}@media(max-width:600px){.select-box span{display:none}.card-title{font-size:14px;min-height:42px;line-height:1.5}.portal-link{font-size:12px;min-height:42px}.card-tags{font-size:10px}}

/* Cinema archive — dark editorial edition. */
:root{--bg:#0b1114;--panel:#111b20;--line:#344047;--muted:#a8b5ba;--text:#f0eee9;--accent:#81dce4;--max:1440px;--serif:"Noto Serif SC","Source Han Serif SC","Songti SC","STSong","SimSun",serif;color-scheme:dark}
body{font-size:16px;background:radial-gradient(ellipse at 60% 10%,#18313955,transparent 45%),var(--bg);transition:background .3s}
button,input{font-family:inherit}button{min-height:44px}h1,h2,.brand-text,.card-title,.hero-poster>span{font-family:var(--serif)}
.ambient{display:none}.header{height:78px;border-bottom:1px solid #798a8e50;padding:0 46px;gap:24px;max-width:var(--max)}
.brand{gap:23px;min-width:0}.header .brand{border-left:3px solid var(--accent);padding-left:23px}.brand-text{font-size:27px;font-weight:700;letter-spacing:2px;white-space:nowrap}.brand>small{color:#b8c1c4;font:12px Georgia,serif;letter-spacing:2px;white-space:nowrap}
.header nav{margin-left:auto;gap:44px}.nav-link{font-family:var(--serif);font-size:17px;color:#d0d5d5;min-height:50px;white-space:nowrap}.nav-link.active:after{width:40px;left:calc(50% - 20px);bottom:0;height:2px;border-radius:0}.saved-nav b{display:none}.cinema-toggle{border:0;background:none;color:#f3f2ed;font-size:31px;width:44px;padding:0;flex-shrink:0;line-height:1}.cinema-toggle[aria-pressed=true]{color:var(--accent)}
main{padding:0 46px}.hero{min-height:480px;grid-template-columns:.92fr 1.3fr;gap:10px;padding:40px 0 20px;isolation:isolate;overflow:visible}
.hero-backdrop{position:absolute;inset:0 -46px;z-index:-2;overflow:hidden;pointer-events:none;background:linear-gradient(90deg,#0b1114 1%,#0b1114ed 28%,#0b111470 68%,#0b1114a0),linear-gradient(0deg,#0b1114,transparent 50%),url('assets/212.jpg?rev=ada6db7a05697a44') 85% 36%/74% auto no-repeat;opacity:.43;filter:saturate(.65);mask-image:linear-gradient(0deg,transparent,#000 16%,#000 90%,transparent)}
.hero-copy{position:relative;z-index:3;padding-bottom:28px}.hero h1{font-size:clamp(38px,4.2vw,61px);line-height:1.33;letter-spacing:0;font-weight:800;text-shadow:0 3px 30px #0005;white-space:nowrap}.hero-intro{color:#d0d5d5;font-size:19px;line-height:1.8;margin:18px 0 30px}
.hero-actions{gap:17px}.primary-button,.ghost-button{font-size:16px;min-height:50px;padding:12px 25px;border-radius:7px;gap:15px;letter-spacing:1px;font-weight:600}.primary-button{background:linear-gradient(105deg,#8de2e7,#64cedc);color:#08262c;box-shadow:none}.primary-button:hover{background:#a2eff2;box-shadow:0 5px 28px #6ddae41a}.ghost-button{border:1px solid #c1cccf;background:#0b11145c;color:var(--text);padding:12px 30px}.ghost-button:hover{border-color:var(--accent);background:#81dce410}
.hero-stats{margin-top:36px;gap:24px;align-items:center}.hero-stats>div{display:flex;align-items:baseline;gap:8px;padding-right:24px;border-color:#80909370;white-space:nowrap}.hero-stats strong{font:31px Georgia,serif;color:var(--accent);letter-spacing:0}.hero-stats small{font-size:12px;margin:0;letter-spacing:0;color:#c1cbcd}
.hero-art{height:420px;width:100%;margin:0;max-width:none;isolation:isolate}.hero-art:before,.hero-art:after{display:none}.poster-stack{height:100%;max-width:none;perspective:1000px}.hero-poster{border-radius:3px;border:1px solid #a6bbc170;box-shadow:0 16px 40px #0007;animation:none;transform-origin:50% 100%}.hero-poster img{object-fit:cover;object-position:center 30%;filter:saturate(.83)}.hero-poster>span{padding:70px 10px 22px;text-align:center;font-size:24px;font-weight:700;line-height:1.35;background:linear-gradient(transparent,#080f14e8);text-shadow:0 2px 6px #000}.hero-poster>span:after{content:"";display:block;width:60%;height:1px;margin:13px auto 0;background:#cdd9d36e}.hero-poster i{display:none}.poster-left{left:1%;top:55px;width:36%;height:345px;transform:rotate(-7deg);filter:brightness(.9)}.poster-right{right:0;top:55px;width:35%;height:345px;transform:rotate(7deg);filter:brightness(.86)}.poster-center{left:29%;top:0;width:40%;height:410px;transform:rotate(-3deg);z-index:2}.poster-center:hover{transform:rotate(-1deg) translateY(-5px)}.poster-left:hover{transform:rotate(-5deg) translateY(-5px)}.poster-right:hover{transform:rotate(5deg) translateY(-5px)}
.year-strip{display:flex;align-items:center;gap:30px;min-height:70px;border-top:1px solid #65767b66;border-bottom:1px solid #65767b66;margin:0 -46px;padding:10px 46px;position:relative;background:#11191d45}.year-strip h2{margin:0;padding-left:20px;border-left:2px solid var(--accent);font-size:21px;white-space:nowrap}.year-shortcuts{display:flex;align-items:center;gap:25px}.year-strip button{border:1px solid transparent;background:none;font-size:15px;padding:7px 17px;color:#d5dcdc;white-space:nowrap;min-height:40px}.year-shortcuts .active{border-color:var(--accent);color:var(--accent);border-radius:30px;background:#73d6e00b}.year-strip button:hover{color:var(--accent)}.more-years span{margin-left:10px}
.catalog{padding:32px 0 52px;border-top:0;position:relative;scroll-margin-top:24px;display:grid;grid-template-columns:1fr}.catalog-heading{margin:0 0 22px;display:block;pointer-events:none;min-height:48px}.catalog-heading .eyebrow,.catalog-note,#heading-count{display:none}.catalog-heading h2{font-size:34px;letter-spacing:1px;line-height:1.4;margin:0;position:relative;width:max-content}.catalog-heading h2:after{content:"";height:3px;width:36px;display:block;background:var(--accent);margin-top:10px}.filter-panel{padding:0;border:0;border-radius:0;background:none;box-shadow:none;display:grid;grid-template-columns:auto 1fr;column-gap:26px}.search-row{display:flex;gap:12px;grid-column:1/-1;width:69%;margin:-64px 0 24px auto;align-items:center}.searchbox{height:46px;min-height:46px;background:linear-gradient(115deg,#ffffff09,#ffffff03);border:1px solid #718087;border-radius:7px;padding:0 15px;min-width:0;flex:1;gap:10px}.searchbox input{font-size:16px;color:var(--text);min-width:0;width:100%}.searchbox input::placeholder{color:#b0b9bc}.searchbox svg{width:19px;color:#d9e1e3;flex-shrink:0}.searchbox kbd{display:none}
.picker-trigger{display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #718087;background:#0c1317a0;border-radius:7px;min-height:46px;padding:0 14px;font-size:14px;color:#e1e5e5;white-space:nowrap}.picker-trigger svg{width:15px;fill:none;stroke:currentColor;stroke-width:1.7}.picker-trigger .control-label{display:none}.picker-trigger:hover,.picker-trigger[aria-expanded=true]{border-color:var(--accent);background:#81dce410}.picker-trigger.has-value{color:var(--accent)}
.filter-row{margin:0;gap:8px;flex-wrap:wrap;grid-column:1;align-items:center}.tabs{gap:9px;display:flex;flex-wrap:wrap}.tabs button{border:1px solid #66757b;border-radius:24px;color:#d3dcde;padding:6px 17px;font-size:14px;min-height:38px;white-space:nowrap;background:#e2f5ff04}.tabs button span{font-size:12px;margin-left:6px}.tabs button.active{background:var(--accent);color:#0c272b;box-shadow:none;border-color:var(--accent)}.tabs button[data-mode=caution]{padding-left:13px;padding-right:13px}.tabs button:hover{border-color:var(--accent)}.reset-button{font-size:13px;color:var(--accent);padding:0;min-height:34px}
.genre-row{grid-column:2;margin:0;padding:0 0 0 22px;border-top:0;border-left:1px solid #53646a;min-width:0;gap:0;align-self:start}.genre-label{display:none}.genre-row>div{display:flex;gap:9px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;max-width:100%;padding:0 0 4px}.genre-row>div::-webkit-scrollbar{display:none}.genre{border:1px solid #53646a;border-radius:22px;font-size:14px;color:#c8d2d4;min-height:36px;padding:5px 18px;flex-shrink:0;background:#e2f5ff03}.genre:hover,.genre.active{border-color:#81dce480;color:var(--accent);background:#81dce40b}.genre[data-genre=""]{display:none}
.active-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:15px 0 0;color:var(--muted);font-size:13px}.active-filters button{background:#81dce410;border:1px solid #81dce44a;border-radius:20px;color:var(--accent);padding:5px 12px;font-size:13px;min-height:32px;max-width:100%;overflow-wrap:anywhere}.active-filters button span{margin-left:5px}
.result-line{position:static;background:none;border:0;padding:0;margin:13px 0 15px;min-height:20px;font-size:12px;color:#97a7ae;display:flex;justify-content:space-between;align-items:center}.result-line p{margin:0}.result-line b{color:#c1d9dd;font-weight:400}#refine-button{border:0;background:none;font-size:12px;color:#aababe;min-height:28px;padding:0}
.anime-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:28px 22px}.anime-card{padding:0;border:0;border-radius:0;background:none;animation:card-in .4s both;transition:transform .25s}.poster{aspect-ratio:4/4.4;border:1px solid #60767b4a;border-radius:9px;overflow:hidden;background:#18272d;position:relative}.poster:after{display:none}.poster-open{padding:0;border:0;display:block;width:100%;height:100%;background:none}.poster-open img{width:100%;height:100%;object-fit:cover;object-position:center 25%;transition:transform .5s,filter .4s}.poster-open:hover img{transform:scale(1.04)}.save-button{position:absolute;top:8px;right:8px;border:1px solid #ffffff55;background:#0a1725c9;border-radius:5px;width:36px;height:38px;min-height:38px;display:grid;place-items:center;color:#e7eff1;padding:6px;backdrop-filter:blur(8px)}.save-button svg{width:19px;height:22px}.save-button.saved{color:var(--accent);border-color:var(--accent);background:#15363de8}.save-button.saved svg{fill:#81dce444}.rating-badge{position:absolute;top:9px;left:8px;font-size:11px;font-weight:650;padding:6px 8px;background:#85dbe6;color:#08252c;border-radius:3px}.rating-badge.caution{background:#d7b89c;color:#302017}.card-year{display:none}.card-title{font-size:21px;font-weight:700;line-height:1.45;min-height:0;height:auto;margin:10px 0 5px;display:block;text-align:left;border:0;padding:0;background:none;width:100%;color:var(--text);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.card-tags{display:flex;align-items:center;gap:8px;font-size:14px;line-height:1.6;color:#b8c4c8;min-height:22px;flex-wrap:wrap}.card-tags span+span:before{content:"·";margin-right:8px;color:#6b7d84}.card-tags span:not(:last-child):after{content:none}.card-footer{display:none}
.load-row{text-align:center;margin-top:40px}.load-more{border:1px solid #647c82;background:#81dce409;color:#d7e9ed;font-size:15px;min-height:48px;padding:10px 32px;border-radius:7px}.load-row p{font-size:13px;color:var(--muted)}.empty-state{padding:50px 12px;text-align:center}.empty-state h3{font-family:var(--serif);font-size:24px}.empty-state p{font-size:15px;color:var(--muted)}
footer{border-top:1px solid #53646a55;max-width:var(--max);padding:30px 46px 38px;align-items:center;gap:25px}.footer-brand .brand-mark{display:none}.footer-brand .brand-text{font-size:20px}.brand-text small{font-family:Georgia,serif;font-size:10px;color:#9bafb5;letter-spacing:1px;margin-top:9px}.footer-notes{font-size:12px;line-height:1.9;color:#9caeb3}.footer-notes button{background:none;color:var(--accent);font-size:13px;min-height:38px}.back-top{background:#15252c;border:1px solid #6e9ba5;color:var(--accent);border-radius:9px;z-index:9;width:44px;height:44px;right:22px;bottom:22px}.mobile-dock{display:none}
dialog{width:820px;max-width:calc(100vw - 40px);max-height:calc(100dvh - 40px);background:linear-gradient(135deg,#1a2a31,#0c151b 75%);border:1px solid #6f969d80;border-radius:16px;color:var(--text);padding:0;box-shadow:0 35px 130px #000b;overflow:auto}dialog[open]{animation:dialog-in .2s ease-out}dialog::backdrop{background:#03080cb8;backdrop-filter:blur(12px)}.dialog-close{position:absolute;right:14px;top:14px;z-index:3;width:44px;height:44px;background:#0b1922de;border:1px solid #6d848b;border-radius:50%;font-size:28px;color:#dae7e9;display:grid;place-items:center;padding:0}.detail-layout{display:grid;grid-template-columns:260px 1fr;gap:30px;padding:36px}.detail-cover{width:100%;max-height:400px;object-fit:contain;border-radius:8px}.detail-copy{padding-top:8px}.detail-copy h2{font-size:29px;line-height:1.5;padding-right:22px}.eyebrow{font-size:11px;color:var(--accent);letter-spacing:2px}.detail-genres{font-size:15px;color:#bacbd0;line-height:1.8}.detail-rating{font-size:13px;background:#81dce41a;color:var(--accent);border-radius:5px;padding:6px 10px}.detail-rating.caution{color:#e8c3a1;background:#d7b89c15}.detail-meta{font-size:14px;line-height:1.9;border-top:1px solid #526b7450;margin-top:22px;padding-top:15px;color:#9bb0b8}.detail-meta div{display:flex;gap:16px}.detail-meta b{font-weight:400;color:#d2e0e3;flex:1}.detail-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px}.detail-actions .primary-button,.detail-save{min-height:46px;font-size:14px;border-radius:6px;padding:10px 16px;letter-spacing:0}.detail-save{border:1px solid #7d969e;background:transparent;color:#d8e5e9}.detail-save.saved{background:#81dce418;border-color:var(--accent);color:var(--accent)}.detail-hint{font-size:12px;color:#92a7af;line-height:1.8}.detail-disabled{font-size:14px}.about-content{padding:42px}.about-content h2{font-size:28px;padding-right:25px}.about-content p{font-size:16px;color:#c1cfd3;line-height:1.9}.strong-text{color:var(--accent)}.caution-text{color:#e8c3a1}
.picker-dialog {
 position:fixed; inset:auto; margin:0; padding:0; width:394px; max-width:calc(100vw - 24px);
 max-height:min(440px, var(--room, calc(100dvh - 24px))); overflow:hidden;
 border:1px solid #415b60; border-radius:13px; background:#132327; color:#e3edeb;
 box-shadow:0 12px 38px #030c10a8;
}
.picker-dialog[open] { display:flex; flex-direction:column; }
.picker-dialog:has(.sort-options) { width:302px; }
.picker-dialog::backdrop { background:#050e122e; backdrop-filter:none; }
.sheet-handle { display:none; }
.picker-heading {
 flex:none; display:flex; align-items:center; justify-content:space-between; gap:12px;
 margin:0 14px; padding:9px 0; border-bottom:1px solid #30464a;
}
.picker-label { display:flex; align-items:baseline; flex-wrap:wrap; gap:9px; }
.picker-heading h2 { margin:0; color:#f2efe5; font-size:19px; line-height:1.4; }
#picker-meta { color:#a5b9b7; font-size:12px; }
.picker-heading .dialog-close {
 position:static; flex:none; display:grid; place-items:center; width:32px; height:32px;
 min-height:32px; border:0; background:transparent; color:#bbccca; font:24px/1 system-ui,sans-serif;
}
#picker-options {
 min-height:0; overflow:auto; overscroll-behavior:contain; padding:10px 12px 12px;
 display:grid; align-content:start; gap:5px; scroll-padding-block:6px;
}
@media (forced-colors:none) {
 #picker-options { scrollbar-width:thin; scrollbar-color:#607f7e #132327; }
 @supports selector(::-webkit-scrollbar) {
  #picker-options { scrollbar-width:auto; scrollbar-color:auto; }
  #picker-options::-webkit-scrollbar { width:8px; }
  #picker-options::-webkit-scrollbar-track { background:transparent; }
  #picker-options::-webkit-scrollbar-thumb { background:#607f7e; border:2px solid #132327; border-radius:8px; }
  #picker-options::-webkit-scrollbar-button { display:none; }
 }
}
.picker-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
#picker-options button {
 display:flex; align-items:center; justify-content:space-between; gap:4px; min-width:0;
 min-height:37px; padding:6px 9px; text-align:left; line-height:1.4; font-size:14px;
 color:#dae6e3; background:#1a2c30; border:1px solid transparent; border-radius:6px;
}
#picker-options button span { overflow-wrap:anywhere; }
#picker-options small { flex:none; color:#a8bcba; font-size:11px; font-variant-numeric:tabular-nums; }
#picker-options i { display:none; font:14px/1 system-ui,sans-serif; }
#picker-options button[aria-selected=true] { color:#abebe0; background:#203e40; border-color:#648f8b; font-weight:600; }
#picker-options button[aria-selected=true] i { display:block; }
.picker-grid button:first-child { grid-column:1/-1; }
.picker-grid button:first-child small { margin-inline-start:auto; }
.picker-grid button[aria-selected=true]:not(:first-child) small { position:absolute; clip-path:inset(50%); }
#picker-options.sort-options button { display:grid; grid-template-columns:1fr auto; gap:2px 8px; padding:8px 10px; }
.sort-options small { grid-column:1; }
.sort-options i { grid-column:2; grid-row:1/3; }
#picker-options button:focus-visible,.picker-heading .dialog-close:focus-visible { outline:2px solid #a6e1d7; outline-offset:-2px; }
@media (hover:hover) {
 #picker-options button:hover,.picker-heading .dialog-close:hover { background:#263d40; color:#e4f4ef; }
}
@media (forced-colors:active) { #picker-options button[aria-selected=true] { border-color:Highlight; } }
.toast{background:#16323b;color:#d9f7fa;border:1px solid #80dce480;font-size:14px;white-space:normal;max-width:calc(100vw - 32px);text-align:center;border-radius:9px;z-index:50}
.cinema-mode{background:#030608}.cinema-mode .hero-backdrop{opacity:.2}.cinema-mode .hero-poster{box-shadow:0 15px 40px #000}.cinema-mode .header,.cinema-mode .year-strip{background:#030608}.cinema-mode .anime-grid{filter:brightness(.88)}
@keyframes card-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes dialog-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(hover:hover){.anime-card:hover{transform:translateY(-4px)}.card-title:hover{color:var(--accent)}}
@media(min-width:1700px){:root{--max:1580px}.hero{min-height:530px}.hero-art{height:455px}.poster-center{height:445px}.poster-left,.poster-right{height:375px}.hero h1{font-size:65px}.card-title{font-size:22px}}
@media(min-width:701px) and (max-width:1100px){.header{height:76px;padding:0 28px;gap:16px}.header .brand{padding-left:16px}.brand-text{font-size:22px}.brand>small{display:none}.header nav{gap:24px}.nav-link{font-size:16px}main{padding:0 28px}.hero{min-height:405px;grid-template-columns:1fr 1.1fr;gap:0;padding:32px 0 15px}.hero h1{font-size:42px}.hero-intro{font-size:16px;margin:18px 0 24px}.hero-actions{gap:10px}.primary-button,.ghost-button{font-size:14px;padding:10px 20px;min-height:46px}.hero-stats{gap:16px;margin-top:28px}.hero-stats>div{padding-right:16px;gap:5px}.hero-stats strong{font-size:27px}.hero-stats small{font-size:11px}.hero-art{height:340px}.poster-center{height:325px}.poster-left,.poster-right{height:265px;top:50px}.hero-poster>span{font-size:19px;padding-bottom:18px}.hero-backdrop{inset:0 -28px}.year-strip{padding:10px 28px;margin:0 -28px;gap:18px}.year-strip h2{font-size:19px;padding-left:14px}.year-shortcuts{gap:9px}.year-strip button{font-size:14px;padding:7px 12px}.catalog-heading h2{font-size:29px}.search-row{width:64%;margin-top:-62px}.searchbox{padding:0 10px}.searchbox input{font-size:15px}.picker-trigger{font-size:13px;padding:0 10px}.filter-panel{grid-template-columns:1fr;gap:14px}.search-row{margin-bottom:8px}.genre-row{grid-column:1;padding:0;border:0}.tabs button{font-size:14px}.anime-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 16px}.card-title{font-size:18px}.card-tags{font-size:12px}.rating-badge{font-size:10px;padding:5px}.save-button{width:34px;height:36px;min-height:36px}.poster{aspect-ratio:4/5}footer{padding-left:28px;padding-right:28px}}
@media(min-width:701px) and (max-width:850px){.hero h1{font-size:34px}.hero-intro{font-size:14px}.hero-art{height:285px}.hero{min-height:355px}.poster-center{height:275px}.poster-left,.poster-right{height:225px;top:40px}.hero-poster>span{font-size:16px}.hero-stats{gap:12px}.hero-stats>div{padding-right:12px}.hero-stats strong{font-size:24px}.hero-stats small{font-size:10px}.hero-actions .primary-button,.ghost-button{padding:10px 13px;font-size:13px}.search-row{width:100%;margin:0 0 6px}.catalog-heading{margin-bottom:20px}.anime-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.year-shortcuts{gap:2px}.year-strip button{padding:6px 9px}.year-strip{gap:12px}.year-strip h2{font-size:17px}.more-years{font-size:13px!important}}
@media(max-width:700px){html{scroll-padding-top:15px}body{padding-bottom:82px}.header{height:88px;padding:0 20px;gap:10px}.header .brand{padding-left:14px;display:flex;flex-direction:column;align-items:flex-start;gap:5px;border-left-width:2px}.brand-text{font-size:22px;letter-spacing:1px}.brand>small{font-size:10px;letter-spacing:1.3px}.header nav{display:none}.cinema-toggle{margin-left:auto;font-size:30px}main{padding:0 20px}.hero{display:flex;flex-direction:column;align-items:stretch;padding:25px 0 10px;gap:0;min-height:0;overflow:hidden}.hero-copy{padding:0}.hero h1{font-size:clamp(30px,8.1vw,45px);line-height:1.35;white-space:normal;letter-spacing:.3px}.hero-intro{font-size:15px;line-height:1.7;margin:12px 0 20px}.hero-actions{gap:14px;display:grid;grid-template-columns:1fr 1fr}.hero-actions .primary-button,.ghost-button{font-size:14px;min-height:44px;padding:10px 12px;gap:10px;border-radius:6px;letter-spacing:.5px}.hero-stats{margin-top:22px;gap:0;justify-content:space-between;width:100%}.hero-stats>div{padding-right:20px;gap:6px}.hero-stats strong{font-size:27px}.hero-stats small{font-size:11px}.hero-art{height:255px;width:100%;max-width:420px;margin:24px auto 0;overflow:visible}.poster-stack{height:100%;width:100%;max-width:none}.poster-center{width:40%;height:245px;left:30%;top:0}.poster-left,.poster-right{width:36%;height:205px;top:35px}.poster-left{left:1%}.poster-right{right:0}.hero-poster{border-radius:3px}.hero-poster>span{font-size:15px;padding:45px 7px 16px;line-height:1.45}.hero-poster>span:after{margin-top:9px}.hero-backdrop{inset:0 -20px;opacity:.35;background:linear-gradient(0deg,#0b1114,transparent 20%,#0b1114 63%),linear-gradient(90deg,#0b111480,#0b111490),url('assets/212.jpg?rev=ada6db7a05697a44') center bottom/100% auto no-repeat}
.year-strip{min-height:60px;padding:8px 20px;margin:0 -20px;gap:12px;overflow:hidden}.year-strip h2{font-size:15px;padding-left:10px;border-left-width:2px}.year-shortcuts{gap:4px;min-width:0;overflow-x:auto;scrollbar-width:none;flex:1}.year-strip button{font-size:12px;padding:6px 9px;min-height:36px;flex-shrink:0}.more-years{font-size:0!important;padding:0!important;width:30px;min-width:30px}.more-years span{font-size:22px;margin:0}.catalog{padding-top:22px;padding-bottom:35px;display:flex;flex-direction:column;scroll-margin-top:12px}.catalog-heading{order:3;margin:22px 0 18px;min-height:0}.catalog-heading h2{font-size:25px;line-height:1.4;letter-spacing:.5px}.catalog-heading h2:after{width:30px;height:2px;margin-top:10px}.filter-panel{order:1;display:flex;flex-direction:column;gap:12px}.search-row{width:100%;margin:0;gap:7px;display:flex}.searchbox{grid-column:auto;height:44px;min-height:44px;border-radius:6px;padding:0 10px;gap:6px}.searchbox input{font-size:16px}.searchbox svg{width:16px}.picker-trigger{font-size:12px;padding:0 9px;min-height:44px;gap:4px;flex-shrink:0}.picker-trigger svg{width:12px}#year-value,#sort-value{display:none}.picker-trigger .control-label{display:inline;font-size:13px}.filter-row{display:block;margin:0}.tabs{display:flex;gap:7px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.tabs button{font-size:12px;min-height:36px;padding:6px 12px;flex:0 0 auto}.tabs button span{font-size:11px;margin-left:4px}.tabs button[data-mode=caution]{order:4}.tabs button[data-mode=saved]{order:3}.reset-button{font-size:12px;text-align:right;width:100%;min-height:30px;margin-top:5px}.genre-row{padding:0;border:0;margin:0;display:block;min-width:0}.genre-row>div{gap:8px;padding:0;display:flex;overflow-x:auto;flex-wrap:nowrap}.genre{font-size:12px;min-height:34px;padding:5px 16px}.active-filters{order:2;margin:12px 0 0;font-size:12px}.active-filters>span{display:none}.active-filters button{font-size:12px;min-height:32px}.result-line{order:4;margin:-8px 0 12px;font-size:11px;min-height:18px}#refine-button{font-size:11px;min-height:24px}.anime-grid{order:5;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 13px}.anime-card{border:1px solid #4d656d40;background:linear-gradient(145deg,#18262d44,#0c161c11);border-radius:8px;padding:0 0 8px;overflow:hidden}.poster{aspect-ratio:4/4.3;border-radius:7px 7px 0 0;border:0}.card-title{font-size:17px;line-height:1.5;margin:7px 8px 4px;width:calc(100% - 16px);min-height:0}.card-tags{font-size:12px;gap:5px;margin:0 8px;line-height:1.6;min-height:0}.card-tags span+span:before{margin-right:5px}.rating-badge{font-size:10px;padding:5px 6px;top:8px;left:7px;border-radius:3px}.save-button{width:34px;height:38px;min-height:38px;top:6px;right:6px;border-radius:4px}.save-button svg{width:18px;height:20px}.empty-state{order:6}.load-row{order:7;margin-top:28px}.load-more{width:100%;min-height:48px;font-size:14px}.load-row p{font-size:12px}footer{padding:26px 20px;display:block}.footer-brand .brand-text{font-size:19px}.footer-notes{text-align:left;font-size:11px;margin-top:20px}.footer-brand small{font-size:9px}
.mobile-dock{position:fixed;z-index:15;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(3,1fr);padding:7px 20px calc(7px + env(safe-area-inset-bottom));background:#081217ed;backdrop-filter:blur(20px);border-top:1px solid #5b747d80;box-shadow:0 -10px 30px #0003}.mobile-dock button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:52px;border:0;background:none;color:#b6c6cc;font-size:12px;padding:3px}.mobile-dock button.active{color:var(--accent)}.mobile-dock svg{width:23px;height:23px}.mobile-dock b{font-size:10px;font-weight:400}.back-top{bottom:calc(85px + env(safe-area-inset-bottom));right:14px;width:42px;height:42px}.toast{bottom:calc(90px + env(safe-area-inset-bottom));font-size:13px;padding:12px 18px}
dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 30px);border-radius:15px}.detail-layout{display:block;padding:28px 22px}.detail-cover{display:block;max-width:170px;max-height:255px;margin:0 auto}.detail-copy{padding-top:23px}.detail-copy h2{font-size:26px;padding:0}.detail-genres{font-size:15px}.detail-meta{font-size:13px;line-height:1.9}.detail-actions .primary-button,.detail-save{font-size:13px;padding:10px 12px;flex:1;min-height:48px}.detail-hint{font-size:12px}.about-content{padding:32px 23px}.about-content h2{font-size:24px}.about-content p{font-size:15px}.picker-dialog,.picker-dialog:has(.sort-options) {
 inset:auto 0 0; width:100%; max-width:none; max-height:min(70dvh,480px);
 border-radius:16px 16px 0 0; padding:0 0 env(safe-area-inset-bottom);
}
.picker-dialog::backdrop { background:#040c1099; }
.sheet-handle { display:block; flex:none; width:30px; height:3px; margin:8px auto 0; border-radius:3px; background:#56706f; }
.picker-heading { margin:0 16px; padding:3px 0 6px; }
.picker-heading h2 { font-size:18px; }
.picker-heading .dialog-close { width:40px; height:40px; }
#picker-options { gap:5px; padding:10px 12px 12px; }
#picker-options button { min-height:44px; padding-inline:8px; }

}
@media(max-width:360px){.header{padding:0 15px}.brand-text{font-size:20px}main{padding:0 15px}.hero h1{font-size:29px}.hero-intro{font-size:13px}.hero-stats strong{font-size:24px}.hero-stats small{font-size:10px}.hero-stats>div{padding-right:13px}.hero-art{height:225px;margin-top:22px}.poster-center{height:216px}.poster-left,.poster-right{height:180px;top:30px}.hero-poster>span{font-size:13px}.year-strip{padding-left:15px;padding-right:15px;margin-left:-15px;margin-right:-15px;gap:8px}.year-strip h2{font-size:13px}.year-strip button{font-size:11px;padding:5px 7px}.search-row{gap:5px}.picker-trigger{padding:0 7px}.tabs button{padding:6px 10px}.card-title{font-size:15px}.card-tags{font-size:11px}.rating-badge{font-size:9px;padding:5px}.anime-grid{gap:18px 10px}.hero-actions .primary-button,.ghost-button{font-size:13px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Keep scrollable controls inside their responsive track. */
.filter-panel,.genre-row{min-width:0}.genre-row{width:100%}.genre-row>div{width:100%;min-width:0}
@media(max-width:700px){.hero-art{height:220px;margin-top:20px}.poster-center{height:210px}.poster-left,.poster-right{height:177px;top:28px;width:33%}.poster-left{left:4%}.poster-right{right:3%}.hero-stats{margin-top:19px}.hero{padding-top:22px}.hero-intro{margin-bottom:17px}}
.hero{overflow:clip}.load-more:hover{background:#81dce417;border-color:var(--accent)}.save-button:hover{color:var(--accent);border-color:var(--accent)}

/* Responsive browsing density: readable controls, compact hero, bounded cards. */
html{scroll-padding-top:18px;scrollbar-gutter:stable}
.searchbox:focus-within{border-color:var(--accent);box-shadow:0 0 0 2px #81dce41a}
.catalog{display:block;padding-top:22px}
.catalog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:28px;min-width:0;margin-bottom:16px;scroll-margin-top:16px}
.catalog-heading{margin:0;min-height:0;flex:0 0 auto}.catalog-heading h2{font-size:29px;line-height:1.35}.catalog-heading h2:after{margin-top:8px;height:2px}
.search-row{margin:0;width:auto;flex:1;max-width:70%;min-width:0;gap:10px}.searchbox{height:44px;min-height:44px}.picker-trigger{min-height:44px}
.filter-panel{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:18px;row-gap:10px;align-items:center;min-width:0}
.filter-row{margin:0;grid-column:1;gap:8px}.tabs{gap:8px;flex-wrap:nowrap}.tabs button{padding:7px 14px;min-height:38px;font-size:14px}.tabs button span{font-size:12px;opacity:1}
.genre-row{grid-column:2;border-left:1px solid #53646a;padding:0 0 0 18px;align-self:center}.genre-row>div{gap:7px;flex-wrap:wrap;overflow:visible;padding:0}.genre{padding:5px 13px;min-height:36px;font-size:14px}.genre[data-genre=""]{display:block}
.active-filters{margin-top:10px}.result-line{margin:9px 0 11px;font-size:13px;min-height:24px}#refine-button{font-size:13px;min-height:30px;color:#b5c9cf}.result-line b{color:#d0e6ea}
.anime-grid{gap:23px 18px;align-items:start}.anime-card{animation:none}.poster{aspect-ratio:4/4.6}
.card-title{font-family:var(--serif);font-size:18px;line-height:1.45;height:52px;min-height:52px;margin:9px 0 3px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;text-wrap:pretty}
.card-tags{font-size:13px;line-height:1.65;gap:6px;min-height:22px;flex-wrap:nowrap}.card-tags span+span{overflow:hidden;text-overflow:ellipsis}.card-tags span+span:before{margin-right:6px}
.card-footer{display:flex;border:0;margin:6px 0 0;padding:0;min-height:30px}.portal-link{font-size:13px;min-height:30px;color:#a5d4dc;padding:3px 0;display:inline-flex;align-items:center;gap:10px;background:none;border:0}.portal-link:hover{color:#d3f5f8}.portal-link.netflix{color:#c6b6ef}.portal-link.disabled{color:#92a5ad}.card-index{display:none}
.save-button{width:40px;height:40px;min-height:40px}.save-button.saved{background:#15363de8;border-color:var(--accent)}
.rating-badge{font-size:11px}.hero-poster:focus-visible{outline-offset:-4px}.poster-open:focus-visible{outline-offset:-3px}.detail-copy h2{overflow-wrap:anywhere}
@media(min-width:1101px){
 :root{--max:1680px}.header{height:62px;padding-left:32px;padding-right:32px}.header .brand{padding-left:18px}.brand-text{font-size:25px}.header nav{gap:34px}.nav-link{font-size:16px}.brand>small{font-size:11px}
 main{padding-left:32px;padding-right:32px}.hero{height:310px;min-height:310px;grid-template-columns:1fr 1fr;padding:15px 0;gap:25px}.hero-copy{padding-bottom:0}.hero h1{font-size:46px;line-height:1.25}.hero-intro{font-size:16px;margin:12px 0 17px;line-height:1.6}.hero-actions{gap:13px}.hero-actions .primary-button,.hero-actions .ghost-button{font-size:14px;min-height:44px;padding:10px 22px}.hero-stats{margin-top:18px;gap:24px}.hero-stats>div{padding-right:24px;gap:7px}.hero-stats strong{font-size:27px}.hero-stats small{font-size:12px}
 .hero-art{height:280px;max-width:580px;justify-self:center}.poster-stack{height:100%}.poster-center{width:34%;height:270px;left:33%;top:0}.poster-left,.poster-right{width:30%;height:230px;top:33px}.poster-left{left:8%}.poster-right{right:5%}.hero-poster>span{font-size:18px;padding:45px 8px 15px}.hero-poster>span:after{margin-top:8px}.hero-backdrop{inset:0 -32px}
 .year-strip{min-height:50px;padding:4px 32px;margin:0 -32px;gap:24px}.year-strip h2{font-size:18px;padding-left:14px}.year-strip button{min-height:36px;font-size:14px;padding:6px 14px}.year-shortcuts{gap:18px}
 .anime-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.poster{max-height:280px}footer{padding-left:32px;padding-right:32px}
}
@media(min-width:1101px) and (max-width:1399px){.hero{height:280px;min-height:280px}.hero h1{font-size:40px}.hero-art{height:250px;max-width:500px}.poster-center{height:242px}.poster-left,.poster-right{height:207px;top:28px}.hero-stats{margin-top:14px}.hero-intro{margin:10px 0 14px}.catalog-heading h2{font-size:26px}.genre{padding:5px 10px;font-size:13px}.genre-row>div{gap:5px}.tabs button{padding:6px 11px}.anime-grid{gap:22px 15px}.card-title{font-size:17px;height:49px;min-height:49px}.card-tags,.portal-link{font-size:12px}.rating-badge{font-size:10px;padding:5px 6px}.save-button{width:36px;height:38px;min-height:38px}}
@media(min-width:2000px){:root{--max:2048px}.header,main,footer{padding-left:40px;padding-right:40px}.hero{height:325px;min-height:325px}.hero h1{font-size:48px}.hero-art{max-width:620px;height:295px}.poster-center{height:285px}.poster-left,.poster-right{height:245px}.year-strip{margin-left:-40px;margin-right:-40px;padding-left:40px;padding-right:40px}.hero-backdrop{inset:0 -40px}.anime-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:26px 20px}.card-title{font-size:19px;height:55px;min-height:55px}.card-tags,.portal-link{font-size:14px}.poster{max-height:290px}.catalog-heading h2{font-size:31px}}
@media(min-width:3000px){:root{--max:2800px}.header{height:72px}.brand-text{font-size:29px}.nav-link{font-size:18px}.hero{height:350px;min-height:350px}.hero h1{font-size:52px}.hero-intro{font-size:18px}.hero-art{max-width:680px;height:320px}.poster-center{height:310px}.poster-left,.poster-right{height:268px;top:36px}.hero-stats strong{font-size:30px}.hero-stats small{font-size:14px}.hero-actions .primary-button,.hero-actions .ghost-button{font-size:16px}.year-strip h2{font-size:20px}.year-strip button,.tabs button,.genre{font-size:16px}.searchbox input,.picker-trigger{font-size:17px}.anime-grid{grid-template-columns:repeat(10,minmax(0,1fr));gap:28px 22px}.card-title{font-size:21px;height:61px;min-height:61px}.card-tags,.portal-link{font-size:15px}.rating-badge{font-size:12px}.poster{max-height:300px}}
/* Short laptop viewports retain a complete first row instead of a tall hero. */
@media(min-width:1101px) and (max-height:800px){.header{height:54px}.hero{height:210px;min-height:210px;padding:10px 0}.hero-copy{display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:20px;row-gap:10px}.hero h1{font-size:34px;grid-column:1/-1}.hero-intro{display:none}.hero-actions{grid-column:1;gap:9px}.hero-actions .primary-button,.hero-actions .ghost-button{font-size:13px;min-height:40px;padding:8px 15px}.hero-stats{grid-column:2;margin:0;gap:12px}.hero-stats>div{padding-right:12px;display:block}.hero-stats strong{font-size:22px}.hero-stats small{font-size:10px;display:block;margin-top:4px}.hero-art{height:188px;max-width:405px}.poster-center{height:180px;width:32%;left:34%}.poster-left,.poster-right{height:154px;top:22px}.hero-poster>span{font-size:13px;padding:32px 6px 10px}.hero-poster>span:after{margin-top:5px}.year-strip{min-height:44px;padding-top:2px;padding-bottom:2px}.catalog{padding-top:16px}.catalog-toolbar{margin-bottom:11px}.catalog-heading h2{font-size:25px}.result-line{margin:6px 0 8px}.poster{height:clamp(145px,24vh,185px);aspect-ratio:auto}.card-title{font-size:17px;height:49px;min-height:49px;margin-top:7px}.card-tags{font-size:12px}.card-footer{margin-top:3px}.portal-link{min-height:27px}}
@media(min-width:1101px) and (max-height:700px){.hero{height:175px;min-height:175px}.hero-art{height:155px;max-width:350px}.poster-center{height:150px}.poster-left,.poster-right{height:128px;top:18px}.hero h1{font-size:30px}.hero-copy{row-gap:8px}.hero-stats{gap:10px}.hero-stats>div{padding-right:10px}.hero-actions .primary-button,.hero-actions .ghost-button{padding:8px 11px}.hero-poster>span{font-size:12px}.poster{height:150px}}
@media(min-width:701px) and (max-width:1100px){
 .header{height:64px}.hero{height:280px;min-height:280px;padding:15px 0;grid-template-columns:1fr 1fr}.hero-copy{padding:0}.hero h1{font-size:36px;line-height:1.25}.hero-intro{font-size:14px;margin:10px 0 16px}.hero-actions .primary-button,.ghost-button{font-size:13px;padding:10px 15px;min-height:44px}.hero-stats{margin-top:16px;gap:15px}.hero-stats>div{padding-right:15px}.hero-stats strong{font-size:25px}.hero-stats small{font-size:11px}.hero-art{height:250px;max-width:410px;justify-self:center}.poster-center{height:237px;width:38%;left:31%}.poster-left,.poster-right{height:202px;top:27px;width:32%}.poster-left{left:5%}.poster-right{right:3%}.hero-poster>span{font-size:16px;padding-bottom:12px}.hero-poster>span:after{margin-top:7px}
 .year-strip{min-height:48px;padding-top:4px;padding-bottom:4px}.year-strip h2{font-size:17px}.year-strip button{min-height:36px;font-size:13px}.catalog-toolbar{gap:16px}.catalog-heading h2{font-size:25px}.search-row{max-width:65%;gap:7px}.searchbox input{font-size:15px}.picker-trigger{font-size:13px;padding:0 10px}.filter-panel{grid-template-columns:1fr;row-gap:10px}.genre-row{grid-column:1;border:0;padding:0}.genre-row>div{gap:7px}.genre{font-size:13px;padding:5px 12px}.anime-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 16px}.card-title{font-size:17px;height:49px;min-height:49px}.card-tags,.portal-link{font-size:12px}.poster{aspect-ratio:4/4.6;max-height:245px}
}
@media(min-width:701px) and (max-width:850px){.hero{height:265px;min-height:265px;gap:12px}.hero h1{font-size:31px}.hero-art{height:225px}.poster-center{height:216px}.poster-left,.poster-right{height:183px}.hero-stats{gap:12px}.hero-stats>div{padding-right:12px}.hero-stats strong{font-size:22px}.hero-stats small{font-size:10px}.hero-actions .primary-button,.ghost-button{padding:9px 12px}.catalog-toolbar{flex-wrap:wrap;gap:13px}.search-row{max-width:none;flex-basis:100%}.catalog-heading h2{font-size:26px}.anime-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){
 .header{height:74px}.hero{padding-top:18px;padding-bottom:8px}.hero h1{font-size:clamp(28px,7.8vw,38px);line-height:1.3}.hero-intro{margin:9px 0 14px;font-size:14px}.hero-actions{gap:12px}.hero-stats{margin-top:15px}.hero-stats strong{font-size:25px}.hero-art{height:170px;max-width:330px;margin-top:16px}.poster-center{height:162px;width:34%;left:33%}.poster-left,.poster-right{height:140px;width:30%;top:18px}.poster-left{left:7%}.poster-right{right:5%}.hero-poster>span{font-size:12px;padding:30px 6px 10px}.hero-poster>span:after{margin-top:6px}.year-strip{min-height:50px;padding-top:5px;padding-bottom:5px}.year-strip h2{font-size:14px}.year-strip button{min-height:40px}.more-years{min-width:40px;width:40px}
 .catalog{padding-top:18px}.catalog-toolbar{display:flex;flex-direction:column;align-items:stretch;margin-bottom:10px;gap:13px;scroll-margin-top:12px}.catalog-heading{margin:0;order:0}.catalog-heading h2{font-size:24px}.catalog-heading h2:after{margin-top:7px}.search-row{max-width:none;width:100%;gap:6px}.searchbox{height:46px;min-height:46px}.searchbox input{font-size:16px}.picker-trigger{min-height:46px;font-size:13px;padding:0 8px;max-width:92px;overflow:hidden;gap:3px}.picker-trigger .control-label{display:none}#year-value,#sort-value{display:inline;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.picker-trigger svg{flex-shrink:0}
 .filter-panel{display:flex;flex-direction:column;align-items:stretch;gap:10px}.filter-row{display:flex;flex-direction:column;align-items:stretch;gap:4px}.tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;overflow:visible;width:100%}.tabs button{font-size:13px;min-height:42px;padding:7px 4px;display:flex;justify-content:center;align-items:center;gap:4px;order:0!important}.tabs button[data-mode=caution]{padding-left:4px;padding-right:4px}.tabs button span{font-size:11px;margin:0}.reset-button{margin:0;min-height:34px;font-size:13px;padding:0;text-align:right}
 .genre-row{padding:0;border:0;display:block}.genre-row>div{display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#3f6973 transparent;padding-bottom:5px;gap:7px}.genre{font-size:13px;min-height:40px;padding:6px 14px}.genre[data-genre=""]{display:block}.result-line{margin:9px 0 12px;font-size:12px;min-height:24px}#refine-button{font-size:12px;min-height:30px}.active-filters{margin-top:10px}.active-filters button{font-size:12px;min-height:36px}.anime-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}.card-title{font-size:16px;height:47px;min-height:47px;line-height:1.45;margin:8px 8px 3px;width:calc(100% - 16px)}.card-tags{font-size:12px;margin:0 8px;min-height:21px;gap:5px;overflow:hidden}.card-tags span+span{flex:1}.card-footer{margin:5px 8px 0;min-height:36px}.portal-link{font-size:12px;min-height:36px;flex:1;justify-content:space-between}.poster{aspect-ratio:4/4.6}.rating-badge{font-size:10px;left:6px;padding:5px 6px}.save-button{width:40px;height:42px;min-height:42px;right:5px;top:5px}.save-button svg{width:18px;height:20px}.anime-card{padding-bottom:7px}.mobile-dock{padding-top:5px;padding-bottom:calc(5px + env(safe-area-inset-bottom))}.mobile-dock button{min-height:50px}.detail-copy h2{font-size:24px}.detail-meta div{gap:12px}.detail-actions{flex-wrap:wrap}.detail-actions .primary-button,.detail-save{flex:1 1 120px}.detail-meta b{overflow-wrap:anywhere}
}
@media(max-width:360px){main{padding-left:14px;padding-right:14px}.hero h1{font-size:28px}.hero-stats strong{font-size:23px}.hero-stats small{font-size:10px}.hero-art{height:158px}.poster-center{height:151px}.poster-left,.poster-right{height:131px}.hero-intro{font-size:13px}.catalog-heading h2{font-size:22px}.searchbox{padding:0 8px;gap:5px}.searchbox input{font-size:16px}.picker-trigger{padding:0 6px;max-width:74px}#year-value,#sort-value{font-size:11px}.tabs{gap:4px}.tabs button{font-size:12px;gap:3px}.tabs button span{font-size:10px}.genre{font-size:12px}.card-title{font-size:15px;height:44px;min-height:44px}.card-tags,.portal-link{font-size:11px}.rating-badge{font-size:9px;letter-spacing:0;padding:5px}.save-button{width:38px}.anime-grid{gap:18px 10px}}
@media(prefers-reduced-motion:reduce){.anime-card{animation:none}.hero-poster:hover,.anime-card:hover{transform:none}}
@media(min-width:1101px) and (max-width:1999px) and (min-height:801px){.hero{height:280px;min-height:280px}.hero h1{font-size:44px}.hero-art{height:250px}.poster-center{height:242px}.poster-left,.poster-right{height:207px;top:28px}.hero-intro{margin:10px 0 14px}.hero-stats{margin-top:15px}.catalog{padding-top:16px}.catalog-toolbar{margin-bottom:12px}.result-line{margin:6px 0 8px;min-height:24px}#refine-button{min-height:24px}.poster{max-height:270px}}
@media(min-width:1101px) and (max-height:800px){.hero{height:190px;min-height:190px}.hero-art{height:172px}.poster-center{height:165px}.poster-left,.poster-right{height:140px;top:20px}.catalog{padding-top:14px}.catalog-toolbar{margin-bottom:8px}.result-line{margin:4px 0 8px;min-height:24px}#refine-button{min-height:24px}}
@media(min-width:1101px) and (max-height:700px){.hero{height:150px;min-height:150px}.hero-art{height:133px}.poster-center{height:126px}.poster-left,.poster-right{height:108px;top:16px}.hero h1{font-size:27px}.hero-copy{row-gap:5px}.hero-poster>span{font-size:11px;padding-bottom:7px}}
@media(min-width:1101px) and (max-height:700px){.poster{height:144px}}
@media(min-width:701px) and (max-width:1100px) and (max-height:800px){.header{height:60px}.hero{height:160px;min-height:160px;padding:8px 0}.hero h1{font-size:28px;line-height:1.2}.hero-intro{display:none}.hero-actions{margin-top:8px;gap:9px}.hero-actions .primary-button,.ghost-button{font-size:12px;padding:8px 13px;min-height:40px}.hero-stats{margin-top:9px;gap:16px}.hero-stats strong{font-size:22px}.hero-stats small{font-size:10px}.hero-art{height:142px;max-width:290px}.poster-center{height:134px;width:33%;left:34%}.poster-left,.poster-right{height:114px;width:29%;top:18px}.hero-poster>span{font-size:12px;padding-bottom:8px}.year-strip{min-height:44px;padding-top:2px;padding-bottom:2px}.catalog{padding-top:16px}.poster{height:170px;aspect-ratio:auto}.result-line{margin-top:6px;margin-bottom:8px}}
@media(max-width:700px){.catalog-heading{display:none}.catalog-toolbar{gap:0;margin-bottom:10px}.hero-art{height:132px;max-width:270px;margin-top:12px}.poster-center{height:125px}.poster-left,.poster-right{height:107px;top:15px}.hero-poster>span{font-size:11px;padding-bottom:8px}.hero-stats{margin-top:12px}.hero-poster>span:after{margin-top:4px}.year-strip{min-height:46px}.result-line{min-height:24px}#refine-button{min-height:24px}.genre-row>div{padding-bottom:3px}}
@media(max-width:360px){.year-strip{margin-left:-14px;margin-right:-14px;padding-left:14px;padding-right:14px}.hero-art{height:124px;max-width:250px}.poster-center{height:117px}.poster-left,.poster-right{height:100px}.hero-poster>span{font-size:10px}}

/* Keep a useful first screen even on short phones. */
@media(max-width:700px){.header{height:68px}.hero{padding-top:14px;padding-bottom:6px}.hero-intro{display:none}.hero-actions{margin-top:14px}.hero-art{height:108px;max-width:240px;margin-top:9px}.poster-center{height:103px}.poster-left,.poster-right{height:88px;top:12px}.hero-poster>span{font-size:10px;padding-bottom:6px}.hero-stats{margin-top:10px}}
@media(max-width:700px) and (max-height:700px){.hero-art{display:none}.hero{padding-bottom:17px}.hero h1{font-size:28px}.hero-actions{margin-top:12px}.hero-stats{margin-top:12px}}

/* Reference composition: width controls layout; images keep their proportions. */
:root{--max:1680px;--gutter:38px;--hero-h:418px}
body{background:radial-gradient(ellipse at 70% 0,#1d303840,transparent 52%),#091116}
.header,main,footer{width:calc(100% - 64px);max-width:var(--max);margin-inline:auto;padding-inline:var(--gutter)}
.header{height:68px;border-bottom:1px solid #81969c36;background:#0a1217}
.header .brand{padding-left:20px}.brand-text{font-size:27px}.brand>small{font-size:11px;letter-spacing:2px}.header nav{gap:36px}.nav-link{font-size:16px}
.hero{position:relative;isolation:isolate;display:grid;grid-template-columns:39% 61%;gap:0;align-items:center;height:var(--hero-h);min-height:0;padding:24px 0 30px;overflow:visible}
.hero-backdrop{inset:0 calc(-1 * var(--gutter));z-index:-1;background:linear-gradient(90deg,#091116 0%,#091116f5 22%,#0911169c 43%,#09111612 74%),linear-gradient(0deg,#09111630,transparent 35%),url('assets/hero-garden.webp?rev=b8b9dbed50441609') right center/cover no-repeat;opacity:1;filter:none;mask-image:none}
.hero-copy{display:block;align-self:center;z-index:4;padding:0;min-width:0}
.hero h1{font-size:54px;font-weight:700;line-height:1.32;letter-spacing:.2px;white-space:normal;margin:0}
.hero-intro{display:block;color:#c4d0d3;font-size:17px;line-height:1.7;margin:16px 0 22px}
.hero-actions{display:flex;gap:16px;margin:0}.hero-actions .primary-button,.hero-actions .ghost-button{min-height:46px;padding:11px 26px;font-size:15px;border-radius:6px}
.hero-stats{display:flex;justify-content:flex-start;width:auto;margin:30px 0 0;gap:25px}.hero-stats>div{display:flex;gap:7px;align-items:baseline;padding-right:25px}.hero-stats strong{font-size:30px;line-height:1}.hero-stats small{display:inline;font-size:12px;margin:0}
.hero-art{display:block;position:relative;justify-self:center;width:100%;max-width:750px;height:100%;margin:0;overflow:visible}
.poster-stack{position:relative;width:100%;height:100%;max-width:none;isolation:isolate}
.hero-poster{position:absolute;inset:auto;display:block;padding:0;min-height:0;border:1px solid #afc6ce88;border-radius:3px;overflow:hidden;transform-origin:50% 90%;box-shadow:0 14px 28px #0008;aspect-ratio:2/3;height:auto}
.hero-poster img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 50%;filter:none;transform:none}
.poster-center{width:36%;left:32%;top:0;z-index:3;transform:rotate(-3deg);height:auto}
.poster-left{width:30%;left:5%;top:12%;z-index:1;transform:rotate(6deg);height:auto}
.poster-right{width:30%;right:4%;top:12%;z-index:2;transform:rotate(7deg);height:auto}
.hero-poster>span{position:absolute;bottom:0;left:0;width:100%;font-family:var(--serif);font-size:26px;line-height:1.45;padding:56px 8px 20px;text-align:center;background:linear-gradient(transparent,#08131be8);text-shadow:0 2px 4px #000}
.hero-poster>span:after{display:none}.poster-center>span{font-size:27px}
.year-strip{margin:0 calc(-1 * var(--gutter));padding:6px var(--gutter);gap:28px;min-height:54px;background:#0c151be8;border-block:1px solid #a4c1c02b}
.year-strip h2{font-size:20px;padding-left:17px;white-space:nowrap}.year-shortcuts{gap:17px}.year-strip button{font-size:14px;min-height:38px;padding:6px 16px}
.catalog{display:block;padding-top:24px}.catalog-toolbar{display:flex;align-items:center;gap:30px;margin-bottom:16px}.catalog-heading{display:block;flex:0 0 auto}.catalog-heading h2{font-size:31px;line-height:1.4}.catalog-heading h2:after{margin-top:9px;width:52px}
.search-row{width:auto;max-width:66%;flex:1;gap:12px;margin:0}.searchbox,.picker-trigger{height:44px;min-height:44px;border-radius:6px}.searchbox input{font-size:16px}.picker-trigger{font-size:14px;max-width:none}
.filter-panel{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px 22px;align-items:center}.filter-row{grid-column:1;margin:0}.tabs{gap:9px;flex-wrap:nowrap}.tabs button{min-height:36px;font-size:14px;padding:6px 15px}.tabs button span{font-size:12px}
.genre-row{grid-column:2;padding-left:22px;border-left:1px solid #a3b8be40}.genre-row>div{display:flex;flex-wrap:wrap;gap:7px;overflow:visible;padding:0}.genre{min-height:34px;font-size:13px;padding:5px 14px}
.result-line{margin:8px 0 12px;min-height:22px;font-size:12px;color:#91a6af}#refine-button{font-size:12px;min-height:24px}
.anime-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:30px 22px;align-items:start}.anime-card{background:transparent;border:0;box-shadow:none;animation:none;min-width:0}
.poster{width:100%;height:auto;min-height:0;max-height:none;aspect-ratio:1;border-radius:7px;overflow:hidden;border:1px solid #a9c4ce35}
.poster-open,.poster-open img{display:block;width:100%;height:100%}.poster-open img{object-fit:cover;object-position:center 30%}
.card-title{font-size:21px;line-height:1.4;height:59px;min-height:59px;margin:10px 0 2px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal}
.card-tags{font-size:13px;min-height:22px;line-height:1.6;margin:0}.card-footer{margin:3px 0 0;padding:0;min-height:27px}.portal-link{min-height:27px;font-size:12px}.save-button{width:36px;height:38px;min-height:38px;top:9px;right:9px}.rating-badge{font-size:11px;padding:6px 8px;top:9px;left:9px}.card-index{display:none}
.cinema-mode .hero-backdrop{opacity:.72}
@media(min-width:2200px){:root{--max:2160px;--gutter:46px;--hero-h:485px}.header{height:80px}.hero h1{font-size:64px}.hero-intro{font-size:21px}.hero-art{max-width:870px}.hero-actions .primary-button,.hero-actions .ghost-button{min-height:54px;font-size:18px}.hero-stats strong{font-size:36px}.hero-stats small{font-size:15px}.hero-poster>span,.poster-center>span{font-size:31px}.anime-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:34px 25px}.card-title{font-size:23px;height:65px;min-height:65px}.card-tags,.portal-link{font-size:15px}.catalog-heading h2{font-size:36px}.searchbox,.picker-trigger{height:50px;min-height:50px}.tabs button,.genre{font-size:16px;min-height:40px}.year-strip{min-height:62px}.year-strip h2{font-size:24px}.year-strip button{font-size:17px}.nav-link{font-size:19px}}
@media(min-width:3000px){:root{--max:3000px;--gutter:60px;--hero-h:620px}.header{height:94px}.brand-text{font-size:36px}.brand>small{font-size:15px}.nav-link{font-size:24px}.hero h1{font-size:86px}.hero-intro{font-size:27px;margin:24px 0 30px}.hero-art{max-width:1110px}.hero-actions .primary-button,.hero-actions .ghost-button{font-size:22px;min-height:62px;padding:14px 36px}.hero-stats{margin-top:42px;gap:40px}.hero-stats>div{padding-right:40px;gap:12px}.hero-stats strong{font-size:46px}.hero-stats small{font-size:19px}.hero-poster>span,.poster-center>span{font-size:42px;padding-bottom:30px}.year-strip{min-height:76px}.year-strip h2{font-size:29px}.year-strip button{font-size:22px}.catalog{padding-top:32px}.catalog-toolbar{margin-bottom:24px}.catalog-heading h2{font-size:46px}.searchbox,.picker-trigger{height:62px;min-height:62px}.searchbox input,.picker-trigger{font-size:23px}.tabs button,.genre{font-size:21px;min-height:48px;padding:8px 24px}.tabs button span{font-size:18px}.result-line,#refine-button{font-size:17px}.result-line{margin:12px 0 18px}.anime-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:42px 30px}.card-title{font-size:29px;height:82px;min-height:82px}.card-tags,.portal-link{font-size:18px}.save-button{width:46px;height:48px}.rating-badge{font-size:14px;padding:8px 12px}}
@media(min-width:1101px) and (max-width:1499px){:root{--gutter:28px;--hero-h:340px}.header,main,footer{width:calc(100% - 40px)}.header{height:60px}.brand-text{font-size:24px}.brand>small{font-size:10px;letter-spacing:1px}.hero{grid-template-columns:40% 60%;padding:22px 0 24px}.hero h1{font-size:42px}.hero-intro{font-size:15px;margin:12px 0 18px}.hero-actions .primary-button,.hero-actions .ghost-button{min-height:42px;padding:10px 20px;font-size:13px}.hero-stats{margin-top:23px;gap:18px}.hero-stats>div{padding-right:18px}.hero-stats strong{font-size:27px}.hero-stats small{font-size:11px}.hero-art{max-width:600px}.hero-poster>span,.poster-center>span{font-size:22px;padding-bottom:16px}.year-strip{gap:20px;min-height:50px}.year-strip h2{font-size:18px}.year-strip button{font-size:13px;padding-inline:12px}.year-shortcuts{gap:12px}.catalog{padding-top:20px}.catalog-heading h2{font-size:27px}.catalog-toolbar{gap:20px;margin-bottom:13px}.tabs button{font-size:13px;padding:6px 12px}.genre{font-size:12px;padding:5px 10px}.genre-row{padding-left:16px}.filter-panel{gap:12px 16px}.anime-grid{gap:26px 18px}.card-title{font-size:18px;height:51px;min-height:51px}.card-tags{font-size:12px}}
@media(min-width:701px) and (max-width:1100px){:root{--gutter:24px;--hero-h:292px}.header,main,footer{width:100%}.header{height:64px}.brand-text{font-size:23px}.brand>small{display:none}.header nav{gap:22px}.hero{grid-template-columns:43% 57%;padding:20px 0 24px}.hero h1{font-size:35px}.hero-intro{font-size:13px;margin:10px 0 16px}.hero-actions{gap:10px}.hero-actions .primary-button,.hero-actions .ghost-button{font-size:12px;min-height:40px;padding:9px 14px}.hero-stats{margin-top:20px;gap:13px}.hero-stats>div{padding-right:13px;gap:5px}.hero-stats strong{font-size:24px}.hero-stats small{font-size:10px}.hero-art{max-width:480px}.hero-poster>span,.poster-center>span{font-size:17px;padding:35px 5px 14px}.year-strip{min-height:48px;gap:16px}.year-strip h2{font-size:17px}.year-shortcuts{gap:4px}.year-strip button{font-size:13px;padding:6px 10px}.catalog-toolbar{gap:18px}.catalog-heading h2{font-size:26px}.search-row{max-width:65%}.filter-panel{grid-template-columns:1fr;row-gap:10px}.genre-row{grid-column:1;padding:0;border:0}.anime-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 16px}.card-title{font-size:18px;height:51px;min-height:51px}.card-tags{font-size:12px}}
@media(min-width:701px) and (max-width:850px){:root{--hero-h:250px;--gutter:22px}.hero h1{font-size:29px}.hero-intro{font-size:12px}.hero-actions .primary-button,.hero-actions .ghost-button{font-size:11px;padding:9px 11px}.hero-stats{gap:9px;margin-top:17px}.hero-stats>div{padding-right:9px}.hero-stats strong{font-size:22px}.hero-stats small{font-size:9px}.hero-art{max-width:400px}.hero-poster>span,.poster-center>span{font-size:14px}.catalog-toolbar{flex-wrap:wrap;gap:12px}.search-row{max-width:none;flex-basis:100%}.anime-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){:root{--gutter:18px}.header,main,footer{width:100%;padding-inline:var(--gutter)}.header{height:66px}.header .brand{padding-left:13px}.brand-text{font-size:21px}.brand>small{display:block;font-size:8px;letter-spacing:1.3px}.header nav{display:none}.cinema-toggle{margin-left:auto}.hero{display:flex;flex-direction:column;align-items:stretch;gap:0;height:auto;min-height:0;padding:20px 0 17px}.hero-copy{display:block;align-self:stretch;padding:0}.hero h1{font-size:31px;line-height:1.35;letter-spacing:0}.hero-intro{display:block;font-size:13px;line-height:1.5;margin:8px 0 16px}.hero-actions{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:0}.hero-actions .primary-button,.hero-actions .ghost-button{font-size:13px;min-height:42px;padding:9px 12px}.hero-stats{display:flex;justify-content:space-between;width:100%;gap:0;margin:22px 0 0}.hero-stats>div{display:flex;align-items:baseline;gap:5px;padding-right:14px}.hero-stats strong{font-size:25px}.hero-stats small{display:inline;font-size:10px;margin:0}.hero-art{display:block;align-self:center;width:100%;max-width:370px;height:auto;aspect-ratio:1.78;margin:20px auto 0}.poster-stack{position:absolute;inset:0;width:100%;height:100%}.hero-poster{height:auto;min-height:0;aspect-ratio:2/3}.poster-center{width:35%;left:32%;top:0}.poster-left{width:29%;left:5%;top:12%}.poster-right{width:29%;right:4%;top:12%}.hero-poster>span,.poster-center>span{font-size:14px;line-height:1.35;padding:28px 3px 11px}.hero-backdrop{background:linear-gradient(0deg,#09111655,transparent 36%,#091116 68%),linear-gradient(90deg,#09111690,#09111610),url('assets/hero-garden.webp?rev=b8b9dbed50441609') right bottom/auto 65% no-repeat}.year-strip{min-height:48px;padding:4px var(--gutter);gap:10px}.year-strip h2{font-size:14px;padding-left:10px}.year-strip button{font-size:12px;min-height:38px;padding:5px 8px}.year-shortcuts{gap:1px}.more-years{font-size:0!important;padding-inline:5px!important}.more-years span{font-size:16px}.catalog{padding-top:17px;display:flex;flex-direction:column}.catalog-toolbar{display:contents}.catalog-heading{display:block;order:3;margin:20px 0 12px}.catalog-heading h2{font-size:23px;line-height:1.35}.catalog-heading h2:after{margin-top:7px;width:40px}.search-row{display:flex;order:0;max-width:none;width:100%;flex:none;gap:7px;margin:0 0 15px}.searchbox,.picker-trigger{min-height:42px;height:42px}.searchbox input{font-size:16px}.picker-trigger{font-size:11px;width:67px;max-width:67px;padding:7px}.picker-trigger svg{width:12px}.filter-panel{order:1;display:grid;grid-template-columns:1fr;gap:10px}.filter-row{grid-column:1}.tabs{width:100%;gap:7px}.tabs button{flex:1;min-height:36px;font-size:12px;padding:6px 5px;white-space:nowrap}.tabs button span{font-size:11px}.genre-row{grid-column:1;border:0;padding:0;min-width:0}.genre-row>div{flex-wrap:nowrap;overflow:auto;gap:7px;scrollbar-width:none;padding:0}.genre-row>div::-webkit-scrollbar{display:none}.genre{font-size:12px;min-height:34px;padding:5px 13px;flex-shrink:0}.active-filters{order:2}.result-line{order:4;font-size:11px;min-height:20px;margin:0 0 9px}#refine-button{font-size:11px;min-height:20px}.anime-grid{order:5;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}.empty-state{order:6}.load-row{order:7}.anime-card{border:1px solid #9cb9c629;border-radius:7px;overflow:hidden;background:#0c161c}.poster{height:auto;max-height:none;aspect-ratio:1;width:100%;border:0;border-radius:0}.card-title{font-size:16px;height:45px;min-height:45px;margin:8px 8px 2px}.card-tags{font-size:10px;min-height:19px;margin:0 8px;gap:4px}.card-footer{margin:2px 8px 5px;min-height:26px}.portal-link{font-size:11px;min-height:26px}.save-button{width:34px;height:36px;min-height:36px;top:7px;right:7px}.rating-badge{font-size:9px;padding:5px 6px;top:7px;left:7px}}
@media(max-width:360px){:root{--gutter:14px}.hero h1{font-size:28px}.hero-intro{font-size:12px}.hero-stats{margin-top:18px}.hero-stats strong{font-size:23px}.hero-stats>div{padding-right:10px}.hero-stats small{font-size:9px}.hero-art{margin-top:18px}.hero-poster>span,.poster-center>span{font-size:12px}.year-strip{gap:6px}.year-strip h2{font-size:12px}.year-strip button{font-size:11px;padding-inline:6px}.card-title{font-size:15px}.picker-trigger{width:57px;max-width:57px;font-size:10px}.search-row{gap:5px}}
@media(prefers-reduced-motion:reduce){.hero-poster,.poster-open img{transition:none;animation:none}}


.feature-art{display:block;width:100%;height:100%;background-image:url(assets/feature-grid.webp?rev=bd9dd684b040d217);background-size:200% 200%;background-repeat:no-repeat}.art-209{background-position:0 0}.art-205{background-position:100% 0}.art-206{background-position:0 100%}.art-218{background-position:100% 100%}
@media(max-width:700px){.header{height:60px}.hero{padding:14px 0 12px}.hero h1{font-size:28px;line-height:1.25}.hero-intro{font-size:12px;margin:6px 0 11px}.hero-stats{margin-top:14px}.hero-stats strong{font-size:23px}.hero-art{width:min(100%,290px);height:156px;aspect-ratio:auto;margin-top:12px}.poster-center{width:33%;left:33%}.poster-left,.poster-right{width:28%;top:12%}.hero-poster>span,.poster-center>span{font-size:12px}.year-strip{min-height:44px}.year-shortcuts button:nth-child(n+5){display:none}.catalog{padding-top:14px}.search-row{margin-bottom:10px}.catalog-heading{margin:12px 0 7px}.catalog-heading h2{font-size:21px}.result-line{margin:0 0 7px;min-height:17px}.picker-trigger .control-label{display:inline;font-size:12px}.picker-trigger #year-value,.picker-trigger #sort-value{display:none}.picker-trigger{width:63px;max-width:63px}.hero-stats>div{flex:1;justify-content:center;padding-right:0}.hero-stats>div:first-child{justify-content:flex-start}.hero-stats>div:last-child{justify-content:flex-end}}
@media(max-width:360px){.hero-intro{display:none}.hero-actions{margin-top:12px}.hero-art{height:134px;width:250px;margin-top:10px}.hero h1{font-size:26px}.hero-stats{margin-top:12px}.hero-poster>span,.poster-center>span{font-size:11px}.year-shortcuts button:nth-child(n+4){display:none}.catalog-heading{display:none}.result-line{display:none}.filter-panel{margin-bottom:12px}.picker-trigger{width:56px;max-width:56px}}
/* Desktop proportions measured against the reference, independent of viewport height. */
@media(min-width:1101px){
  .header,main{container-type:inline-size}
  .hero{grid-template-columns:35% 65%;height:auto;aspect-ratio:2.73;min-height:0;padding:10px 0 0;align-items:stretch}
  .hero-copy{align-self:start;padding-top:4.2cqw}
  .hero h1{font-size:clamp(42px,4.4cqw,92px);line-height:1.22}
  .hero-intro{font-size:clamp(15px,1.65cqw,30px);margin:1.2cqw 0 1.8cqw}
  .hero-actions{gap:1.2cqw}
  .hero-actions .primary-button,.hero-actions .ghost-button{font-size:clamp(13px,1.35cqw,25px);min-height:0;padding:.85cqw 2.1cqw}
  .hero-stats{margin-top:2.8cqw;gap:1.9cqw}
  .hero-stats>div{gap:.5cqw;padding-right:1.9cqw}
  .hero-stats strong{font-size:clamp(27px,2.3cqw,44px)}
  .hero-stats small{font-size:clamp(11px,1cqw,19px)}
  .hero-art{justify-self:stretch;width:100%;max-width:none;height:100%;margin:0}
  .poster-center{width:36%;left:31.5%;top:0;transform:rotate(-3deg)}
  .poster-left{width:31%;left:0;top:12%;transform:rotate(5deg)}
  .poster-right{width:31%;right:2%;top:12%;transform:rotate(6deg)}
  .hero-poster>span,.poster-center>span{font-size:clamp(22px,2.15cqw,42px);padding:4cqw .6cqw 1.7cqw}
  .hero-backdrop{background-position:right bottom;background-size:cover}
  .anime-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:30px 1.7cqw}
  .card-title{font-size:clamp(18px,1.65cqw,32px);height:auto;min-height:30px}
  .card-tags{font-size:clamp(12px,1.05cqw,20px)}
  .portal-link{font-size:clamp(12px,.9cqw,17px)}
}
@media(min-width:2200px){:root{--max:1920px;--gutter:64px}.hero-stats>div{padding-right:1.6cqw}.header{height:80px}.brand-text{font-size:31px}.year-strip{min-height:66px}}
@media(min-width:3000px){:root{--max:2160px;--gutter:76px}.header{height:94px}.brand-text{font-size:36px}.catalog{padding-top:28px}.catalog-toolbar{margin-bottom:20px}.catalog-heading h2{font-size:38px}.searchbox,.picker-trigger{height:54px;min-height:54px}.searchbox input,.picker-trigger{font-size:18px}.tabs button,.genre{font-size:17px;min-height:40px;padding:7px 16px}.tabs button span{font-size:14px}.result-line,#refine-button{font-size:14px}.result-line{margin:10px 0 15px}.year-strip{min-height:72px}.year-strip h2{font-size:26px}.year-strip button{font-size:19px}.save-button{width:40px;height:42px}.rating-badge{font-size:12px;padding:7px 9px}}

.year-strip { background: #101c21; }
:root {
  --control-accent: #a4e4dc;
  --control-ink: #102c2d;
  --control-edge: #547477;
  --control-fill: #132429;
}
.hero-actions .primary-button {
  background: linear-gradient(115deg, #b0e8df, #87d5ce);
  color: var(--control-ink);
  box-shadow: inset 0 1px #dcfff454;
}
.hero-actions .ghost-button {
  border: 1px solid var(--control-edge);
  background: var(--control-fill);
  color: #e1ecea;
}
.shuffle-icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero-actions .primary-button, .hero-actions .ghost-button { gap: .65em; white-space: nowrap; }
.hero-actions .ghost-button svg { width: 1.1em; }
.tabs {
  gap: 2px;
  padding: 3px;
  border: 1px solid #78989d43;
  border-radius: 9px;
  background: #0c171d;
}
.tabs button { border: 0; border-radius: 6px; background: transparent; }
.tabs button.active { background: var(--control-accent); color: var(--control-ink); }
.genre { background: transparent; border-color: transparent; color: #b2c1c6; }
.genre:hover, .genre.active { border-color: #78c8c35c; background: #79c9c112; color: #c1ede8; }
.searchbox:focus-within { border-color: #9adbd6; box-shadow: 0 0 0 2px #99dcd425; }
.anime-card:focus-within .poster { outline: 1px solid #8dd6d0; }
@media (hover: hover) {
  .anime-card:hover .card-title { color: #b0e4dd; }
  .anime-card:hover .poster { box-shadow: 0 6px 20px #03090c80; }
}
@media (min-width: 1101px) {
  .hero-copy { align-self: center; padding-top: 0; padding-bottom: 1.6cqw; }
  .hero-intro { color: #c5d3d5; font-size: clamp(15px, 1.35cqw, 25px); }
  .genre-row { padding-left: 14px; }
  .genre { padding-inline: clamp(8px, .75vw, 16px); }
  .card-title { margin-top: 12px; }
}
@media (max-width: 700px) {
  .hero { padding-top: 19px; padding-bottom: 17px; }
  .hero-stats { margin-top: 16px; }
  .hero-stats small { color: #d4dcda; }
  .tabs { width: 100%; }
  .tabs button { flex: 1; min-width: 0; }
  .genre-row { margin-top: 3px; }
  .genre-row > div { padding-block: 2px; }
  .genre { padding-inline: 9px; }
  .searchbox input { font-size: 16px; min-width: 0; }
  .year-strip .more-years { margin-left: auto; min-width: 30px; }
}

.hero {
  grid-template-columns: 35% 65%;
  height: auto;
  aspect-ratio: auto;
  padding-block: 0;
}
.hero-copy { position: relative; z-index: 1; }
.catalog {
  background: linear-gradient(#142027, #101a20 65rem);
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
}
.cinema-mode .catalog { background: #080f13; }
@media (min-width: 1101px) {
  .hero h1 { font-size: clamp(42px, 4.2cqw, 88px); }
  .hero-copy { padding-bottom: 1.5cqw; }
}
@media (min-width: 701px) and (max-width: 1100px) {
  .hero { grid-template-columns: 40% 60%; min-height: 240px; }
  .hero-copy { padding-block: 18px; }
}
@media (max-width: 700px) {
  .hero { padding-top: 16px; }
  .hero-copy { display: flex; flex-direction: column; }
  .hero-copy h1 { order: 0; }
  .hero-intro { display: none; }
  .hero-stats {
    order: 1;
    width: auto;
    justify-content: flex-start;
    gap: 0;
    margin: 9px 0 8px;
  }
  .hero .hero-stats > div {
    flex: none;
    justify-content: flex-start;
    gap: .25em;
    border: 0;
    padding: 0;
  }
  .hero-stats > div + div::before { content: '·'; margin: 0 .5em; color: #8a9b9d; }
  .hero-stats strong, .hero-stats small { font-weight: 500; font-family: inherit; font-size: 13px; line-height: 1.5; color: #c6d4d5; }
  .hero-actions { order: 2; display: flex; align-items: center; gap: 8px; margin: 0; }
  .hero-actions .primary-button, .hero-actions .ghost-button { min-height: 42px; }
  .hero-actions .primary-button { padding-inline: 20px; }
  .feature-triptych { width: min(calc(100% + 2 * var(--gutter)), 530px); align-self: center; margin-top: 8px; }

}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Keep artwork, title and metadata together when neighboring titles wrap. */
.anime-grid { align-items: stretch; }
.anime-card { display: flex; flex-direction: column; }
.anime-card .poster { flex: none; }
.anime-card .card-title {
  height: auto;
  min-height: 0;
  line-height: 1.45;
  margin-bottom: 4px;
  text-align: start;
}
.anime-card .card-tags { margin-top: auto; line-height: 1.65; color: #becdd0; }
.card-footer .portal-link { justify-content: flex-start; gap: .45em; }
@media (min-width: 701px) {
  .anime-grid { row-gap: clamp(28px, 2.5vw, 48px); }
  .card-footer .portal-link { min-height: 30px; font-size: clamp(13px, .95vw, 17px); }
}
@media (max-width: 700px) {
  .anime-grid { gap: 22px 12px; }
  .anime-card { background: #101b22; border-color: #829ba426; padding-bottom: 2px; }
  .anime-card .card-title, .anime-card .card-tags, .anime-card .card-footer { margin-inline: 9px; width: calc(100% - 18px); }
  .anime-card .card-title { margin-top: 10px; font-size: 16px; }
  .anime-card .card-tags { font-size: 12px; }
  .card-footer .portal-link { min-height: 34px; font-size: 12px; }
  .save-button::after { content: ''; position: absolute; inset: -4px -5px; }
  .mobile-dock { grid-template-columns: repeat(4, minmax(0, 1fr)); background: #0b181ef5; }
  .mobile-dock button { position: relative; }
  .mobile-dock button.active { color: var(--control-accent); }
  .mobile-dock button.active::before {
    content: ''; position: absolute; top: -5px; width: 26px; height: 2px;
    background: currentColor; border-radius: 0 0 2px 2px;
  }
  #back-top { display: none; }
}

.header { height: auto; min-height: 76px; padding-block: 12px; }
.archive-identity { min-width: 0; flex: 1; border-left: 2px solid #80d0cd; padding-left: 15px; }
.header .archive-identity .brand { width: fit-content; margin: 0; padding: 0; border: 0; }
.header .archive-identity .brand::before { display: none; }
.archive-caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 5px 0 0; font: 400 12px/1.55 system-ui,"Microsoft YaHei",sans-serif; color: #afc0c3; }
#archive-years { white-space: nowrap; color: #c1d0d1; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .header { gap: 8px; padding-block: 11px; align-items: flex-start; }
  .archive-identity { padding-left: 10px; }
  .archive-caption { display: grid; margin-top: 4px; gap: 2px; }
  .header .cinema-toggle { flex-shrink: 0; }
}
/* Each cover is its own image, caption and interactive surface. */
.feature-triptych {
  position:relative; isolation:isolate; width:calc(100% + var(--gutter));
  aspect-ratio:959/504; align-self:end; container-type:inline-size;
}
.feature-link {
  --lift:0px; position:absolute; display:block; padding:0; overflow:hidden;
  color:#fff7e8; border:1px solid #d2e6e277; border-radius:2px;
  background:#101a24; box-shadow:0 6px 16px #02090eb3;
  transform:translateY(var(--lift)) rotate(var(--angle));
  transition:transform .4s ease,box-shadow .4s ease; transform-origin:50% 86%;
}
.feature-link img { width:100%;height:100%;display:block;object-fit:cover; }
.feature-comet {left:4.5%;top:13%;width:30.5%;height:80%;--angle:-6deg;z-index:1}
.feature-neon {right:5%;top:13%;width:31%;height:80%;--angle:6deg;z-index:1}
.feature-frieren {left:30.4%;top:4.5%;width:37.5%;height:91%;--angle:-2.5deg;z-index:2}
.scene-name { position:absolute; z-index:2; inset:auto 0 0; padding:23% 3% 7%;
  font:600 clamp(12px,2.75cqw,44px)/1.22 var(--serif);text-align:center;
  background:linear-gradient(transparent,#091018a3 53%,#091018ec); text-shadow:0 2px 6px #08101b; }
.feature-frieren .scene-name {font-size:clamp(14px,3.3cqw,50px)}
.scene-name::after {content:'';display:block;width:35%;height:1px;margin:5% auto 0;background:linear-gradient(90deg,transparent,#fff5ddbb,transparent)}
.feature-link:focus-visible {outline:3px solid #9df3e6;outline-offset:2px;z-index:4}
.scene-fx,.scene-fx::before,.scene-fx::after {pointer-events:none;position:absolute}
.scene-fx {inset:0;overflow:hidden}
.scene-fx::before,.scene-fx::after {content:'';opacity:0}
.feature-comet .scene-fx::before {width:32%;height:2px;top:18%;left:65%;background:linear-gradient(90deg,#f0fbff,#afeaff88 30%,transparent);border-radius:50%;filter:drop-shadow(0 0 3px #85deff);transform:rotate(-37deg)}
.feature-frieren .scene-fx::before,.feature-frieren .scene-fx::after {width:5px;height:5px;border-radius:50% 15%;background:#ffe8a6;box-shadow:3.8cqw 2.6cqw 2px -1px #ffe6b3,-4cqw -4cqw 1px -1px #fff3c4;left:22%;top:66%}
.feature-frieren .scene-fx::after {left:68%;top:86%;width:4px;height:4px}
.feature-neon .scene-fx::before {inset:0;background:linear-gradient(111deg,transparent 48%,#9df3ff22 55%,#cb8cff28 60%,transparent 68%);transform:translateX(-80%)}
@keyframes comet-cross {0%,12%,100%{opacity:0;transform:translate(20%,-15%) rotate(-37deg)}17%{opacity:.88}29%,99%{opacity:0;transform:translate(-175%,18cqw) rotate(-37deg)}}
@keyframes garden-light {0%,100%{opacity:0;transform:translate(0,0) rotate(0)}35%{opacity:.75}85%{opacity:0;transform:translate(5cqw,-10cqw) rotate(95deg)}}
@keyframes neon-reflection {0%,36%,100%{opacity:0;transform:translateX(-90%)}53%{opacity:.8}72%,99%{opacity:0;transform:translateX(80%)}}
@media(prefers-reduced-motion:no-preference){
 .scene-playing .feature-comet .scene-fx::before{animation:comet-cross 8s ease-out infinite}
 .scene-playing .feature-frieren .scene-fx::before,.scene-playing .feature-frieren .scene-fx::after{animation:garden-light 7s ease-in-out infinite}
 .scene-playing .feature-frieren .scene-fx::after{animation-delay:-3s}
 .scene-playing .feature-neon .scene-fx::before{animation:neon-reflection 9s ease-in-out infinite}
}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 .feature-link:hover {--lift:-5px;box-shadow:0 10px 24px #040b13c9;border-color:#cbe6dd}
}
@media(prefers-reduced-motion:reduce){.feature-link{transition:none}}
@media(max-width:700px){
 .feature-triptych {width:min(calc(100% + 2 * var(--gutter)),530px);align-self:center}
}
.feature-comet img { transform:scale(1.16);transform-origin:50% 82%; }
/* Keep the native scrollbar accessible in a narrow desktop window. */
@media (pointer: fine) and (forced-colors: none) {
  html, dialog { scrollbar-width: thin; scrollbar-color: #57747b #0d181e; }
}

.genre-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
#genres { flex: 0 1 auto; min-width: 0; width: auto; }
#other-genres {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .55em;
  max-width: 10em;
  min-height: 36px;
  padding-inline: .68em;
  border: 1px solid #56747a;
  border-radius: 8px;
  color: #d6e6e6;
  background: #132329;
  font-family: inherit;
  cursor: pointer;
}
#other-genres[hidden] { display: none; }
#genre-value { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#other-genres .down-chevron { flex: none; }
#other-genres[aria-expanded=true] .down-chevron { transform: translateY(.12rem) rotate(225deg); }
#other-genres.active { border-color: var(--control-accent); color: var(--control-accent); }
.year-strip .more-years { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; }
.year-strip .more-years span { margin: 0; font: inherit; }
.down-chevron {
  width: .48rem; height: .48rem;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: translateY(-.12rem) rotate(45deg);
}
.active-filters button { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .hero-actions { gap: 10px; }
  .hero-actions .primary-button, .hero-actions .ghost-button { min-height: 44px; }
  .year-strip .more-years {
    width: auto; min-width: 48px; min-height: 40px;
    border-radius: 7px; color: #c2d9d9; gap: 5px;
  }
  .year-strip .more-years .year-more-label { font-size: 12px; }
  .year-strip .more-years .year-word { display: none; }
  .genre-row { gap: 8px; }
  #genres {
    flex: 1 1 0;
    overscroll-behavior-x: contain;
    padding-inline-end: 12px;
  }
  @media (forced-colors: none) {
    #genres { mask-image: linear-gradient(to right, #000 calc(100% - 10px), transparent); }
  }
  #genres .genre:focus-visible { outline-offset: -2px; }
  #other-genres { width: 6.4em; min-height: 40px; font-size: 12px; }
  .picker-trigger:focus-visible, .tabs button:focus-visible { outline-offset: -2px; }
}
@media (hover: hover) and (pointer: fine) {
  .hero-actions .primary-button:hover { background: #b6efe5; }
  .hero-actions .ghost-button:hover { color: #eafaf6; border-color: #8cbab7; background: #1b3236; }
  .tabs button:not(.active):hover, .year-strip .more-years:hover { color: #d5f4ef; background: #1c3035; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-actions > * { transition: transform .16s ease-out, box-shadow .16s ease-out, background-color .16s ease-out; }
  .hero-actions > :active { transform: translateY(1px); }
  .hero-actions .primary-button span { transition: transform .16s ease-out; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-actions .primary-button:hover span { transform: translate(2px, -2px); }
}

.rule-trigger, .catalog-total { display: none; }
#archive-rule {
  inset: auto; margin: 0; width: min(270px, calc(100% - 32px));
  padding: 12px 15px; color: #deebe8; background: #14252b;
  border: 1px solid #617d82; border-radius: 9px; box-shadow: 0 8px 28px #060d1480;
  font: 14px/1.65 system-ui, "Microsoft YaHei", sans-serif;
}
@supports not (position-area: bottom) {
  #archive-rule { top: 70px; left: var(--gutter); }
}
@supports (position-area: bottom) {
  #archive-rule { position-area: bottom span-right; margin-block-start: 5px; }
}

.hero-backdrop { background: #122332; overflow: hidden; container-type: size; pointer-events: none; }
.station-paint { position: absolute; width: max(100cqw, 300cqh); aspect-ratio: 3; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.station-paint img { display: block; width: 100%; height: auto; }
.hero-backdrop::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #071018cc, #0a17248c 28%, #0b16221a 53%, transparent 70%), linear-gradient(0deg, #09151c4a, transparent 22%);
}
.station-lamp { position: absolute; left: 21.23%; top: 49.65%; width: 3.2%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, #ffdf9360, #ffbc5533 45%, transparent); }
.meadow-lights { position: absolute; inset: auto 0 0; height: 24%; overflow: hidden; z-index: 1; }
.meadow-lights i { position: absolute; bottom: 12%; width: 3px; height: 3px; border-radius: 50%; opacity: 0; background: #ffdda0; box-shadow: 0 0 6px #ffc785; }
.meadow-lights i:nth-child(1) { left: 5%; --delay: -1.2s; }
.meadow-lights i:nth-child(2) { left: 17%; --delay: -5.1s; }
.meadow-lights i:nth-child(3) { left: 33%; --delay: -3s; }
.meadow-lights i:nth-child(4) { left: 49%; --delay: -6.8s; }
.meadow-lights i:nth-child(5) { left: 88%; --delay: -2.4s; }
@keyframes station-glow { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes meadow-glimmer { 0%,100% { opacity: 0; transform: translate(0,6px); } 30%,65% { opacity: .73; } 90% { opacity: 0; transform: translate(16px,-24px); } }
@media (prefers-reduced-motion: no-preference) {
  .scene-playing .station-lamp { animation: station-glow 7s ease-in-out infinite; }
  .scene-playing .meadow-lights i { animation: meadow-glimmer 8s ease-in-out infinite; animation-delay: var(--delay); }
}
.feature-triptych { width: 97%; justify-self: center; align-self: center; margin-block: 14px 24px; }
.feature-link {
  --depth: .6;
  transform: translate(calc(var(--depth-x, 0px) * var(--depth)), calc(var(--lift) + var(--depth-y, 0px) * var(--depth))) rotate(var(--angle));
}
.feature-frieren { --depth: 1; }
.hero-actions .ghost-button { background-color: #102329db; }

.anime-card .poster { aspect-ratio: 1.18; }
.poster-open { position: relative; container-type: size; }
.poster-open .feature-art {
  position: absolute; left: 50%; top: var(--focus-y);
  width: max(100cqw,100cqh); aspect-ratio: 1; height: auto;
  transform: translate(-50%, calc(-1 * var(--focus-y)));
}
.art-209 { --focus-y: 24%; }
.art-205 { --focus-y: 18%; }
.art-206 { --focus-y: 28%; }
.art-218 { --focus-y: 14%; }
.poster-open img[src*="feature-frieren.webp"] { object-position: 50% 17%; }

@media (max-width: 700px) {
  .header { min-height: 0; padding-block: 8px; align-items: center; }
  .archive-caption { display: flex; gap: 9px; align-items: center; margin-top: 2px; }
  .rule-inline { display: none; }
  .rule-trigger {
    display: inline-flex; align-items: center; min-height: 26px; padding: 0 4px;
    border: 0; background: transparent; color: #b6d8d3; font: inherit; cursor: pointer;
    text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #678c8f;
  }
  .station-paint { left: 0; transform: translate(clamp(calc(100cqw - 100%), -9%, 0px), -50%); }
  .hero-backdrop::after { background: linear-gradient(100deg, #08131bb0, transparent 80%), linear-gradient(180deg, #09162288, transparent 63%, #07131e35); }
  .hero { padding-top: 12px; }
  .hero-stats { margin-block: 7px; }
  .feature-triptych { width: min(calc(100% + var(--gutter)), 515px); margin: 8px 0 10px; }
  .catalog { padding-top: 14px; }
  .catalog-heading { display: block; order: -1; margin: 0 0 10px; }
  .catalog-heading > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  .catalog-heading h2 { margin: 0; }
  .catalog-heading h2::after { display: none; }
  .catalog-total { display: inline; color: #b4cbcd; font: 13px/1.4 system-ui, "Microsoft YaHei", sans-serif; }
  .catalog-total #heading-count { display: inline; color: #a6dfd9; font-weight: 650; font-variant-numeric: tabular-nums; }
  .search-row { margin-bottom: 7px; }
  .filter-panel { margin-bottom: 8px; row-gap: 4px; }
  .genre-row { margin: 0; }
  .active-filters:not([hidden]) { margin: 0 0 9px; }
  .result-line { position: absolute; display: block; width: 1px; height: 1px; min-height: 0; overflow: hidden; clip-path: inset(50%); margin: 0; }
  #refine-button { display: none; }
}
@media (min-width: 701px) { #archive-rule { display: none; } }

@media (max-width: 700px) {
  /* The toolbar and bottom navigation both open the full year list. */
  .year-strip { display: none; }
  .catalog { border-top: 1px solid #8aa9ad38; }
  #year.has-value .control-label { display: none; }
  #year.has-value #year-value { display: inline; font-size: 11px; }
}
#mobile-filters { display: none; }
#catalog-title b { font: inherit; }
.catalog-short-title { display: none; }
#picker-pair { display: contents; }
.second-genre { font-style: normal; }

@media (max-width: 700px) {
  :root { --gutter: clamp(12px, 3.5vw, 18px); }
  .header { padding-block: 5px; }
  .header .archive-identity { padding-left: 9px; }
  .header .brand-text { font-size: 20px; line-height: 1.22; }
  .archive-caption { gap: 7px; margin-top: 1px; font-size: 11px; }
  .rule-trigger { min-height: 24px; }
  .hero { padding-block: 10px 0; }
  .hero-copy {
    display: grid; grid-template-columns: minmax(0,1fr) auto;
    grid-template-areas: "headline actions" "stats actions";
    align-items: center; gap: 5px 10px;
  }
  .hero-copy h1 { grid-area: headline; font-size: clamp(20px, 5.3vw, 25px); line-height: 1.23; }
  .hero-copy .hero-actions {
    grid-area: actions; display: grid; grid-template-columns: 1fr;
    gap: 0; align-self: center; margin: 0;
  }
  .hero-actions .primary-button, .hero-actions .ghost-button {
    position: relative; padding: 3px 9px; min-height: 31px; border-radius: 5px;
    font: 600 12px/1.2 system-ui, "Microsoft YaHei", sans-serif; gap: 6px;
  }
  .hero-actions .primary-button span { font-size: 14px; }
  .hero-actions .primary-button { color: #c6eae5; border: 1px solid #97c6c258; background: #15303ace; box-shadow: none; }
  .hero-actions .ghost-button { border-color: transparent; background: transparent; color: #c3d5d7; font-weight: 500; }
  .hero-actions .ghost-button svg { width: 13px; }
  .hero-actions .primary-button:hover { color: #eefbf7; background: #20414b; }
  .hero-copy .hero-stats {
    grid-area: stats; align-items: baseline; gap: 12px; margin: 0;
    color: #d1dfe1; font: 500 11px/18px system-ui, "Microsoft YaHei", sans-serif;
    font-variant-numeric: lining-nums tabular-nums;
  }
  .hero .hero-stats > div { position: relative; align-items: baseline; gap: 2px; }
  .hero-stats strong, .hero-stats small { font: inherit; color: inherit; }
  .hero-stats > div + div::before {
    content: ""; position: absolute; left: -7px; top: 50%; width: 2px; height: 2px;
    margin: -1px 0 0; border-radius: 50%; background: #a1b6bc;
  }
  .feature-triptych {
    width: min(calc(100% + var(--gutter)), 420px, 52svh); margin: 5px 0 4px;
  }

  .catalog { padding-top: 10px; background: #142027; }
  .catalog-toolbar {
    display: grid; grid-template-columns: minmax(max-content, 1fr) minmax(0, 92px) max-content;
    align-items: baseline; gap: 4px 12px; margin: 0 0 2px;
  }
  .catalog-heading { grid-area: 1 / 1; margin: 0; }
  .catalog-heading > div { justify-content: flex-start; align-items: baseline; gap: 5px; }
  .catalog-heading h2 { font: 650 17px/1.35 system-ui, "Microsoft YaHei", sans-serif; letter-spacing: .015em; white-space: nowrap; }
  .catalog-full-title { display: none; }
  .catalog-short-title { display: inline; }
  .catalog-total { font-size: 12px; color: #b6c5ca; white-space: nowrap; }
  .catalog-total #heading-count { color: inherit; font-weight: 500; }
  .search-row { display: contents; }
  .search-row .searchbox, #mobile-filters {
    position: relative; min-height: 36px; height: 36px; padding: 0 0 0 20px;
    color: #c2d3d6; background: transparent; border: 0; border-radius: 0; box-shadow: none;
  }
  .search-row .searchbox { grid-area: 1 / 2; width: 100%; min-width: 0; }
  .search-row .searchbox svg, #mobile-filters svg {
    position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 15px; height: 15px; color: inherit;
  }
  .searchbox input {
    height: 100%; padding: 0; margin: 0; appearance: none;
    font: 400 16px/20px system-ui, "Microsoft YaHei", sans-serif; caret-color: var(--control-accent);
  }
  .searchbox input::placeholder { font-size: 13px; color: #b9cdd0; opacity: 1; }
  .search-row .searchbox:focus-within { color: var(--control-accent); box-shadow: inset 0 -2px currentColor; }
  .catalog-toolbar:has(.searchbox:focus-within) { grid-template-columns: minmax(0,1fr) auto; }
  .catalog-toolbar:has(.searchbox:focus-within) .catalog-heading { display: none; }
  .catalog-toolbar:has(.searchbox:focus-within) .searchbox { grid-area: 1 / 1; }
  .catalog-toolbar:has(.searchbox:focus-within) #mobile-filters { grid-area: 1 / 2; }
  #mobile-filters {
    grid-area: 1 / 3; display: block; white-space: nowrap;
    font: 500 13px/36px system-ui, "Microsoft YaHei", sans-serif;
  }
  #mobile-filters svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
  #mobile-filters[aria-expanded="true"] { color: var(--control-accent); box-shadow: inset 0 -2px currentColor; }
  #mobile-filters b:not([hidden]) { margin-inline-start: 3px; font-variant-numeric: tabular-nums; }
  #picker-pair, .catalog:not(.filters-open) .genre-row { display: none; }
  .filters-open #picker-pair { display: flex; grid-column: 1/-1; grid-row: 2; gap: 7px; margin: 3px 0; }
  #picker-pair .picker-trigger { flex: 1; width: auto; max-width: none; min-height: 36px; height: 36px; justify-content: space-between; padding: 5px 9px; }
  #picker-pair .control-label { display: none; }
  #picker-pair :is(#year-value,#sort-value) { display: inline; font-size: 12px; }
  .filter-panel { display: flex; flex-direction: column; align-items: stretch; gap: 3px; margin-bottom: 8px; }
  .filter-row { gap: 0; }
  .tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 0; gap: 2px; border: 0; border-radius: 0; border-bottom: 1px solid #8aa1a735; background: transparent; }
  .tabs button {
    position: relative; min-height: 34px; padding: 3px 0; border-radius: 0; color: #b4c4c6;
    font: 500 12px/1.3 system-ui, "Microsoft YaHei", sans-serif;
  }
  .tabs button.active { color: #a8e8df; background: transparent; }
  .tabs button.active::after { content: ""; position: absolute; bottom: -1px; left: 27%; right: 27%; height: 2px; background: #9ee2d7; }
  .tabs :is([data-mode="all"], [data-catalog-mode="all"]) span, .tabs .zero-count { display: none; }
  .tabs button span { font: 500 10px/1.2 system-ui, sans-serif; color: inherit; font-variant-numeric: tabular-nums; margin-left: 2px; }
  .filters-open .genre-row { display: flex; }
  .active-filters:not([hidden]) { margin-bottom: 6px; }

  .anime-grid { gap: 13px 8px; }
  .anime-card {
    display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: auto 1fr auto;
    align-content: start; align-items: start; padding: 0;
    background: transparent; border: 0; border-radius: 0; overflow: visible;
  }
  .anime-card .poster { grid-column: 1/-1; aspect-ratio: 1.05; width: 100%; border-radius: 6px; border: 1px solid #a0b3bf38; }
  .anime-card .card-title {
    grid-column: 1/-1; margin: 5px 0 0; width: 100%; min-height: 0;
    font: 600 13px/1.48 system-ui, "Microsoft YaHei", sans-serif; letter-spacing: 0;
    color: #eef0e9;
  }
  .anime-card .card-tags {
    grid-column: 1; align-self: center; align-items: center; gap: 3px;
    margin: 0; min-height: 0; width: 100%; overflow: hidden;
    color: #acbfc2; font: 400 11px/1.25 system-ui, "Microsoft YaHei", sans-serif;
  }
  .card-tags span + span::before { margin-right: 3px; }
  .second-genre { display: none; }
  .anime-card .card-footer { grid-column: 2; align-self: center; width: auto; margin: 0; min-height: 0; }
  .card-footer .portal-link { min-height: 24px; min-width: 24px; padding: 0; justify-content: center; gap: 0; font-size: 0; }
  .card-footer .portal-link span { font-size: 13px; color: #a3bdbf; }
  .card-footer .portal-link.disabled { display: none; }
  .anime-card .rating-badge { top: 5px; left: 5px; padding: 3px 5px; font: 650 10px/1.25 system-ui, sans-serif; }
  .anime-card .rating-badge:not(.caution) { background: #092026db; color: #c8eee3; text-shadow: none; }
  .anime-card .rating-badge.caution { background: #2b2118eb; color: #f0d2a6; }
  .badge-prefix { display: none; }
  .anime-card .save-button { top: 4px; right: 4px; width: 25px; height: 27px; min-height: 27px; color: #f3f8f6; background: #0c1921a3; border: 0; border-radius: 4px; }
  .anime-card .save-button.saved { color: #a4eee1; background: #0d3031eb; }
  .save-button svg { width: 14px; height: 16px; }
  .mobile-dock { padding: 3px 12px calc(3px + env(safe-area-inset-bottom)); }
  .mobile-dock button { min-height: 44px; padding: 2px; gap: 1px; font: 500 11px/1.2 system-ui, sans-serif; }
  .mobile-dock svg { width: 20px; height: 20px; }
  .mobile-dock button.active::before { top: -3px; }
}
@media (max-width: 579px) {
  .hero-copy { grid-template-areas: "headline browse" "stats random"; row-gap: 0; }
  .hero-copy .hero-actions { display: contents; }
  .hero-actions .primary-button { grid-area: browse; }
  .hero-actions #random-pick { grid-area: random; }
}
@media (min-width: 350px) and (max-width: 700px) {
  .anime-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (min-width: 580px) and (max-width: 700px) {
  .anime-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .hero {
    display: grid; grid-template-columns: 42% 58%;
    align-items: center; gap: 0; min-height: 180px;
  }
  .hero-copy { display: flex; justify-content: center; align-items: flex-start; gap: 6px; padding: 8px 0; }
  .hero-copy .hero-actions { display: flex; gap: 5px; align-self: start; }
  .feature-triptych { width: 100%; margin: 4px 0; }
}

@media (min-width:701px) and (max-width:960px) {
  .genre-row { align-items:flex-start; }
}
@media (max-width:700px) and (pointer:coarse) {
  /* Grow toward the poster interior so the touch target stays inside its card. */
  .anime-card .save-button::after { inset:-4px -4px -13px -15px; }
}

/* Tailored cover crop focal points so faces and key visual motifs are never sliced. */
.poster-open[data-open="227"] img { object-position: center 4%; }
.poster-open[data-open="228"] img { object-position: center 22%; }
.poster-open[data-open="230"] img { object-position: center 46%; }
.poster-open[data-open="231"] img { object-position: center 6%; }
.poster-open[data-open="232"] img { object-position: center 22%; }
.poster-open[data-open="233"] img { object-position: center 14%; }
.poster-open[data-open="234"] img { object-position: center 15%; }
.poster-open[data-open="235"] img { object-position: center 14%; }
.poster-open[data-open="236"] img { object-position: center 18%; }
.poster-open[data-open="237"] img { object-position: center 36%; }

/* Subtle watched badge and year milestone marker on catalog cards. */
.watched-pill {
  display: inline-flex; align-items: center; padding: 1px 6px;
  border-radius: 4px; background: #81dce418; border: 1px solid #81dce44d;
  color: #a4e8df; font-size: 11px; line-height: 1.35;
}
.anime-card[data-year-milestone] .poster::before {
  content: attr(data-year-milestone);
  position: absolute; bottom: 8px; left: 8px; z-index: 2; pointer-events: none;
  padding: 2px 8px; border-radius: 4px; background: #09171ee6;
  border: 1px solid #e4c68d80; color: #edd39c;
  font: 600 11px/1.35 system-ui, "Microsoft YaHei", sans-serif;
  box-shadow: 0 2px 8px #0008;
}

/* Personal archive shelf bar inside '我的想看' mode. */
.archive-shelf-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 10px 16px; margin: 10px 0 14px; padding: 10px 14px;
  border: 1px solid #58787d4d; border-radius: 10px;
  background: linear-gradient(115deg, #13242b, #0f1c22);
}
.archive-shelf-bar[hidden] { display: none !important; }
.shelf-views, .shelf-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.shelf-views button, .shelf-tools button {
  min-height: 32px; padding: 4px 11px; border: 1px solid #4a666b; border-radius: 6px;
  background: #102026; color: #c4d7d9; font: 500 12px/1.3 system-ui, sans-serif; cursor: pointer;
}
.shelf-views button.active {
  background: var(--control-accent); color: var(--control-ink);
  border-color: transparent; font-weight: 600;
}
.shelf-views button b { margin-left: 3px; font-variant-numeric: tabular-nums; }
.shelf-progress {
  display: flex; align-items: center; gap: 10px; flex: 1 1 200px; max-width: 340px;
  color: #bfd2d4; font: 500 12px/1.35 system-ui, sans-serif;
}
.shelf-progress b { color: var(--control-accent); font-variant-numeric: tabular-nums; }
.shelf-meter {
  flex: 1; height: 6px; border-radius: 99px; background: #0b161b;
  border: 1px solid #3f585d; overflow: hidden; display: block;
}
.shelf-meter em {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #7fd5ce, #e4c68d); transition: width .3s ease;
}
@media (max-width: 700px) {
  .watched-pill { font-size: 10px; padding: 0 4px; }
  .anime-card[data-year-milestone] .poster::before { bottom: 5px; left: 5px; font-size: 10px; padding: 1px 6px; }
  .archive-shelf-bar { padding: 9px 10px; gap: 8px; margin: 4px 0 10px; }
  .shelf-progress { flex-basis: 100%; max-width: none; order: 3; }
}

/* 1. Hero Curation Switcher & Triptych C-Position Spotlight Interaction */
.hero-curation {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px;
  margin-top: clamp(10px, 1.1cqw, 18px); padding: 3px 5px;
  border: 1px solid #6b8d9245; border-radius: 99px;
  background: #0b181ed9; backdrop-filter: blur(8px);
}
@media (min-width: 1101px) {
  .hero-intro { margin: .85cqw 0 1.25cqw; }
  .hero-stats { margin-top: 1.75cqw; }
  .hero-copy { padding-bottom: .8cqw; }
}
.curation-label {
  padding: 0 4px 0 6px; color: #9ab3b6;
  font: 600 11px/1 system-ui, "Microsoft YaHei", sans-serif; letter-spacing: .04em;
}
.curation-pill, .curation-cycle {
  min-height: 25px; padding: 2px 8.5px; border: 1px solid transparent; border-radius: 99px;
  background: transparent; color: #c4d7d8; white-space: nowrap;
  font: 500 11.5px/1.3 system-ui, "Microsoft YaHei", sans-serif; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .18s;
}
.curation-pill:hover, .curation-cycle:hover { color: #eefaf7; background: #193138; }
.curation-pill.active {
  background: linear-gradient(120deg, #a6e9df28, #e4c68d24);
  border-color: #9de4da80; color: #c9f7ef; font-weight: 600;
}
.curation-cycle {
  border-color: #e4c68d66; color: #efd6a1; background: #1a282699;
}
.feature-triptych .feature-link {
  container-type: size;
  border-radius: 7px;
  border: 1.5px solid #d2e6e277;
  transition:
    left .5s cubic-bezier(.22, 1, .36, 1),
    top .5s cubic-bezier(.22, 1, .36, 1),
    width .5s cubic-bezier(.22, 1, .36, 1),
    height .5s cubic-bezier(.22, 1, .36, 1),
    transform .45s cubic-bezier(.22, 1, .36, 1),
    box-shadow .35s ease,
    border-color .35s ease,
    filter .35s ease !important;
}
.feature-triptych .feature-link[data-pos="left"] {
  left: 4.5%; right: auto; top: 13%; width: 30.5%; height: 80%;
  --angle: -6deg; --depth: .6; z-index: 1;
  filter: brightness(.88) saturate(.94);
}
.feature-triptych .feature-link[data-pos="right"] {
  left: 64.5%; right: auto; top: 13%; width: 31%; height: 80%;
  --angle: 6deg; --depth: .6; z-index: 1;
  filter: brightness(.88) saturate(.94);
}
.feature-triptych .feature-link[data-pos="center"] {
  left: 30.4%; right: auto; top: 4.5%; width: 37.5%; height: 91%;
  --angle: -1.8deg; --depth: 1; z-index: 3;
  border-color: #e4c68dcc;
  box-shadow: 0 22px 48px #020810e6, 0 0 28px #e4c68d38, inset 0 0 0 1px #fff4d433;
  filter: none;
}
.feature-triptych .feature-link[data-pos="center"]::after {
  content: ""; position: absolute; inset: 6px; z-index: 3; pointer-events: none;
  border: 1px solid #e4c68d52; border-radius: 4px;
}
.scene-badge, .scene-direct {
  position: absolute; top: 10px; z-index: 4;
  padding: 3px 9px; border-radius: 99px;
  font: 600 clamp(9.5px, .82cqw, 12px)/1.3 system-ui, "Microsoft YaHei", sans-serif;
  letter-spacing: .03em; backdrop-filter: blur(6px);
  transition: background-color .22s, color .22s, border-color .22s, transform .2s;
}
.scene-badge {
  left: 10px; pointer-events: none;
  background: #0a1820cc; border: 1px solid #9be3db59; color: #c7ece7;
}
.feature-link[data-pos="center"] .scene-badge {
  background: linear-gradient(125deg, #27342be6, #14252be6);
  border-color: #e4c68dcc; color: #f6dfa8;
  box-shadow: 0 4px 12px #0008, 0 0 12px #e4c68d33;
}
.scene-direct {
  right: 10px;
  background: #0b1921cc; border: 1px solid #ffffff38; color: #e8f5f3;
}
.scene-direct:hover {
  background: var(--control-accent); color: var(--control-ink); border-color: transparent;
}
.feature-triptych .scene-name {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 25% 4% 6.5%;
}
.scene-title-text { font: inherit; color: inherit; }
.scene-sub {
  display: block; max-width: 96%;
  font: 500 clamp(9.5px, .92cqw, 12.5px)/1.3 system-ui, "Microsoft YaHei", sans-serif;
  color: #cbe3e0; letter-spacing: .01em; text-shadow: 0 1px 4px #000;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: .92;
}
.feature-link[data-pos="center"] .scene-sub { color: #f3dba5; font-weight: 600; }
.feature-triptych .feature-link[data-pos="center"] .scene-name {
  font-size: clamp(14px, 3.2cqw, 48px);
}
.feature-triptych .feature-link:not([data-pos="center"]) .scene-name {
  font-size: clamp(11.5px, 2.55cqw, 38px);
}
.feature-link.has-tile img { opacity: 0; }
.feature-link.has-tile::before {
  content: ""; position: absolute; left: 50%; top: var(--focus-y, 22%); z-index: 0;
  width: max(100cqw, 100cqh); aspect-ratio: 1; height: auto;
  transform: translate(-50%, calc(-1 * var(--focus-y, 22%)));
  background-image: url(assets/feature-grid.webp?rev=bd9dd684b040d217);
  background-size: 200% 200%; background-repeat: no-repeat;
}
.feature-link.art-209 { --focus-y: 24%; }
.feature-link.art-205 { --focus-y: 18%; }
.feature-link.art-206 { --focus-y: 28%; }
.feature-link.art-218 { --focus-y: 14%; }
.feature-link.art-209::before { background-position: 0 0; }
.feature-link.art-205::before { background-position: 100% 0; }
.feature-link.art-206::before { background-position: 0 100%; }
.feature-link.art-218::before { background-position: 100% 100%; }
@keyframes triptych-deal {
  0% { opacity: .55; transform: translateY(10px) scale(.95) rotate(0deg); }
  100% { opacity: 1; }
}
.triptych-shuffling .feature-link { animation: triptych-deal .34s cubic-bezier(.22,.9,.32,1); }
@media (hover: hover) and (pointer: fine) {
  .feature-triptych:has(.feature-link:hover) .feature-link:not(:hover) {
    filter: brightness(.74) saturate(.88);
    transform: translate(calc(var(--depth-x, 0px) * var(--depth)), calc(var(--depth-y, 0px) * var(--depth) + 3px)) rotate(var(--angle)) scale(.975);
  }
  .feature-triptych .feature-link:hover {
    z-index: 5;
    --lift: -8px;
    filter: none;
    transform: translate(calc(var(--depth-x, 0px) * var(--depth)), calc(var(--lift) + var(--depth-y, 0px) * var(--depth))) rotate(calc(var(--angle) * .25)) scale(1.035);
  }
  .feature-comet:hover { box-shadow: 0 18px 42px #020810e6, 0 0 26px #4da6ff4d; border-color: #a9e1ff; }
  .feature-frieren:hover { box-shadow: 0 20px 46px #020810e6, 0 0 28px #e4c68d52; border-color: #f3dfb3; }
  .feature-neon:hover { box-shadow: 0 18px 42px #020810e6, 0 0 26px #c468ff4d; border-color: #a0f4ff; }
}

/* 2. Cinema Mode Midnight Starfield & Theater Projection Glow */
.cinema-mode .hero-backdrop::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 14% 22%, #fff8e7, transparent),
    radial-gradient(1px 1px at 28% 12%, #bfefff, transparent),
    radial-gradient(1.5px 1.5px at 44% 28%, #ffe5b4, transparent),
    radial-gradient(1px 1px at 62% 16%, #ffffff, transparent),
    radial-gradient(2px 2px at 78% 24%, #a8f0ff, transparent),
    radial-gradient(1px 1px at 89% 14%, #fff3d1, transparent);
  animation: station-glow 5s ease-in-out infinite alternate;
}
.cinema-mode .station-lamp {
  background: radial-gradient(closest-side, #ffe39fcc, #ffb94766 52%, transparent);
  transform: translate(-50%, -50%) scale(1.45);
}
.cinema-mode .catalog {
  background: radial-gradient(ellipse at 50% 0%, #11242d55, transparent 58%), #060c10;
  box-shadow: inset 0 1px 0 #7fd8d026;
}
.cinema-mode .anime-grid { filter: none; }

/* 3. Interactive Chronicle Spectrum Light-Pillar Timeline & Magnetic Dial */
.header-toggles { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; flex-shrink: 0; }
.sound-toggle {
  position: relative; width: 38px; height: 38px; min-height: 38px; padding: 0;
  border: 1px solid #6b8e9340; border-radius: 50%; background: #102026b3;
  color: #c7d9da; font-size: 18px; line-height: 1; cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s, box-shadow .25s;
}
.sound-toggle:hover { color: #f0faf8; border-color: #8fd9d180; }
.sound-toggle.active {
  color: #e9cf97; border-color: #e4c68daa; background: #1f322f;
  box-shadow: 0 0 14px #e4c68d40;
}
@keyframes sound-pulse {
  0% { transform: scale(1); opacity: .65; }
  100% { transform: scale(1.42); opacity: 0; }
}
.sound-toggle.active::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  border: 1px solid #e4c68d; pointer-events: none;
  animation: sound-pulse 2s ease-out infinite;
}

.year-strip {
  display: grid; grid-template-columns: 232px minmax(0, 1fr) max-content;
  align-items: center; gap: 6px 18px; padding-block: 10px 12px;
  background: radial-gradient(ellipse at 50% 0%, #172e3680, transparent 72%), #0c161cf2;
}
.year-strip-head {
  display: flex; flex-direction: column; gap: 3px; min-width: 0; contain: inline-size;
}
.year-strip h2 { margin: 0; font-size: 18px; line-height: 1.25; }
.year-hud {
  padding-left: 17px; color: #8faab0;
  font: 500 11px/1.35 system-ui, "Microsoft YaHei", sans-serif;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.year-hud b { color: #a4ece2; font-weight: 600; font-variant-numeric: tabular-nums; }
.year-hud em { font-style: normal; color: #ebd098; }
.year-dial {
  min-width: 0; display: flex; align-items: center; gap: 8px;
}
.year-step {
  flex: none; width: 30px; height: 30px; min-height: 30px; padding: 0;
  border: 1px solid #58757a66; border-radius: 50%;
  background: #122329; color: #b9cfd1; font: 600 18px/1 system-ui, sans-serif;
  display: grid; place-items: center; cursor: pointer;
  transition: border-color .18s, color .18s, background-color .18s, transform .15s;
}
.year-step:hover { border-color: var(--control-accent); color: #eefaf7; background: #1a3239; transform: scale(1.06); }
.year-track-wrap {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px;
}
.year-shortcuts {
  width: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none;
  scroll-behavior: auto !important; -webkit-overflow-scrolling: touch;
  display: flex; align-items: flex-end; gap: 6px; padding: 8px 4px 4px;
  cursor: grab; user-select: none; -webkit-user-select: none; touch-action: auto;
  mask-image: none;
}
.year-shortcuts.is-dragging { cursor: grabbing; }
.year-shortcuts.is-dragging button { transition: none !important; }
.year-shortcuts::-webkit-scrollbar { display: none; }
.year-shortcuts button,
.year-shortcuts button:nth-child(n+1) {
  flex: none; width: 52px; min-height: 58px; padding: 6px 3px 5px;
  border: 1px solid #48646a38; border-radius: 9px;
  background: linear-gradient(180deg, #13252c99, #0d1a2099);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s ease-out;
}
.year-shortcuts button:hover {
  border-color: #83dbd399;
  background: linear-gradient(180deg, #1a343d, #11232a);
  transform: translateY(-2px);
}
.year-shortcuts button.active {
  border-color: #9de8dfcc;
  background: radial-gradient(circle at 50% 0%, #83dbd333, transparent 70%), linear-gradient(180deg, #1d3940, #12252b);
  box-shadow: 0 6px 18px #02090cb3, 0 0 14px #83dbd326, inset 0 1px 0 #c6fbf34d;
}
.year-pillar {
  position: relative; width: 12px; height: 24px; border-radius: 4px;
  background: #0a151a; border: 1px solid #48666c59;
  display: flex; align-items: flex-end; padding: 1px; pointer-events: none;
}
.year-pillar::before {
  content: ""; width: 100%; height: var(--bar-h, 40%); border-radius: 2.5px;
  background: linear-gradient(180deg, #9ef3e9, #3c8c8a);
  box-shadow: 0 0 6px #83dbd340;
}
.year-shortcuts button.active .year-pillar { border-color: #e4c68d99; }
.year-shortcuts button.active .year-pillar::before {
  background: linear-gradient(180deg, #fff0c4, #e4c68d 55%, #83dbd3);
  box-shadow: 0 0 10px #e4c68d99;
}
.year-pillar em {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  font: normal 9px/1 sans-serif; color: #ebd19a;
  text-shadow: 0 0 6px #e4c68d; pointer-events: none;
}
.year-num {
  font: 600 12px/1.1 system-ui, sans-serif; color: #d3e2e3;
  font-variant-numeric: tabular-nums;
}
.year-shortcuts button.active .year-num { color: #aef5ec; }
.year-shortcuts button[data-count]::after {
  content: attr(data-count) "部";
  font: 500 9.5px/1 system-ui, sans-serif; color: #7d9ba0;
  font-variant-numeric: tabular-nums;
}
.year-shortcuts button.active[data-count]::after,
.year-shortcuts button:hover[data-count]::after { color: #ebd29c; }
.year-scrubber {
  --rail: repeating-linear-gradient(90deg, #7da1a755 0 1px, transparent 1px 10px), #102128;
  --grip: repeating-linear-gradient(90deg, #173435 0 1.5px, transparent 1.5px 4px) center / 14px 4px no-repeat,
         linear-gradient(90deg, #82dbd3, #e4c68d);
  display: block; width: 100%; min-width: 0; height: 24px; margin: -6px 0;
  padding: 0; border: 0; border-radius: 6px; background: transparent;
  appearance: none; cursor: grab; touch-action: pan-y;
}
.year-scrubber:active { cursor: grabbing; }
.year-scrubber:disabled { visibility: hidden; }
.year-step:disabled { opacity: .42; cursor: default; transform: none; }
.year-scrubber::-webkit-slider-runnable-track {
  box-sizing: border-box; height: 10px; border: 1px solid #52737980;
  border-radius: 8px; background: var(--rail);
}
.year-scrubber::-moz-range-track {
  box-sizing: border-box; height: 10px; border: 1px solid #52737980;
  border-radius: 8px; background: var(--rail);
}
.year-scrubber::-webkit-slider-thumb {
  appearance: none; width: max(28px,var(--thumb-size,14%)); height: 8px;
  border: 0; border-radius: 8px; background: var(--grip); box-shadow: 0 0 6px #83dbd34d;
}
.year-scrubber::-moz-range-thumb {
  width: max(28px,var(--thumb-size,14%)); height: 8px;
  border: 0; border-radius: 8px; background: var(--grip); box-shadow: 0 0 6px #83dbd34d;
}
@media (forced-colors: active) { .year-scrubber { appearance: auto; } }

/* 4. Mood Roaming Strip & Standalone 3D Card-Flip Lucky Modal (Triple <-> Single Switcher) */
.filter-panel { row-gap: 10px; }
.mood-strip {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 7px;
  overflow-x: auto; scrollbar-width: none; padding-top: 4px;
}
.mood-strip::-webkit-scrollbar { display: none; }
.mood-label {
  flex: none; font: 600 11px/1 system-ui, sans-serif; color: #87a3a7;
  letter-spacing: .06em; margin-right: 2px;
}
.mood-pill {
  flex: none; min-height: 29px; padding: 3px 12px;
  border: 1px solid #48646a66; border-radius: 99px;
  background: #102026a6; color: #bfd2d4;
  font: 500 12px/1.3 system-ui, "Microsoft YaHei", sans-serif; cursor: pointer;
  transition: border-color .18s, color .18s, background-color .18s, transform .15s;
}
.mood-pill:hover { border-color: #88d8d088; color: #e6faf6; background: #172e35; }
.mood-pill.mood-lucky {
  border-color: #e4c68d80; background: linear-gradient(120deg, #27352d, #16262a);
  color: #f0d7a3; box-shadow: 0 0 12px #e4c68d1a;
}
.mood-pill.mood-lucky:hover { border-color: #e4c68d; color: #fff4d8; transform: translateY(-1px); }

.lucky-dialog {
  width: min(880px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  margin: auto; padding: clamp(16px, 2.5vw, 26px);
  border: 1px solid #e4c68d66; border-radius: 16px;
  background:
    radial-gradient(ellipse at 50% 0%, #e4c68d24, transparent 62%),
    radial-gradient(ellipse at 15% 95%, #7fd8d017, transparent 55%),
    linear-gradient(145deg, #132328, #0b1419 82%);
  color: #f2efe6; box-shadow: 0 28px 95px #000d, inset 0 1px 0 #fff3d626;
  overflow: auto;
}
.lucky-dialog::backdrop { background: #03090cd9; backdrop-filter: blur(10px); }
.lucky-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px 14px;
}
.lucky-title-group { min-width: 0; flex: 1 1 260px; }
.lucky-modal-head .eyebrow { margin: 0 0 3px; color: #e4c68d; font: 600 11px/1.3 system-ui, sans-serif; letter-spacing: .12em; }
.lucky-modal-head h2 { margin: 0; font: 700 clamp(20px, 2.4vw, 27px)/1.25 var(--serif); color: #f6f1e3; text-wrap: balance; }
.lucky-mode-switch {
  display: inline-flex; align-items: center; gap: 3px; padding: 3px;
  border: 1px solid #58747680; border-radius: 99px; background: #0d1a1f;
  flex-shrink: 0;
}
.lucky-mode-btn {
  min-height: 30px; padding: 4px 13px; border: 1px solid transparent; border-radius: 99px;
  background: transparent; color: #afc4c6; white-space: nowrap;
  font: 600 12px/1.25 system-ui, "Microsoft YaHei", sans-serif; cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s;
}
.lucky-mode-btn:hover { color: #eefaf7; }
.lucky-mode-btn.active {
  background: linear-gradient(120deg, #9be8df2b, #e4c68d2b);
  border-color: #e4c68d99; color: #f4dfb0;
}
.lucky-modal-head .dialog-close { position: static; flex-shrink: 0; width: 34px; height: 34px; min-height: 34px; border-color: #5b736e; background: #172a2e; font-size: 21px; }
.lucky-modal-sub { margin: 6px 0 16px; color: #a9c1c3; font-size: 13px; }
.lucky-stage {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; perspective: 1200px;
}
.lucky-stage[data-mode="single"] {
  grid-template-columns: minmax(0, 360px); justify-content: center;
}
.lucky-stage[data-mode="single"] .tarot-poster { height: 224px; }
.lucky-stage[data-mode="single"] .lucky-tarot,
.lucky-stage[data-mode="single"] .tarot-inner { min-height: 430px; }
.lucky-stage[data-mode="single"] .tarot-desc { -webkit-line-clamp: 4; }
@keyframes tarot-fly-in {
  0% { opacity: 0; transform: translateY(36px) scale(.86) rotateZ(-4deg); }
  70% { opacity: 1; transform: translateY(-4px) scale(1.01) rotateZ(1deg); }
  100% { opacity: 1; transform: none; }
}
.lucky-tarot {
  --card-aura: 228, 198, 141;
  position: relative; min-height: 392px; perspective: 1100px;
  animation: tarot-fly-in .42s cubic-bezier(.2,.9,.3,1) both;
  animation-delay: calc(var(--idx, 0) * 110ms);
}
.tarot-inner {
  position: relative; width: 100%; height: 100%; min-height: 392px;
  transform-style: preserve-3d;
  transition: transform .68s cubic-bezier(.22, 1, .36, 1);
}
.lucky-tarot.is-flipped .tarot-inner {
  transform: rotateY(calc(180deg + var(--ry, 0deg))) rotateX(var(--rx, 0deg));
}
.tarot-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 12px; overflow: hidden;
}
.tarot-back {
  display: grid; place-items: center; padding: 14px;
  background: radial-gradient(circle at 50% 42%, #243b3a, #101e22 76%);
  border: 1px solid #e4c68d88;
  box-shadow: 0 14px 35px #0009, inset 0 0 24px #e4c68d1f;
}
.tarot-back-frame {
  width: 100%; height: 100%; border: 1px dashed #e4c68d66; border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: #e9cf97; text-align: center; position: relative;
}
.tarot-roman { font: 600 14px/1 Georgia, serif; letter-spacing: .2em; color: #c7b07f; }
@keyframes mandala-spin { to { transform: rotate(360deg); } }
.tarot-mandala {
  width: 84px; height: 84px; border-radius: 50%;
  border: 1.5px solid #e4c68d99; outline: 1px dashed #8be0d766; outline-offset: 7px;
  position: relative; display: grid; place-items: center;
  box-shadow: 0 0 26px #e4c68d33;
  animation: mandala-spin 12s linear infinite;
}
.tarot-mandala::before, .tarot-mandala::after {
  content: ""; position: absolute; width: 54px; height: 54px;
  border: 1px solid #e4c68d77; transform: rotate(45deg);
}
.tarot-mandala::after { transform: rotate(0deg); border-color: #8be0d755; }
.tarot-back-frame strong { font: 700 20px/1.3 var(--serif); letter-spacing: .12em; }
.tarot-back-frame small { font: 500 10px/1 system-ui, sans-serif; letter-spacing: .18em; color: #8fa9a7; }

.tarot-front {
  transform: rotateY(180deg);
  display: flex; flex-direction: column; padding: 12px;
  background:
    radial-gradient(circle at 50% 0%, rgba(var(--card-aura), .22), transparent 62%),
    linear-gradient(160deg, #172930, #101c22 78%);
  border: 1px solid rgba(var(--card-aura), .52);
  box-shadow: 0 14px 36px #02080cb3, 0 0 22px rgba(var(--card-aura), .16);
}
.tarot-top {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  margin-bottom: 9px; font: 600 11.5px/1.2 var(--serif); color: #e4c68d;
}
.tarot-badge {
  padding: 2px 7px; border-radius: 99px; font: 600 10.5px/1.3 system-ui, sans-serif;
  background: #8be2d821; border: 1px solid #8be2d866; color: #aef2ea;
}
.tarot-badge.caution { background: #e8b88a21; border-color: #e8b88a66; color: #f0cba4; }
.tarot-poster {
  position: relative; width: 100%; height: 176px; flex: none; padding: 0;
  border: 1px solid #ffffff26; border-radius: 8px; overflow: hidden;
  background: #0b1418; cursor: pointer;
}
.tarot-poster img, .tarot-poster .feature-art {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 22%;
  transition: transform .4s ease;
}
.tarot-poster:hover img { transform: scale(1.05); }
.tarot-year {
  position: absolute; bottom: 6px; right: 6px; padding: 2px 7px;
  border-radius: 4px; background: #081217d9; border: 1px solid #ffffff26;
  color: #e6efed; font: 600 11px/1.2 Consolas, monospace;
}
.tarot-copy { display: flex; flex-direction: column; gap: 4px; flex: 1; min-height: 0; margin-top: 10px; }
.tarot-title {
  padding: 0; border: 0; background: none; text-align: left; cursor: pointer;
  font: 700 17px/1.3 var(--serif); color: #f4f1e6;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-height: 0;
}
.tarot-title:hover { color: #a4ece2; }
.tarot-genres { margin: 0; color: #9fc0c3; font: 500 11.5px/1.35 system-ui, sans-serif; }
.tarot-desc {
  margin: 2px 0 0; color: #cbd8da; font: 400 12px/1.55 system-ui, "Microsoft YaHei", sans-serif;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tarot-actions {
  display: flex; gap: 7px; margin-top: 10px; padding-top: 9px;
  border-top: 1px solid #ffffff17;
}
.tarot-actions button {
  flex: 1; min-height: 32px; padding: 4px 8px; border-radius: 6px;
  font: 600 12px/1.25 system-ui, sans-serif; cursor: pointer;
}
.tarot-open-btn {
  background: linear-gradient(120deg, #9ce8df, #75cfd6); color: #0a262a; border: 0;
}
.tarot-save-btn {
  background: #13242b; color: #d3e5e5; border: 1px solid #537176;
}
.tarot-save-btn.saved {
  border-color: #e4c68d; color: #efd49e; background: #26332c;
}
.lucky-modal-foot {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid #435c6059;
}
.lucky-modal-foot button { min-height: 40px; padding: 8px 20px; font-size: 13.5px; border-radius: 8px; }

/* 5. Desktop Card Hover Synopsis Curtain, Dynamic Cover Aura, Foil Sheen, Cover Ratio & Chronicle Chapter */
body:not([data-cover-view="compact"]) .anime-card .poster {
  aspect-ratio: 3 / 4;
}
#cover-view.has-value {
  border-color: #8fdcd480; color: #c7f5ee;
}
.year-chapter-head {
  grid-column: 1 / -1;
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px;
  padding: 10px 16px; margin-top: 6px;
  border-left: 3px solid #e4c68d; border-radius: 0 10px 10px 0;
  background: linear-gradient(90deg, #162a31e6, #0f1d2366 65%, transparent);
  box-shadow: inset 0 1px 0 #ffffff14;
}
.chapter-year {
  font: 700 18px/1.25 var(--serif); color: #f6efe0; letter-spacing: .03em;
}
.chapter-year b { color: #e4c68d; font-variant-numeric: tabular-nums; }
.chapter-meta {
  font: 500 12.5px/1.35 system-ui, "Microsoft YaHei", sans-serif; color: #a7c2c5;
}
.chapter-meta em { font-style: normal; color: #9ef0e6; font-weight: 600; }
.chapter-line {
  flex: 1; min-width: 40px; height: 1px;
  background: linear-gradient(90deg, #64878c66, transparent);
}
.anime-card { --card-aura: 129, 220, 228; }
.anime-card .poster {
  box-shadow: inset 0 1px 0 #ffffff24, 0 4px 14px #030a0e4d;
  transition: box-shadow .28s ease, border-color .28s ease;
}
.anime-card.is-strong .poster { border-color: #8fdcd44d; }
.rating-badge:not(.caution) {
  background: linear-gradient(135deg, #a6f2e8, #72d2dc);
  color: #072429; box-shadow: 0 3px 10px #04131880, inset 0 1px 0 #ffffff80;
  letter-spacing: .02em;
}
.badge-star { font-style: normal; color: #0a353b; }
.poster-curtain { display: none; }
@media (hover: hover) and (pointer: fine) {
  .anime-card .poster::after {
    content: ""; position: absolute; inset: -40% -80%; z-index: 2; pointer-events: none;
    display: block; opacity: 0;
    background: linear-gradient(115deg, transparent 42%, #ffffff1f 50%, transparent 58%);
    transform: translateX(-70%);
    transition: transform .65s cubic-bezier(.19,1,.22,1), opacity .3s;
  }
  .anime-card:hover .poster::after {
    opacity: 1; transform: translateX(75%);
  }
  .anime-card:hover .poster {
    border-color: rgba(var(--card-aura), .72);
    box-shadow: 0 12px 28px rgba(var(--card-aura), .28), 0 4px 16px #02080cb3, inset 0 0 0 1px rgba(var(--card-aura), .25);
  }
  .poster-curtain {
    position: absolute; inset: auto 0 0; z-index: 2; pointer-events: none;
    display: grid; gap: 3px; padding: 26px 11px 10px; text-align: left;
    background: linear-gradient(180deg, transparent, #071218d9 28%, #071218f7);
    color: #e6f0ef; opacity: 0; transform: translateY(6px);
    transition: opacity .22s ease, transform .22s ease;
  }
  .anime-card:hover .poster-curtain,
  .poster-open:focus-visible .poster-curtain {
    opacity: 1; transform: none;
  }
  .poster-curtain small {
    color: rgb(var(--card-aura)); filter: brightness(1.25);
    font: 600 10.5px/1.25 system-ui, sans-serif; letter-spacing: .02em;
  }
  .poster-curtain em {
    font: 400 12px/1.48 system-ui, "Microsoft YaHei", sans-serif; color: #dce8e7;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
}
@media (min-width: 701px) {
  .card-footer { display: flex; align-items: center; justify-content: space-between; }
  .card-index {
    display: inline-block; color: #6c858b;
    font: 500 11px/1 Consolas, monospace; font-variant-numeric: tabular-nums;
  }
}
@media (max-width: 960px) {
  .year-hud { display: none; }
  .year-strip { grid-template-columns: 112px minmax(0, 1fr) max-content; }
}
@media (max-width: 780px) {
  .lucky-modal-head { align-items: flex-start; gap: 9px 10px; }
  .lucky-title-group { order: 1; flex: 1 1 0; min-width: 0; }
  .lucky-modal-head .dialog-close { order: 2; margin-left: auto; }
  .lucky-mode-switch {
    order: 3; flex: 1 0 100%; width: 100%;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    border-radius: 11px;
  }
  .lucky-mode-btn {
    width: 100%; justify-content: center; text-align: center;
    padding: 5px 6px; border-radius: 8px;
  }
  .lucky-modal-head .eyebrow { font-size: 10px; letter-spacing: .07em; }
  .lucky-modal-sub { margin: 8px 0 12px; font-size: 12.5px; line-height: 1.45; }
  .lucky-stage:not([data-mode="single"]) { grid-template-columns: 1fr; gap: 10px; }
  .lucky-stage:not([data-mode="single"]) :is(.lucky-tarot, .tarot-inner) { min-height: 196px; }
  .lucky-stage:not([data-mode="single"]) .tarot-front {
    display: grid; grid-template-columns: 98px minmax(0, 1fr);
    grid-template-rows: auto 1fr auto; gap: 4px 12px; padding: 10px;
  }
  .lucky-stage:not([data-mode="single"]) .tarot-top { grid-column: 1 / -1; margin-bottom: 2px; }
  .lucky-stage:not([data-mode="single"]) .tarot-poster { grid-row: 2 / 4; height: 136px; }
  .lucky-stage:not([data-mode="single"]) .tarot-copy { margin-top: 0; }
  .lucky-stage:not([data-mode="single"]) .tarot-genres { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .lucky-stage:not([data-mode="single"]) .tarot-desc { -webkit-line-clamp: 2; }
  .lucky-stage:not([data-mode="single"]) .tarot-actions { margin-top: 4px; padding-top: 6px; }
  .lucky-stage:not([data-mode="single"]) .tarot-mandala { width: 52px; height: 52px; }
}
@media (max-width: 700px) {
  .header-toggles { margin-left: auto; gap: 4px; }
  .sound-toggle { width: 32px; height: 32px; min-height: 32px; font-size: 15px; }
  .hero-curation { display: none; }
  .scene-badge, .scene-direct { top: 6px; padding: 2px 6px; font-size: 9px; }
  .scene-badge { left: 6px; }
  .scene-direct { right: 6px; }
  .scene-sub { display: none; }
  .year-strip {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding-block: 6px 8px;
  }
  .year-strip-head, .year-step { display: none; }
  .year-shortcuts button,
  .year-shortcuts button:nth-child(n+1) {
    display: flex !important; width: 46px; min-height: 50px; padding: 4px 2px; gap: 3px;
  }
  .year-pillar { height: 18px; width: 10px; }
  .catalog-toolbar {
    grid-template-columns: minmax(max-content, 1fr) minmax(0, 102px) max-content;
  }
  #picker-pair :is(#year-value,#sort-value,#cover-view-value) { display: inline; font-size: 12px; }
  .year-chapter-head { padding: 8px 12px; gap: 6px 10px; }
  .chapter-year { font-size: 15px; }
  .chapter-meta { font-size: 11.5px; }
  .mood-strip { padding-top: 4px; gap: 6px; }
  .mood-pill { min-height: 28px; padding: 3px 10px; font-size: 11.5px; }
  .lucky-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); padding: 14px; border-radius: 13px; }
  .lucky-modal-head .eyebrow { font-size: 9.5px; letter-spacing: .04em; }
  .lucky-modal-head h2 { font-size: clamp(17px, 4.6vw, 20px); }
  .lucky-mode-btn { min-height: 28px; padding: 4px 5px; font-size: 11px; }
}

/* 6. Boutique Editorial Desktop Proportions (Refined 1280px–1360px Gallery Canvas & 6-Column Grid) */
@media (min-width: 1101px) {
  :root {
    --max: 1280px;
    --gutter: 32px;
  }
  body {
    background:
      radial-gradient(ellipse at 50% 0%, #19303845, transparent 58%),
      radial-gradient(ellipse at 50% 40%, #101e26, #070d11 78%);
  }
  .header, main, footer {
    width: min(calc(100% - 112px), var(--max));
    max-width: var(--max);
  }
  .header {
    min-height: 62px; padding-block: 9px;
  }
  .header .brand-text { font-size: 22px; }
  .archive-caption { font-size: 11.5px; margin-top: 3px; }
  .header nav { gap: 28px; }
  .nav-link { font-size: 14.5px; min-height: 38px; }
  .sound-toggle, .header .cinema-toggle { width: 34px; height: 34px; min-height: 34px; font-size: 16px; }

  .hero {
    grid-template-columns: 38% 62%;
    padding-block: 4px 2px;
  }
  .hero-copy { padding-bottom: .5cqw; }
  .hero h1 {
    font-size: clamp(32px, 3.1cqw, 44px);
    line-height: 1.24;
    letter-spacing: .01em;
  }
  .hero-intro {
    font-size: clamp(13.5px, 1.12cqw, 15.5px);
    margin: .55cqw 0 .95cqw;
  }
  .hero-actions { gap: 10px; }
  .hero-actions .primary-button,
  .hero-actions .ghost-button {
    font-size: 13.5px;
    min-height: 38px;
    padding: 8px 18px;
    border-radius: 7px;
  }
  .hero-stats { margin-top: 1.25cqw; gap: 18px; }
  .hero-stats > div { padding-right: 18px; gap: 5px; }
  .hero-stats strong { font-size: clamp(21px, 1.8cqw, 25px); }
  .hero-stats small { font-size: 11.5px; }
  .hero-curation { margin-top: 10px; padding: 2.5px 5px; gap: 3px; }
  .curation-pill, .curation-cycle { min-height: 24px; padding: 2px 8px; font-size: 11px; }

  .feature-triptych {
    width: 93%;
    max-width: 700px;
    margin-block: 8px 14px;
  }
  .feature-triptych .feature-link[data-pos="center"] .scene-name {
    font-size: clamp(16px, 2.05cqw, 25px);
  }
  .feature-triptych .feature-link:not([data-pos="center"]) .scene-name {
    font-size: clamp(13px, 1.6cqw, 19px);
  }
  .scene-sub { font-size: clamp(9.5px, .82cqw, 11px); }
  .scene-badge, .scene-direct { top: 8px; padding: 2.5px 8px; font-size: 10.5px; }

  .year-strip {
    grid-template-columns: 196px minmax(0, 1fr) max-content;
    gap: 5px 14px;
    padding-block: 7px 9px;
  }
  .year-strip h2 { font-size: 16px; }
  .year-hud { font-size: 10.5px; }
  .year-shortcuts button,
  .year-shortcuts button:nth-child(n+1) {
    width: 47px; min-height: 50px; padding: 5px 2px 4px; gap: 4px;
  }
  .year-pillar { height: 20px; width: 11px; }
  .year-num { font-size: 11.5px; }
  .year-strip .more-years { min-height: 34px; font-size: 13px; padding: 5px 12px; }

  .catalog { padding-top: 18px; }
  .catalog-toolbar { margin-bottom: 12px; gap: 22px; }
  .catalog-heading h2 { font-size: 24px; }
  .catalog-note { font-size: 11px; }
  .searchbox, .picker-trigger { height: 38px; min-height: 38px; font-size: 13px; }
  .searchbox input { font-size: 13.5px; }
  .filter-panel { row-gap: 8px; column-gap: 16px; padding: 12px 15px 11px; }
  .tabs button { min-height: 32px; font-size: 13px; padding: 4px 12px; }
  .tabs button span { font-size: 11px; }
  .genre { min-height: 30px; font-size: 12.5px; padding: 4px 10px; }
  .mood-pill { min-height: 27px; font-size: 11.5px; padding: 2px 11px; }
  .result-line { margin: 6px 0 10px; font-size: 12px; }

  body:not([data-cover-view="compact"]) .anime-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px 16px;
  }
  body[data-cover-view="compact"] .anime-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px 18px;
  }
  .anime-card .card-title {
    font-size: 15.5px;
    line-height: 1.42;
    margin: 9px 0 3px;
  }
  .anime-card .card-tags {
    font-size: 12px;
    line-height: 1.5;
  }
  .card-footer { margin-top: 4px; min-height: 24px; }
  .card-footer .portal-link { font-size: 12px; min-height: 24px; }
  .card-index { font-size: 10.5px; }
  .anime-card .rating-badge { font-size: 10.5px; padding: 4px 7px; top: 7px; left: 7px; }
  .anime-card .save-button { width: 32px; height: 34px; min-height: 34px; top: 7px; right: 7px; }
}
@media (min-width: 1800px) {
  :root { --max: 1360px; --gutter: 36px; }
}
@media (min-width: 2200px) and (max-width: 2999px) {
  :root { --max: 1460px; --gutter: 38px; }
  .hero h1 { font-size: 46px; }
  .hero-intro { font-size: 16px; }
  .feature-triptych { max-width: 760px; }
  body:not([data-cover-view="compact"]) .anime-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 26px 18px;
  }
  .anime-card .card-title { font-size: 16px; }
  .anime-card .card-tags, .card-footer .portal-link { font-size: 12.5px; }
}
@media (min-width: 3000px) {
  :root { --max: 2040px; --gutter: 48px; }
  .header, main, footer {
    width: min(calc(100% - 240px), var(--max));
    max-width: var(--max);
  }
  .header { min-height: 76px; padding-block: 12px; }
  .header .brand-text { font-size: 27px; }
  .archive-caption { font-size: 13.5px; }
  .header nav { gap: 36px; }
  .nav-link { font-size: 17px; min-height: 44px; }
  .sound-toggle, .header .cinema-toggle { width: 42px; height: 42px; min-height: 42px; font-size: 19px; }

  .hero { grid-template-columns: 38% 62%; padding-block: 10px 6px; }
  .hero h1 { font-size: 54px; line-height: 1.24; }
  .hero-intro { font-size: 18px; margin: 12px 0 18px; }
  .hero-actions { gap: 14px; }
  .hero-actions .primary-button,
  .hero-actions .ghost-button {
    font-size: 16px; min-height: 46px; padding: 10px 24px; border-radius: 8px;
  }
  .hero-stats { margin-top: 22px; gap: 24px; }
  .hero-stats > div { padding-right: 24px; gap: 7px; }
  .hero-stats strong { font-size: 30px; }
  .hero-stats small { font-size: 14px; }
  .hero-curation { margin-top: 14px; padding: 4px 8px; gap: 5px; }
  .curation-label { font-size: 13px; }
  .curation-pill, .curation-cycle { min-height: 30px; padding: 4px 12px; font-size: 13.5px; }

  .feature-triptych { width: 94%; max-width: 920px; margin-block: 12px 18px; }
  .feature-triptych .feature-link[data-pos="center"] .scene-name { font-size: 30px; }
  .feature-triptych .feature-link:not([data-pos="center"]) .scene-name { font-size: 23px; }
  .scene-sub { font-size: 13px; }
  .scene-badge, .scene-direct { top: 11px; padding: 4px 11px; font-size: 12.5px; }

  .year-strip {
    grid-template-columns: 244px minmax(0, 1fr) max-content;
    gap: 8px 18px; padding-block: 10px 12px;
  }
  .year-strip h2 { font-size: 19px; }
  .year-hud { font-size: 12.5px; }
  .year-step { width: 36px; height: 36px; min-height: 36px; font-size: 20px; }
  .year-shortcuts button,
  .year-shortcuts button:nth-child(n+1) {
    width: 58px; min-height: 62px; padding: 6px 3px 5px; gap: 5px;
  }
  .year-pillar { height: 24px; width: 13px; }
  .year-num { font-size: 13.5px; }
  .year-shortcuts button[data-count]::after { font-size: 11px; }
  .year-strip .more-years { min-height: 42px; font-size: 15px; padding: 7px 16px; }

  .catalog { padding-top: 24px; }
  .catalog-toolbar { margin-bottom: 16px; gap: 28px; }
  .catalog-heading h2 { font-size: 29px; }
  .catalog-note { font-size: 13px; }
  .searchbox, .picker-trigger { height: 46px; min-height: 46px; font-size: 15.5px; }
  .searchbox input { font-size: 16px; }
  .filter-panel { row-gap: 11px; column-gap: 20px; padding: 15px 20px 14px; }
  .tabs button { min-height: 38px; font-size: 15px; padding: 6px 16px; }
  .tabs button span { font-size: 13px; }
  .genre { min-height: 36px; font-size: 14.5px; padding: 5px 14px; }
  .mood-label { font-size: 13px; }
  .mood-pill { min-height: 32px; font-size: 13.5px; padding: 4px 14px; }
  .result-line, #refine-button { font-size: 14px; }
  .result-line { margin: 8px 0 14px; }

  body:not([data-cover-view="compact"]) .anime-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 30px 22px;
  }
  body[data-cover-view="compact"] .anime-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 28px 22px;
  }
  .anime-card .card-title { font-size: 18.5px; line-height: 1.44; margin: 11px 0 4px; }
  .anime-card .card-tags { font-size: 14px; line-height: 1.55; }
  .card-footer { margin-top: 5px; min-height: 28px; }
  .card-footer .portal-link { font-size: 14px; min-height: 28px; }
  .card-index { font-size: 12px; }
  .anime-card .rating-badge { font-size: 12px; padding: 5px 9px; top: 9px; left: 9px; }
  .anime-card .save-button { width: 38px; height: 40px; min-height: 40px; top: 9px; right: 9px; }
}

@media (max-width:960px) {
  .feature-triptych :is(.scene-badge, .scene-direct) { display:none; }
}

/* 7. v2.0 Museum Prototype: Dynamic Hero Ambient Sync, SSR Gold Frame, Exhibitions, Sommelier, Star Map & 9-Grid Poster */
body { --hero-aura: 132, 224, 212; }
.ambient-one {
  background: radial-gradient(ellipse at 68% 26%, rgba(var(--hero-aura), 0.25), transparent 64%);
  transition: background .6s ease;
}
.feature-triptych::before {
  content: ""; position: absolute; inset: -6% 4%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 52%, rgba(var(--hero-aura), 0.32), transparent 68%);
  filter: blur(16px); transition: background .6s ease;
}
@keyframes card-soft-in {
  from { opacity: .35; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: none; }
}
.anime-grid.grid-transitioning .anime-card,
.anime-card.is-appended {
  animation: card-soft-in .28s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: calc(var(--i, 0) * 16ms);
}
.station-lamp {
  box-shadow: 0 0 28px rgba(var(--hero-aura), 0.36);
  transition: box-shadow .6s ease;
}
.hero-stats { align-items: center; flex-wrap: wrap; }
.stats-trigger {
  min-height: 28px; padding: 4px 12px; border-radius: 99px;
  border: 1px solid #8fdcd466; background: #10242be6; color: #b9f2ea;
  font: 600 12px/1.25 system-ui, "Microsoft YaHei", sans-serif; cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s, transform .18s;
  white-space: nowrap;
}
.stats-trigger:hover {
  border-color: #e4c68d; color: #fff4d6; background: #1c3338; transform: translateY(-1px);
}
.note-pill {
  display: inline-flex; align-items: center; padding: 1px 6px;
  border-radius: 4px; background: #e4c68d1f; border: 1px solid #e4c68d66;
  color: #f2d89f; font-size: 11px; line-height: 1.35;
}
.anime-card.is-strong .poster {
  border-color: #e4c68d75;
  box-shadow: inset 0 0 0 1px #fff1cf24, 0 6px 18px #02080c66, 0 0 16px #e4c68d1a;
}
.anime-card.is-strong .rating-badge:not(.caution) {
  background: linear-gradient(135deg, #f5dfb0, #d8b36a);
  color: #231804; border: 1px solid #fff6df99;
  box-shadow: 0 3px 12px #0009, 0 0 10px #e4c68d55;
}
.anime-card.is-strong .badge-star { color: #362200; }

.mood-pill.active {
  background: linear-gradient(120deg, #9ce8df29, #e4c68d29);
  border-color: #e4c68dcc; color: #f6e2b3; font-weight: 600;
  box-shadow: 0 0 12px #e4c68d24;
}
.mood-pill.mood-grid-poster {
  border-color: #84dcd377; background: #122930; color: #b9f3ec;
}
.mood-pill.mood-grid-poster:hover {
  border-color: #a8f5ec; color: #ffffff; background: #193842;
}

.exhibition-banner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 12px 20px; margin: 8px 0 14px; padding: 14px 18px;
  border: 1px solid #e4c68d77; border-left: 4px solid #e4c68d; border-radius: 12px;
  background:
    radial-gradient(ellipse at 85% 0%, #e4c68d1f, transparent 60%),
    linear-gradient(120deg, #162930f2, #0f1c22f2);
  box-shadow: 0 10px 28px #02090d80;
}
.exhibition-banner[hidden] { display: none !important; }
.ex-copy { flex: 1 1 420px; min-width: 0; }
.ex-eyebrow {
  margin: 0 0 3px; color: #e4c68d;
  font: 600 10.5px/1.25 system-ui, sans-serif; letter-spacing: .12em;
}
.ex-copy h3 {
  margin: 0 0 5px; font: 700 19px/1.3 var(--serif); color: #f6f1e4;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px;
}
.ex-count {
  font: 600 12px/1.3 system-ui, sans-serif; color: #a4ece2;
  padding: 2px 8px; border-radius: 99px; background: #83dbd31c; border: 1px solid #83dbd34d;
}
.ex-desc {
  margin: 0; color: #bdd0d2; font: 400 13px/1.55 system-ui, "Microsoft YaHei", sans-serif;
}
.ex-actions {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
.ex-actions button {
  min-height: 34px; padding: 6px 13px; font-size: 12.5px; border-radius: 7px;
}
.ex-close {
  border: 1px solid #567277; background: transparent; color: #adc4c7; cursor: pointer;
}
.ex-close:hover { color: #ffffff; border-color: #9be4dc; }

/* Sommelier 3-Step Interactive Selector inside #lucky-dialog */
.sommelier-panel {
  display: grid; gap: 8px; margin: 0 0 14px; padding: 12px 14px;
  border: 1px solid #63858a59; border-radius: 12px;
  background: #0c181dd9;
}
.sommelier-panel[hidden] { display: none !important; }
.som-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px;
}
.som-label {
  flex: 0 0 84px; color: #e4c68d;
  font: 600 12px/1.3 system-ui, "Microsoft YaHei", sans-serif;
}
.som-pills {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px; flex: 1;
}
.som-pill {
  min-height: 28px; padding: 3px 11px; border-radius: 99px;
  border: 1px solid #48646a80; background: #12232a; color: #bfd3d5;
  font: 500 12px/1.25 system-ui, "Microsoft YaHei", sans-serif; cursor: pointer;
  transition: all .18s ease;
}
.som-pill:hover { border-color: #8ee0d8; color: #f0fbf9; }
.som-pill.active {
  background: linear-gradient(120deg, #9be8df30, #e4c68d30);
  border-color: #e4c68d; color: #f7e3b4; font-weight: 600;
  box-shadow: 0 0 10px #e4c68d26;
}
@media (max-width: 700px) {
  .sommelier-panel { padding: 10px 11px; gap: 9px; }
  .som-row { flex-direction: column; align-items: flex-start; gap: 5px; }
  .som-label { flex: none; font-size: 11.5px; }
  .som-pills { width: 100%; }
  .som-pill { min-height: 27px; padding: 3px 9px; font-size: 11.5px; }
}

/* Archive Star Map & Reader Achievement Dialog (#stats-dialog) */
.stats-dialog {
  width: min(920px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  margin: auto; padding: clamp(16px, 2.4vw, 26px);
  border: 1px solid #72989d66; border-radius: 16px;
  background:
    radial-gradient(ellipse at 50% 0%, #83dbd31f, transparent 60%),
    linear-gradient(150deg, #122228, #0a1418 85%);
  color: #f0ede4; box-shadow: 0 28px 95px #000d; overflow: auto;
}
.stats-dialog::backdrop { background: #03090cd9; backdrop-filter: blur(10px); }
.stats-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding-bottom: 12px; border-bottom: 1px solid #49666b4d;
}
.stats-modal-head .eyebrow { margin: 0 0 4px; color: #8adcd4; font: 600 11px/1.2 system-ui, sans-serif; letter-spacing: .12em; }
.stats-modal-head h2 { margin: 0; font: 700 clamp(20px, 2.2vw, 26px)/1.25 var(--serif); color: #f5f0e3; text-wrap: balance; }
.stats-modal-head .dialog-close { position: static; flex-shrink: 0; width: 34px; height: 34px; min-height: 34px; font-size: 21px; background: #16292e; border-color: #567378; }
.stats-modal-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 16px; }
.stats-modal-body > * { min-width: 0; }
.stats-overview {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
}
.stat-kpi {
  padding: 12px 14px; border-radius: 10px;
  border: 1px solid #4f6e7459; background: #0e1c22b3;
  display: flex; flex-direction: column; gap: 3px;
}
.stat-kpi strong { font: 700 23px/1.15 system-ui, sans-serif; color: #a4ece2; font-variant-numeric: tabular-nums; }
.stat-kpi.is-gold strong { color: #efd49c; }
.stat-kpi span { font: 500 11.5px/1.3 system-ui, sans-serif; color: #9eb7ba; }
.stats-section {
  padding: 14px 16px; border-radius: 12px;
  border: 1px solid #49666b45; background: #0d191fb3;
}
.stats-sec-head {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap;
  gap: 6px 12px; margin-bottom: 12px;
}
.stats-sec-head h3 { margin: 0; font: 600 15.5px/1.3 system-ui, "Microsoft YaHei", sans-serif; color: #f2eee3; text-wrap: balance; }
.stats-sec-head small { color: #8da9ad; font-size: 11.5px; }
.badge-wall {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
}
.ach-card {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 9px; border: 1px dashed #4a646966; background: #0a141880;
  opacity: .58; transition: opacity .2s, border-color .2s;
}
.ach-card.unlocked {
  opacity: 1; border-style: solid; border-color: #e4c68d88;
  background: linear-gradient(125deg, #24322b80, #11222880);
  box-shadow: 0 4px 14px #0006;
}
.ach-icon {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 16px;
  background: #14262c; border: 1px solid #59777c; color: #b9d4d6;
}
.ach-card.unlocked .ach-icon {
  background: #2b3829; border-color: #e4c68d; color: #f6dfa8;
  box-shadow: 0 0 10px #e4c68d33;
}
.ach-copy { display: grid; gap: 2px; min-width: 0; }
.ach-copy strong { font: 600 13px/1.25 system-ui, sans-serif; color: #eef5f4; display: flex; align-items: center; gap: 6px; }
.ach-copy strong em { font: 600 10px/1.2 system-ui, sans-serif; color: #8da7aa; }
.ach-card.unlocked .ach-copy strong em { color: #efd49c; }
.ach-copy small { font: 400 11px/1.35 system-ui, sans-serif; color: #9ab2b5; }

.stats-year-chart {
  display: flex; align-items: flex-end; gap: 3px; height: 118px; padding-top: 16px;
  overflow-x: auto; scrollbar-width: thin;
}
.chart-col {
  flex: 1 1 0; min-width: 20px; height: 100%; padding: 2px 1px; border: 0; border-radius: 5px;
  background: transparent; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; gap: 4px; cursor: pointer;
}
.chart-col:hover { background: #193138; }
.col-val { font: 500 9.5px/1 Consolas, monospace; color: #89a8ad; }
.col-bar {
  position: relative; width: 10px; border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, #9ef3e9, #357e7d);
  display: block; transition: transform .18s;
}
.chart-col:hover .col-bar { background: linear-gradient(180deg, #fff0c2, #e4c68d); transform: scaleX(1.2); }
.col-bar em {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  font: normal 8.5px/1 sans-serif; color: #ebd19a;
}
.col-yr { font: 600 10px/1 Consolas, monospace; color: #bfd4d7; }

.stats-genre-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px;
}
.genre-stat-row {
  padding: 7px 10px; border: 1px solid #4561664d; border-radius: 8px;
  background: #10202699; text-align: left; display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; cursor: pointer;
}
.genre-stat-row:hover { border-color: #8ee0d899; background: #162c34; }
.gs-top { display: flex; gap: 4px; align-items: baseline; justify-content: space-between; font-size: 12px; }
.gs-top strong { min-width: 0; overflow-wrap: anywhere; color: #e8f3f2; font-weight: 600; }
.gs-top span { flex: none; white-space: nowrap; color: #9ab5b8; font-size: 11px; font-variant-numeric: tabular-nums; }
.gs-top em { font-style: normal; color: #8adcd4; }
.gs-track { height: 5px; border-radius: 99px; background: #091317; overflow: hidden; display: block; }
.gs-track em { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #7fd5ce, #e4c68d); }

.grid-poster-dialog { width: min(500px, calc(100vw - 24px)); }
@media (max-width: 760px) {
  .stats-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .badge-wall { grid-template-columns: 1fr; }
  .stats-genre-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-year-chart { max-width: 100%; }
}
@media (max-width: 520px) {
  .stats-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); padding: 14px; border-radius: 13px; }
  .stats-modal-head h2 { font-size: clamp(17px, 4.6vw, 21px); }
  .stats-section { padding: 12px; }
  .stats-sec-head h3 { font-size: 14px; }
  .stats-genre-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); }
}

/* 8. Next-Gen Spatial Glass & Bento Showroom Visual Overhaul + Multi-Resolution Button/Icon Harmony */
.arr {
  font-family: "Segoe UI", Arial, sans-serif;
  font-style: normal;
  font-size: .82em;
  font-weight: 500;
  line-height: 1;
  display: inline-block;
  transform: translateY(-.03em);
  opacity: .86;
}
.hero-actions .primary-button .arr {
  font-size: .88em;
}
.chart-col,
.genre-stat-row,
.bento-title,
.tarot-title,
.poster-open,
.tarot-poster {
  min-height: 0;
}

/* Unified Header Control Cluster (.bento-toggle, .sound-toggle, .cinema-toggle) */
.header-toggles {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; flex-shrink: 0;
}
.bento-toggle {
  height: 34px; min-height: 34px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  border-radius: 99px; border: 1px solid #6b8e9359;
  background: #102026b3; color: #c7d9da;
  font: 600 12px/1 system-ui, "Microsoft YaHei", sans-serif;
  cursor: pointer; white-space: nowrap;
  transition: all .22s ease;
}
.bento-toggle:hover {
  color: #fff6dc; border-color: #e4c68daa; background: #1a3036;
}
.bento-toggle.active {
  color: #f6e0b0;
  border-color: #e4c68dcc;
  background: linear-gradient(135deg, #27342ce6, #132228e6);
  box-shadow: 0 0 14px #e4c68d2e, inset 0 1px 0 #fff5d624;
}
.bento-toggle.active:hover {
  color: #fff4d6;
  border-color: #f3dfb3;
  background: linear-gradient(135deg, #314034f2, #182b32f2);
}
.sound-toggle,
.header .cinema-toggle {
  position: relative;
  width: 34px; height: 34px; min-height: 34px; padding: 0; margin: 0;
  border: 1px solid #6b8e934d; border-radius: 50%;
  background: #102026b3; color: #c7d9da;
  font: 500 15.5px/1 "Segoe UI Symbol", system-ui, sans-serif;
  display: inline-grid; place-items: center;
  cursor: pointer; flex-shrink: 0;
  transition: color .2s, border-color .2s, background-color .2s, box-shadow .25s;
}
.sound-toggle:hover,
.header .cinema-toggle:hover {
  color: #f0faf8; border-color: #8fd9d180; background: #172e36;
}
.header .cinema-toggle[aria-pressed="true"] {
  color: #a4ece2; border-color: #8fd9d1aa; background: #183138;
  box-shadow: 0 0 14px #83dbd333;
}

.view-icon {
  width: 14px; height: 14px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7; opacity: .88;
}
.mobile-only-pill { display: none; }

.hero-particles {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none; opacity: .92;
}
body.classic-mode .hero-particles,
body.classic-mode .hero-spotlight-quote,
body.classic-mode .bento-info {
  display: none !important;
}

/* Unified Hero Showcase Console (.hero-console = .hero-curation + #hero-spotlight-quote) */
.hero-console {
  margin-top: 12px; max-width: 500px;
  border-radius: 11px;
  border: 1px solid #e4c68d45;
  border-left: 3px solid #e4c68d;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(var(--hero-aura), 0.16), transparent 65%),
    linear-gradient(125deg, #12232ae6, #0a151ae6);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px #02080c73, inset 0 1px 0 #ffffff14;
  overflow: hidden;
}
body.classic-mode .hero-console {
  margin-top: 10px; border: 0; border-radius: 0;
  background: none; backdrop-filter: none; box-shadow: none; overflow: visible;
}
body:not(.classic-mode) .hero-console .hero-curation {
  display: flex; width: 100%; margin: 0; padding: 5px 8px;
  border: 0; border-bottom: 1px solid #83dbd321; border-radius: 0;
  background: #09141966; backdrop-filter: none;
}
body:not(.classic-mode) .hero-console .curation-cycle {
  margin-left: auto;
}
.hero-spotlight-quote {
  margin: 0; padding: 7px 11px 8px;
  border: 0; border-radius: 0; background: transparent;
  box-shadow: none; max-width: none;
}
.hero-spotlight-quote:empty { display: none; }
.hsq-head {
  display: flex; align-items: center; flex-wrap: nowrap; gap: 6px;
  margin-bottom: 3px; min-width: 0;
}
.hsq-badge {
  flex: none; height: 20px; padding: 0 7px; border-radius: 99px;
  display: inline-flex; align-items: center;
  background: linear-gradient(135deg, #f3dca8, #d5ae63);
  color: #221602; font: 700 10px/1 system-ui, "Microsoft YaHei", sans-serif;
}
.hsq-head strong {
  color: #f7f1e3; font: 700 12.5px/1.25 var(--serif);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.hsq-head small {
  color: #99b8bc; font: 500 10.5px/1.25 system-ui, sans-serif;
  white-space: nowrap;
}
.hsq-open {
  flex: none; margin-left: auto;
  height: 21px; min-height: 21px; padding: 0 9px;
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  border-radius: 99px;
  border: 1px solid #8adcd466; background: #132b32; color: #b8f3eb;
  font: 600 10.5px/1 system-ui, "Microsoft YaHei", sans-serif;
  white-space: nowrap; cursor: pointer;
  transition: all .18s ease;
}
.hsq-open:hover {
  border-color: #e4c68d; color: #fff3d1; background: #1d3940;
}
.hsq-text {
  margin: 0; color: #d5e4e5;
  font: 400 11.5px/1.44 system-ui, "Microsoft YaHei", sans-serif;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Spatial Glass Header, Aurora Mesh & Unified Filter Capsule System */
body:not(.classic-mode)::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(650px circle at 18% 12%, rgba(var(--hero-aura), 0.13), transparent 68%),
    radial-gradient(750px circle at 82% 24%, #e4c68d14, transparent 70%);
  transition: background .8s ease;
}

@media (min-width: 701px) {
  /* Deduplicate redundant Year trigger & nearby Refine button on Desktop/Tablet */
  #year,
  #refine-button {
    display: none;
  }
  .header nav {
    gap: 24px;
  }
  body:not(.classic-mode) :is(#catalog, .catalog-toolbar) {
    scroll-margin-top: calc(var(--archive-header-height, 76px) + 10px);
  }
  body:not(.classic-mode) .header {
    position: sticky; top: 0; z-index: 45;
    padding-inline: 22px;
    border-radius: 0 0 16px 16px;
    border: 1px solid #9be8df2e;
    border-top: 0;
    background: linear-gradient(125deg, #0d1d25d9, #081318e6);
    backdrop-filter: blur(20px) saturate(155%);
    -webkit-backdrop-filter: blur(20px) saturate(155%);
    box-shadow: 0 12px 32px #01060999, 0 0 24px rgba(var(--hero-aura), 0.08), inset 0 -1px 0 #ffffff1a;
  }
  body:not(.classic-mode) .year-strip {
    margin-top: 2px; padding-inline: 18px;
    border-radius: 14px;
    border: 1px solid #83dbd329;
    background:
      radial-gradient(ellipse at 50% 0%, rgba(var(--hero-aura), 0.14), transparent 72%),
      linear-gradient(180deg, #102028e6, #0a151ae6);
    box-shadow: 0 12px 30px #02080c73, inset 0 1px 0 #ffffff1a;
  }
  body:not(.classic-mode) .filter-panel {
    padding: 12px 15px;
    border-radius: 14px;
    border: 1px solid #83dbd32b;
    background:
      radial-gradient(ellipse at 15% 0%, rgba(var(--hero-aura), 0.1), transparent 60%),
      linear-gradient(145deg, #11222ae6, #0b171de6);
    box-shadow: 0 12px 32px #02080c66, inset 0 1px 0 #ffffff17;
  }

  /* Unified 28px Capsule Design System inside Filter Panel (Tabs + Genres + 更多题材 + Exhibitions) */
  .tabs {
    padding: 2px; border-radius: 99px;
    border: 1px solid #6b8e9345; background: #0a151ad9;
  }
  .tabs button {
    height: 28px; min-height: 28px; padding: 0 12px;
    border-radius: 99px; font-size: 12.5px;
    display: inline-flex; align-items: center; gap: 4px;
  }
  .genre {
    height: 28px; min-height: 28px; padding: 0 10px;
    border-radius: 99px; font-size: 12.5px;
    display: inline-flex; align-items: center;
  }
  #other-genres {
    height: 28px; min-height: 28px; padding: 0 11px;
    border-radius: 99px;
    border: 1px solid #4f6d7366;
    background: #102026a6; color: #bfd2d4;
    font: 500 12px/1 system-ui, "Microsoft YaHei", sans-serif;
    gap: 5px;
  }
  #other-genres:hover {
    border-color: #88d8d088; color: #eafaf6; background: #172e35;
  }
  #other-genres.active {
    border-color: #8fdcd4aa; background: #79c9c11c; color: #c7f5ee; font-weight: 600;
  }
  #other-genres .down-chevron {
    width: .38rem; height: .38rem; border-width: 0 1.4px 1.4px 0;
    transform: translateY(-.1rem) rotate(45deg);
  }
  .mood-pill {
    height: 28px; min-height: 28px; padding: 0 11px;
    border-radius: 99px; font-size: 12px;
    display: inline-flex; align-items: center;
  }
  .mood-pill.mobile-only-pill {
    display: none;
  }
}

@media (min-width: 1101px) {

  /* Cursor-Tracking Spotlight Border & Hover Elevation on All Cards */
  body:not(.classic-mode) .anime-card {
    position: relative;
    transition: transform .26s cubic-bezier(.22, 1, .36, 1);
  }
  body:not(.classic-mode) .anime-card:not(.is-bento):hover {
    transform: translateY(-4px);
  }
  body:not(.classic-mode) .anime-card:not(.is-bento):hover .poster {
    border-color: #9ef3e999;
    box-shadow:
      0 14px 30px #02080ccc,
      0 0 22px rgba(var(--card-aura, 132, 224, 212), 0.32);
  }

  /* Bento Flagship Double-Wide Cards (Top 3 Hall-of-Fame Showcase Row = 3 x span 2 = 6 cols) */
  body:not(.classic-mode) .anime-card.is-bento {
    grid-column: span 2;
    display: grid;
    grid-template-columns: min(150px, 42%) minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid #e4c68d66;
    background:
      radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--card-aura, 228, 198, 141), 0.22), transparent 72%),
      linear-gradient(135deg, #172a33f2, #0c171cf2);
    box-shadow:
      0 14px 34px #02080ca6,
      0 0 22px #e4c68d14,
      inset 0 1px 0 #fff5d629;
    align-items: stretch;
  }
  body:not(.classic-mode) .anime-card.is-bento:hover {
    transform: translateY(-4px);
    border-color: #f3dfb3aa;
    box-shadow:
      0 20px 44px #010609d9,
      0 0 30px rgba(var(--card-aura, 228, 198, 141), 0.3),
      inset 0 1px 0 #fff5d640;
  }
  body:not(.classic-mode) .anime-card.is-bento > :is(.card-title, .card-tags, .card-footer),
  body:not(.classic-mode) .anime-card.is-bento .rating-badge {
    display: none;
  }
  body:not(.classic-mode) .anime-card.is-bento .poster {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    align-self: center;
    border-radius: 9px;
    box-shadow: 0 8px 22px #0009;
  }
  body:not(.classic-mode) .anime-card.is-bento .poster-curtain {
    display: none;
  }
  .bento-info {
    display: flex; flex-direction: column; justify-content: space-between;
    min-width: 0; padding: 1px 2px 1px 0; gap: 6px;
  }
  .bento-top {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 3px 6px;
  }
  .bento-kicker {
    display: inline-flex; align-items: center;
    padding: 1.5px 7px; border-radius: 99px;
    background: #e4c68d24; border: 1px solid #e4c68d73;
    color: #f5dda9; font: 700 10px/1.3 system-ui, sans-serif;
    letter-spacing: .03em;
  }
  .bento-meta {
    color: #9ab9bd; font: 500 11px/1.3 system-ui, sans-serif;
  }
  .bento-title {
    padding: 0; border: 0; background: none; text-align: left;
    min-height: 0; height: auto;
    color: #f8f3e6; font: 700 18.5px/1.25 var(--serif);
    cursor: pointer; transition: color .18s ease;
  }
  .bento-title:hover { color: #f5dda9; }
  .bento-quote {
    margin: 0; padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid #83dbd32e;
    border-left: 3px solid #e4c68d;
    background: #0a151ab3;
    display: grid; gap: 3px;
  }
  .bento-quote span {
    color: #e4c68d; font: 600 10.5px/1.2 system-ui, sans-serif;
  }
  .bento-quote p {
    margin: 0; color: #d5e5e6;
    font: 400 11.8px/1.48 system-ui, "Microsoft YaHei", sans-serif;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .bento-foot {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 8px; margin-top: auto; padding-top: 2px;
  }
  .bento-detail-btn {
    height: 28px; min-height: 28px; padding: 0 11px; border-radius: 7px;
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    border: 1px solid #8adcd466; background: #142c33;
    color: #bff5ed; font: 600 11.5px/1 system-ui, "Microsoft YaHei", sans-serif;
    white-space: nowrap; cursor: pointer; transition: all .18s ease;
  }
  .bento-detail-btn:hover {
    border-color: #e4c68d; color: #fff4d4; background: #1d3a42;
  }
  .bento-foot .portal-link {
    font-size: 11.5px; color: #9fc7cb; white-space: nowrap;
  }
}

/* Tablet & Small Laptop Responsive Polish (701px - 1100px) */
@media (max-width: 1150px) {
  .hsq-head small { display: none; }
}
@media (min-width: 701px) and (max-width: 1100px) {
  .bento-info { display: none; }
  .header nav { gap: 16px; }
  .nav-link { font-size: 14px; }
  .bento-toggle { height: 32px; min-height: 32px; padding: 0 10px; font-size: 11.5px; }
  .sound-toggle, .header .cinema-toggle { width: 32px; height: 32px; min-height: 32px; font-size: 14.5px; }
  .hero { grid-template-columns: 44% 56%; }
  .curation-label { display: none; }
  .hero-console { margin-top: 10px; max-width: 100%; }
  .curation-pill, .curation-cycle { min-height: 22px; height: 22px; padding: 0 6.5px; font-size: 10.5px; }
  .hsq-text { font-size: 11px; -webkit-line-clamp: 2; }
  #genres { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  #genres::-webkit-scrollbar { display: none; }
}

/* Mobile Responsive Polish (<= 700px) */
@media (max-width: 700px) {
  .bento-info { display: none; }
  .mobile-only-pill { display: inline-flex; }
  .header-toggles { margin-left: auto; gap: 5px; }
  .bento-toggle { height: 30px; min-height: 30px; padding: 0 9px; font-size: 11px; }
  .sound-toggle, .header .cinema-toggle { width: 30px; height: 30px; min-height: 30px; font-size: 14px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; }
  .hero-copy {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "headline browse" "stats random";
    align-items: center; gap: 4px 10px; padding: 0;
  }
  .hero-copy .hero-actions { display: contents; }
  .hero-actions .primary-button { grid-area: browse; height: 32px; min-height: 32px; padding: 0 11px; font-size: 12px; }
  .hero-actions #random-pick { grid-area: random; height: 28px; min-height: 28px; padding: 0 8px; font-size: 11.5px; justify-self: end; }
  .hero-copy .hero-stats {
    grid-area: stats; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px;
  }
  .hero-console {
    grid-column: 1 / -1; width: 100%; max-width: none;
    margin: 4px 0 2px;
  }
  body:not(.classic-mode) .hero-console .hero-curation {
    display: none;
  }
  .hero-spotlight-quote {
    padding: 6px 10px;
  }
  .hsq-badge { height: 19px; padding: 0 6px; font-size: 9.5px; }
  .hsq-head strong { font-size: 12px; }
  .hsq-open { height: 20px; min-height: 20px; padding: 0 8px; font-size: 10px; }
  .hsq-text { font-size: 11px; line-height: 1.42; -webkit-line-clamp: 2; }
  .feature-triptych { width: min(100%, 420px); align-self: center; margin: 6px auto 2px; }
  #other-genres {
    height: 30px; min-height: 30px; padding: 0 10px; border-radius: 99px;
    font-size: 11.5px; border: 1px solid #4f6d7366; background: #102026a6;
  }

  /* Mobile Year Strip Harmony */
  .year-strip {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    align-items: center; gap: 8px; padding-block: 6px;
  }
  .year-scrubber { display: none; }
  .year-shortcuts {
    padding: 4px 2px;
    mask-image: linear-gradient(to right, #000 calc(100% - 18px), transparent);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 18px), transparent);
  }
  .year-strip .more-years {
    align-self: center;
    width: auto !important; height: 34px; min-height: 34px;
    padding: 0 10px !important;
    border: 1px solid #4f6d7380; border-radius: 8px;
    background: #122329; color: #cde2e4;
    font-size: 11.5px !important; gap: 4px;
  }
  .year-strip .more-years .year-more-label { font-size: 11.5px; }

  /* Mobile Native-App-Grade Catalog Search, Segmented Tabs & Exhibition Shelf */
  .catalog {
    padding-top: 12px;
    background: linear-gradient(180deg, #0d1a21 0%, #0a1419 140px);
    border-top: 1px solid #83dbd324;
  }
  .catalog-heading { display: none !important; }
  .catalog-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
  }
  .catalog-toolbar:has(.searchbox:focus-within) {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .search-row { display: contents; }
  .search-row .searchbox {
    grid-area: 1 / 1;
    position: relative;
    height: 38px; min-height: 38px;
    padding: 0 12px 0 34px;
    border-radius: 10px;
    border: 1px solid #6b8e934d;
    background: #0b161ce6;
    box-shadow: inset 0 1px 0 #ffffff12;
    color: #d6e6e7;
  }
  .search-row .searchbox:focus-within {
    border-color: #8fdcd4aa;
    background: #0f1f27;
    box-shadow: 0 0 0 2px #8fdcd424;
  }
  .search-row .searchbox svg {
    left: 11px; width: 15px; height: 15px; color: #8fb4b9;
  }
  .searchbox input {
    font: 400 14px/20px system-ui, "Microsoft YaHei", sans-serif;
  }
  .searchbox input::placeholder {
    font-size: 13px; color: #8da9ad;
  }
  #mobile-filters {
    grid-area: 1 / 2;
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    height: 38px; min-height: 38px; padding: 0 12px 0 30px;
    border-radius: 10px;
    border: 1px solid #6b8e934d;
    background: #11222ae6;
    box-shadow: inset 0 1px 0 #ffffff14;
    color: #d0e3e5;
    font: 500 13px/1 system-ui, "Microsoft YaHei", sans-serif;
  }
  #mobile-filters svg {
    left: 10px; width: 14px; height: 14px;
  }
  #mobile-filters[aria-expanded="true"] {
    border-color: #8fdcd4aa;
    background: #173038;
    color: #b8f3eb;
    box-shadow: none;
  }
  .filters-open #picker-pair {
    grid-column: 1 / -1; grid-row: 2;
    margin: 2px 0 0; gap: 7px;
  }
  #picker-pair .picker-trigger {
    border-radius: 9px;
    border: 1px solid #5d7f8559;
    background: #102128;
    height: 34px; min-height: 34px;
  }
  .filter-panel {
    gap: 9px; margin-bottom: 10px;
  }
  .tabs {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 3px; gap: 3px;
    border-radius: 10px;
    border: 1px solid #6b8e9338;
    background: #091318e6;
    box-shadow: inset 0 1px 2px #00000055;
  }
  .tabs button {
    height: 30px; min-height: 30px; padding: 0 4px;
    border-radius: 7px;
    color: #a6bfc2;
    font: 500 12px/1 system-ui, "Microsoft YaHei", sans-serif;
    display: inline-flex; align-items: center; justify-content: center; gap: 3px;
    transition: background-color .18s, color .18s;
  }
  .tabs button.active {
    background: linear-gradient(120deg, #a6eae1, #7fd5ce);
    color: #092428;
    font-weight: 600;
    box-shadow: 0 2px 8px #02090c66;
  }
  .tabs button.active::after { display: none; }
  .tabs :is([data-mode="all"], [data-catalog-mode="all"]) span { display: inline; }
  .tabs button span { font-size: 10.5px; opacity: .88; }
  .mood-strip {
    padding: 0 2px 2px 0; gap: 7px;
    mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent);
  }
  .mood-label { display: none; }
  .mood-pill {
    height: 28px; min-height: 28px; padding: 0 11px;
    border-radius: 99px;
    border: 1px solid #56767c4d;
    background: #102129cc;
    color: #c5d9db;
    font: 500 11.5px/1 system-ui, "Microsoft YaHei", sans-serif;
    display: inline-flex; align-items: center;
  }
}

@media (min-width: 2200px) and (max-width: 2999px) {
  body:not(.classic-mode) .anime-card.is-bento {
    grid-template-columns: 162px minmax(0, 1fr);
    gap: 15px; padding: 13px;
  }
  body:not(.classic-mode) .anime-card.is-bento .poster {
    width: 162px;
  }
  .bento-title { font-size: 19.5px; }
  .bento-quote p { font-size: 12.2px; }
}

@media (min-width: 3000px) {
  .header nav { gap: 34px; }
  .bento-toggle { height: 42px; min-height: 42px; padding: 0 15px; font-size: 14.5px; }
  .sound-toggle, .header .cinema-toggle { width: 42px; height: 42px; min-height: 42px; font-size: 18.5px; }
  .hero-console { max-width: 660px; margin-top: 16px; border-radius: 13px; }
  body:not(.classic-mode) .hero-console .hero-curation { padding: 7px 12px; gap: 6px; }
  .hero-spotlight-quote { padding: 10px 15px 11px; }
  .hsq-badge { height: 24px; font-size: 12px; padding: 0 9px; }
  .hsq-head strong { font-size: 16px; }
  .hsq-head small { font-size: 13px; }
  .hsq-open { height: 26px; min-height: 26px; padding: 0 11px; font-size: 12.5px; }
  .hsq-text { font-size: 14px; -webkit-line-clamp: 2; }
  .tabs button, .genre, #other-genres, .mood-pill {
    height: 34px; min-height: 34px; font-size: 14px;
  }
  #other-genres { padding: 0 14px; }
  .view-icon { width: 17px; height: 17px; }
  body:not(.classic-mode):not([data-cover-view="compact"]) .anime-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  body:not(.classic-mode) .anime-card.is-bento {
    grid-template-columns: 204px minmax(0, 1fr);
    gap: 18px; padding: 16px; border-radius: 16px;
  }
  body:not(.classic-mode) .anime-card.is-bento .poster {
    width: 204px;
  }
  .bento-kicker { font-size: 12px; padding: 3px 10px; }
  .bento-meta { font-size: 13.5px; }
  .bento-title { font-size: 24px; }
  .bento-quote { padding: 12px 14px; }
  .bento-quote span { font-size: 13px; }
  .bento-quote p { font-size: 14.5px; -webkit-line-clamp: 4; }
  .bento-detail-btn { height: 36px; min-height: 36px; padding: 0 15px; font-size: 14px; }
  .bento-foot .portal-link { font-size: 14px; }
}

/* 9. Cross-Device 6-Digit Short Code & QR Sync Dialog (#sync-dialog) */
.inline-sync-link {
  min-height: 0; height: auto; padding: 1px 7px;
  border-radius: 99px; border: 1px solid #83dbd366;
  background: #132b32; color: #aef2ea;
  font: 600 11px/1.3 system-ui, sans-serif; cursor: pointer;
}
.inline-sync-link:hover { border-color: #e4c68d; color: #fff4d6; }

.sync-dialog {
  width: min(740px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  margin: auto; padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid #72989d66; border-radius: 16px;
  background:
    radial-gradient(ellipse at 50% 0%, #83dbd31f, transparent 60%),
    linear-gradient(150deg, #122228, #0a1418 85%);
  color: #f0ede4; box-shadow: 0 28px 95px #000d; overflow: auto;
}
.sync-dialog::backdrop { background: #03090cd9; backdrop-filter: blur(10px); }
.sync-modal-body {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px; margin-top: 16px; align-items: stretch;
}
.sync-pane {
  min-width: 0;
  padding: 15px 16px; border-radius: 12px;
  border: 1px solid #49666b52; background: #0d1a20cc;
  display: flex; flex-direction: column; gap: 12px;
}
.sync-pane-head h3 {
  margin: 0 0 4px; font: 600 15.5px/1.3 system-ui, "Microsoft YaHei", sans-serif; color: #f5f0e3;
}
.sync-pane-head p {
  margin: 0; font-size: 12px; line-height: 1.5; color: #9db7ba;
}
.sync-gen-btn {
  min-height: 38px; height: 38px; padding: 0 16px; border-radius: 8px;
  font-size: 13.5px; width: 100%; justify-content: center;
}
.sync-generated-box {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: 12px; padding: 12px; border-radius: 10px;
  border: 1px solid #e4c68d66; background: #091317cc;
}
.sync-generated-box[hidden] { display: none !important; }
.sync-code-display { display: grid; gap: 6px; }
.sync-code-display small { font-size: 11px; color: #9ab5b8; white-space: nowrap; }
.sync-big-code {
  min-height: 44px; padding: 6px 12px; border-radius: 8px;
  border: 1px dashed #e4c68d99; background: #16262b;
  color: #f7e1b0; font: 700 24px/1.15 Consolas, "Courier New", monospace;
  letter-spacing: .08em; cursor: pointer;
}
.sync-big-code:hover { background: #1f3339; border-style: solid; }
.sync-qr-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center;
}
#sync-qr-canvas {
  width: 124px; height: 124px; border-radius: 7px;
  border: 2px solid #e4c68d80; background: #f8f5ec; display: block;
}
.sync-qr-wrap small { font-size: 10px; color: #8da9ad; max-width: 128px; line-height: 1.3; }
.sync-input-row {
  display: flex; gap: 8px; align-items: center;
}
.sync-input-row input {
  flex: 1; min-width: 0; height: 40px; padding: 0 12px;
  border-radius: 8px; border: 1px solid #527076;
  background: #091318; color: #f4f1e6;
  font: 700 18px/1 Consolas, monospace; letter-spacing: .16em; text-align: center;
}
.sync-input-row input::placeholder {
  font: 400 13px/1 system-ui, sans-serif; letter-spacing: 0; color: #86a2a6;
}
.sync-input-row .primary-button {
  flex: none; height: 40px; min-height: 40px; padding: 0 16px; border-radius: 8px; font-size: 13.5px;
}
.sync-status-msg:not(:empty) {
  margin: 0; padding: 7px 10px; border-radius: 7px;
  background: #14282f; border: 1px solid #53787d59;
  color: #b6f0e8; font-size: 12px; line-height: 1.45;
}
.sync-conflicts {
  display: grid; gap: 8px; max-height: 220px; overflow: auto;
  padding: 9px 10px; border-radius: 8px;
  border: 1px solid #e4c68d73; background: #192429;
}
.sync-conflicts[hidden] { display: none !important; }
.sync-conflict-item {
  display: grid; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid #3c545859;
  font-size: 12px; line-height: 1.45;
}
.sync-conflict-item:last-child { padding-bottom: 0; border-bottom: 0; }
.sync-conflict-item strong { color: #f6e3b4; font-size: 12.5px; }
.sync-conflict-vals { display: grid; gap: 4px; color: #c7dcde; font-size: 11.5px; }
.sync-conflict-vals span {
  padding: 4px 7px; border-radius: 5px; background: #0d181d; border: 1px solid #395156;
  overflow-wrap: anywhere;
}
.sync-conflict-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.sync-conflict-actions button {
  min-height: 27px; padding: 3px 9px; border-radius: 6px;
  border: 1px solid #5b7a80; background: #13262c; color: #e9f4f2;
  font: 600 11.5px/1.2 system-ui, sans-serif; cursor: pointer;
}
.sync-conflict-actions button:hover { border-color: #e4c68d; color: #fff4d6; }
.sync-legacy-row {
  margin-top: auto; padding-top: 10px; border-top: 1px solid #3c54584d;
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 11.5px; color: #8faab0;
}
.sync-legacy-row .ghost-button {
  height: 28px; min-height: 28px; padding: 0 10px; border-radius: 6px; font-size: 11.5px;
}
@media (max-width: 680px) {
  .sync-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); padding: 14px; border-radius: 13px; overflow-x: hidden; }
  .sync-modal-body { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .sync-pane { padding: 13px; }
  .sync-generated-box { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .sync-input-row input { width: 100%; min-width: 0; font-size: 16px; letter-spacing: .08em; padding: 0 10px; }
  .sync-input-row .primary-button { padding: 0 13px; font-size: 13px; white-space: nowrap; }
  .sync-dialog .stats-modal-head h2 { font-size: clamp(17px, 4.6vw, 21px); }
}

/* Curator's Salon & Archive Pulse (#about modal) */
#about.about-dialog {
  width: min(820px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  margin: auto; padding: 0; border-radius: 18px;
  border: 1px solid #72989d66;
  background:
    radial-gradient(ellipse at 18% 0%, #83dbd31c, transparent 58%),
    radial-gradient(ellipse at 88% 100%, #e4c68d17, transparent 52%),
    linear-gradient(150deg, #13242b 0%, #0a1419 86%);
  box-shadow: 0 32px 110px #000d;
}
#about .about-content {
  padding: clamp(22px, 3.2vw, 34px); display: grid; gap: 18px;
}
.about-eyebrow-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; padding-right: 44px;
}
.about-eyebrow-row .eyebrow { margin: 0; font-size: 11px; letter-spacing: .12em; color: #9adfd7; }
.about-live-pill {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px;
  border-radius: 99px; border: 1px solid #e4c68d66; background: #26251dcc;
  color: #f4dca6; font: 600 11.5px/1 system-ui, sans-serif; white-space: nowrap;
}
#about .about-content h2 {
  margin: -6px 0 -8px; font: 700 clamp(22px, 2.6vw, 28px)/1.28 "Noto Serif SC", "Songti SC", Georgia, serif;
  color: #f6f2e8;
}
#about .about-content h2 + p {
  margin: 0; font-size: 14.5px; line-height: 1.7; color: #bed0d3;
}
.about-pillars {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
}
.about-pillar {
  padding: 12px 13px; border-radius: 11px; border: 1px solid #45626759;
  background: #0d1b21b8; display: grid; gap: 4px;
}
.about-pillar strong { font-size: 13px; color: #f3ece0; font-weight: 650; }
.about-pillar small { font-size: 12px; line-height: 1.5; color: #96b1b5; }

.about-section {
  padding-top: 15px; border-top: 1px solid #3c565b4d; display: grid; gap: 11px;
}
.about-section[hidden] { display: none !important; }
.about-sec-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap;
}
.about-sec-head h3 {
  margin: 0; font: 650 15px/1.3 "Noto Serif SC", system-ui, sans-serif; color: #f4efe3;
}
.about-sec-head small { font-size: 11.5px; color: #8da9ad; }

.about-recent-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px;
}
.about-recent-card {
  padding: 0; border: 0; background: transparent; text-align: left;
  display: flex; flex-direction: column; gap: 6px; cursor: pointer; color: inherit;
  min-width: 0;
}
.about-recent-poster {
  position: relative; aspect-ratio: 3 / 4; width: 100%; border-radius: 9px;
  overflow: hidden; border: 1px solid #49676c73; background: #0c181d;
  box-shadow: 0 8px 20px #0006; transition: transform .2s ease, border-color .2s ease;
}
.about-recent-card:hover .about-recent-poster {
  transform: translateY(-3px); border-color: #e4c68dba;
}
.about-recent-poster img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.about-recent-badge {
  position: absolute; left: 6px; top: 6px; padding: 2px 6px; border-radius: 5px;
  background: #0b161bd9; backdrop-filter: blur(6px); border: 1px solid #e4c68d73;
  color: #f6dfa8; font: 600 10px/1.2 system-ui, sans-serif;
}
.about-recent-title {
  font: 600 12.5px/1.35 system-ui, "Microsoft YaHei", sans-serif; color: #f1eee5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%;
}
.about-recent-sub {
  font-size: 11px; color: #8eaab0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%;
  margin-top: -3px;
}

.about-release-strip {
  display: grid; gap: 7px;
}
.about-rel-row {
  display: grid; grid-template-columns: auto auto 1fr; align-items: baseline;
  gap: 9px; padding: 8px 11px; border-radius: 8px;
  background: #0c191ecc; border: 1px solid #38515659; font-size: 12px; line-height: 1.5;
}
.about-rel-ver {
  padding: 1px 7px; border-radius: 4px; background: #1c353a; border: 1px solid #466e73;
  color: #a9ebe2; font: 700 11px/1.3 Consolas, monospace;
}
.about-rel-row:first-child .about-rel-ver {
  background: #352e1f; border-color: #8b7449; color: #f5deb0;
}
.about-rel-date { color: #88a4a8; font: 500 11.5px/1 Consolas, sans-serif; white-space: nowrap; }
.about-rel-sum { color: #cadadd; min-width: 0; }
.about-rel-details { grid-column: 1 / -1; min-width: 0; }
.about-rel-details summary { width: fit-content; cursor: pointer; color: #a6d9d2; padding-block: 5px; font-size: 12px; font-weight: 600; }
.about-rel-details ul { margin: 5px 0; padding-inline-start: 19px; line-height: 1.7; color: #c6d5d6; }
.about-rel-details li + li { margin-top: 5px; }

.home-recent {
  display: grid; gap: 12px; min-width: 0; margin: 0 0 clamp(20px, 2vw, 30px); order: -2;
}
.home-recent[hidden] { display: none; }
.home-recent h2 {
  display: flex; align-items: center; gap: 10px; margin: 0;
  color: #eee9dc; font: 650 clamp(16px, 1.2vw, 20px)/1.3 "Noto Serif SC", "Songti SC", SimSun, serif;
  letter-spacing: .04em;
}
.home-recent h2::before { content: ''; width: 3px; height: .9em; border-radius: 3px; background: #a0dcd3; }
.home-recent h2::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, #58777b70, #58777b15); }
.home-recent ul {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(7px, .9vw, 15px);
  margin: 0; padding: 0; list-style: none;
}
.home-recent li { min-width: 0; }
.home-recent button {
  position: relative; isolation: isolate; overflow: hidden;
  width: 100%; height: 100%; min-width: 0; display: grid;
  grid-template-columns: clamp(40px, 3.7vw, 60px) minmax(0, 1fr); align-items: center; gap: clamp(8px, .85vw, 15px);
  padding: 6px; margin: 0; border: 1px solid #516d723f; border-radius: 9px;
  background: linear-gradient(110deg, #203338 0%, #192a30 50%, #142329 100%);
  color: #eceade; text-align: left; cursor: pointer;
}
.home-recent .recent-cover {
  display: block; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px;
  background: #0d191e; box-shadow: 0 2px 6px #050c0f55;
}
.home-recent .recent-cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.home-recent .recent-wash {
  position: absolute; z-index: -1; inset: 0 0 0 auto; width: 52%; height: 100%; object-fit: cover; object-position: center 32%;
  opacity: .2; pointer-events: none; mask-image: linear-gradient(90deg, transparent, #000 92%);
}
.home-recent .recent-copy { display: grid; gap: 6px; min-width: 0; padding-inline-end: 4px; }
.home-recent .recent-title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; text-wrap: balance;
  color: inherit; font: 650 clamp(14px, 1.05vw, 18px)/1.38 "Noto Serif SC", "Songti SC", SimSun, serif;
}
.home-recent .recent-meta {
  display: flex; align-items: baseline; gap: 6px; overflow: hidden;
  color: #acc2c3; font: 500 12px/1.4 system-ui, sans-serif; font-variant-numeric: tabular-nums;
}
.home-recent .recent-genre { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.home-recent .recent-genre::before { content: '·'; margin-inline-end: 6px; color: #8fa8a9; }
.home-recent button:focus-visible { outline: 2px solid #a1dad3; outline-offset: 2px; }
@media (hover: hover) {
  .home-recent button:hover { border-color: #88b5ae; background: #243a40; color: #cdf7ef; }
}
@media (max-width: 720px) {
  .home-recent { gap: 8px; margin-bottom: 17px; }
  .home-recent h2 { font-size: 15px; gap: 7px; }
  .home-recent ul { gap: clamp(5px, 1.6vw, 10px); }
  .home-recent button {
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 5px;
    background: transparent; border: 0; border-radius: 5px; padding: 0;
  }
  .home-recent .recent-cover { border: 1px solid #58747766; }
  .home-recent .recent-copy { padding: 0; gap: 2px; }
  .home-recent .recent-title { font: 600 12px/1.4 system-ui, sans-serif; }
  .home-recent .recent-wash, .home-recent .recent-meta { display: none; }
}

@media (max-width: 720px) {
  .about-pillars { grid-template-columns: 1fr; gap: 8px; }
  .about-recent-grid {
    display: grid; grid-auto-flow: column; grid-auto-columns: 116px;
    grid-template-columns: none; overflow-x: auto; padding-bottom: 4px;
    scroll-snap-type: x proximity; scrollbar-width: none;
  }
  .about-recent-grid::-webkit-scrollbar { display: none; }
  .about-recent-card { scroll-snap-align: start; }
  .about-rel-row { grid-template-columns: auto 1fr; gap: 4px 8px; }
  .about-rel-sum { grid-column: 1 / -1; }
}

.result-actions, .footer-actions { display: flex; align-items: center; gap: 1em; }
.result-line:has(#go-to-footer:not([hidden])) {
  position: sticky; top: 0; z-index: 12; display: flex; justify-content: space-between;
  align-items: center; width: auto; height: auto; min-height: 32px; clip-path: none;
  overflow: visible; gap: 10px; background: #122027; border-bottom: 1px solid #83aaa526;
}
@media (min-width: 701px) {
  body:not(.classic-mode) .result-line:has(#go-to-footer:not([hidden])) { top: var(--archive-header-height, 76px); }
}
#go-to-footer, #resume-browsing {
  display: inline-flex; align-items: center; gap: .38em; white-space: nowrap;
  min-height: 32px; padding: 0; border: 0; background: transparent;
  font: inherit; color: #a6c6c7;
}
#go-to-footer:hover, #resume-browsing:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .25em; }
body:has(#resume-browsing:not([hidden])) .result-line:has(#go-to-footer:not([hidden])) { position: static; }
.footer-actions { justify-content: flex-end; flex-wrap: wrap; }
#resume-browsing { color: var(--accent); font-size: 13px; font-weight: 600; }
#catalog:has(#empty:not([hidden])) { padding-bottom: 16px; }
#empty { min-height: 0; padding: 24px 14px 18px; }
#empty .empty-icon { font-size: 24px; line-height: 1; margin: 0 0 8px; }
#empty h3 { margin: 0 0 6px; font-size: clamp(18px, 1.6vw, 23px); }
#empty p { margin: 0 0 14px; }
#empty-reset { min-height: 38px; padding: 8px 16px; font-size: 14px; }
@media (max-width: 700px) {
  .result-line:has(#go-to-footer:not([hidden])) { align-self: stretch; margin: 0 0 6px; font-size: 12px; }
  #go-to-footer { min-height: 36px; }
  #site-footer { padding-block: 18px 12px; }
  #site-footer .footer-brand { width: fit-content; }
  #site-footer .footer-brand small, .footer-range > span:first-child { display: none; }
  #site-footer .footer-notes { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-top: 4px; }
  #site-footer .footer-notes p { margin: 0; }
  .footer-actions { flex-basis: 100%; justify-content: flex-start; gap: 16px; }
  .footer-actions > :is(a,button) { display: inline-flex; align-items: center; min-height: 40px; }
  .exhibition-banner { order: 3; }
  .archive-shelf-bar { order: 3; }
  #picker-options.picker-grid button:not(:first-child) {
    padding: 6px;
    gap: 3px;
    font-size: 12.5px;
  }
  #picker-options.picker-grid button:not(:first-child) span { white-space: nowrap; }
  #picker-options.picker-grid button:not(:first-child) small { font-size: 10px; white-space: nowrap; }
  #empty { padding-block: 16px 8px; }
}

/* Keep the showcase and its navigation at the same baseline across the three galleries. */
@media (max-width:700px) {
  .header:has(+ main > .hero) { min-block-size: 106px; }
  .hero-console .hsq-text { min-block-size: 2lh; }
}
@media (min-width:701px) and (max-width:1199px) {
  .header + main > .hero { min-block-size: 424px; align-content: center; }
}
@media (min-width:701px) and (max-width:850px) {
  .header:has(+ main > .hero) { min-block-size: 102px; }
}
@media (min-width:1101px) and (max-width:2999px) {
  .header:has(+ main > .hero) { min-block-size: 75px; }
}
@media (min-width:3000px) {
  .header:has(+ main > .hero) { min-block-size: 89px; }
}
@media (min-width:701px) and (max-width:740px) {
  .header:has(+ main > .hero) { min-block-size: 118px; }
}
@media (min-width:1200px) and (max-width:1499px) {
  .header + main > .hero { min-block-size: 396px; }
}

@media (min-width:1101px) and (max-width:1400px) {
  .header:has(+ main > .hero), .header:has(+ main > .hero) nav { gap: 14px; }
  .header:has(+ main > .hero) .rule-inline { display: none; }
}
.work-comments,.manage{color:#e7edeb;font-family:system-ui,"Microsoft YaHei",sans-serif}
.work-comments{border-top:1px solid #36474d;padding:22px clamp(18px,4vw,36px) 30px;text-align:left}
.work-comments h3,.manage h1,.manage h2{font-family:Georgia,"Songti SC",SimSun,serif}
.work-comments h3{margin:0 0 14px;font-size:22px}.notes,.work-comments small,.manage small{color:#b6c8ca;font-size:13px;line-height:1.65}
.notes article,.manage article{border-bottom:1px solid #34464c;padding:10px 0}.notes p,.manage article p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;color:#e0e8e7;margin:4px 0 8px}
.work-comments form{margin-top:18px}.work-comments label,.manage label{display:grid;gap:7px;font-size:14px}
.work-comments textarea,.manage input,.manage select{display:block;box-sizing:border-box;width:100%;border:1px solid #50656b;border-radius:6px;background:#0b161d;color:#eef4f2;padding:10px;font:inherit}.work-comments textarea{resize:vertical}
.work-comments button,.manage button{border:1px solid #577078;border-radius:6px;background:#172830;color:#dfedeb;cursor:pointer;padding:8px 13px;font:inherit;font-size:14px}
.work-comments button:disabled,.manage button:disabled{opacity:.6}.send-row,.queue-tabs,.pair{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.send-row{justify-content:space-between;margin:9px 0}.send-row button,.manage .accent,.manage button[aria-pressed=true]{background:#a1dfda;color:#15282b;border-color:transparent}
.work-comments .comment-trap{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.feedback,.manage [role=status]{font-size:14px;color:#b7d9d4;line-height:1.6}.feedback:empty,.manage [role=status]:empty{display:none}
.manage{color-scheme:dark;background:#0b141a;margin:0;min-height:100vh}.manage header,.manage main{max-width:1000px;margin:auto;padding:24px}.manage header{border-bottom:1px solid #30444b}.manage header a,.admin-entry{color:#b4cfce;text-decoration:underline;text-underline-offset:3px}.manage h1{margin:18px 0 0}.manage main{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start}.manage section{padding:22px;background:#132129;border:1px solid #30444b;border-radius:10px}.manage h2{margin:0 0 18px}.manage form{display:grid;gap:16px}.pair>*{flex:1}.queue-tabs button{min-height:38px}.manage article h3{margin:6px 0}.admin-entry{font-size:12px}
@media(max-width:700px){.manage main{grid-template-columns:1fr}.manage header,.manage main{padding:16px}.manage section{padding:16px}.send-row{align-items:flex-start}}

.studio{--line:#31464d;--muted:#abc0c4}.studio [hidden]{display:none!important}.studio header{display:flex;align-items:center;justify-content:space-between;padding-block:24px 16px}.studio header h1{margin:10px 0 0}.studio-nav{max-width:1000px;padding:12px 24px 0;margin:auto;display:flex;gap:6px}.studio .studio-nav button{border:0;background:transparent;color:var(--muted);border-radius:0;padding:12px 16px}.studio .studio-nav button[aria-pressed=true]{color:#a9ebe4;border-bottom:2px solid #89d6ce}.studio main{grid-template-columns:minmax(235px,.85fr) minmax(0,1.65fr);gap:20px}.studio h2{font-size:24px}.studio .section-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.studio .section-head small,.studio #work-state{font:13px system-ui;color:var(--muted)}.studio input,.studio select,.studio textarea{font:15px/1.5 system-ui;color:#ebf2ef}.studio textarea{box-sizing:border-box;width:100%;resize:vertical;background:#0b161d;border:1px solid #50656b;border-radius:6px;padding:10px}.studio #library>label{margin:12px 0}.studio .library-item{width:100%;display:flex;gap:12px;align-items:center;text-align:left;background:transparent;border:none;border-bottom:1px solid var(--line);border-radius:0;padding:9px 2px}.studio .library-item[aria-current=true]{background:#203638}.library-item img{width:37px;height:48px;object-fit:cover;border-radius:3px}.library-item span{display:grid;min-width:0;gap:4px}.library-item strong{font-size:14px;overflow-wrap:anywhere}.studio #titles{max-height:60vh;overflow:auto}.studio .cover-tools{display:grid;grid-template-columns:108px minmax(0,1fr);align-items:center;gap:16px;padding-bottom:18px;border-bottom:1px solid var(--line)}.cover-tools img{width:108px;height:142px;background:#0b161d;object-fit:contain;border:1px solid var(--line);border-radius:5px}.studio input[type=file]{padding:8px 0;border:0;background:none;font-size:13px}.studio .editor-actions{display:flex;flex-wrap:wrap;gap:8px}.editor-actions button{min-height:43px}.studio form{gap:14px}.studio #moderation{grid-column:1/-1}.studio a{color:#b8e4df}.work-synopsis{margin:17px 0}.work-synopsis h3{font-size:16px;margin:0 0 6px}.work-synopsis p{font-size:15px;line-height:1.85;color:#c5d2d4;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
@media(max-width:700px){.studio main{grid-template-columns:1fr}.studio #titles{max-height:200px}.studio .cover-tools{grid-template-columns:76px minmax(0,1fr);gap:10px}.cover-tools img{width:76px;height:104px}.studio header,.studio-nav{padding-inline:16px}.studio section{min-width:0}.studio #editor{scroll-margin-top:8px}}
.admin-login{display:grid;place-items:center;min-height:100svh;background:radial-gradient(ellipse at 70% 10%,#1a353a,transparent 55%),#0b141a}
.admin-login main{box-sizing:border-box;display:block;width:min(100%,460px);padding:20px}
.admin-login section{padding:clamp(22px,6vw,36px);border-radius:12px;border-top:2px solid #89cfc9}
.admin-login h1{font-size:30px;margin:22px 0 24px}.admin-login a{color:#b2d2d1;text-underline-offset:4px;font-size:14px}
.admin-login input,.admin-login button{min-height:44px}.admin-login button{margin-top:8px}

.work-comments form { display: grid; gap: 14px; }
.work-comments .review-nickname small { margin-inline-start: 4px; color: #aebfc2; font-size: 12px; }
.work-comments input:not([name=website]), .work-comments textarea {
 width: 100%; min-width: 0; box-sizing: border-box; padding: 9px 11px;
 border: 1px solid #43585e; border-radius: 6px; background: #101d23; color: #ecf1ee;
 font: 16px/1.45 system-ui, "Microsoft YaHei", sans-serif;
}
.work-comments :is(input,textarea):focus-visible { outline: 2px solid #96d9d1; outline-offset: 1px; }
.work-comments input::placeholder, .work-comments textarea::placeholder { color: #99acb0; }
.review-nickname { max-width: 21rem; }
.notes article { overflow-wrap: anywhere; }
.notes article strong { color: #dceae6; font-weight: 600; }
.notes .note-head {
 display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.notes article.is-curator {
 margin: 6px 0; padding: 11px 13px; border-radius: 8px;
 border: 1px solid #e4c68d66;
 background: linear-gradient(125deg, #22302980, #12212780);
}
.notes .curator-badge {
 display: inline-flex; align-items: center; margin-left: 6px; padding: 1px 7px;
 border-radius: 99px; border: 1px solid #e4c68d99;
 background: #e4c68d24; color: #f3dba5;
 font: 600 11px/1.35 system-ui, "Microsoft YaHei", sans-serif;
}
.work-comments button.note-like {
 display: inline-flex; align-items: center; gap: 4px;
 min-height: 26px; padding: 2px 9px; border-radius: 99px;
 border: 1px solid #48646a80; background: #102026; color: #abc3c5;
 font: 500 11.5px/1.25 system-ui, "Microsoft YaHei", sans-serif;
 transition: border-color .18s, color .18s, background-color .18s, transform .15s;
}
.work-comments button.note-like:hover {
 border-color: #8be0d799; color: #e9faf7;
}
.work-comments button.note-like.liked {
 border-color: #e4c68dcc; background: linear-gradient(120deg, #28362e, #16282c);
 color: #f4dca6; box-shadow: 0 0 10px #e4c68d26;
}
.work-comments button.note-like b { font-variant-numeric: tabular-nums; }
.work-comments .verification {
 display: grid; grid-template-columns: minmax(4.5rem,8rem) minmax(5.7rem,8rem) max-content;
 gap: 7px; align-items: end;
}
.verification label { min-width: 0; }
.work-comments .verification input, .work-comments .captcha-picture, .work-comments .captcha-refresh { height: 42px; }
.work-comments button.captcha-picture {
 display: grid; place-items: center; width: 100%; min-width: 0; padding: 0; overflow: hidden;
 background: #13292e; border: 1px solid #466264; color: #c5e4df; font-size: 13px;
}
.work-comments .captcha-picture img { display: block; width: 100%; height: 100%; object-fit: contain; }
.work-comments .captcha-picture [hidden] { display: none; }
.work-comments button.captcha-refresh { background: transparent; border: 0; padding: 0 4px; color: #a2d6cf; font-size: 13px; }
.work-comments .send-row { margin: 0; }
.work-comments .send-row button { margin-inline-start: auto; }
@media (max-width: 360px) {
 .work-comments .verification { grid-template-columns: minmax(0,1fr) minmax(0,1.15fr) auto; gap: 5px; }
}

#details {
 --ink:#f4f2f5; --muted:#bbc6d6; --line:#414b60; --accent:#c1d2ee; --sheet:#151c29;
 --gutter-detail:clamp(16px,4vw,30px);
 width:min(710px,calc(100% - 24px)); max-width:none; max-height:calc(100dvh - 24px);
 margin:auto; padding:0; border:1px solid #465365; border-radius:14px;
 background:var(--sheet); color:var(--ink); scrollbar-width:thin; scrollbar-color:#4a596c var(--sheet);
 box-shadow:0 20px 75px #02090b80; overscroll-behavior:contain;
}
#details::backdrop { background:#061217bf; backdrop-filter:blur(8px); }
#details .dialog-close {
 top:10px; right:10px; width:32px; height:32px; min-height:0; min-width:0;
 border:1px solid #c1d0d557; background:#12202bd9; color:#f3f6f5; font:22px/1 system-ui;
}
#details .detail-layout {
 isolation:isolate; display:flex; align-items:flex-end; position:relative; overflow:hidden;
 min-height:252px; padding:36px var(--gutter-detail) 24px; background:#141c2b;
 animation:detail-fade .22s ease-out;
}
@keyframes detail-fade { from { opacity:.6; transform:translateY(3px); } to { opacity:1; transform:none; } }
#details .detail-art { position:absolute; inset:0; z-index:-2; overflow:hidden; pointer-events:none;
 background:radial-gradient(ellipse at 85% 22%,var(--sky,#3a5565),transparent 66%),linear-gradient(155deg,#151d2c,#25354a 78%,#182334); }
#details .detail-art:not([data-kind])::after {
 content:""; position:absolute; inset:0;
 background:radial-gradient(ellipse 48% 78% at 90% 112%,#121f32 54%,transparent 55%),
 radial-gradient(ellipse 60% 84% at 107% 105%,#27384c 53%,transparent 54%),
 radial-gradient(circle at 77% 32%,#d1dcdf9c 0 1px,transparent 2px),radial-gradient(circle at 91% 47%,#cbd9e26e 0 1px,transparent 2px),
 linear-gradient(145deg,transparent 55%,#c8d9eb18 65%,transparent 78%);
}
#details .detail-layout::after {
 content:""; position:absolute; z-index:-1; inset:0; pointer-events:none;
 background:linear-gradient(90deg,#101724fa 3%,#101724f0 24%,#101724bd 47%,#10172438 68%,transparent 84%),
 linear-gradient(0deg,#151c299c,transparent 48%);
}
#details .detail-art .detail-image { display:block; position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:60% 38%; }
#details .detail-wash { width:100%; height:100%; object-fit:cover; object-position:65% 40%; filter:blur(22px) saturate(.82) brightness(.78); transform:scale(1.12); }
#details .detail-tile { position:absolute; right:0; top:-12%; width:72%; aspect-ratio:1; height:auto; mask-image:linear-gradient(90deg,transparent,#000 20%); }
#details .detail-copy { position:relative; width:61%; min-width:0; padding:0; overflow-wrap:anywhere; }
#details .detail-layout:has([data-kind=poster]) .detail-copy { width:53%; }
#details .detail-art[data-kind=poster] .detail-image {
 inset:7% 3.5% auto auto; width:40%; height:86%; object-fit:contain; object-position:center;
 filter:drop-shadow(0 12px 24px #030710cc) drop-shadow(0 0 1px #ffffff40);
}
#details .detail-copy .eyebrow { margin:0 0 6px; color:#c0cad9; font:500 12px/1.45 system-ui,sans-serif; letter-spacing:.04em; }
#details .detail-copy h2 { margin:0; padding:0; color:var(--ink); font:600 clamp(27px,4vw,40px)/1.18 Georgia,"Songti SC",SimSun,serif; letter-spacing:.02em; text-shadow:0 2px 12px #07101a; }
#details .detail-rating { margin:8px 0 0; padding:0; background:transparent; color:var(--accent); font:550 12px/1.5 system-ui,sans-serif; }
#details .detail-rating.caution { color:#f0c19b; }
#details .detail-meta { border:0; margin:8px 0 0; padding:0; font-size:12px; color:var(--muted); }
#details .detail-meta b { color:inherit; }
#details .hero-synopsis { margin:9px 0 0; color:#d3dbe6; font:400 13px/1.65 system-ui,sans-serif; }
#details .work-synopsis { margin:0; padding:18px var(--gutter-detail); display:grid; gap:14px; }
#details .work-synopsis h3 { margin:0 0 4px; font-size:15.5px; color:var(--ink); }
#details .work-synopsis p { color:var(--muted); margin:0; }
#details .curator-verdict {
 padding:12px 15px; border-radius:10px;
 border:1px solid #e4c68d77; border-left:3.5px solid #e4c68d;
 background:linear-gradient(125deg,#25312b99,#15202b99);
}
#details .curator-verdict.is-caution {
 border-color:#ebaa7a77; border-left-color:#ebaa7a;
 background:linear-gradient(125deg,#33241f99,#1b1c2899);
}
#details .verdict-head {
 display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:5px;
}
#details .verdict-head span { font:600 12.5px/1.3 system-ui,sans-serif; color:#f3dba5; }
#details .curator-verdict.is-caution .verdict-head span { color:#f5c39b; }
#details .verdict-head small { font:600 10px/1.2 Consolas,monospace; letter-spacing:.1em; color:#95a8b8; }
#details .curator-verdict p { font:400 13.5px/1.68 system-ui,"Microsoft YaHei",sans-serif; color:#eef2f0; }
#details .personal-note-box {
 padding:10px 13px; border-radius:10px;
 border:1px solid #47586e80; background:#11192699;
 display:grid; gap:7px;
}
#details .note-box-head span { font:600 12px/1.3 system-ui,sans-serif; color:#c8d8ea; }
#details .note-box-head small { font-weight:400; color:#8b9bb0; margin-left:6px; }
#details .note-box-row { display:flex; gap:8px; align-items:center; }
#details .personal-note-input {
 flex:1; min-width:0; height:34px; padding:0 11px;
 border:1px solid #495a70; border-radius:7px;
 background:#0c131e; color:#eef3f7; font:400 13px/1.3 system-ui,sans-serif;
}
#details .personal-note-save {
 flex:none; min-height:34px; padding:0 13px;
 border:1px solid #8298b280; border-radius:7px;
 background:#1b283b; color:#d7e5f5; font:600 12px/1.2 system-ui,sans-serif; cursor:pointer;
}
#details .personal-note-save:hover { border-color:var(--accent); color:#ffffff; }
#details .work-synopsis p, #details .notes article { overflow-wrap:anywhere; }
#details .detail-actions { margin:14px 0 0; gap:7px; }
#details .detail-actions :is(a,button), #details .send-row button, #details .compose-toggle {
 display:inline-flex; justify-content:center; align-items:center; flex:0 0 auto; min-height:35px; padding:6px 13px;
 border:1px solid transparent; border-radius:24px; box-shadow:none; color:#162334; background:var(--accent);
 font:600 13px/1.35 system-ui,sans-serif; letter-spacing:0; text-decoration:none;
}
#details .detail-actions .detail-save,#details .detail-actions .detail-watched,#details .detail-actions .detail-poster-btn,#details .detail-actions .detail-alt-btn,#details .detail-actions .detail-pv-btn,#details .compose-toggle { color:var(--accent); background:#121b298c; border-color:#8293aa88; cursor:pointer; }
#details .detail-actions .detail-alt-btn { color:#bce9e2; border-color:#74b9b078; }
#details .detail-actions .detail-pv-btn { color:#f0daf7; border-color:#b591cc78; }
#details .detail-actions .detail-pv-btn.active { background:#2a223ddb; border-color:#d5b4f0; }
#details .detail-actions .detail-alt-btn:hover,#details .detail-actions .detail-pv-btn:hover { border-color:var(--ink); color:#ffffff; }
#details .detail-actions .detail-save.saved,#details .detail-actions .detail-watched.watched { border-color:var(--accent); background:#1e2e44b8; }
#details .detail-actions .detail-poster-btn { color:#ebd29c; border-color:#c6ad7878; }
#details .detail-credits {
 display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:9px 0 0;
}
#details .credit-chip {
 display:inline-flex; align-items:center; gap:4px;
 height:auto; min-height:24px; max-width:100%; padding:4px 9px;
 border-radius:99px; border:1px solid #6b819b66;
 background:#101927bf; color:#cdd9ea;
 font:500 11.5px/1.35 system-ui,"Microsoft YaHei",sans-serif;
 text-align:left;
 backdrop-filter:blur(6px);
}
#details button.credit-chip.is-clickable { cursor:pointer; transition:all .18s ease; }
#details button.credit-chip.is-clickable:hover {
 border-color:#a2e6dc; color:#eafffc; background:#172b34; transform:translateY(-1px);
}

/* Inline Expandable Official PV / OP Player Drawer */
#details .pv-drawer {
 border-radius:11px; border:1px solid #667b9973;
 background:#0d1420; overflow:hidden;
 box-shadow:0 10px 28px #0008;
}
#details .pv-drawer[hidden] { display:none !important; }
#details .pv-drawer-head {
 display:flex; align-items:center; justify-content:space-between; gap:8px;
 padding:8px 13px; border-bottom:1px solid #354357;
 font:600 12px/1.3 system-ui,sans-serif; color:#d7e3f4;
}
#details .pv-drawer-head a { color:#9de8df; font-weight:500; text-decoration:none; }
#details .pv-drawer-head a:hover { text-decoration:underline; }
#details .pv-frame-wrap {
 position:relative; width:100%; aspect-ratio:16 / 9; background:#05080d;
}
#details .pv-frame-wrap iframe {
 position:absolute; inset:0; width:100%; height:100%; border:0;
}

/* Zero-Friction Visitor Resonance Stamps */
#details .resonance-bar {
 padding:10px 13px; border-radius:10px;
 border:1px solid #4d627c73;
 background:linear-gradient(135deg,#16223399,#10182699);
 display:grid; gap:8px;
}
#details .res-head {
 display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:4px 10px;
}
#details .res-head span { font:600 12.5px/1.3 system-ui,sans-serif; color:#e4ecf7; }
#details .res-head small { font:400 11px/1.3 system-ui,sans-serif; color:#8d9eb5; }
#details .res-stamps {
 display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px;
}
@keyframes stamp-pop {
 0% { transform:scale(1); }
 45% { transform:scale(1.06); }
 100% { transform:scale(1); }
}
#details .res-stamp {
 height:34px; min-height:34px; padding:0 10px;
 border-radius:8px; border:1px solid #4c607a80;
 background:#111b2a; color:#c8d6e8;
 display:inline-flex; align-items:center; justify-content:center; gap:6px;
 font:550 12px/1 system-ui,"Microsoft YaHei",sans-serif;
 cursor:pointer; transition:all .18s ease;
}
#details .res-stamp i { font-style:normal; font-size:13px; }
#details .res-stamp b {
 padding:2px 6px; border-radius:99px;
 background:#1b293e; color:#9eb2ca;
 font:600 11px/1 Consolas,monospace; font-variant-numeric:tabular-nums;
}
#details .res-stamp:hover { border-color:#8faad0; color:#f4f8fd; background:#172538; }
#details .res-stamp.active {
 border-color:#e4c68dcc;
 background:linear-gradient(125deg,#2a352ce6,#182834e6);
 color:#f7e2b2;
 box-shadow:0 4px 14px #0006, 0 0 12px #e4c68d26;
}
#details .res-stamp.active b {
 background:#e4c68d2e; color:#ffeab9;
}
#details .res-stamp.pop { animation:stamp-pop .24s ease-out; }
@media(max-width:520px) {
 #details .res-stamps { grid-template-columns:1fr; gap:6px; }
 #details .res-stamp { justify-content:space-between; padding:0 12px; }
 #details .note-box-head { display:block; }
 #details .note-box-head small { display:block; margin:4px 0 0; line-height:1.5; }
}
#details .detail-disabled { align-self:center; color:var(--muted); }
#details .detail-related { padding:13px var(--gutter-detail) 15px; border-top:1px solid #42506566; background:#12182480; }
#details .detail-nav-strip { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
#details .detail-nav-strip :is(.detail-step,.detail-share-btn) {
 min-height:30px; padding:4px 11px; border:1px solid #4d5d75; border-radius:16px;
 background:#182132; color:var(--muted); font:500 12px/1.3 system-ui,sans-serif; cursor:pointer;
}
#details .detail-nav-strip :is(.detail-step,.detail-share-btn):hover:not(:disabled) { color:var(--ink); border-color:var(--accent); }
#details .detail-pos { font:500 12px/1.3 Consolas,monospace; color:var(--muted); margin-right:auto; padding-left:2px; }
#details .related-block { margin-top:12px; padding-top:11px; border-top:1px solid #39465a59; }
#details .related-head { display:flex; align-items:baseline; justify-content:space-between; margin-bottom:8px; }
#details .related-head h3 { margin:0; font:600 14px/1.35 system-ui,sans-serif; color:var(--ink); }
#details .related-head small { font-size:11px; color:var(--muted); }
#details .related-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
#details .related-card {
 display:flex; align-items:center; gap:8px; min-width:0; min-height:54px; padding:5px 7px;
 border:1px solid #3c4a5f80; border-radius:8px; background:#182131; color:var(--ink); text-align:left; cursor:pointer;
}
#details .related-card:hover { border-color:var(--accent); background:#1e293d; }
#details .related-card img { width:34px; height:46px; flex:none; object-fit:cover; border-radius:4px; background:#0f1622; }
#details .related-meta { display:grid; min-width:0; gap:2px; }
#details .related-meta strong { font:600 12px/1.3 system-ui,sans-serif; color:var(--ink); overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
#details .related-meta small { font:400 11px/1.25 system-ui,sans-serif; color:var(--muted); overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.poster-dialog {
 width:min(420px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); margin:auto; padding:16px 18px 18px;
 border:1px solid #526b64; border-radius:14px; background:#122225; color:#f1eee4;
 box-shadow:0 24px 80px #000c; overflow:auto;
}
.poster-dialog::backdrop { background:#040b0ed9; backdrop-filter:blur(8px); }
.poster-dialog-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.poster-dialog-head h2 { margin:0; font:600 18px/1.3 Georgia,"Songti SC",serif; color:#f1eee4; }
.poster-dialog-head .dialog-close { position:static; width:30px; height:30px; min-height:30px; font-size:20px; border-color:#536e66; background:#1b3032; }
.poster-canvas-wrap { border-radius:8px; overflow:hidden; border:1px solid #3b534d; background:#0d191c; }
#poster-canvas, #grid-poster-canvas { display:block; width:100%; height:auto; }
.poster-dialog-actions { display:flex; gap:10px; margin-top:14px; }
.poster-dialog-actions button { flex:1; min-height:40px; padding:8px 12px; font-size:13px; border-radius:7px; justify-content:center; }
@media (max-width:480px) {
 .poster-dialog { width:calc(100vw - 16px); padding:14px; border-radius:12px; }
 .poster-dialog-head h2 { font-size:16.5px; }
 .poster-dialog-actions { flex-direction:column; gap:8px; }
 .poster-dialog-actions button { flex:none; width:100%; }
}
#details .work-comments { padding:18px var(--gutter-detail) 20px; border-top:1px solid #42506580; color:var(--ink); }
#details .review-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; gap:10px; }
#details .review-heading h3 { margin:0; font:600 22px/1.4 Georgia,"Songti SC",SimSun,serif; }
#details .notes, #details .send-row small { color:var(--muted); }
#details .work-comments form { margin-top:14px; gap:12px; }
#details .work-comments form[hidden] { display:none; }
#details .review-editor { display:grid; grid-template-columns:minmax(0,1fr) auto; overflow:hidden; background:#1b2434; border:1px solid var(--line); border-radius:12px; }
#details .review-editor:focus-within { border-color:var(--accent); }
#details .write-field { grid-column:1/-1; display:block; padding:12px 14px 0; font:600 13px/1.5 system-ui,sans-serif; }
#details .write-field textarea { width:100%; height:60px; min-height:48px; padding:6px 0; border:0; background:transparent; color:var(--ink); }
#details .review-nickname { display:flex; align-items:center; min-width:0; max-width:none; gap:7px; padding:5px 0 6px 14px; color:var(--muted); border-top:1px solid var(--line); font-size:12px; }
#details .review-nickname span { white-space:nowrap; }
#details .review-nickname small { font:inherit; color:inherit; margin:0; }
#details .review-nickname input { height:28px; min-width:0; width:min(8em,100%); padding:0 2px; border:0; background:transparent; color:var(--ink); }
#details .review-counter { display:grid; align-items:center; padding-right:13px; border-top:1px solid var(--line); font:11px/1.5 Consolas,monospace; color:var(--muted); }
#details .work-comments :is(input,textarea)::placeholder { font-size:13px; color:var(--muted); opacity:1; }
#details .verification {
 --field-height:38px;
 display:grid; grid-template-columns:repeat(2,minmax(0,116px)) max-content;
 align-items:center; align-self:end; justify-content:start; gap:5px 8px;
}
#details .verification label { grid-column:1/-1; color:var(--muted); font:500 12px/1.45 system-ui,sans-serif; }
#details .verification :is(input,.captcha-picture,.captcha-refresh) {
 box-sizing:border-box; height:var(--field-height); min-height:var(--field-height); margin:0; align-self:center;
}
#details .verification :is(input,.captcha-picture) { width:100%; min-width:0; border:1px solid var(--line); border-radius:5px; }
#details .verification input { padding:0 10px; background:transparent; font:400 16px/1.4 system-ui,sans-serif; }
#details .verification .captcha-picture { display:grid; place-items:center; padding:0; background:#15282c; font:500 13px/1.4 system-ui,sans-serif; }
#details .verification .captcha-picture img { display:block; width:100%; height:100%; min-height:0; object-fit:contain; }
#details .verification .captcha-picture [hidden] { display:none; }
#details .verification .captcha-refresh { padding:0 3px; min-width:44px; color:var(--muted); font:500 13px/1.4 system-ui,sans-serif; }
#details .send-row small { font-size:12px; }
#details .send-row { margin:0; gap:6px; }
#details :is(button,a,input,textarea):focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
@media(min-width:560px) {
 #details .work-comments form { grid-template-columns:minmax(0,1fr) auto; }
 #details .review-editor { grid-column:1/-1; }
 #details .send-row { flex-direction:column-reverse; align-items:end; align-self:end; gap:3px; }
}
@media(max-width:559px) {
 #details { width:calc(100% - 16px); max-height:calc(100dvh - 14px); border-radius:12px; }
 #details .detail-layout { min-height:218px; padding-block:32px 17px; }
 #details .detail-copy { width:67%; }
 #details .detail-layout:has([data-kind=poster]) .detail-copy { width:55%; }
 #details .detail-art[data-kind=poster] .detail-image { right:2%; width:40%; height:78%; top:12%; }
 #details .detail-tile { width:91%; top:-3%; }
 #details .detail-copy .eyebrow { font-size:11px; }
 #details .hero-synopsis { font-size:12px; }
 #details .detail-actions :is(a,button) { min-height:32px; padding:5px 9px; font-size:12px; }
 #details .detail-actions { gap:5px; margin-top:10px; }
 #details .related-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 #details .work-comments { padding-block:14px; }
 #details .review-heading h3 { font-size:20px; }
 #details .dialog-close { width:29px; height:29px; top:6px; right:6px; }
}

@media (max-width:700px), (pointer:coarse) and (max-width:960px) and (max-height:520px){
/* The phone view uses the same detail and review elements as the desktop view. */
#details {
 --sheet:#172b2d; --stub:#233b3a; --paper:#203536; --ink:#f1eee2; --muted:#b9c9c1;
 --line:#50645d; --accent:#e4c68d; --on:#27362e; --gutter-detail:clamp(14px,4vw,22px);
 width:min(590px,calc(100% - 16px)); max-height:calc(100dvh - 16px);
 border-radius:11px; border-color:var(--line); scrollbar-color:var(--line) var(--sheet);
}
#details .detail-layout {
 display:grid; grid-template-columns:minmax(0,1fr) 31%; gap:0; align-items:stretch;
 min-height:clamp(174px,44vw,220px); padding:0; background:linear-gradient(120deg,var(--paper),var(--sheet));
}
#details .detail-layout::after { display:none; }
#details .detail-copy, #details .detail-layout:has([data-kind=poster]) .detail-copy {
 width:auto; order:-1; align-self:center; padding:15px 10px 15px var(--gutter-detail);
}
#details .detail-copy h2 { font-size:clamp(24px,6.3vw,31px); line-height:1.22; text-shadow:none; }
#details .detail-copy .eyebrow { margin:0 0 4px; color:var(--muted); font-size:12px; line-height:1.38; }
#details .hero-synopsis { color:var(--muted); font-size:12.5px; line-height:1.58; margin-top:7px; }
#details .detail-rating {
 border:1px solid currentColor; border-radius:3px; padding:1px 6px; margin-top:6px; font-size:11px;
}
#details .detail-art {
 position:relative; inset:auto; z-index:0; border-left:1px dashed var(--line);
 background:linear-gradient(145deg,var(--stub),var(--sheet));
}
#details .detail-art::before {
 content:""; position:absolute; left:20%; right:20%; bottom:12px; height:7px; z-index:1; opacity:.55;
 background:repeating-linear-gradient(90deg,var(--accent) 0 1px,transparent 1px 3px,var(--accent) 3px 5px,transparent 5px 6px,var(--accent) 6px 7px,transparent 7px 11px);
}
#details .detail-wash { display:none; }
#details .detail-art .detail-original { position:absolute; inset:0; pointer-events:auto; }
#details .detail-original:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
#details .detail-art .detail-image, #details .detail-art[data-kind=poster] .detail-image {
 inset:32px 9% 28px; width:82%; height:calc(100% - 60px); object-fit:contain; object-position:center; filter:none;
}
#details .detail-tile {
 inset:50% auto auto 50%; width:min(78%,145px); mask-image:none; transform:translate(-50%,-55%) rotate(2deg);
 outline:1px solid var(--line); border:3px solid var(--paper); background-origin:padding-box; box-shadow:0 3px 8px #09181442;
}
#details .dialog-close {
 width:30px; height:30px; top:5px; right:5px; border-color:var(--line); background:var(--stub); color:var(--ink); font-size:19px;
}
#details .detail-actions { gap:6px; margin-top:12px; }
#details .detail-actions :is(a,button), #details .send-row button {
 border-radius:5px; background:var(--accent); color:var(--on); font-size:13px; padding:6px 10px; min-height:36px;
}
#details .detail-actions .detail-save, #details .detail-actions .detail-watched, #details .detail-actions .detail-poster-btn, #details .detail-actions .detail-alt-btn, #details .detail-actions .detail-pv-btn { color:var(--ink); border-color:var(--line); background:transparent; }
#details .detail-actions .detail-save.saved, #details .detail-actions .detail-watched.watched, #details .detail-actions .detail-poster-btn { color:var(--accent); border-color:currentColor; }
#details .detail-related { position:relative; border-top:1px dashed var(--line); padding:12px var(--gutter-detail); background:transparent; }
#details .detail-nav-strip :is(.detail-step,.detail-share-btn) { border-radius:4px; border-color:var(--line); background:var(--paper); color:var(--ink); }
#details .related-block { border-top-color:var(--line); }
#details .related-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
#details .related-card { border-color:var(--line); background:var(--paper); border-radius:5px; }
#details .work-comments { position:relative; border-top:1px dashed var(--line); padding:14px var(--gutter-detail) 16px; }
#details .work-comments::before, #details .work-comments::after {
 content:""; position:absolute; top:-7px; left:0; width:7px; height:14px; background:#0b171b; border-radius:0 7px 7px 0;
}
#details .work-comments::after { left:auto; right:0; border-radius:7px 0 0 7px; }
#details .review-heading h3 { font-size:20px; }
#details .compose-toggle { border:0; background:transparent; padding:4px; text-decoration:underline; text-underline-offset:4px; }
#details .work-comments form { grid-template-columns:minmax(0,1fr); gap:12px; }
#details .review-editor { background:transparent; border:0; border-block:1px solid var(--line); border-radius:0; }
#details .review-nickname {
 grid-column:1/-1; grid-row:1; padding:5px 2px; border:0; border-bottom:1px dashed var(--line); font-size:12px;
}
#details .review-nickname small { color:var(--muted); font-size:11px; }
#details .write-field { grid-row:2; padding:10px 2px 0; }
#details .write-field textarea { height:64px; }
#details .review-counter { grid-area:3/2; justify-self:end; padding:0 1px 4px; border:0; }
#details .verification input { color:var(--ink); background:var(--paper); }
#details .captcha-picture img { filter:grayscale(.75) sepia(.45); }
#details .send-row { flex-direction:row; align-items:center; align-self:auto; }
#details .notes article { border-color:var(--line); }
#details .notes article :is(p,strong), #details .feedback { color:var(--ink); }
@media (max-width:355px) {
 #details .detail-copy { padding-right:8px; }
 #details .detail-actions :is(a,button) { font-size:12px; padding-inline:7px; }
}

@media (pointer:coarse) {
 #details .dialog-close::after { content:""; position:absolute; inset:-4px -4px -10px -10px; }
}

}
/* Keep the original composition visible in both catalogue layouts. */
body:not([data-cover-view="compact"]) .anime-card:not(.is-bento) .poster { aspect-ratio: 2 / 3; }
.anime-card .poster-open { background: linear-gradient(150deg, #1b2c34, #0b151c); }
.anime-card .poster-open.has-cover-preview { background: #142128 var(--cover-preview) center / contain no-repeat; }
.poster-open img[data-list-src] { visibility: hidden; }
.poster-open > picture, .exhibit-picture > picture { display: block; width: 100%; height: 100%; }
body .anime-card .poster .poster-open img,
body .anime-card .poster .poster-open:hover img {
  object-fit: contain;
  object-position: center;
  transform: none;
}
.tarot-poster img, .related-card > img, .about-recent-poster img { object-fit: contain; object-position: center; background-color: #122028; }
.feature-triptych .feature-link[data-artwork] img { object-position: 50% 40%; }
.feature-triptych .feature-link[data-artwork] .scene-name {
  background: linear-gradient(transparent, rgb(5 13 21 / .45) 44%, rgb(4 12 20 / .91));
}
@media (hover:hover) and (pointer:fine) {
  .feature-triptych .feature-link .scene-direct,
  .feature-triptych .feature-link:not([data-pos="center"]) .scene-badge { opacity: 0; transition: opacity .18s; }
  .feature-triptych .feature-link:is(:hover,:focus-visible) :is(.scene-direct,.scene-badge) { opacity: 1; }
}
.feature-link .exhibit-picture { display: block; width: 100%; height: 100%; }
.feature-triptych .feature-link .exhibit-picture img { transform: none; }
.exhibit-picture > .exhibit-motion { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.feature-triptych:not(.scene-playing) .exhibit-motion { display: none; }
.feature-triptych .feature-link[data-pos="left"] { left: 2.8%; --angle: -4deg; filter: brightness(.97); }
.feature-triptych .feature-link[data-pos="right"] { left: 66.1%; --angle: 4deg; filter: brightness(.97); }

@media (max-width: 960px) {
  .hero .hero-console .hero-curation,
  body:not(.classic-mode) .hero .hero-console .hero-curation {
    display:flex; align-items:center; flex-wrap:nowrap; gap:3px;
    width:100%; margin:0; padding:3px 6px; border:0; border-bottom:1px solid #91c8ca25;
    border-radius:0; background:#102027;
  }
  .hero .hero-curation .curation-label { display:none; }
  .hero .hero-curation .curation-pill { flex:1; min-width:0; min-height:30px; padding:2px 3px; font-size:12px; white-space:nowrap; }
  .hero .hero-curation #triptych-cycle {
    display:inline-grid; place-items:center; min-width:32px; min-height:30px; margin:0; padding:0;
    font-size:0; border:0; border-left:1px solid #91c8ca33; border-radius:0;
  }
  .hero .hero-curation #triptych-cycle::before { content:'↻'; font:18px/1 system-ui; }
}

/* Unified Multi-Channel Switcher, Cinema Amber Theme, Detail Polish, Checklist View & Multi-Viewport Rules */

/* 1. Top-Bar Channel Switcher — Harmonized Across All Viewports (390px / 768px / 1080p / 2K / 4K) */
.site-channel-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(10, 20, 24, 0.74);
  border: 1px solid rgba(154, 212, 208, 0.24);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
  margin-right: 4px;
}
.site-channel-switch .ch-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font: 550 12px/1 system-ui, "Microsoft YaHei", sans-serif;
  color: #a9bdbd;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.site-channel-switch .ch-pill:hover {
  color: #eef5f4;
  background: rgba(255, 255, 255, 0.06);
}
.site-channel-switch .ch-pill.active {
  background: linear-gradient(120deg, rgba(142, 224, 212, 0.24), rgba(142, 224, 212, 0.14));
  color: #dcfbf5;
  box-shadow: inset 0 0 0 1px rgba(142, 224, 212, 0.48);
  font-weight: 650;
}
body[data-channel="movie"] .site-channel-switch {
  border-color: rgba(233, 201, 135, 0.28);
}
body[data-channel="movie"] .site-channel-switch .ch-pill.active {
  background: linear-gradient(120deg, rgba(233, 201, 135, 0.28), rgba(212, 165, 92, 0.16));
  color: #fae4b4;
  box-shadow: inset 0 0 0 1px rgba(233, 201, 135, 0.55);
}

/* 2. Cinema Amber Theme Overrides (100% shared base layout with warm cinema palette) */
body[data-channel="movie"] {
  --control-accent: #e9c987;
  --control-ink: #1e170a;
  --control-edge: #7c6947;
  --control-fill: #181a1b;
  --accent: #e9c987;
}
body[data-channel="movie"] .archive-identity {
  border-left-color: #e4c68d;
}
/* Always expose the Movie Disclaimer popover trigger on Desktop, Tablet and Mobile */
body[data-channel="movie"] .rule-trigger {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 5px;
  border: 0;
  background: transparent;
  color: #ebd096;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(233, 201, 135, 0.55);
  transition: color .15s ease, text-decoration-color .15s ease;
}
body[data-channel="movie"] .rule-trigger:hover {
  color: #fff6dc;
  text-decoration-color: #fae4b4;
}
body[data-channel="movie"] #archive-rule:popover-open {
  display: block;
  border-color: rgba(233, 201, 135, 0.5);
  background: #132025;
  color: #f4ece0;
}
body[data-channel="movie"] .hero-actions .primary-button,
body[data-channel="movie"] .empty-state .primary-button,
body[data-channel="movie"] .exhibition-banner .primary-button,
body[data-channel="movie"] .poster-dialog .primary-button {
  background: linear-gradient(115deg, #f2d89f, #d4ab60);
  color: #1f1709;
  border-color: transparent;
  box-shadow: inset 0 1px rgba(255, 246, 220, 0.55);
}
body[data-channel="movie"] .poster-dialog .primary-button:hover {
  background: linear-gradient(115deg, #fae4b4, #e1ba70);
}
body[data-channel="movie"] .poster-dialog {
  border-color: rgba(233, 201, 135, 0.34);
  background: linear-gradient(160deg, #131d21, #0d1518);
}
body[data-channel="movie"] .home-recent h2::before {
  background: #e9c987;
}
body[data-channel="movie"] .curation-pill.active {
  background: linear-gradient(120deg, rgba(233, 201, 135, 0.22), rgba(212, 165, 92, 0.14));
  border-color: rgba(233, 201, 135, 0.56);
  color: #fae5b4;
}
body[data-channel="movie"] .hsq-open {
  border-color: rgba(233, 201, 135, 0.48);
  background: rgba(44, 35, 21, 0.72);
  color: #f6e0ae;
}
body[data-channel="movie"] .hsq-open:hover {
  border-color: #f6e0ae;
  background: rgba(66, 51, 28, 0.9);
  color: #fff6dc;
}
body[data-channel="movie"] .year-shortcuts button.active {
  border-color: rgba(233, 201, 135, 0.78);
  background: radial-gradient(circle at 50% 0%, rgba(233, 201, 135, 0.24), transparent 70%), linear-gradient(180deg, #27251d, #131c20);
  box-shadow: 0 6px 18px rgba(2, 9, 12, 0.7), 0 0 14px rgba(233, 201, 135, 0.18), inset 0 1px 0 rgba(255, 240, 200, 0.25);
}
body[data-channel="movie"] .year-shortcuts button.active .year-num,
body[data-channel="movie"] .year-hud b {
  color: #fae4b4;
}
body[data-channel="movie"] .year-pillar::before {
  background: linear-gradient(180deg, #f2d89f, #9c7942);
  box-shadow: 0 0 6px rgba(233, 201, 135, 0.28);
}
body[data-channel="movie"] .year-shortcuts button.active .year-pillar::before {
  background: linear-gradient(180deg, #fff1c9, #e9c987 60%, #b58742);
  box-shadow: 0 0 10px rgba(233, 201, 135, 0.55);
}
body[data-channel="movie"] #picker-options button[aria-selected="true"] {
  color: #fae4b4;
  background: rgba(54, 44, 24, 0.78);
  border-color: rgba(233, 201, 135, 0.56);
}
body[data-channel="movie"] .stats-dialog,
body[data-channel="movie"] #about.about-dialog {
  border-color: rgba(233, 201, 135, 0.34);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(233, 201, 135, 0.14), transparent 60%),
    linear-gradient(150deg, #131e22, #0b1215 86%);
}
body[data-channel="movie"] .stats-modal-head .eyebrow,
body[data-channel="movie"] .about-eyebrow-row .eyebrow {
  color: #e9c987;
}
body[data-channel="movie"] .stat-kpi strong,
body[data-channel="movie"] .gs-top em {
  color: #f4da9d;
}
body[data-channel="movie"] .col-bar {
  background: linear-gradient(180deg, #f3da9f, #8f6e39);
}
body[data-channel="movie"] .gs-track em {
  background: linear-gradient(90deg, #d7af64, #f5e2b5);
}
body[data-channel="movie"] .genre-stat-row:hover {
  border-color: rgba(233, 201, 135, 0.55);
  background: rgba(38, 33, 22, 0.72);
}
body[data-channel="movie"] .sync-status-msg:not(:empty) {
  background: rgba(42, 35, 22, 0.72);
  border-color: rgba(233, 201, 135, 0.42);
  color: #fae4b4;
}
body[data-channel="movie"] .tabs button.active {
  background: linear-gradient(120deg, #f1d69c, #d9b168);
  color: #1e1608;
}
body[data-channel="movie"] .genre:hover,
body[data-channel="movie"] .genre.active {
  border-color: rgba(233, 201, 135, 0.48);
  background: rgba(233, 201, 135, 0.13);
  color: #f6e0ae;
}
body[data-channel="movie"] .searchbox:focus-within {
  border-color: #e9c987;
  box-shadow: 0 0 0 2px rgba(233, 201, 135, 0.18);
}
body[data-channel="movie"] .saved-nav b {
  color: #f2d598;
  background: rgba(233, 201, 135, 0.14);
}
body[data-channel="movie"] .nav-link.active:after {
  background: #e9c987;
}
body[data-channel="movie"] .header .cinema-toggle[aria-pressed="true"],
body[data-channel="movie"] .sound-toggle.active {
  color: #f5dba5;
  border-color: rgba(233, 201, 135, 0.65);
  background: #272219;
  box-shadow: 0 0 14px rgba(233, 201, 135, 0.22);
}
body[data-channel="movie"] .hero-backdrop {
  background: #091116;
}
body[data-channel="movie"] .hero-backdrop .station-paint {
  filter: none;
}
body[data-channel="movie"] .hero-backdrop::after {
  background:
    radial-gradient(ellipse 36% 48% at 18% 30%, rgba(7, 12, 16, 0.54), transparent 72%),
    linear-gradient(90deg, rgba(7, 12, 16, 0.8), rgba(9, 15, 20, 0.5) 28%, rgba(11, 17, 21, 0.08) 54%, transparent 72%),
    linear-gradient(0deg, rgba(11, 17, 20, 0.52), transparent 24%);
}
body[data-channel="movie"] .cinema-lamp {
  left: 17.69%;
  top: 48.62%;
  width: 3.4%;
  background: radial-gradient(closest-side, rgba(255, 224, 150, 0.48), rgba(244, 178, 86, 0.2) 48%, transparent);
  box-shadow: 0 0 24px rgba(var(--hero-aura, 233, 201, 135), 0.3);
}
body[data-channel="movie"] .cinema-projector-glow {
  position: absolute;
  left: 12.85%;
  top: 21.42%;
  width: 5.2%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 238, 196, 0.36), rgba(235, 190, 114, 0.14) 52%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  body[data-channel="movie"] .hero-backdrop.scene-playing .cinema-lamp {
    animation: station-glow 6.5s ease-in-out infinite;
  }
  body[data-channel="movie"] .hero-backdrop.scene-playing .cinema-projector-glow {
    animation: cinema-projector-pulse 5.2s ease-in-out infinite;
  }
}
@keyframes cinema-projector-pulse {
  0%, 100% { opacity: 0.52; transform: translate(-50%, -50%) scale(0.96); }
  50% { opacity: 0.96; transform: translate(-50%, -50%) scale(1.12); }
}
@media (max-width: 700px) {
  body[data-channel="movie"] .station-paint {
    left: 0;
    transform: translate(clamp(calc(100cqw - 100%), -12%, 0px), -50%);
  }
  body[data-channel="movie"] .hero-backdrop::after {
    background:
      linear-gradient(100deg, rgba(8, 13, 17, 0.68), transparent 78%),
      linear-gradient(180deg, rgba(9, 15, 20, 0.56), transparent 58%, rgba(8, 13, 17, 0.34));
  }
}
body[data-channel="movie"] .feature-triptych .feature-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body[data-channel="movie"] #cover-view.has-value,
body[data-channel="movie"] #view-mode-btn.has-value {
  border-color: rgba(233, 201, 135, 0.45);
  color: #f5dfb0;
}

/* 3. Dual-Volume Switcher (一馆双卷), Filter Panel & In-Grid Volume Chapter Dividers */
.volume-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
  scroll-margin-top: calc(var(--archive-header-height, 74px) + 14px);
}
.vol-tab {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 11px 15px 12px;
  border-radius: 12px;
  border: 1px solid rgba(233, 201, 135, 0.16);
  background: linear-gradient(145deg, rgba(16, 28, 33, 0.88), rgba(11, 20, 24, 0.92));
  color: #c8d5d7;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.vol-tab::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: transparent;
  transition: background .18s ease;
}
.vol-tab:hover {
  border-color: rgba(233, 201, 135, 0.45);
  background: linear-gradient(145deg, rgba(22, 37, 43, 0.94), rgba(14, 24, 29, 0.95));
  transform: translateY(-1px);
}
.vol-tab.active {
  border-color: rgba(233, 201, 135, 0.68);
  background: radial-gradient(ellipse at 14% 0%, rgba(233, 201, 135, 0.18), transparent 68%), linear-gradient(145deg, rgba(28, 34, 31, 0.95), rgba(14, 22, 26, 0.96));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 241, 206, 0.14);
}
.vol-tab.active::after {
  background: linear-gradient(90deg, #f2d89f, #d4a652);
}
.vol-tab.is-foreign.active {
  border-color: rgba(132, 212, 204, 0.65);
  background: radial-gradient(ellipse at 14% 0%, rgba(126, 214, 206, 0.18), transparent 68%), linear-gradient(145deg, rgba(18, 35, 40, 0.95), rgba(12, 22, 27, 0.96));
}
.vol-tab.is-foreign.active::after {
  background: linear-gradient(90deg, #98e8de, #5eb8b2);
}
.vol-tab.is-cn.active {
  border-color: rgba(236, 168, 118, 0.68);
  background: radial-gradient(ellipse at 14% 0%, rgba(232, 138, 92, 0.2), transparent 68%), linear-gradient(145deg, rgba(36, 26, 24, 0.95), rgba(18, 19, 23, 0.96));
}
.vol-tab.is-cn.active::after {
  background: linear-gradient(90deg, #f2be86, #d97c54);
}
.vol-tab-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.vol-tab-top strong {
  font: 650 14.5px/1.3 system-ui, "Microsoft YaHei", sans-serif;
  color: #efeae0;
  white-space: nowrap;
}
.vol-tab.active .vol-tab-top strong {
  color: #fff6df;
}
.vol-tab-top b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 21px;
  padding: 0 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cdd9db;
  font: 650 11.5px/1 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.vol-tab.active .vol-tab-top b {
  background: rgba(233, 201, 135, 0.2);
  border-color: rgba(233, 201, 135, 0.5);
  color: #fae5b4;
}
.vol-tab.is-foreign.active .vol-tab-top b {
  background: rgba(132, 212, 204, 0.18);
  border-color: rgba(132, 212, 204, 0.48);
  color: #cbf7f1;
}
.vol-tab.is-cn.active .vol-tab-top b {
  background: rgba(236, 152, 108, 0.2);
  border-color: rgba(236, 152, 108, 0.5);
  color: #ffd8bd;
}
.vol-tab small {
  font: 400 11.5px/1.4 system-ui, "Microsoft YaHei", sans-serif;
  color: #8ea3a8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vol-tab.active small {
  color: #c8d2cf;
}

@media (min-width: 701px) {
  body[data-channel="movie"] .filter-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px 16px;
  }
  body[data-channel="movie"] .genre-row {
    grid-column: 2;
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }
  body[data-channel="movie"] .mood-strip {
    grid-column: 1 / -1;
  }
}
@media (min-width: 701px) and (max-width: 1120px) {
  body[data-channel="movie"] .filter-panel {
    grid-template-columns: minmax(0, 1fr);
  }
  body[data-channel="movie"] .genre-row {
    grid-column: 1 / -1;
    padding-left: 0;
    border-left: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
}

/* Volume Chapter Divider inside Grid & Checklist */
.volume-chapter-head {
  grid-column: 1 / -1;
  scroll-margin-top: calc(var(--archive-header-height, 74px) + 14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 13px 18px;
  margin: 4px 0 2px;
  border-radius: 12px;
  border: 1px solid rgba(233, 201, 135, 0.24);
  border-left: 3.5px solid #e9c987;
  background: linear-gradient(120deg, rgba(22, 36, 42, 0.92), rgba(13, 22, 26, 0.9));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}
.volume-chapter-head.is-foreign {
  border-color: rgba(132, 212, 204, 0.26);
  border-left-color: #84d4cc;
  background: linear-gradient(120deg, rgba(16, 35, 41, 0.92), rgba(12, 22, 26, 0.92));
}
.volume-chapter-head.is-cn {
  margin-top: 18px;
  border-color: rgba(236, 160, 112, 0.3);
  border-left-color: #eb9d68;
  background: linear-gradient(120deg, rgba(38, 25, 23, 0.92), rgba(16, 20, 24, 0.92));
}
.vch-main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 12px;
  min-width: 0;
}
.vch-kicker {
  font: 700 10.5px/1 Consolas, monospace;
  letter-spacing: .14em;
  color: #e9c987;
  opacity: .85;
}
.volume-chapter-head.is-foreign .vch-kicker { color: #8ee0d6; }
.volume-chapter-head.is-cn .vch-kicker { color: #f2b484; }
.vch-main strong {
  font: 650 17px/1.3 Georgia, "Songti SC", "Microsoft YaHei", serif;
  color: #f6f1e6;
  letter-spacing: .02em;
}
.vch-meta {
  font: 400 12.5px/1.4 system-ui, "Microsoft YaHei", sans-serif;
  color: #9db2b7;
}
.vch-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.vch-btn {
  min-height: 29px;
  padding: 4px 11px;
  border-radius: 99px;
  border: 1px solid rgba(182, 202, 206, 0.25);
  background: rgba(13, 23, 28, 0.78);
  color: #cedadd;
  font: 500 12px/1.2 system-ui, "Microsoft YaHei", sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .16s, color .16s, background .16s;
}
.vch-btn:hover {
  border-color: #e9c987;
  color: #fff6dc;
  background: rgba(34, 44, 46, 0.92);
}
.vch-btn.is-accent {
  border-color: rgba(233, 201, 135, 0.45);
  color: #f4dc9e;
  background: rgba(46, 37, 22, 0.65);
}
.volume-chapter-head.is-foreign .vch-btn.is-accent {
  border-color: rgba(132, 212, 204, 0.45);
  color: #bef4ed;
  background: rgba(18, 46, 48, 0.72);
}
.volume-chapter-head.is-cn .vch-btn.is-accent {
  border-color: rgba(236, 160, 112, 0.48);
  color: #ffd5b8;
  background: rgba(54, 28, 22, 0.72);
}

/* Checklist Table Volume Row */
.movie-checklist-table tr.cl-volume-row {
  cursor: default;
  background: rgba(18, 30, 35, 0.94);
}
.movie-checklist-table tr.cl-volume-row:hover {
  background: rgba(18, 30, 35, 0.94);
}
.movie-checklist-table tr.cl-volume-row td {
  padding: 11px 14px;
  border-top: 1px solid rgba(233, 201, 135, 0.22);
  border-bottom: 1px solid rgba(233, 201, 135, 0.2);
}
.cl-vol-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cl-vol-bar strong {
  font: 650 14.5px/1.3 Georgia, "Songti SC", "Microsoft YaHei", serif;
  color: #f5efe2;
}
.cl-vol-bar small {
  margin-left: 10px;
  color: #9cb2b7;
  font-size: 12px;
}

/* Dual-Volume Comparison Bar inside Stats Star Map */
.stats-vol-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.stats-vol-card {
  display: grid;
  gap: 8px;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid rgba(233, 201, 135, 0.22);
  background: linear-gradient(135deg, rgba(18, 31, 36, 0.88), rgba(11, 20, 24, 0.92));
  color: #e6eceb;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s, transform .18s;
}
.stats-vol-card:hover {
  border-color: #e9c987;
  transform: translateY(-1px);
}
.stats-vol-card.is-foreign { border-left: 3px solid #84d4cc; }
.stats-vol-card.is-cn { border-left: 3px solid #eb9d68; }
.svc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.svc-head strong { font-size: 14px; color: #f6f1e6; }
.svc-head span { font-size: 11.5px; color: #9db2b6; font-variant-numeric: tabular-nums; }
.svc-bar {
  display: block;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.svc-bar em {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #84d4cc, #e9c987);
}
.stats-vol-card.is-cn .svc-bar em {
  background: linear-gradient(90deg, #eb9d68, #f2d493);
}
.svc-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: #a9bcc0;
}

/* 4. Movie Card Badges & Footer Polish */
.movie-score-pill {
  position: absolute;
  right: 8px;
  bottom: 9px;
  z-index: 2;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(8, 15, 19, 0.86);
  border: 1px solid rgba(233, 201, 135, 0.42);
  color: #f4da9d;
  font: 600 10.5px/1.35 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.movie-ws-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 4px;
  font: 600 10px/1.4 system-ui, "Microsoft YaHei", sans-serif;
  white-space: nowrap;
}
.movie-ws-badge.is-watched { background: rgba(45, 168, 125, 0.2); color: #9af0ce; border: 1px solid rgba(82, 204, 159, 0.4); }
.movie-ws-badge.is-watching { background: rgba(233, 190, 102, 0.18); color: #f6dc9f; border: 1px solid rgba(233, 190, 102, 0.42); }
.movie-ws-badge.is-unwatched { background: rgba(140, 160, 170, 0.12); color: #9cb0b8; border: 1px solid rgba(140, 160, 170, 0.22); }
.movie-col-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(233, 201, 135, 0.16);
  border: 1px solid rgba(233, 201, 135, 0.36);
  color: #f2d89c;
  font: 600 10px/1.4 system-ui, "Microsoft YaHei", sans-serif;
  white-space: nowrap;
}
body[data-channel="movie"] .anime-card .card-footer {
  gap: 4px;
  margin-top: 3px;
  min-height: 20px;
  align-items: center;
}
body[data-channel="movie"] .anime-card .card-footer .portal-link {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 auto;
  height: 20px;
  min-height: 20px;
  line-height: 20px;
  color: #a9bdb9;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  font-size: 11px;
  font-weight: 450;
  letter-spacing: -0.01em;
  cursor: pointer;
}
body[data-channel="movie"] .anime-card .poster-curtain {
  padding: 28px 11px 36px;
}
body[data-channel="movie"] .anime-card .card-footer .portal-link span {
  font-size: inherit;
  color: inherit;
  line-height: inherit;
}
body[data-channel="movie"] .anime-card .card-footer .portal-link .dir-compact {
  display: none;
}
body[data-channel="movie"] .anime-card .card-footer .portal-link.is-marquee {
  text-overflow: clip;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5px, #000 calc(100% - 10px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5px, #000 calc(100% - 10px), transparent 100%);
}
body[data-channel="movie"] .anime-card .card-footer .portal-link.is-marquee .dir-full {
  display: inline-block;
  padding-right: 10px;
  will-change: transform;
  animation: movie-dir-marquee var(--mq-dur, 4.6s) ease-in-out 0.26s infinite;
}
@keyframes movie-dir-marquee {
  0%, 14% { transform: translateX(0); }
  48%, 64% { transform: translateX(var(--mq-shift, 0px)); }
  92%, 100% { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  body[data-channel="movie"] .anime-card .card-footer .portal-link.is-marquee {
    text-overflow: ellipsis;
    -webkit-mask-image: none;
    mask-image: none;
  }
  body[data-channel="movie"] .anime-card .card-footer .portal-link.is-marquee .dir-full {
    animation: none;
    transform: none;
  }
}
body[data-channel="movie"] .anime-card .card-footer .portal-link.disabled {
  cursor: default;
  opacity: 0.65;
}
body[data-channel="movie"] .anime-card .card-footer .portal-link:not(.disabled):hover {
  color: #f3d99d;
}
body[data-channel="movie"] .anime-card .card-footer .card-douban-mini {
  flex: none;
  font: 550 10px/1 system-ui, "Microsoft YaHei", sans-serif;
  padding: 2px 5px;
  border-radius: 99px;
  border: 1px solid rgba(94, 196, 132, 0.36);
  background: rgba(17, 41, 30, 0.55);
  color: #a4ebc0;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .16s, color .16s, background .16s;
}
body[data-channel="movie"] .anime-card .card-footer .card-douban-mini:hover {
  border-color: #8ee6ae;
  color: #e6ffef;
  background: rgba(24, 62, 44, 0.85);
}
body[data-channel="movie"] .anime-card .card-index {
  flex: none;
  white-space: nowrap;
  font-size: 10px;
  opacity: 0.72;
}

/* 4b. Multi-Platform Official Watch Portals (腾讯视频 / 爱奇艺 / 优酷 / B站) */
.watch-portal-pill {
  --wp-ink: #fae4b4;
  --wp-dot: #e9c987;
  --wp-border: rgba(233, 201, 135, 0.44);
  --wp-bg: rgba(46, 36, 20, 0.72);
  --wp-hover-bg: rgba(68, 52, 26, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  white-space: nowrap;
  color: var(--wp-ink);
  background: var(--wp-bg);
  border: 1px solid var(--wp-border);
  font-family: system-ui, "Microsoft YaHei", sans-serif;
  line-height: 1;
  flex-shrink: 0;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.watch-portal-pill .wp-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--wp-dot);
  box-shadow: 0 0 6px var(--wp-dot);
  flex: none;
}
.watch-portal-pill.is-qq {
  --wp-ink: #ffd79a;
  --wp-dot: #ff9d2e;
  --wp-border: rgba(255, 166, 62, 0.44);
  --wp-bg: rgba(52, 33, 14, 0.76);
  --wp-hover-bg: rgba(82, 50, 18, 0.95);
}
.watch-portal-pill.is-iqiyi {
  --wp-ink: #9df4b0;
  --wp-dot: #1ed760;
  --wp-border: rgba(34, 212, 96, 0.42);
  --wp-bg: rgba(13, 44, 24, 0.76);
  --wp-hover-bg: rgba(20, 68, 36, 0.95);
}
.watch-portal-pill.is-youku {
  --wp-ink: #9be0ff;
  --wp-dot: #2eb8ff;
  --wp-border: rgba(46, 184, 255, 0.42);
  --wp-bg: rgba(13, 38, 56, 0.76);
  --wp-hover-bg: rgba(20, 58, 84, 0.95);
}
.watch-portal-pill.is-bilibili {
  --wp-ink: #ffb6cc;
  --wp-dot: #fb7299;
  --wp-border: rgba(251, 114, 153, 0.46);
  --wp-bg: rgba(56, 20, 34, 0.76);
  --wp-hover-bg: rgba(84, 28, 49, 0.95);
}
@media (hover: hover) and (pointer: fine) {
  .watch-portal-pill:hover {
    color: #ffffff;
    background: var(--wp-hover-bg);
    border-color: var(--wp-dot);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.34);
    transform: translateY(-1px);
  }
}
body[data-channel="movie"] .anime-card {
  container-type: inline-size;
  container-name: movie-card;
}
body[data-channel="movie"] .bento-info {
  container-type: inline-size;
  container-name: bento-info;
}
.card-watch-portals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  margin-top: 6px;
  width: 100%;
  box-sizing: border-box;
}
.watch-portal-pill.wp-card {
  min-height: 21px;
  padding: 2px 4.5px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 560;
  gap: 3px;
  letter-spacing: -0.01em;
}
.watch-portal-pill.wp-card .wp-dot {
  width: 4px;
  height: 4px;
}
/* Container-responsive portal bars: 1 clean row on >=162px cards, symmetric 2x2 grid on <162px cards (zero 3+1 orphans!) */
@container movie-card (max-width: 184px) {
  .card-watch-portals .watch-portal-pill.wp-card {
    padding: 1.5px 3.5px;
    font-size: 10px;
    gap: 2px;
  }
  .card-watch-portals .watch-portal-pill.wp-card .wp-dot {
    width: 3.5px;
    height: 3.5px;
  }
}
@container movie-card (max-width: 161.9px) {
  .card-watch-portals[data-count="4"] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
  }
  .card-watch-portals[data-count="4"] .watch-portal-pill.wp-card {
    width: 100%;
    box-sizing: border-box;
    padding: 2px 3px;
  }
}
body[data-channel="movie"] .anime-card .card-tags {
  margin-top: 2px;
}
body[data-channel="movie"] .anime-card .card-watch-portals {
  margin-top: 5px;
}
@media (min-width: 1101px) and (max-width: 1240px) {
  body[data-channel="movie"] .anime-card .card-footer .card-index {
    display: none;
  }
}
@media (min-width: 1101px) {
  body[data-channel="movie"] .anime-card.is-bento > .card-watch-portals {
    display: none;
  }
}
body[data-channel="movie"] .bento-foot {
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 8px;
}
.bento-watch-portals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin-top: 2px;
}
.watch-portal-pill.wp-bento {
  min-height: 24px;
  padding: 2px 6.5px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  gap: 3.5px;
}
.watch-portal-pill.wp-bento .wp-dot {
  width: 4.5px;
  height: 4.5px;
}
@container bento-info (max-width: 225px) {
  .bento-watch-portals {
    gap: 3px;
  }
  .bento-watch-portals .watch-portal-pill.wp-bento {
    min-height: 22px;
    padding: 1.5px 4.5px;
    font-size: 10px;
    gap: 2.5px;
  }
  .bento-watch-portals .watch-portal-pill.wp-bento .wp-dot {
    width: 3.5px;
    height: 3.5px;
  }
}
@container bento-info (max-width: 176px) {
  .bento-watch-portals[data-count="4"] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }
  .bento-watch-portals[data-count="4"] .watch-portal-pill.wp-bento {
    width: 100%;
    box-sizing: border-box;
    padding: 2px 4px;
  }
}
.cl-watch-portals {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
}
.watch-portal-pill.wp-mini {
  min-height: 19px;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 560;
  gap: 2.5px;
}
.watch-portal-pill.wp-mini .wp-dot {
  width: 4px;
  height: 4px;
}
.detail-watch-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 6px;
  margin-top: 12px;
}
.detail-watch-label {
  flex: 1 0 100%;
  font: 600 11px/1.2 system-ui, "Microsoft YaHei", sans-serif;
  color: #d6c090;
  letter-spacing: .04em;
  margin-bottom: 1px;
  white-space: nowrap;
}
.watch-portal-pill.wp-detail {
  min-height: 31px;
  padding: 4.5px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  gap: 5px;
}
.watch-portal-pill.wp-detail .wp-dot {
  width: 5.5px;
  height: 5.5px;
}
@media (min-width: 701px) and (max-width: 820px) {
  body[data-channel="movie"] #details .detail-watch-bar { gap: 4px; }
  body[data-channel="movie"] #details .watch-portal-pill.wp-detail {
    min-height: 29px;
    padding: 4px 8px;
    font-size: 11.5px;
    gap: 4px;
  }
}
.watch-portal-pill.wp-detail .arr {
  opacity: .8;
  font-size: 11px;
}
.detail-part-portals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
}
.part-portal-kicker {
  font-size: 11px;
  color: #9bb0b6;
  margin-right: 2px;
  white-space: nowrap;
}
.watch-portal-pill.wp-part {
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 560;
  gap: 4px;
}

/* 5. Checklist Table View */
.movie-checklist-wrap {
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid rgba(233, 201, 135, 0.2);
  background: rgba(12, 21, 25, 0.86);
  overflow-x: auto;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}
.movie-checklist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 860px;
}
.movie-checklist-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: left;
  padding: 11px 12px;
  background: #132126;
  color: #d6c090;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .04em;
  border-bottom: 1px solid rgba(233, 201, 135, 0.22);
  white-space: nowrap;
}
.movie-checklist-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background .14s ease;
}
.movie-checklist-table tbody tr:hover {
  background: rgba(233, 201, 135, 0.08);
}
.movie-checklist-table td {
  padding: 10px 12px;
  vertical-align: middle;
  color: #dce6e7;
}
.cl-seq { font-variant-numeric: tabular-nums; color: #8da2a9; font-size: 12px; white-space: nowrap; }
.cl-title-cell { display: flex; align-items: center; gap: 10px; min-width: 224px; }
.cl-mini-poster {
  width: 30px; height: 42px; object-fit: cover; border-radius: 4px;
  background: #1a2a2f; flex: none; border: 1px solid rgba(255,255,255,0.1);
}
.cl-title-stack { display: grid; gap: 2px; min-width: 0; }
.cl-title-stack strong { color: #f3efe4; font-weight: 600; line-height: 1.35; }
.cl-title-stack small { color: #8fa3aa; font-size: 11px; }
.cl-num { font-variant-numeric: tabular-nums; white-space: nowrap; color: #c7d5d8; }
.cl-score-db { color: #f0d394; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cl-score-my { color: #9df0ce; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cl-note-cell { max-width: 240px; color: #b5c6cb; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 6. Movie Detail Dialog — Museum-Grade Harmony, Zero Overlap, Seamless Contrast */
body[data-channel="movie"] #details {
  --ink: #f4f0e6;
  --muted: #b6c4c8;
  --line: #34474c;
  --accent: #e9c987;
  --sheet: #11191d;
  border-color: rgba(233, 201, 135, 0.28);
  background: var(--sheet);
}
body[data-channel="movie"] #details .detail-layout {
  background: #10181c;
  min-height: 292px;
  padding: 34px var(--gutter-detail) 26px;
}
body[data-channel="movie"] #details .detail-art {
  background:
    radial-gradient(ellipse at 82% 24%, rgba(var(--sky-rgb, 180, 152, 98), 0.36), transparent 64%),
    linear-gradient(155deg, #121b1f, #1c282d 74%, #11191d);
}
body[data-channel="movie"] #details .detail-wash {
  filter: blur(28px) saturate(0.76) brightness(0.46);
  transform: scale(1.16);
}
body[data-channel="movie"] #details .detail-layout::after {
  background:
    linear-gradient(90deg, #11191dfa 0%, #11191df2 38%, #11191dcc 54%, #11191d42 74%, transparent 92%),
    linear-gradient(0deg, #11191d 0%, rgba(17, 25, 29, 0.78) 22%, transparent 56%);
}
body[data-channel="movie"] #details .detail-layout:has([data-kind="poster"]) .detail-copy {
  width: 56%;
}
body[data-channel="movie"] #details .detail-art[data-kind="poster"] .detail-image {
  inset: 8% 3.5% auto auto;
  width: 38.5%;
  height: 84%;
  border-radius: 7px;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 1px rgba(255, 240, 205, 0.35));
}
body[data-channel="movie"] #details .detail-copy .eyebrow {
  color: #cbbda0;
  font-size: 11.5px;
  letter-spacing: .04em;
  line-height: 1.5;
}
body[data-channel="movie"] #details .detail-copy h2 {
  color: #f7f3e8;
  font-size: clamp(25px, 3.4vw, 36px);
  line-height: 1.2;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
}
body[data-channel="movie"] #details .detail-rating {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(233, 201, 135, 0.16);
  border: 1px solid rgba(233, 201, 135, 0.45);
  color: #f5ddaa;
  font-size: 11.5px;
}
body[data-channel="movie"] #details .detail-rating.caution {
  background: rgba(235, 170, 122, 0.14);
  border-color: rgba(235, 170, 122, 0.45);
  color: #f2c29b;
}

.movie-detail-scores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 6px;
  margin-top: 10px;
}
.score-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 25px;
  padding: 2px 8.5px;
  border-radius: 6px;
  font: 500 11.5px/1.3 system-ui, "Microsoft YaHei", sans-serif;
  background: rgba(14, 24, 29, 0.88);
  border: 1px solid rgba(176, 198, 204, 0.2);
  color: #d6e2e4;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.score-chip .sc-ico { font-size: 11px; line-height: 1; }
.score-chip b { font-variant-numeric: tabular-nums; font-weight: 650; }
.score-chip.is-douban { border-color: rgba(233, 201, 135, 0.46); background: rgba(46, 37, 22, 0.72); color: #f6e0ae; }
.score-chip.is-rt { border-color: rgba(242, 108, 92, 0.44); background: rgba(58, 22, 20, 0.72); color: #ffcdc6; }
.score-chip.is-rt.is-rotten { border-color: rgba(154, 178, 134, 0.4); background: rgba(27, 37, 25, 0.76); color: #c7d9b8; }
.score-chip.is-popcorn { border-color: rgba(244, 196, 92, 0.44); background: rgba(54, 41, 18, 0.72); color: #fce4a6; }
.score-chip.is-popcorn.is-spilled { border-color: rgba(156, 174, 184, 0.36); background: rgba(24, 33, 38, 0.76); color: #bdd0d8; }
a.score-chip.is-link:hover { border-color: rgba(255, 222, 165, 0.72); transform: translateY(-1px); color: #fff6e5; }
.score-chip.is-tmdb { border-color: rgba(126, 205, 196, 0.34); color: #bcece6; }
.score-chip.is-mine { border-color: rgba(114, 224, 180, 0.46); background: rgba(20, 48, 39, 0.72); color: #a7f4d5; }
.score-chip.is-status { border-color: transparent; background: transparent; padding: 0; }
.part-rt-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.part-rt-badge.is-rt { color: #ffbfb6; }
.part-rt-badge.is-popcorn { color: #f7da92; }

body[data-channel="movie"] #details .detail-credits {
  margin-top: 9px;
  gap: 6px;
}
body[data-channel="movie"] #details .credit-chip {
  background: rgba(15, 26, 31, 0.85);
  border-color: rgba(164, 192, 196, 0.24);
  color: #d5e2e4;
  font-size: 11.5px;
}
body[data-channel="movie"] #details button.credit-chip.is-clickable:hover {
  border-color: #e9c987;
  color: #fff6dc;
  background: rgba(54, 43, 24, 0.85);
}

/* Harmonized Detail Action Buttons — Clear Visual Hierarchy */
body[data-channel="movie"] #details .detail-actions {
  margin-top: 14px;
  gap: 6px;
  flex-wrap: wrap;
}
body[data-channel="movie"] #details .detail-actions :is(a, button) {
  min-height: 33px;
  padding: 5px 11px;
  font-size: 12.5px;
}
body[data-channel="movie"] #details .detail-actions .primary-button {
  background: linear-gradient(120deg, #f2d89f, #d7af64);
  color: #1e1608;
  border-color: transparent;
  font-weight: 650;
}
body[data-channel="movie"] #details .detail-actions .primary-button:hover {
  background: linear-gradient(120deg, #fae4b4, #e1ba70);
}
body[data-channel="movie"] #details .detail-actions .detail-douban-btn {
  color: #b7f2c9;
  background: rgba(18, 42, 31, 0.76);
  border-color: rgba(94, 196, 132, 0.48);
}
body[data-channel="movie"] #details .detail-actions .detail-douban-btn.is-primary {
  background: linear-gradient(120deg, #43b572, #2b8e57);
  color: #f4fff7;
  border-color: rgba(138, 232, 174, 0.45);
  font-weight: 650;
}
body[data-channel="movie"] #details .detail-actions .detail-douban-btn:hover {
  border-color: #8ee6ae;
  color: #e4ffed;
}
body[data-channel="movie"] #details .detail-actions .detail-douban-btn.is-primary:hover {
  background: linear-gradient(120deg, #52c782, #33a365);
  color: #ffffff;
}
body[data-channel="movie"] #details .detail-actions .detail-alt-btn {
  color: #b7e8e3;
  background: rgba(15, 28, 34, 0.78);
  border-color: rgba(116, 185, 176, 0.42);
}
body[data-channel="movie"] #details .detail-actions .detail-save {
  color: #e7dcc2;
  background: rgba(15, 25, 30, 0.78);
  border-color: rgba(186, 174, 148, 0.38);
}
body[data-channel="movie"] #details .detail-actions .detail-save.saved {
  color: #fae3af;
  background: rgba(54, 43, 24, 0.85);
  border-color: rgba(233, 201, 135, 0.7);
}
body[data-channel="movie"] #details .detail-actions .detail-watched {
  color: #d7e4e2;
  background: rgba(15, 25, 30, 0.78);
  border-color: rgba(152, 186, 184, 0.36);
}
body[data-channel="movie"] #details .detail-actions .detail-watched.watched {
  color: #a9f4d7;
  background: rgba(19, 49, 41, 0.88);
  border-color: rgba(114, 224, 180, 0.68);
}
body[data-channel="movie"] #details .detail-actions .detail-alt-btn.is-primary {
  background: linear-gradient(120deg, #f2d89f, #d7af64);
  color: #1e1608;
  border-color: transparent;
  font-weight: 650;
}
body[data-channel="movie"] #details .detail-actions .detail-poster-btn {
  color: #efd49c;
  background: rgba(15, 25, 30, 0.78);
  border-color: rgba(233, 201, 135, 0.42);
}

/* Cinema Obsidian-Gold Harmonization for Verdict, Resonance Stamps, Personal Note, Short Reviews & Sync */
body[data-channel="movie"] #details .curator-verdict {
  border-color: rgba(233, 201, 135, 0.44);
  border-left: 3.5px solid #e9c987;
  background: linear-gradient(125deg, rgba(42, 34, 21, 0.72), rgba(16, 25, 29, 0.86));
}
body[data-channel="movie"] #details .curator-verdict .verdict-head span { color: #f6dfaa; }
body[data-channel="movie"] #details .curator-verdict p { color: #f1ede4; }
body[data-channel="movie"] #details .resonance-bar {
  border-color: rgba(233, 201, 135, 0.24);
  background: linear-gradient(135deg, rgba(20, 31, 35, 0.88), rgba(13, 21, 25, 0.92));
}
body[data-channel="movie"] #details .res-head span { color: #f2ece0; }
body[data-channel="movie"] #details .res-head small { color: #95a9ae; }
body[data-channel="movie"] #details .res-stamp {
  border-color: rgba(172, 194, 198, 0.24);
  background: rgba(13, 22, 26, 0.9);
  color: #d4e0e2;
}
body[data-channel="movie"] #details .res-stamp b {
  background: rgba(255, 255, 255, 0.08);
  color: #b4c6ca;
}
body[data-channel="movie"] #details .res-stamp:hover {
  border-color: rgba(233, 201, 135, 0.62);
  background: rgba(34, 31, 24, 0.86);
  color: #fff4d6;
}
body[data-channel="movie"] #details .res-stamp.active {
  border-color: rgba(233, 201, 135, 0.84);
  background: linear-gradient(125deg, rgba(64, 48, 22, 0.88), rgba(24, 34, 36, 0.94));
  color: #fae3af;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 0 14px rgba(233, 201, 135, 0.2);
}
body[data-channel="movie"] #details .res-stamp.active b {
  background: rgba(233, 201, 135, 0.24);
  color: #ffefc6;
}
body[data-channel="movie"] #details .personal-note-box {
  border-color: rgba(233, 201, 135, 0.22);
  background: rgba(15, 24, 28, 0.84);
}
body[data-channel="movie"] #details .note-box-head span { color: #ebe4d6; }
body[data-channel="movie"] #details .note-box-head small { color: #95a9ae; }
body[data-channel="movie"] #details .inline-sync-link {
  margin: 0 4px;
  border-color: rgba(233, 201, 135, 0.46);
  background: rgba(46, 37, 22, 0.65);
  color: #f5ddaa;
  font-size: 11px;
  cursor: pointer;
}
body[data-channel="movie"] #details .inline-sync-link:hover {
  border-color: #f5ddaa;
  color: #fff6dc;
}
body[data-channel="movie"] #details .personal-note-input {
  border-color: rgba(164, 186, 192, 0.28);
  background: #0c1418;
  color: #f2f4f2;
}
body[data-channel="movie"] #details .personal-note-input:focus {
  border-color: #e9c987;
  outline: none;
}
body[data-channel="movie"] #details .personal-note-save {
  border-color: rgba(233, 201, 135, 0.42);
  background: rgba(44, 36, 22, 0.82);
  color: #f5dfb0;
}
body[data-channel="movie"] #details .personal-note-save:hover {
  border-color: #e9c987;
  background: rgba(66, 52, 28, 0.92);
  color: #fff7e0;
}
body[data-channel="movie"] #details .work-comments {
  background: #10171b;
  border-top-color: rgba(233, 201, 135, 0.16);
}
body[data-channel="movie"] #details .work-comments .compose-toggle {
  color: #f4dc9e;
  background: rgba(44, 36, 22, 0.72);
  border: 1px solid rgba(233, 201, 135, 0.45);
  border-radius: 99px;
  padding: 5px 13px;
}
body[data-channel="movie"] #details .work-comments .compose-toggle:hover {
  border-color: #f5ddaa;
  background: rgba(66, 52, 28, 0.88);
  color: #fff7e0;
}
body[data-channel="movie"] #details .review-editor {
  background: #141f24;
  border-color: rgba(233, 201, 135, 0.24);
}
body[data-channel="movie"] #details .send-row button {
  background: linear-gradient(120deg, #f2d89f, #d7af64);
  color: #1e1608;
}
body[data-channel="movie"] .archive-shelf-bar {
  border-color: rgba(233, 201, 135, 0.24);
  background: linear-gradient(135deg, rgba(20, 30, 35, 0.9), rgba(12, 20, 24, 0.92));
}
body[data-channel="movie"] .shelf-views button.active {
  background: linear-gradient(120deg, #f2d89f, #d4ab60);
  color: #1f1709;
  border-color: transparent;
}
body[data-channel="movie"] .shelf-meter em {
  background: linear-gradient(90deg, #e9c987, #f5e2b5);
}
body[data-channel="movie"] .sync-dialog {
  border-color: rgba(233, 201, 135, 0.34);
  background: linear-gradient(160deg, #121c20, #0d1518);
}
body[data-channel="movie"] .sync-dialog .primary-button {
  background: linear-gradient(120deg, #f2d89f, #d4ab60);
  color: #1f1709;
  border-color: transparent;
}
body[data-channel="movie"] .sync-big-code {
  border-color: rgba(233, 201, 135, 0.52);
  color: #fae4b4;
}

/* Structured Cast, Studio & Aliases Card in Lower Sheet (zero hero clutter!) */
.movie-info-panel {
  padding: 13px 15px;
  border-radius: 10px;
  background: rgba(16, 26, 31, 0.78);
  border: 1px solid rgba(166, 190, 196, 0.14);
  display: grid;
  gap: 10px;
}
.movie-info-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: start;
  font-size: 12.5px;
  line-height: 1.55;
}
.movie-info-row dt {
  color: #8fa3a9;
  font-weight: 550;
  white-space: nowrap;
  padding-top: 2px;
}
.movie-info-row dd {
  margin: 0;
  color: #d9e4e6;
  min-width: 0;
}
.cast-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cast-pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 2px 9px;
  border-radius: 6px;
  border: 1px solid rgba(168, 192, 198, 0.22);
  background: rgba(22, 36, 42, 0.86);
  color: #dce7e9;
  font: 500 12px/1.35 system-ui, "Microsoft YaHei", sans-serif;
  cursor: pointer;
  transition: border-color .16s, color .16s, background .16s;
}
.cast-pill:hover {
  border-color: #e9c987;
  color: #fae6b8;
  background: rgba(54, 43, 24, 0.75);
}

/* Collection Parts List inside Detail Dialog */
.detail-parts-block {
  padding: 14px 15px;
  border-radius: 11px;
  background: rgba(15, 25, 30, 0.82);
  border: 1px solid rgba(233, 201, 135, 0.24);
  display: grid;
  gap: 10px;
}
.detail-parts-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.detail-parts-head h3 { margin: 0; font-size: 14px; color: #f4dfad; }
.detail-parts-head small { font-size: 11.5px; color: #95abb0; }
.detail-parts-list { display: grid; gap: 9px; }
.detail-part-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(21, 34, 40, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.detail-part-card img {
  width: 46px; height: 64px; object-fit: cover; border-radius: 5px;
  background: #0e191d;
}
.detail-part-body { display: grid; gap: 4px; min-width: 0; }
.detail-part-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.detail-part-top strong { font-size: 13.5px; color: #f4f1e8; }
.detail-part-link {
  margin-left: auto;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 99px;
  border: 1px solid rgba(94, 196, 132, 0.42);
  color: #a8efc0;
  background: rgba(17, 41, 30, 0.7);
  white-space: nowrap;
}
.detail-part-link:hover { border-color: #8ee6ae; color: #e4ffed; }
.detail-part-meta { font-size: 12px; color: #a5bac0; display: flex; flex-wrap: wrap; gap: 5px 11px; }
.detail-part-note { margin: 2px 0 0; font-size: 12px; color: #e8d5a8; line-height: 1.5; }
.detail-snapshot-hint {
  margin: 0;
  font-size: 11.5px;
  color: #8da2a8;
  line-height: 1.55;
}
body[data-channel="movie"] #details .detail-related {
  background: #0d1418;
  border-top-color: rgba(233, 201, 135, 0.16);
}
body[data-channel="movie"] #details .detail-nav-strip :is(.detail-step, .detail-share-btn) {
  background: #141f24;
  border-color: rgba(233, 201, 135, 0.24);
  color: #cbd7da;
}
body[data-channel="movie"] #details .detail-nav-strip :is(.detail-step, .detail-share-btn):hover:not(:disabled) {
  border-color: #e9c987;
  color: #f8ecd0;
  background: #1b2930;
}
body[data-channel="movie"] #details .related-block {
  border-top-color: rgba(233, 201, 135, 0.14);
}
body[data-channel="movie"] #details .related-card {
  background: #141f24;
  border-color: rgba(233, 201, 135, 0.16);
}
body[data-channel="movie"] #details .related-card:hover {
  background: #1b2a30;
  border-color: #e9c987;
}
body[data-channel="movie"] #details .work-synopsis p {
  color: #c8d4d7;
  font-size: 13.5px;
  line-height: 1.78;
}

/* Cinema Amber Harmonization for Stats Star Map & Lucky Sommelier Modals */
body[data-channel="movie"] .stats-year-chart {
  overflow-x: auto;
  justify-content: flex-start;
  padding-bottom: 6px;
}
body[data-channel="movie"] .stats-year-chart .chart-col {
  flex: 0 0 24px;
  min-width: 24px;
}
body[data-channel="movie"] .lucky-dialog .primary-button,
body[data-channel="movie"] .lucky-tarot .tarot-open-btn {
  background: linear-gradient(120deg, #f2d89f, #d4ab60);
  color: #1f1709;
  border-color: transparent;
}
body[data-channel="movie"] .lucky-dialog .primary-button:hover,
body[data-channel="movie"] .lucky-tarot .tarot-open-btn:hover {
  background: linear-gradient(120deg, #fae4b4, #e1ba70);
}
body[data-channel="movie"] .lucky-tarot .tarot-badge {
  border-color: rgba(233, 201, 135, 0.45);
  color: #f5ddaa;
  background: rgba(46, 37, 22, 0.72);
}

/* 7. Comprehensive Multi-Resolution Responsive Polish */

/* Hide Bento side info cleanly below desktop breakpoint */
@media (max-width: 1100px) {
  body[data-channel="movie"] .bento-info { display: none; }
}

/* Tablet / Small Laptop (701px - 1180px) — Prevent 4-line subtitle wrapping on BOTH channels */
@media (min-width: 701px) and (max-width: 1180px) {
  .header { gap: 10px; min-height: 68px; padding-block: 10px; }
  .rule-inline { display: none; }
  .rule-trigger {
    display: inline-flex; align-items: center; min-height: 22px; padding: 0 4px;
    border: 0; background: transparent; color: #b6d8d3; font: inherit; cursor: pointer;
    text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #678c8f;
  }
  #archive-rule:popover-open { display: block; }
  .site-channel-switch .ch-pill { padding: 0 9px; font-size: 11.5px; height: 26px; min-height: 26px; }
  .header nav { gap: 13px; }
  .nav-link { font-size: 13.5px; }
}

/* Mobile (<= 700px) — Zero Overflow, 100% Parity Across Both Channels */
@media (max-width: 700px) {
  .header {
    flex-wrap: wrap;
    row-gap: 7px;
    column-gap: 8px;
    padding-block: 7px 8px;
  }
  .archive-identity {
    order: 1;
    flex: 1 1 0;
    min-width: 0;
  }
  .header-toggles {
    order: 2;
    margin-left: auto;
  }
  .site-channel-switch {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 2px;
    border-radius: 10px;
  }
  .site-channel-switch .ch-pill {
    width: 100%;
    height: 28px;
    min-height: 28px;
    border-radius: 8px;
    font-size: 12px;
  }
  body[data-channel="movie"] .volume-switcher { order: 1; }
  body[data-channel="movie"] .filter-panel { order: 2; }
  body[data-channel="movie"] .active-filters { order: 3; }
  body[data-channel="movie"] .exhibition-banner { order: 4; }
  body[data-channel="movie"] .archive-shelf-bar { order: 5; }
  body[data-channel="movie"] .result-line { order: 6; }
  body[data-channel="movie"] #volume-results { order: 7; min-width: 0; }
  body[data-channel="movie"] .tabs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
  }
  body[data-channel="movie"] .tabs button {
    font-size: 11px;
    padding: 0 2px;
    gap: 2px;
  }
  body[data-channel="movie"] .tabs button span {
    font-size: 9.5px;
  }
  .volume-switcher {
    gap: 6px;
    margin: 2px 0 8px;
  }
  .vol-tab {
    padding: 7px 8px 8px;
    border-radius: 9px;
    gap: 0;
  }
  .vol-tab::after {
    left: 10px;
    right: 10px;
  }
  .vol-tab-top {
    justify-content: center;
    gap: 4px;
  }
  .vol-tab-top strong {
    font-size: 12px;
  }
  .vol-prefix,
  .vol-tab small {
    display: none;
  }
  .vol-tab-top b {
    min-width: 22px;
    height: 17px;
    padding: 0 5px;
    font-size: 10px;
  }
  .volume-chapter-head {
    padding: 10px 12px;
    gap: 8px;
    border-radius: 9px;
  }
  .vch-kicker { display: none; }
  .vch-main { gap: 2px 8px; }
  .vch-main strong { font-size: 14.5px; }
  .vch-meta { font-size: 11px; }
  .vch-actions { width: 100%; justify-content: flex-start; gap: 6px; }
  .vch-btn { min-height: 26px; padding: 3px 9px; font-size: 11px; }
  .stats-vol-grid { grid-template-columns: 1fr; }
  #picker-pair :is(#year-value, #sort-value, #cover-view-value, #view-mode-value) {
    display: inline;
    font-size: 12px;
  }
  .movie-checklist-table { min-width: 640px; font-size: 12px; }
  .cl-note-cell { max-width: 150px; }
  .desktop-only-sub { display: none; }

  /* Mobile Movie Cards — Strict Column Containment (Zero Horizontal Overlap!) */
  body[data-channel="movie"] .anime-card {
    min-width: 0;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  body[data-channel="movie"] .anime-card .poster {
    width: 100%;
    aspect-ratio: 3 / 4;
  }
  body[data-channel="movie"] .movie-score-pill {
    right: 4px;
    bottom: 5px;
    padding: 1px 5px;
    font-size: 9.5px;
  }
  body[data-channel="movie"] .anime-card .card-title {
    width: 100%;
    margin: 5px 0 2px;
    font-size: 12.5px;
    line-height: 1.35;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body[data-channel="movie"] .anime-card .card-tags {
    width: 100%;
    margin: 0;
    min-height: 17px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    font-size: 10.5px;
    line-height: 1.4;
    overflow: hidden;
    white-space: nowrap;
  }
  body[data-channel="movie"] .anime-card .card-tags .movie-ws-badge,
  body[data-channel="movie"] .anime-card .card-tags .movie-col-pill,
  body[data-channel="movie"] .anime-card .card-tags .watched-pill,
  body[data-channel="movie"] .anime-card .card-tags .note-pill {
    display: none;
  }
  body[data-channel="movie"] .anime-card .card-footer {
    width: 100%;
    margin: 2px 0 0;
    padding-top: 0;
    min-height: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3px;
    min-width: 0;
  }
  body[data-channel="movie"] .anime-card .card-footer .portal-link {
    display: block;
    font-size: 9.5px;
    line-height: 18px;
    height: 18px;
    min-height: 18px;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0;
  }
  body[data-channel="movie"] .anime-card .card-footer .portal-link.has-compact .dir-full {
    display: none;
  }
  body[data-channel="movie"] .anime-card .card-footer .portal-link.has-compact .dir-compact {
    display: inline;
  }
  body[data-channel="movie"] .anime-card .card-footer .card-douban-mini {
    font-size: 9px;
    padding: 0 4.5px;
    height: 16px;
    line-height: 14px;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
  }
  body[data-channel="movie"] .anime-card .card-footer .card-index {
    display: none;
  }
  body[data-channel="movie"] .anime-card .card-watch-portals {
    width: 100%;
    margin: 4px 0 0;
    gap: 3px;
  }
  body[data-channel="movie"] .anime-card .card-watch-portals[data-count="2"],
  body[data-channel="movie"] .anime-card .card-watch-portals[data-count="4"] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body[data-channel="movie"] .anime-card .card-watch-portals[data-count="3"] {
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
  }
  body[data-channel="movie"] .anime-card .card-watch-portals[data-count="2"] .watch-portal-pill.wp-card,
  body[data-channel="movie"] .anime-card .card-watch-portals[data-count="4"] .watch-portal-pill.wp-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 1px 2px;
  }
  body[data-channel="movie"] .anime-card .card-watch-portals[data-count="3"] .watch-portal-pill.wp-card {
    flex: 1 1 auto;
    min-width: 0;
    box-sizing: border-box;
    padding: 1px 2px;
    font-size: 9px;
    gap: 1.5px;
    overflow: hidden;
  }
  body[data-channel="movie"] .anime-card .card-watch-portals[data-count="3"] .watch-portal-pill.wp-card .wp-dot {
    width: 3px;
    height: 3px;
  }
  body[data-channel="movie"] .anime-card .watch-portal-pill.wp-card {
    min-height: 19px;
    padding: 1px 4.5px;
    border-radius: 4px;
    font-size: 9.5px;
    gap: 2.5px;
    letter-spacing: -0.01em;
  }
  body[data-channel="movie"] .anime-card .watch-portal-pill.wp-card .wp-dot {
    width: 4px;
    height: 4px;
  }

  /* Mobile Dark Ticket Detail Harmonization (<= 700px) — Zero Right Clipping! */
  body[data-channel="movie"] #details {
    --sheet: #141f23;
    --paper: #1b292e;
    --stub: #213237;
    --line: #495d60;
    --accent: #e9c987;
    --on: #1e1608;
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    box-sizing: border-box;
    overflow-x: hidden;
  }
  body[data-channel="movie"] #details #detail-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  body[data-channel="movie"] #details .detail-layout {
    width: 100%;
    min-height: 186px;
    padding: 0;
    background: linear-gradient(125deg, var(--paper), var(--sheet));
  }
  body[data-channel="movie"] #details .detail-art {
    background: linear-gradient(145deg, var(--stub), var(--sheet));
  }
  body[data-channel="movie"] #details .detail-layout:has([data-kind="poster"]) .detail-copy {
    width: auto;
    min-width: 0;
    padding: 13px 9px 13px var(--gutter-detail);
  }
  body[data-channel="movie"] #details .detail-art[data-kind="poster"] .detail-image {
    inset: 30px 8% 26px;
    width: 84%;
    height: calc(100% - 56px);
    filter: none;
    border-radius: 4px;
  }
  body[data-channel="movie"] #details .detail-copy h2 {
    font-size: clamp(21px, 5.8vw, 27px);
    text-shadow: none;
  }
  .movie-detail-scores { gap: 4px; margin-top: 7px; }
  .score-chip { font-size: 10.5px; min-height: 22px; padding: 1px 6px; }
  body[data-channel="movie"] #details .detail-watch-bar { gap: 4px; margin-top: 9px; }
  body[data-channel="movie"] #details .detail-watch-label { flex-basis: 100%; font-size: 10.5px; margin-bottom: 1px; }
  body[data-channel="movie"] #details .watch-portal-pill.wp-detail {
    border-radius: 6px;
    min-height: 29px;
    padding: 4px 8px;
    font-size: 11.5px;
    gap: 4px;
  }
  body[data-channel="movie"] #details .detail-actions { gap: 5px; margin-top: 8px; }
  body[data-channel="movie"] #details .detail-actions :is(a, button) {
    border-radius: 6px;
    min-height: 31px;
    padding: 4px 8px;
    font-size: 11.5px;
  }
  body[data-channel="movie"] #details .work-synopsis,
  body[data-channel="movie"] #details .detail-related {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  body[data-channel="movie"] #details .detail-nav-strip {
    gap: 5px;
  }
  body[data-channel="movie"] #details .detail-nav-strip :is(.detail-step, .detail-share-btn) {
    padding: 4px 8px;
    font-size: 11.5px;
  }
  .movie-info-panel { padding: 11px 12px; }
  .movie-info-row { grid-template-columns: 52px minmax(0, 1fr); gap: 6px 8px; font-size: 12px; }
  .cast-pill { font-size: 11.5px; padding: 2px 7px; }
}
@media (max-width: 460px) {
  .volume-switcher { gap: 5px; }
  .vol-tab { padding: 7px 4px 8px; }
  .vol-tab::after { left: 8px; right: 8px; }
  .vol-tab-top { gap: 3px; }
  .vol-tab-top strong { font-size: 11px; letter-spacing: -0.01em; }
  .vol-tab-top b { min-width: 19px; height: 16px; padding: 0 4px; font-size: 9.5px; }
}

/* 2K & 4K High-DPI Scaling (>= 2200px & >= 3000px) */
@media (min-width: 2200px) {
  .site-channel-switch .ch-pill { height: 32px; min-height: 32px; padding: 0 14px; font-size: 13px; }
}
@media (min-width: 3000px) {
  .site-channel-switch .ch-pill { height: 38px; min-height: 38px; padding: 0 18px; font-size: 15px; }
  .vol-tab { padding: 15px 20px 16px; }
  .vol-tab-top strong { font-size: 17px; }
  body[data-channel="movie"] .anime-card .card-footer { min-height: 24px; }
  body[data-channel="movie"] .anime-card .card-footer .portal-link { font-size: 12.5px; height: 24px; min-height: 24px; line-height: 24px; }
  body[data-channel="movie"] #details { width: min(820px, calc(100% - 32px)); }
}

@media (prefers-reduced-motion: reduce) {
 body[data-channel="movie"] .lucky-tarot .tarot-inner { transform: none; transform-style: flat; }
 body[data-channel="movie"] .lucky-tarot .tarot-back { display: none; }
 body[data-channel="movie"] .lucky-tarot .tarot-front { transform: none; backface-visibility: visible; }
}

/* The three visible film stills share one slow camera move with a separate light pass. */
#movie-triptych .feature-link { text-decoration: none; }
#movie-triptych .feature-link[hidden] { display: none; }
#movie-triptych .movie-scene-art {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  --light-x: 58%;
  --light-y: 31%;
  --scene-light: 255 205 134;
}
#movie-triptych [data-film-art="11324"] .movie-scene-art,
#movie-triptych [data-film-art="567"] .movie-scene-art { --light-x: 72%; --scene-light: 168 221 207; }
#movie-triptych [data-film-art="11216"] .movie-scene-art { --light-x: 23%; --light-y: 39%; }
#movie-triptych [data-film-art="843"] .movie-scene-art,
#movie-triptych [data-film-art="10997"] .movie-scene-art { --light-y: 22%; --scene-light: 255 166 115; }
#movie-triptych .scene-name { background: linear-gradient(transparent, rgb(6 12 20 / .29) 45%, rgb(4 11 17 / .87)); }
@media (prefers-reduced-motion: no-preference) {
  #movie-triptych.scene-playing [data-film-art]:not([data-film-art=""]) .movie-scene-art img {
    transform-origin: var(--light-x) var(--light-y);
    animation: cinema-camera 11s ease-in-out .35s infinite alternate;
  }
  #movie-triptych.scene-playing .feature-neon .movie-scene-art img { animation-duration: 14s; }
  #movie-triptych.scene-playing .feature-comet .movie-scene-art img { animation-duration: 13s; }
  #movie-triptych.scene-playing [data-film-art]:not([data-film-art=""]) .movie-scene-art::after {
    content: "";
    position: absolute;
    inset: -5%;
    opacity: 0;
    background: radial-gradient(ellipse at var(--light-x) var(--light-y), rgb(var(--scene-light) / .55), transparent 54%);
    animation: cinema-light 8s ease-in-out .6s infinite alternate;
  }
}
@media (max-width: 380px) {
  body[data-channel="movie"] .anime-card .card-footer .card-douban-mini { padding-inline: 1px; }
}
@keyframes cinema-camera { from { transform: scale(1); } to { transform: scale(1.068) translateY(-.6%); } }
@keyframes cinema-light { from { opacity: 0; transform: translateX(-2%); } to { opacity: .24; transform: translateX(2%); } }

@media (prefers-reduced-motion: no-preference) {
  #movie-triptych.scene-playing :is([data-film-art="11216"], [data-film-art="11324"]) .movie-scene-art::after {
    inset: 0;
    background: linear-gradient(100deg, rgb(255 221 154 / .58), transparent 98%);
    clip-path: polygon(17% 35%, 100% 41%, 100% 67%);
    transform-origin: 17% 35%;
    animation: cinema-beam 5.5s ease-in-out infinite alternate;
  }
  #movie-triptych.scene-playing [data-film-art="11324"] .movie-scene-art::after {
    clip-path: polygon(56% 18%, 100% 9%, 100% 25%);
    transform-origin: 56% 18%;
    background: linear-gradient(90deg, transparent 48%, rgb(215 240 216 / .58));
    animation-duration: 7.5s;
  }
  #movie-triptych.scene-playing [data-film-art="79"] .movie-scene-art::after {
    inset: 0;
    background: radial-gradient(ellipse 2px 1px at 21% 24%, #fca64c 90%, transparent),
                radial-gradient(ellipse 2px 1.5px at 65% 36%, #ef7435 90%, transparent),
                radial-gradient(ellipse 2.5px 1.5px at 48% 47%, #ffc860 90%, transparent);
    animation: cinema-leaves 7s ease-in-out infinite;
  }
}
@keyframes cinema-beam { from { transform: rotate(-2deg); opacity: .07; } to { transform: rotate(3deg); opacity: .37; } }
@keyframes cinema-leaves {
  0% { transform: translate(-4%, -9%); opacity: 0; }
  25%, 70% { opacity: .72; }
  100% { transform: translate(9%, 18%); opacity: 0; }
}

/* Cross-Channel Reverse Link Block (Anime / Movies -> Source Novel) */
.detail-source-novels {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(114, 184, 146, 0.34);
  background: linear-gradient(135deg, rgba(16, 40, 32, 0.72), rgba(14, 29, 27, 0.86));
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}
.detail-source-novels .dsn-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 10px;
}
.detail-source-novels .dsn-head strong {
  font-size: 13px;
  color: #cbe8d6;
  font-weight: 650;
}
.detail-source-novels .dsn-head small {
  font-size: 11px;
  color: #93b5a4;
}
.detail-source-novels .dsn-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}
.detail-source-novels .dsn-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(217, 180, 110, 0.28);
  background: rgba(9, 20, 18, 0.62);
  color: #f3ede0;
  text-decoration: none;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.detail-source-novels .dsn-card:hover {
  border-color: rgba(217, 180, 110, 0.72);
  background: rgba(18, 38, 33, 0.88);
  transform: translateY(-1px);
}
.detail-source-novels .dsn-card img {
  width: 38px;
  height: 52px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: #0d1c19;
}
.detail-source-novels .dsn-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.detail-source-novels .dsn-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.detail-source-novels .dsn-title-row b {
  font-size: 13.5px;
  color: #f6efe1;
  font-weight: 650;
}
.detail-source-novels .dsn-rel {
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(217, 180, 110, 0.16);
  border: 1px solid rgba(217, 180, 110, 0.42);
  color: #ecd19a;
  white-space: nowrap;
}
.detail-source-novels .dsn-sub {
  font-size: 11.5px;
  color: #a8bfb4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.detail-source-novels .dsn-go {
  font-size: 12px;
  color: #e6c687;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 560px) {
  .detail-source-novels { padding: 10px; }
  .detail-source-novels .dsn-card {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
    gap: 5px 9px;
    padding: 8px 9px;
  }
  .detail-source-novels .dsn-card img { grid-row: span 2; }
  .detail-source-novels .dsn-sub {
    white-space: normal;
    line-height: 1.4;
    overflow: visible;
    text-overflow: clip;
  }
  .detail-source-novels .dsn-go {
    grid-column: 2;
    justify-self: start;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(230, 198, 135, 0.14);
    border: 1px solid rgba(230, 198, 135, 0.36);
    font-size: 11px;
  }
}
