@font-face { font-family: 'Main'; font-weight: normal; font-display: swap; src: url('../fonts/Lexend-VariableFont_wght.ttf'); }
:root { --mirror-bg: #362d55; --mirror-panel: rgba(54, 45, 85, .92); --mirror-border: rgba(238, 233, 247, .28); }
html, body { min-height: 100%; overflow: hidden; background: var(--mirror-bg); color: #fff; }
body { font-family: 'Main', Ubuntu, Verdana, sans-serif; user-select: none; }
.mirror { height: 100vh; display: flex; flex-direction: column; }
.mirror-toolbar { min-height: 46px; display: flex; align-items: center; gap: 8px; padding: 7px 12px; background: var(--mirror-panel); border-bottom: 1px solid var(--mirror-border); }
.mirror-toolbar button, .mirror-close, .mirror-download { width: 32px; height: 32px; border: none; border-radius: 4px; background: rgba(200, 148, 249, .4); color: #fff; cursor: pointer; }
.mirror-toolbar button:disabled { opacity: .35; cursor: default; }
.mirror-breadcrumb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d5d1f5; }
.mirror-breadcrumb a { color: #fff; text-decoration: none; }
.mirror-breadcrumb a:hover { text-decoration: underline; }
.mirror-list { position: relative; flex: 1; min-height: 0; overflow: auto; padding: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px 4px; align-content: start; }
.mirror-item { width: 80px; min-height: 94px; justify-self: center; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 5px; padding: 3px; color: #fff; cursor: pointer; }
.mirror-item:hover { background: rgba(255, 255, 255, .12); border-radius: 4px; }
.mirror-item img { width: 64px; height: 64px; object-fit: contain; transition: transform .1s; }
.mirror-item:hover img { transform: scale(1.05); }
.mirror-item span { width: 100%; text-align: center; font-size: .75rem; line-height: 1.15; overflow-wrap: anywhere; }
.mirror-item small { color: #d5d1f5; font-size: .62rem; }
.mirror-empty, .mirror-denied { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0; text-align: center; color: #d5d1f5; }
.mirror-denied h1 { color: #fff; font-size: 1.35rem; }
.mirror-backdrop { position: fixed; inset: 0; z-index: 5; display: grid; place-items: center; padding: 30px; background: rgba(15, 8, 28, .78); }
.mirror-popup { position: relative; max-width: 100%; max-height: 100%; display: grid; place-items: center; }
.mirror-popup img { max-width: min(90vw, 1200px); max-height: 85vh; object-fit: contain; }
.mirror-popup video { max-width: 90vw; max-height: 85vh; }
.mirror-popup audio { width: min(500px, 85vw); }
.mirror-popup iframe { width: min(900px, 90vw); height: min(700px, 85vh); border: 0; background: #fff; }
.mirror-popup pre { max-width: 90vw; max-height: 85vh; overflow: auto; padding: 20px; margin: 0; color: #21152f; background: #fff; white-space: pre-wrap; user-select: text; }
.mirror-unavailable { padding: 50px; background: var(--mirror-panel); }
.mirror-close { position: fixed; top: 14px; right: 14px; z-index: 6; font-size: 1.2rem; }
.mirror-download { position: fixed; top: 14px; right: 54px; z-index: 6; width: auto; padding: 0 10px; }
@media (max-width: 500px) { .mirror-list { padding: 12px 6px; } .mirror-toolbar { padding-inline: 7px; } }