/* Cinema drill-down: two actual folders, never mixes daily attendance with ticket sales. */
.cinema-folders{margin:18px 0 8px;color:#e7f4ff}
.cinema-folder-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.cinema-folder{min-height:168px;text-align:left;border:1px solid #3588be;border-radius:17px;background:linear-gradient(145deg,#0a3158,#071c36);color:#e8f5ff;display:grid;grid-template-columns:auto 1fr auto;align-content:center;gap:6px 12px;padding:22px;cursor:pointer}
.cinema-folder:hover,.cinema-folder:focus-visible{border-color:#76dcff;box-shadow:0 0 22px #16a5fa44;outline-offset:3px}
.cinema-folder-icon{font-size:34px;grid-row:span 2;align-self:center;filter:drop-shadow(0 0 7px #409ceb)}
.cinema-folder strong{font-size:18px;align-self:center;overflow-wrap:anywhere}
.cinema-folder small{font-size:12px;color:#b2d1e7}
.cinema-folder-arrow{font-size:25px;grid-column:3;grid-row:span 2;align-self:center}
.cinema-folder-pushkin{border-color:#bd93f4;background:linear-gradient(145deg,#292650,#111c37)}
.cinema-folder-hint{margin:20px 0 5px;color:#9bbbd6;line-height:1.6;font-size:12px}
.cinema-folder-toolbar{display:flex;justify-content:space-between;gap:10px;margin-bottom:16px}
.cinema-folder-toolbar button{border:1px solid #4b94c3;background:#103b60;border-radius:10px;color:#e6f5ff;padding:10px 15px;cursor:pointer}
#cinema-report-title{margin:8px 0 14px;font-size:21px}
#cinema-report-state{color:#bdd6ea;line-height:1.6}
.cinema-report-period{font-size:13px;color:#b0d1ea;margin:0 0 16px}
.cinema-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.cinema-stats>div{background:#102d4c;border:1px solid #3e7396;padding:15px;border-radius:12px;min-width:0}
.cinema-stats span{font-size:12px;color:#a4c6df;display:block}
.cinema-stats strong{font-size:clamp(17px,2.5vw,25px);display:block;margin-top:8px;overflow-wrap:anywhere}
.cinema-report-source{font-size:12px;color:#b6cedc;line-height:1.6}
#cinema-film-list{overflow-x:auto}
#cinema-film-list h4{font-size:16px;margin:20px 0 10px}
#cinema-film-list table{border-collapse:collapse;width:100%;font-size:13px}
#cinema-film-list th,#cinema-film-list td{padding:11px;border-bottom:1px solid #31536c}
#cinema-film-list th{text-align:left;color:#afd7eb}
#cinema-film-list th:not(:first-child),#cinema-film-list td:not(:first-child){text-align:right;white-space:nowrap}
@media(max-width:670px){.cinema-folder-grid{grid-template-columns:1fr}.cinema-folder{min-height:125px;padding:16px}.cinema-stats{gap:6px}.cinema-stats>div{padding:10px}.cinema-stats span{font-size:11px}.cinema-stats strong{font-size:15px}}


.cinema-month-choice{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:12px 0 18px;padding:12px 15px;background:#0c2c4a;border:1px solid #336a94;border-radius:12px}
.cinema-month-choice label{display:flex;gap:10px;align-items:center;font-weight:700;font-size:13px;color:#ddf1ff}
.cinema-month-choice input{padding:9px 10px;border-radius:8px;border:1px solid #6eaad0;background:#112e4b;color:#fff;font:inherit;color-scheme:dark}
.cinema-month-choice span{font-size:12px;color:#aec9dd}
.cinema-report-breakdown{margin:18px 0;padding:15px;border:1px solid #36779e;border-radius:12px;background:#0c2946}
.cinema-report-breakdown h4{margin:0 0 12px;font-size:14px}
.cinema-breakdown-line{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:12px;align-items:center;padding:10px 0;border-top:1px solid #30536e;font-size:13px}
.cinema-breakdown-line span{text-align:right;white-space:nowrap}
.cinema-report-warnings{font-size:12px;line-height:1.55;color:#ffd2a3;background:#462c1a66;border:1px solid #896036;border-radius:9px;padding:10px}
@media(max-width:560px){.cinema-breakdown-line{grid-template-columns:1fr 1fr;gap:8px}.cinema-breakdown-line strong{grid-column:1/-1}.cinema-breakdown-line span:first-of-type{text-align:left}.cinema-month-choice{align-items:flex-start}}


/* Mail-driven analysis: verified base and genuinely new accepted records. */
.cinema-auto-analysis{margin:20px 0;border:1px solid #396b91;background:#0d243c;border-radius:14px;padding:18px}
.cinema-analysis-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:13px}
.cinema-analysis-heading h4{margin:0;font-size:17px}
.cinema-analysis-heading span{font-size:12px;color:#9bbdd9}
.cinema-analysis-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:0 0 14px}
.cinema-analysis-totals>div{padding:13px;background:#112d4c;border:1px solid #345a7d;border-radius:10px;display:grid;gap:6px}
.cinema-analysis-totals span{font-size:12px;color:#b0d2e7}
.cinema-analysis-totals strong{font-size:21px;color:#e6f6ff;overflow-wrap:anywhere}
.cinema-analysis-totals small{font-size:15px;color:#90dfd2}
.cinema-analysis-insights p{margin:7px 0;color:#c2d6eb;font-size:13px;line-height:1.55}
.cinema-analysis-history{border-top:1px solid #355470;padding-top:13px;margin-top:13px}
.cinema-analysis-history summary{cursor:pointer;color:#b5eaff;font-weight:600;font-size:13px}
.cinema-analysis-record{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;border-bottom:1px solid #29455e;padding:11px 0;font-size:12px}
.cinema-analysis-record span{color:#c4dded}
.cinema-analysis-record strong{color:#f1faff}
.cinema-analysis-record small{color:#8ec2b8}
@media(max-width:560px){.cinema-auto-analysis{padding:12px}.cinema-analysis-totals strong{font-size:18px}.cinema-analysis-record{display:grid}}


/* Fix mobile cards: explicit grid areas prevent the title becoming a 2-letter column.
   Keep the icon and arrow narrow, reserve ALL remaining width for the label. */
.cinema-folder-grid{align-items:stretch}
.cinema-folder{
 width:100%;min-width:0;
 grid-template-columns:42px minmax(0,1fr) 26px;
 grid-template-rows:auto auto;
 gap:6px 12px;
 align-items:center;
}
.cinema-folder > .cinema-folder-icon{
 grid-column:1;grid-row:1 / span 2;align-self:center;justify-self:start;
 min-width:0;
}
.cinema-folder > strong{
 grid-column:2;grid-row:1;
 display:block;min-width:0;
 font-size:18px;line-height:1.3;
 overflow-wrap:normal;word-break:normal;hyphens:none;
 white-space:normal;
}
.cinema-folder > small{
 grid-column:2;grid-row:2;
 display:block;min-width:0;
 color:#b2d1e7;font-size:12px;line-height:1.45;
 overflow-wrap:break-word;word-break:normal;white-space:normal;
}
.cinema-folder > .cinema-folder-arrow{
 grid-column:3;grid-row:1 / span 2;justify-self:end;align-self:center;
 line-height:1;
}
@media(max-width:720px){
 .cinema-folder-grid{grid-template-columns:minmax(0,1fr);gap:14px}
 .cinema-folder{
  grid-template-columns:40px minmax(0,1fr) 24px;
  min-height:114px;padding:16px 17px;column-gap:11px;
 }
 .cinema-folder > strong{font-size:18px;line-height:1.28}
 .cinema-folder > small{font-size:12px}
 .cinema-folder > .cinema-folder-icon{font-size:32px}
 .cinema-folder > .cinema-folder-arrow{font-size:24px}
}
@media(max-width:360px){
 .cinema-folder{grid-template-columns:34px minmax(0,1fr) 18px;column-gap:8px;padding:13px}
 .cinema-folder > strong{font-size:16px}
 .cinema-folder > .cinema-folder-icon{font-size:29px}
 .cinema-folder > .cinema-folder-arrow{font-size:21px}
}
