.mobile-catalog,.series-dialog:not([open]){display:none}
.series-dialog{width:min(calc(100% - 32px),410px);max-width:410px;max-height:calc(100dvh - 32px);margin:auto;padding:22px 18px 20px;border:1px solid #65415b;border-radius:20px;background:#241a2d;color:#fff;box-shadow:0 24px 90px #000a;overflow:auto;overscroll-behavior:contain}
.series-dialog::backdrop{background:#0b0812c9;backdrop-filter:blur(4px)}
.dialog-close{position:absolute;top:9px;right:10px;width:36px;height:36px;border:0;border-radius:50%;background:#ffffff0c;color:#e2d4e5;font:28px/1 Arial;cursor:pointer}
.dialog-feature{display:flex;align-items:center;gap:14px;padding-right:22px}
.dialog-poster{width:92px;aspect-ratio:2/3;flex:none;overflow:hidden;background:#392a40;border-radius:9px}
.dialog-poster img{width:100%;height:100%;object-fit:cover;display:block}
.dialog-details{min-width:0}
.dialog-label,.dialog-date{font-size:13px;color:#d0b9ce;margin:0 0 8px;line-height:1.45}
.dialog-date{margin:8px 0 0}
.dialog-details h2{font-size:18px;line-height:1.3;letter-spacing:-.3px;margin:0;overflow-wrap:anywhere}
.dialog-summary,.dialog-note{font-size:14px;color:#ebdeeb;line-height:1.6;margin:18px 0 0;white-space:pre-line;overflow-wrap:anywhere}
.dialog-note{padding:12px 14px;border-radius:12px;background:#ffffff08;color:#d9c9dc;margin-top:12px}
.dialog-telegram{display:flex;align-items:center;justify-content:center;gap:9px;min-height:48px;margin-top:18px;padding:10px 12px;border-radius:26px;background:linear-gradient(110deg,#ffad65,#ff9148);color:#27140d;font-size:14px;font-weight:800;text-decoration:none;text-align:center;box-shadow:0 8px 24px #0003}
.dialog-telegram svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linejoin:round;stroke-linecap:round}
.dialog-telegram[aria-disabled=true]{opacity:.55;cursor:not-allowed}
.dialog-config-note{font-size:13px;color:#e2c7bd;text-align:center;margin:10px 0 0}
.dialog-close:focus-visible,.catalog-card:focus-visible,.dialog-telegram:focus-visible{outline:2px solid #ffad65;outline-offset:3px}
@media(max-width:768px){
  html,body{height:auto!important;max-height:none!important;min-height:100%;overflow-x:clip!important;overflow-y:visible!important;background:#17121e}
  html{overflow-y:auto!important}
  html.dialog-open{overflow:hidden!important}
  body{position:static!important}
  .landing{height:auto!important;max-height:none!important;min-height:100svh;display:flex;flex-direction:column;justify-content:flex-start;overflow:visible!important;isolation:auto}
  .landing::after{display:none}
  .landing>header{order:0;justify-content:space-between;align-items:center;min-height:64px;padding:calc(10px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 10px max(12px,env(safe-area-inset-left));background:#201827;gap:8px;flex:none}
  .landing>header .brand{display:block;font-size:clamp(21px,6vw,30px);letter-spacing:-1px;margin:0;line-height:1;flex:none}
  .landing>header nav{gap:clamp(8px,2.6vw,18px);margin-left:auto}
  .landing>header .menu{font-size:11px;gap:5px;text-shadow:none}
  .landing>header .menu-icon{width:32px;height:32px}
  .landing>header .menu-icon svg{width:18px;height:18px}
  .landing>.background{order:1;position:relative;inset:auto;z-index:auto;width:100%;aspect-ratio:16/9;flex:none;background-size:contain;background-position:center;background-repeat:no-repeat}
  .mobile-catalog{order:2;display:block;padding:18px 12px calc(24px + env(safe-area-inset-bottom));flex:none;min-width:0;height:auto!important;max-height:none!important;overflow:visible!important}
  .catalog-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 14px}
  .catalog-heading h2{font-size:18px;letter-spacing:-.35px;margin:0;line-height:1.25}
  .catalog-all{color:#ffac76;font-size:13px;font-weight:600;text-decoration:none;white-space:nowrap}
  .catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px 9px;height:auto!important;max-height:none!important;overflow:visible!important}
  .catalog-card{appearance:none;border:0;background:none;padding:0;text-align:left;font:inherit;cursor:pointer;min-width:0;color:#fff;display:flex;flex-direction:column;gap:7px}
  .catalog-poster{display:block;position:relative;aspect-ratio:2/3;width:100%;border-radius:8px;overflow:hidden;background:#302638}
  .catalog-poster img{display:block;width:100%;height:100%;object-fit:cover}
  .catalog-poster.missing img{display:none}
  .catalog-poster.missing::after{content:'LeDrama';position:absolute;inset:0;display:grid;place-items:center;color:#c1aebe;font-size:13px}
  .catalog-title{font-size:13px;line-height:1.35;min-height:2.7em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .catalog-status{font-size:13px;color:#cbbacb;margin:0 0 12px;line-height:1.5}
  .catalog-status:empty{display:none}
  .landing>.bottom{display:none!important}
}
@media(max-width:340px){.landing>header{padding-left:9px;padding-right:9px;gap:5px}.landing>header nav{gap:7px}.landing>header .menu{font-size:10px}.landing>header .brand{font-size:20px}}
