/* Compact weekly watch calendar, aligned with the existing recommendation shelf. */
.watch-calendar{position:absolute;right:0;top:10px;width:306px;height:174px;padding:14px 15px 12px;border:1px solid #ffffff14;border-top-color:#ff80603d;border-radius:16px;background:radial-gradient(ellipse at 100% 0%,#ff624516,transparent 62%),linear-gradient(135deg,#171923e8,#0f121ce8);box-shadow:0 12px 30px -20px #000c;overflow:hidden;z-index:3}.watch-calendar:before{content:'';position:absolute;left:18px;right:18px;top:0;height:1px;background:linear-gradient(90deg,transparent,#ff795a80,transparent)}.wc-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}.wc-title{display:flex;align-items:center;gap:7px;font-size:14px;font-weight:750;letter-spacing:.4px}.wc-title svg{width:17px;height:17px;color:#ff8063}.wc-head>span{margin-left:auto;font-size:10px;letter-spacing:1px;color:#81899f;font-variant-numeric:tabular-nums}.wc-expand{font-size:15px;color:#a9adbe}.wc-days{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.wc-day{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:45px;border:1px solid transparent;background:transparent;border-radius:9px;color:#9ba3b8;transition:.2s}.wc-day span{font-size:9px;line-height:1}.wc-day b{font-size:14px;font-weight:600;line-height:1.2;font-variant-numeric:tabular-nums}.wc-day:hover{background:#ffffff09}.wc-day.today:not(.active):after{content:'';position:absolute;bottom:2px;width:3px;height:3px;border-radius:50%;background:#ff7356}.wc-day.active{color:#fff;border-color:#ff80634a;background:linear-gradient(145deg,#ff3b5229,#ff7a451a);box-shadow:inset 0 1px #ffffff09}.wc-day.active b{color:#ff9075}.wc-preview{display:flex;align-items:center;gap:7px;margin-top:10px;padding:8px 0 9px;border-bottom:1px solid #ffffff0a;line-height:1}.wc-live{height:4px;width:4px;background:#ff7e5e;box-shadow:0 0 7px #ff7e5e66;border-radius:50%;flex:none}#wc-summary{font-size:10.5px;color:#c1c6d6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wc-summary-arrow{margin-left:auto;color:#7c8498}.wc-foot{display:flex;justify-content:space-between;margin-top:8px;line-height:1;font-size:9px}.wc-foot>span{color:#646d83;letter-spacing:.3px}.wc-foot a{color:#ff9a80;font-weight:600}.calendar-page{padding-top:32px;padding-bottom:30px}.cal-crumb{font-size:12px;color:var(--dim);margin-bottom:24px}.cal-crumb a{color:var(--muted)}.cal-crumb span{padding:0 10px}.cal-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.cal-kicker{font-size:10px;letter-spacing:3px;color:#f48b75;margin-bottom:7px}.cal-heading h1{font-size:34px;line-height:1.35;letter-spacing:-1px}.cal-heading p{font-size:13px;color:var(--muted);margin-top:9px}.cal-label{display:flex;align-items:center;gap:7px;padding:7px 12px;border:1px solid #ffffff12;border-radius:30px;font-size:11px;color:var(--muted);white-space:nowrap}.cal-label i{width:5px;height:5px;background:#ff8a68;border-radius:50%}.cal-shell{background:linear-gradient(140deg,#151822,#10131d 75%);border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 20px 70px -40px #000}.cal-toolbar{padding:22px 24px 18px;display:flex;align-items:center;justify-content:space-between;gap:16px}.cal-period{display:flex;align-items:baseline;gap:12px}.cal-period b{font-size:20px;letter-spacing:.5px}.cal-period small{font-size:12px;color:var(--dim)}.cal-week-switch{display:flex;gap:7px;align-items:center}.cal-week-switch button{height:30px;min-width:30px;background:#ffffff05;border:1px solid var(--line);border-radius:7px;font-size:14px;color:var(--muted)}.cal-week-switch #cal-today{font-size:11px;padding:0 12px;margin:0 4px}.cal-week-switch button:hover{border-color:#ff80634a;color:#ff9a80}.cal-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;padding:0 24px 22px}.cal-date{background:#ffffff02;border:1px solid #ffffff0a;border-radius:12px;min-height:92px;padding:12px 8px;text-align:center;transition:.2s}.cal-date>span{display:block;font-size:11px;color:#8992a7}.cal-date b{display:block;font-size:25px;line-height:1.6;font-weight:600;font-variant-numeric:tabular-nums}.cal-date small{font-size:10px;color:#69748a}.cal-date:hover{background:#ffffff07}.cal-date.active{border-color:#ff78535c;background:linear-gradient(145deg,#ff3b521a,#ff7a4509);box-shadow:inset 0 1px #ffffff0b}.cal-date.active>span,.cal-date.active small{color:#ffae96}.cal-date.active b{color:#ff987a}.cal-filter{border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#07080d40;padding:17px 24px;display:flex;gap:12px;align-items:center}.cal-filter-title{font-size:14px;font-weight:700;white-space:nowrap}.cal-filter-title span{color:#79839a;font-size:11px;font-weight:400;margin-left:8px}.cal-filter .cal-inputs{display:flex;gap:9px;margin-left:auto}.cal-filter input{width:200px;font-size:12px;padding:8px 12px;background:#ffffff03}.cal-filter select{font-size:12px;padding:8px 12px;background:#141824}.cal-table{width:100%;border-collapse:collapse;table-layout:fixed}.cal-table th{font-size:10px;letter-spacing:1px;font-weight:500;text-align:left;padding:14px 24px;color:#747e95;border-bottom:1px solid var(--line)}.cal-table td{padding:19px 24px;border-bottom:1px solid #ffffff06;vertical-align:middle;font-size:12px}.cal-table tr:last-child td{border-bottom:0}.cal-table tbody tr:hover{background:#ffffff02}.cal-table th:nth-child(1){width:12%}.cal-table th:nth-child(2){width:34%}.cal-table th:nth-child(3){width:13%}.cal-table th:nth-child(4){width:17%}.cal-table th:nth-child(5){width:12%}.cal-table th:nth-child(6){width:12%}.cal-time{font-size:17px!important;color:#e4e8f4;font-variant-numeric:tabular-nums;letter-spacing:.3px}.cal-time small{display:block;color:var(--dim);font-size:9px;letter-spacing:0;margin-top:2px}.cal-drama{display:flex;align-items:center;gap:13px}.cal-drama img{width:40px;height:57px;object-fit:cover;border-radius:6px;border:1px solid var(--line)}.cal-drama b{font-weight:600;font-size:14px;display:block}.cal-drama small{display:block;color:var(--dim);font-size:10px;margin-top:4px}.cal-category{color:#9da6ba}.cal-episode strong{font-weight:500;color:#dce1ef}.cal-episode small{display:block;color:#68738b;font-size:10px;margin-top:3px}.cal-status{display:inline-flex;align-items:center;gap:5px;color:#8ebbaa;font-size:11px;white-space:nowrap}.cal-status:before{content:'';width:4px;height:4px;border-radius:50%;background:currentColor}.cal-status.pending{color:#9a93b8}.cal-watch{display:inline-flex;gap:5px;align-items:center;font-size:11px;color:#ff9b80;background:#ff78530c;border:1px solid #ff785325;padding:7px 11px;border-radius:7px;white-space:nowrap}.cal-watch:hover{background:#ff785321;border-color:#ff785360}.cal-bottom{display:flex;justify-content:space-between;gap:10px;padding:16px 24px;background:#07080d30;border-top:1px solid var(--line);font-size:10px;color:#657088}.cal-bottom b{font-weight:400;color:#a2aabc}.cal-note{padding:18px 2px;color:var(--dim);font-size:11px;line-height:1.8}.cal-footer{margin-top:35px}.calendar-nav .menu{justify-content:flex-start;gap:24px;margin-left:25px}.calendar-nav .cal-nav-back{margin-left:auto;font-size:12px;color:var(--muted)}.cal-reset{border:1px solid var(--line);padding:8px 14px;border-radius:8px;background:#ffffff06;font-size:12px;margin-top:12px}.cal-table-wrap{overflow:auto}.cal-empty{padding:45px;color:var(--dim);text-align:center;font-size:13px}.calendar-mobile-link{display:none}@media(max-width:1000px){.cal-table th,.cal-table td{padding-left:16px;padding-right:16px}}@media(max-width:768px){.watch-calendar{position:relative;top:auto;right:auto;width:100%;height:auto;min-height:170px;margin:18px 0 0;order:3}.wc-days{gap:6px}.wc-day{height:46px}.wc-preview{margin-top:8px}#wc-summary{font-size:12px}.wc-foot{font-size:10px}.wc-head>span{font-size:11px}.cal-heading{align-items:flex-start}.cal-heading h1{font-size:28px}.cal-heading p{font-size:12px;max-width:240px}.cal-label{font-size:9px;padding:6px 8px;margin-top:25px}.calendar-page{padding-top:22px}.cal-crumb{margin-bottom:18px}.cal-toolbar{padding:18px 14px}.cal-period{gap:6px;flex-direction:column}.cal-period b{font-size:17px}.cal-period small{font-size:10px}.cal-week{gap:4px;padding:0 12px 16px}.cal-date{min-height:79px;padding:9px 2px;border-radius:9px}.cal-date>span{font-size:10px}.cal-date b{font-size:20px}.cal-date small{font-size:8px}.cal-filter{padding:14px;flex-wrap:wrap;gap:12px}.cal-filter .cal-inputs{margin:0;width:100%}.cal-inputs input{width:auto;flex:1;min-width:0}.cal-inputs select{max-width:105px}.cal-table th,.cal-table td{padding:14px}.cal-bottom{padding:14px;flex-wrap:wrap;font-size:9px}.cal-shell{border-radius:15px}.calendar-nav .menu{display:none}.calendar-nav .logo{position:static;transform:none}.calendar-nav .cal-nav-back{font-size:11px}.calendar-mobile-link{display:block;color:#ff9a80;font-size:12px;margin-left:auto}.cal-note{font-size:10px}.cal-heading{gap:10px}}
@media(max-width:768px){.calendar-nav .logo{position:relative;left:auto;transform:none}}


/* Full-width calendar placed below the pinned recommendation shelf. */

.watch-section{padding:24px 0 8px}.watch-calendar{position:relative;top:auto;right:auto;width:100%;height:auto;min-height:150px;margin:0;padding:24px;display:grid;grid-template-columns:180px minmax(0,1fr) 260px;column-gap:28px;row-gap:16px;border-radius:18px;align-items:center}.watch-calendar:before{left:24px;right:24px}.wc-head{margin:0;display:grid;grid-template-columns:1fr auto;gap:8px;align-content:center}.wc-title{font-size:21px;letter-spacing:-.3px;grid-column:1}.wc-title svg{width:21px;height:21px}.wc-head>span{grid-column:1;margin:0 0 0 28px;font-size:11px;letter-spacing:1.5px}.wc-expand{grid-column:2;grid-row:1/3;color:#939bb0}.wc-days{gap:8px}.wc-day{height:62px;gap:7px;border:1px solid #ffffff0a;background:#ffffff02;border-radius:11px}.wc-day span{font-size:10px}.wc-day b{font-size:22px;font-weight:550}.wc-day.today:not(.active):after{bottom:5px}.wc-preview{margin:0;padding:16px;border:1px solid #ffffff09;border-radius:11px;min-height:62px;gap:9px;background:#090b1130}.wc-live{width:5px;height:5px}#wc-summary{font-size:12px;line-height:1.7;white-space:normal}.wc-summary-arrow{font-size:19px}.wc-foot{grid-column:1/-1;border-top:1px solid #ffffff09;padding-top:14px;margin:0;font-size:11px;line-height:1.3}.wc-foot>span{color:#717b92}.wc-foot a{font-size:11px}.watch-section+.section{padding-top:24px}@media(max-width:1100px){.watch-calendar{grid-template-columns:150px minmax(0,1fr);gap:16px 22px}.wc-preview{grid-column:1/-1;min-height:0;padding:10px 14px}.wc-foot{padding-top:12px}}@media(max-width:768px){.watch-section{padding:20px 0 4px}.watch-calendar{padding:18px 16px;display:grid;grid-template-columns:1fr;gap:15px;min-height:0;border-radius:16px}.wc-head{display:flex;align-items:center;gap:10px}.wc-title{font-size:18px}.wc-head>span{margin-left:auto;font-size:10px}.wc-expand{font-size:17px}.wc-days{gap:6px}.wc-day{height:55px;gap:5px}.wc-day b{font-size:19px}.wc-day span{font-size:9px}.wc-preview{grid-column:1;padding:10px 12px}.wc-foot{grid-column:1;font-size:10px;padding-top:12px}.wc-foot a{font-size:10px}}

[data-calendar] [hidden]{display:none!important}

/* Updated works: original cover, full title, and original catalogue keywords. */
.wc-updates{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding-top:18px;border-top:1px solid rgba(255,255,255,.07)}
.wc-work{position:relative;display:flex;align-items:center;gap:14px;min-width:0;padding:13px;border:1px solid rgba(255,255,255,.07);border-radius:12px;background:rgba(255,255,255,.018);transition:background .2s,border-color .2s,transform .2s;text-decoration:none;color:inherit}
.wc-work:hover{background:rgba(255,120,83,.055);border-color:rgba(255,120,83,.3);transform:translateY(-2px)}
.wc-work:focus-visible{outline:2px solid #ff8e70;outline-offset:3px}.wc-work-cover{position:relative;flex:none;width:62px;height:94px;overflow:hidden;border-radius:7px;border:1px solid rgba(255,255,255,.08);background:#1b1e28}.wc-work-cover img{width:100%;height:100%;object-fit:cover;display:block}.wc-work-cover>span{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,rgba(0,0,0,.85));padding:12px 4px 4px;font-size:9px;letter-spacing:.5px;text-align:center;color:#e9eaf1}
.wc-work-info{min-width:0;flex:1}.wc-work-info>strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;font-weight:650;line-height:1.6;color:#edf0f7;overflow-wrap:anywhere}.wc-work-info>small{display:block;font-size:10px;color:#7b859b;margin:6px 0 9px}.wc-work-info>small i{font-style:normal;margin:0 4px;color:#4d576e}.wc-keywords{display:flex;gap:5px;flex-wrap:wrap}.wc-keywords>span{font-size:9px;line-height:1.5;padding:2px 6px;border-radius:4px;background:rgba(255,128,95,.06);border:1px solid rgba(255,128,95,.12);color:#c69c90}.wc-work-go{align-self:flex-start;font-size:13px;color:#657087;flex:none}.wc-work:hover .wc-work-go{color:#ff9a80}.wc-no-updates{grid-column:1/-1;color:#77829a;font-size:12px;padding:15px}.cal-keywords{display:flex;gap:5px;flex-wrap:wrap;margin-top:6px}.cal-keywords em{font-size:9px;font-style:normal;color:#b2948c;padding:1px 5px;border-radius:4px;border:1px solid #ff80631a;background:#ff806308}
@media(max-width:1000px){.wc-updates{grid-template-columns:repeat(2,minmax(0,1fr))}.wc-work{gap:11px}.wc-work-cover{width:55px;height:83px}}@media(max-width:600px){.wc-updates{grid-template-columns:1fr;gap:9px;padding-top:14px}.wc-work{padding:11px;gap:13px}.wc-work-cover{width:56px;height:84px}.wc-work-info>strong{font-size:14px}.wc-work-info>small{margin:4px 0 7px}.wc-keywords>span{font-size:10px}.cal-table th:nth-child(2){width:34%}}

/* Balance incomplete rows: five updates become three above and two equal cards below. */
.wc-updates{grid-template-columns:repeat(6,minmax(0,1fr))}.wc-updates>.wc-work{grid-column:span 2}
.wc-updates:has(>.wc-work:nth-child(5):last-child)>.wc-work:nth-last-child(-n+2){grid-column:span 3}
.wc-updates:has(>.wc-work:nth-child(4):last-child)>.wc-work{grid-column:span 3}
.wc-updates:has(>.wc-work:nth-child(2):last-child)>.wc-work{grid-column:span 3}
.wc-updates:has(>.wc-work:only-child)>.wc-work{grid-column:1/-1}
@media(max-width:1000px){.wc-updates{grid-template-columns:repeat(2,minmax(0,1fr))}.wc-updates>.wc-work,.wc-updates:has(>.wc-work:nth-child(5):last-child)>.wc-work:nth-last-child(-n+2),.wc-updates:has(>.wc-work:nth-child(4):last-child)>.wc-work,.wc-updates:has(>.wc-work:nth-child(2):last-child)>.wc-work{grid-column:auto}.wc-updates>.wc-work:last-child:nth-child(odd){grid-column:1/-1}}
@media(max-width:600px){.wc-updates{grid-template-columns:1fr}.wc-updates>.wc-work{grid-column:1/-1}}

.calendar-page{color-scheme:dark;padding-top:12px}
.calendar-page #pageHead{margin-bottom:24px}
.calendar-page .cal-date b,.calendar-page .cal-filter input,.calendar-page .cal-filter select{color:#edf0f7}
.calendar-page .cal-date>span,.calendar-page .cal-date small{color:#a5afc4}
.calendar-page .cal-date.active b,.calendar-page .cal-date.active>span,.calendar-page .cal-date.active small{color:#ffab91}
.calendar-page .cal-filter input,.calendar-page .cal-filter select,.calendar-page .cal-filter option{background:#161a26}
.calendar-page .cal-filter input::placeholder{color:#a0aac0;opacity:1}
.calendar-page .cal-drama .cal-mobile-slot{display:none}
@media(max-width:768px){
 .calendar-page .cal-table-wrap{overflow:visible}
 .calendar-page .cal-table,.calendar-page .cal-table tbody{display:block;width:100%;min-width:0}
 .calendar-page .cal-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .calendar-page .cal-table tbody tr{position:relative;display:block;border-bottom:1px solid #ffffff12}
 .calendar-page .cal-table td{display:none;min-width:0;padding:0;border:0}
 .calendar-page .cal-table td:nth-child(2){display:block}
 .calendar-page .cal-drama{display:grid;grid-template-columns:min(34%, 132px) minmax(0,1fr);gap:14px;align-items:stretch;min-height:0}
 .calendar-page .cal-drama img{display:block;width:100%;height:auto;aspect-ratio:9/16;align-self:start;object-fit:cover;border:0;border-radius:0}
 .calendar-page .cal-drama>span{min-width:0;padding:14px 12px 50px 0;overflow-wrap:anywhere}
 .calendar-page .cal-drama b{font-size:14px}
 .calendar-page .cal-drama .cal-mobile-slot{display:block;color:#a5afc4}
 .calendar-page .cal-table td:nth-child(6){display:block;position:absolute;right:12px;bottom:12px}
 .calendar-page .cal-watch{padding:7px 8px;font-size:11px}
}

.calendar-page .cal-filter input{width:100%;min-width:0;flex:1}

.calendar-page #cal-search{
 appearance:none;
 -webkit-appearance:none;
 border:1px solid transparent;
 border-radius:9px;
 box-shadow:none;
 outline:none;
}
.calendar-page #cal-search:focus-visible{
 outline:2px solid #ff8967;
 outline-offset:2px;
}

.calendar-page .cal-inputs{position:relative}
.calendar-page .cal-search-icon{
 position:absolute;
 inset-inline-start:12px;
 top:50%;
 transform:translateY(-50%);
 color:#a0aac0;
 pointer-events:none;
}
.calendar-page #cal-search{padding-inline-start:36px}

@media(max-width:768px){
 .calendar-screen .calendar-page{width:100%;min-width:0;padding-inline:clamp(8px,3vw,16px)}
 .calendar-screen .cal-shell,.calendar-screen .cal-table-wrap{width:100%;min-width:0}
 .calendar-screen .cal-toolbar,.calendar-screen .cal-filter{flex-wrap:wrap}
 .calendar-screen .cal-week{padding-inline:8px;gap:3px}
 .calendar-screen .cal-date{min-width:0;width:100%;padding-inline:0}
 .calendar-screen .cal-date small{display:block;overflow-wrap:anywhere}
 .calendar-screen .cal-inputs{flex:1 1 100%;min-width:0;max-width:100%}
 .calendar-screen .cal-drama{grid-template-columns:min(34%,132px) minmax(0,1fr);min-width:0}
 .calendar-screen .cal-watch{white-space:normal}
 .calendar-screen .ai-fab,.calendar-screen #fabHist{
  right:calc(12px + env(safe-area-inset-right,0px));
  width:44px;
  height:44px;
 }
 .calendar-screen .ai-fab{bottom:calc(24px + env(safe-area-inset-bottom,0px) + var(--calendar-bottom-gap,0px))}
 .calendar-screen #fabHist{bottom:calc(78px + env(safe-area-inset-bottom,0px) + var(--calendar-bottom-gap,0px))}
}

.cal-mobile-detail{display:none}
@media(max-width:768px){
 .calendar-screen .cal-table tbody tr{padding:12px}
 .calendar-screen .cal-drama{
  grid-template-columns:clamp(68px,20vw,84px) minmax(0,1fr);
  gap:14px;
  align-items:center;
 }
 .calendar-screen .cal-drama img{height:auto;aspect-ratio:9/16;border-radius:8px}
 .calendar-screen .cal-drama>span{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:5px;
  padding:0;
  line-height:1.4;
 }
 .calendar-screen .cal-drama>span small,
 .calendar-screen .cal-drama .cal-keywords{margin:0}
 .calendar-screen .cal-table td:nth-child(6){display:none}
 .calendar-screen .cal-mobile-detail{
  display:inline-block;
  margin-top:3px;
  padding:4px 8px;
  border:1px solid #ff806333;
  border-radius:7px;
  color:#ffab91;
  font-size:11px;
 }
 .calendar-screen #fabTop{
  bottom:calc(132px + env(safe-area-inset-bottom,0px) + var(--calendar-bottom-gap,0px));
  right:calc(12px + env(safe-area-inset-right,0px));
  width:44px;
  height:44px;
 }
}

/* Keep the whole calendar inside the visible width of narrow app previews. */
@media(max-width:768px){
 .calendar-screen{width:100%;max-width:var(--calendar-visible-width,100%)}
 .calendar-screen .cal-shell,.calendar-screen .cal-week,.calendar-screen .cal-filter,
 .calendar-screen .cal-table,.calendar-screen .cal-table tbody{min-width:0;max-width:100%}
 .calendar-screen .cal-week{grid-template-columns:repeat(7,minmax(0,1fr))}
 .calendar-screen .cal-week-switch{flex-wrap:wrap;max-width:100%}
 .calendar-screen .cal-filter .cal-inputs,.calendar-screen #cal-search{min-width:0;max-width:100%}
 .calendar-screen .ai-fab,.calendar-screen #fabHist,.calendar-screen #fabTop{
  right:calc(12px + env(safe-area-inset-right,0px) + var(--calendar-viewport-gap,0px));
 }
}

@media(max-width:768px){
 .calendar-screen .cal-table tbody tr{padding:10px 12px}
 .calendar-screen .cal-drama{
  grid-template-columns:clamp(64px,18vw,76px) minmax(0,1fr);
  gap:12px;
  align-items:stretch;
 }
 .calendar-screen .cal-drama>span{gap:9px;padding:2px 0 0}
 .calendar-screen .cal-drama .cal-desktop-meta{display:none}
 .calendar-screen .cal-drama .cal-mobile-slot{font-size:11px;line-height:1.4}
 .calendar-screen .cal-drama .cal-keywords{gap:4px}
 .calendar-screen .cal-drama .cal-keywords em{padding:2px 5px}
 .calendar-screen .cal-mobile-detail{
  position:static;
  align-self:flex-end;
  margin:auto 0 0;
  padding:4px 8px;
 }
}

.calendar-screen .logo .ai-tag{white-space:nowrap}

/* Larger desktop covers, with the original portrait ratio. */
@media (min-width: 769px) {
  .calendar-page .cal-drama { gap: 16px; }
  .calendar-page .cal-drama img {
    flex: 0 0 64px;
    width: 64px;
    height: auto;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: 8px;
  }
}

/* A stable second toolbar row keeps week navigation in one location. */
@media (max-width: 768px) {
  .calendar-screen .cal-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 64px 30px;
    gap: 8px;
    align-items: start;
  }
  .calendar-screen .cal-period {
    min-width: 0;
    width: 100%;
    height: 64px;
    gap: 4px;
    justify-content: flex-start;
  }
  .calendar-screen .cal-period b {
    font-size: clamp(14px, 4vw, 17px);
    line-height: 24px;
    overflow-wrap: anywhere;
  }
  .calendar-screen .cal-period small { line-height: 16px; }
  .calendar-screen .cal-week-switch {
    justify-self: end;
    flex-wrap: nowrap;
    height: 30px;
  }
  .calendar-screen .cal-drama b { line-height: 1.5; }
  .calendar-screen .cal-drama .cal-mobile-slot { line-height: 1.6; }
  .calendar-screen .cal-drama .cal-keywords { gap: 6px; }
}

/* Shared information scale for the calendar's poster-and-title cells. */
.cal-week-switch .cal-week-link{display:inline-flex;align-items:center;justify-content:center;height:30px;min-width:30px;background:#ffffff05;border:1px solid var(--line);border-radius:7px;font-size:14px;color:var(--muted)}
.cal-week-switch .cal-week-link:hover{border-color:#ff80634a;color:#ff9a80}
.wc-heading h2{margin:0}
.cal-drama>span{min-width:0;overflow-wrap:anywhere}
.cal-drama img{flex-shrink:0}
.calendar-screen .cal-drama {
  align-items: center;
  gap: 16px;
}
.calendar-screen .cal-drama > span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  padding: 0;
}
.calendar-screen .cal-drama b {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.5;
}
.calendar-screen .cal-drama small {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #a0abc1;
}
.calendar-screen .cal-drama .cal-keywords {
  margin: 0;
  gap: 6px;
}
.calendar-screen .cal-keywords em {
  padding: 2px 7px;
  font-size: 11px;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .calendar-screen .cal-drama {
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: stretch;
    gap: 14px;
  }
  .calendar-screen .cal-drama > span {
    justify-content: flex-start;
    gap: 8px;
    padding: 1px 0;
  }
  .calendar-screen .cal-drama .cal-mobile-slot {
    font-size: 11px;
    line-height: 1.6;
  }
  .calendar-screen .cal-drama .cal-keywords {
    flex: 1;
    align-content: center;
    padding-block: 2px;
  }
  .calendar-screen .cal-drama .cal-mobile-detail {
    flex: none;
    align-self: flex-end;
    margin: 0;
    font-size: 11px;
    line-height: 1.5;
  }
}
