:root { color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: #17282b; color: #fff; overflow: hidden; font-family: "Microsoft YaHei", sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; border: 0; background: transparent; }
a, button, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, [role="slider"]:focus-visible { outline: 2px solid #85e5d4; outline-offset: 3px; }
[hidden] { display: none !important; }
#backstretch { position: fixed; inset: 0; z-index: -1; background: radial-gradient(ellipse at 75% 20%, #497779 0, transparent 65%), linear-gradient(145deg, #122c33, #243a3d 45%, #121a27); background-size: cover; background-position: center; }
#FM_Left { position: fixed; height: 100dvh; min-height: 0; display: flex; flex-direction: column; background-color: rgba(255,255,255,.16); backdrop-filter: blur(14px); }
#Button_LeftOrRigth { left: 265px; top: 8px; flex-shrink: 0; }
#FM_Info { margin-top: 62px; flex-shrink: 0; }
#FM_Info h3 { font-size: 18px; margin: 0 25px 9px; line-height: 1.5; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#FM_Info h5 { font-size: 12px; font-weight: normal; color: #d7dfe0; margin: 0 25px 20px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#FM_Cover { margin: auto; width: 275px; height: 150px; background: rgba(0,0,0,.15); box-shadow: 0 0 3px #000; overflow: hidden; }
#FM_Info img { width: 100%; height: 100%; object-fit: cover; box-shadow: none; }
#cover-empty { font-size: 37px; font-weight: 200; line-height: 150px; letter-spacing: 5px; color: #d5e7e5; }
#cover-empty span { display: inline; font-weight: bold; letter-spacing: 0; color: #8bc9be; }
.tools { height: 24px; margin: 18px auto 12px; display: flex; justify-content: center; gap: 24px; }
.tools a, .tools button { display: block; width: 20px; height: 20px; padding: 0; }
.volume { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 11px; color: #d4dcdc; }
.volume input { width: 110px; accent-color: #d1ece6; }
.history-title { display: flex; justify-content: space-between; color: #d4dddd; font-size: 11px; padding: 23px 30px 9px; flex-shrink: 0; }
.history-title button { font-size: 11px; color: #a7bfbc; padding: 0; }
#FM_List { display: block; height: auto; min-height: 0; flex: 1; margin: 0 0 116px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #7c9999 transparent; }
.FM_List_Data { height: 77px; padding-left: 20px; display: flex; align-items: center; gap: 12px; }
.FM_List_Image { background-size: cover; background-position: center; height: 60px; width: 92px; border: 0; flex-shrink: 0; background-color: rgba(255,255,255,.1); color: #a8d0c9; font-size: 13px; }
.FM_List_Info { margin: 0; max-width: 183px; min-width: 0; }
.FM_List_Info strong, .FM_List_Info small { display: block; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.FM_List_Info strong { font-size: 13px; font-weight: normal; }
.FM_List_Info small { font-size: 11px; margin-top: 5px; color: #ccd8d7; }
#FM_Progress { display: block; bottom: 100px; }
#progress { background: #fff !important; opacity: .8; }
#FM_Button { position: absolute; bottom: 0; height: 100px; width: 100%; display: flex; align-items: center; gap: 0; padding-left: 10px; }
#Button_Play, #Button_Back { float: none; margin: 0; flex-shrink: 0; }
#Button_Back { width: 50px; height: 60px; }
#FM_Time { margin: 0 0 0 6px; float: none; white-space: nowrap; }
#elapsed { font-size: 16px; }
#duration { display: inline !important; margin-left: 6px; font-size: 25px; }
#toggle-list { width: 30px; height: 30px; margin-left: 10px; background: url(/images/iconfont-zuosuojin.png) center / 30px no-repeat; }
#FM_Header { left: 335px; right: 0; top: 0; height: 62px; display: flex; align-items: center; gap: 24px; padding: 0 30px; z-index: 100; }
.brand { margin-right: auto; font-size: 18px; letter-spacing: 2px; opacity: .75; }
#search-form { display: flex; align-items: center; gap: 8px; }
#FM_Serach input { color: #eee; width: 230px; border-radius: 2px; }
#FM_Serach input::placeholder { color: #b9c8c6; }
#search-form button, .admin-link { font-size: 12px; color: #cad8d5; }
#list-panel { position: fixed; left: 335px; right: 0; top: 62px; bottom: 0; display: grid; grid-template-rows: 1fr; opacity: 1; visibility: visible; transition: grid-template-rows .9s ease, opacity .7s ease, visibility 0s; }
.list-clip { min-height: 0; overflow: hidden; }
#FM_Right { position: relative; left: 0; right: 0; top: 0; height: 100%; margin: 0; padding: 0 25px 40px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #6b8989 transparent; }
#FM_Right_List { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px 25px; right: 0; overflow: visible; padding-top: 10px; }
.FM_Right_Info, .FM_Playing { width: auto; min-width: 0; float: none; margin: 0; height: 64px; border: 0; display: flex; align-items: center; }
.FM_Playing { outline: 2px solid rgba(255,255,255,.4); outline-offset: -2px; }
.FM_Right_Info_Status { float: none; height: 50px; width: 42px; margin: 0 5px; flex-shrink: 0; color: #abc8c1; font-size: 14px; }
.FM_Right_Info_Data { float: none; margin: 0; width: auto; flex: 1; min-width: 0; padding-right: 44px; }
.FM_Right_Name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.FM_Right_AnimeName { margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.FM_Right_Info_DownLoadButton { width: 38px; padding: 0; top: 0; right: 0; background: url(/images/iconPlay-63bef2.png) no-repeat -152px -127px; opacity: .55; }
.FM_Right_Info:hover .FM_Right_Info_DownLoadButton { background-position: -152px -127px; opacity: 1; }
.badge { color: #9ae1cd; font-size: 10px; margin-left: 8px; }
#load-more { display: block; margin: 25px auto 0; padding: 12px 35px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.15); }
#list-status { text-align: center; font-size: 13px; color: #d0dfdc; margin: 25px 0; line-height: 1.8; height: auto; }
.Msg { display: block; top: 10px; left: 50%; transform: translateX(-50%); width: auto; max-width: min(80vw, 600px); padding: 12px 22px; background: rgba(12,25,28,.95); border: 1px solid #71908b; border-radius: 4px; }
body.player-right #FM_Left { left: calc(100% - 335px); }
body.player-right #list-panel, body.player-right #FM_Header { left: 0; right: 335px; }
body.list-hidden #list-panel { grid-template-rows: 0fr; opacity: 0; visibility: hidden; pointer-events: none; transition: grid-template-rows .9s ease, opacity .7s ease, visibility 0s .9s; }
body.list-hidden #toggle-list { background-image: url(/images/iconfont-yousuojin.png); }
@media (max-width: 1550px) { #FM_Right_List { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 1100px) { #FM_Right_List { grid-template-columns: minmax(0,1fr); } .brand { display: none; } #FM_Header { gap: 15px; } #search-form { flex: 1; } }
@media (max-height: 670px) and (min-width: 701px) { #FM_Cover { height: 105px; } #cover-empty { line-height: 105px; } #FM_Info { margin-top: 55px; } .history-title { padding-top: 14px; } }
@media (max-width: 700px) {
    body { overflow-y: auto; }
    #FM_Left, body.player-right #FM_Left { position: relative; left: 0; width: 100%; height: 460px; }
    #Button_LeftOrRigth { display: none; }
    #FM_Info { margin-top: 25px; }
    #FM_Cover { width: 275px; height: 127px; }
    #cover-empty { line-height: 127px; }
    .history-title, #FM_List { display: none; }
    #FM_Button { justify-content: center; padding: 0; }
    #list-panel, body.player-right #list-panel { position: relative; left: 0; right: 0; top: 0; bottom: auto; }
    #FM_Right { height: auto; min-height: 240px; padding: 0 15px 30px; overflow-y: visible; }
    #FM_Header, body.player-right #FM_Header { position: relative; left: 0; right: 0; padding: 0 15px; gap: 10px; }
    #search-form { min-width: 0; }
    #FM_Serach { flex: 1; min-width: 0; }
    #FM_Serach input { width: 100%; }
    #FM_Right_List { gap: 10px; }
    .Msg { top: 8px; width: 90%; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
