/* Apply the movie server UI to episodes without changing the rest of the episode page. */
body.single-episodes #single{--detail-panel:rgba(16,20,28,.72);--detail-panel-2:rgba(26,33,43,.58);--detail-line:rgba(162,188,204,.23);--detail-text:#f5f8fb;--detail-muted:#b9c8d2;--detail-accent:#72cfee}
html[data-filmaon-theme=light] body.single-episodes #single{--detail-panel:rgba(255,255,255,.88);--detail-line:rgba(54,99,121,.25);--detail-text:#203342;--detail-muted:#526e7d;--detail-accent:#5cbbdb}
body.single-episodes #single .box_links{float:none;width:100%;margin:18px 0 22px;border:1px solid var(--detail-line);border-radius:16px;background:var(--detail-panel);overflow:hidden;color:var(--detail-text)}
body.single-episodes #single .box_links .linktabs{display:flex;float:none;align-items:center;flex-wrap:wrap;gap:10px 18px;width:100%;padding:17px 20px;border-bottom:1px solid var(--detail-line)}
body.single-episodes #single .box_links .linktabs h2{float:none;margin:0;color:var(--detail-text);font-size:18px;font-weight:800;line-height:1.4}
body.single-episodes #single .box_links .linktabs ul{display:flex;float:none;flex-wrap:wrap;gap:7px;margin:0;padding:0}
body.single-episodes #single .box_links .linktabs ul li{float:none;margin:0}
body.single-episodes #single .box_links .linktabs ul li a{display:inline-flex;align-items:center;justify-content:center;float:none;min-height:35px;margin:0;padding:8px 12px;border:1px solid var(--detail-line);border-radius:9px;background:var(--detail-panel-2);color:var(--detail-text);font-size:12px;font-weight:750}
body.single-episodes #single .box_links .linktabs ul li a.selected{border-color:var(--detail-accent);background:#328caa55;color:var(--detail-text)}
body.single-episodes #single .box_links #download.sbox,
body.single-episodes #single .box_links #videos.sbox{float:none;width:100%;padding:12px 18px 18px;background:transparent}
body.single-episodes #single .box_links .links_table,
body.single-episodes #single .box_links .links_table .fix-table{float:none;width:100%;min-width:0}
body.single-episodes #single .box_links .links_table table{float:none;width:100%;color:var(--detail-text)}
body.single-episodes #single .box_links .links_table thead th{padding:12px;color:var(--detail-muted);font-size:12px}
body.single-episodes #single .box_links .links_table tbody tr{border-top:1px solid var(--detail-line)}
body.single-episodes #single .box_links .links_table tbody td{padding:11px 12px;color:var(--detail-text);font-size:13px;white-space:normal;overflow-wrap:anywhere}
body.single-episodes #single .box_links .links_table tbody td:first-child{min-width:115px}
body.single-episodes #single .box_links .links_table tbody td:first-child img{display:none}
body.single-episodes #single .box_links .links_table tbody td:first-child>a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 14px;border-radius:8px;background:var(--detail-accent);color:#102735;font-size:12px;font-weight:850}
/* Named DooLinks servers: same link records and redirects, without the table. */
body.single-episodes #single .box_links.film27-links{overflow:hidden}
body.single-episodes #single .film27-links .linktabs{gap:12px}
body.single-episodes #single .film27-links #download.film27-server-group,
body.single-episodes #single .film27-links #videos.film27-server-group{float:none;clear:both;width:100%;min-width:0;margin:0;padding:17px 20px 19px;background:transparent}
body.single-episodes #single .film27-server-group h3{margin:0 0 13px;color:var(--detail-text);font-size:16px;font-weight:800;line-height:1.35}
body.single-episodes #single .film27-server-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px;width:100%;min-width:0}
body.single-episodes #single .film27-server-item{min-width:0}
body.single-episodes #single .film27-server-button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:45px;width:100%;padding:9px 12px;border:1px solid rgba(33,197,139,.45);border-radius:8px;background:rgba(12,136,96,.84);color:#fff!important;font-size:13px;font-weight:650;text-align:center;line-height:1.25;text-decoration:none;overflow-wrap:anywhere;transition:background .16s ease,border-color .16s ease,transform .16s ease}
body.single-episodes #single #videos .film27-server-button{border-color:rgba(109,213,242,.5);background:rgba(32,123,153,.83)}
body.single-episodes #single .film27-server-button strong{font-weight:850}
body.single-episodes #single .film27-server-button:hover,
body.single-episodes #single .film27-server-button:focus-visible{transform:translateY(-1px);background:#0d9a69;border-color:#6be9af}
body.single-episodes #single #videos .film27-server-button:hover,
body.single-episodes #single #videos .film27-server-button:focus-visible{background:#248eac;border-color:#8ce6f5}
body.single-episodes #single .film27-server-button span[aria-hidden]{font-size:16px;line-height:1}
body.single-episodes #single .film27-server-meta{display:block;margin:5px 2px 0;color:var(--detail-muted);font-size:10px;line-height:1.3;text-align:center}
body.single-episodes #single .film27-manage{display:flex;justify-content:center;gap:12px;margin:5px 0 0;font-size:11px}
body.single-episodes #single .film27-manage a{color:var(--detail-muted)}
html[data-filmaon-theme=light] body.single-episodes #single .film27-server-button{background:#168962}
html[data-filmaon-theme=light] body.single-episodes #single #videos .film27-server-button{background:#207c9f}
@media(max-width:700px){
 body.single-episodes #single .film27-links #download.film27-server-group,
 body.single-episodes #single .film27-links #videos.film27-server-group{padding:13px 12px 15px}
 body.single-episodes #single .film27-server-group h3{font-size:14px;margin-bottom:10px}
 body.single-episodes #single .film27-server-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body.single-episodes #single .film27-server-button{min-height:43px;padding:8px 7px;font-size:11px}
 body.single-episodes #single .film27-server-meta{font-size:9px}
}
@media(max-width:340px){body.single-episodes #single .film27-server-list{grid-template-columns:1fr}}

/* The two actions are closed until selected. */
body.single-episodes #single .film27-links .film27-server-group[hidden]{display:none!important}
body.single-episodes #single .film27-links .linktabs{display:block;padding:17px 20px 18px}
body.single-episodes #single .film27-links .linktabs h2{float:none;margin:0 0 13px;font-size:17px}
body.single-episodes #single .film27-links .linktabs ul.film28-link-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;float:none;width:min(100%,520px);margin:0;padding:0}
body.single-episodes #single .film27-links .linktabs ul.film28-link-tabs li{float:none;min-width:0;margin:0}
body.single-episodes #single .film27-links .film28-tab{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:50px;margin:0;padding:9px 13px;border:1px solid var(--detail-line);border-radius:11px;background:linear-gradient(130deg,rgba(255,255,255,.065),rgba(255,255,255,.025));color:var(--detail-text);font-family:inherit;font-size:13px;font-weight:800;line-height:1.25;cursor:pointer;transition:background .18s,border-color .18s,box-shadow .18s,transform .18s}
body.single-episodes #single .film27-links .film28-tab:hover,
body.single-episodes #single .film27-links .film28-tab:focus-visible{border-color:var(--detail-accent);background:rgba(104,203,236,.14);transform:translateY(-1px)}
body.single-episodes #single .film27-links .film28-tab.is-active{border-color:rgba(62,215,165,.75);background:linear-gradient(120deg,rgba(13,146,105,.88),rgba(16,105,98,.84));box-shadow:0 6px 18px rgba(0,0,0,.15);color:#fff}
body.single-episodes #single .film27-links .film28-tab-watch.is-active{border-color:rgba(135,227,247,.8);background:linear-gradient(120deg,rgba(42,148,180,.89),rgba(25,112,148,.85))}
body.single-episodes #single .film27-links .film28-tab-icon{display:inline-grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:8px;background:rgba(121,215,239,.14);color:var(--detail-accent);font-size:17px;font-weight:900}
body.single-episodes #single .film27-links .film28-tab.is-active .film28-tab-icon{background:rgba(255,255,255,.2);color:#fff}
body.single-episodes #single .film27-links .film28-tab-count{display:grid;place-items:center;min-width:22px;height:22px;padding:0 5px;border-radius:6px;background:rgba(255,255,255,.12);font-size:11px;font-weight:800}
body.single-episodes #single .film27-links .film28-tab.is-active .film28-tab-count{background:rgba(255,255,255,.22)}
html[data-filmaon-theme=light] body.single-episodes #single .film27-links .film28-tab{background:rgba(255,255,255,.66)}
html[data-filmaon-theme=light] body.single-episodes #single .film27-links .film28-tab.is-active{background:#12815f;color:#fff}
html[data-filmaon-theme=light] body.single-episodes #single .film27-links .film28-tab-watch.is-active{background:#19799d;color:#fff}
@media(max-width:700px){
 body.single-episodes #single .film27-links .linktabs{padding:14px 12px}
 body.single-episodes #single .film27-links .linktabs h2{margin-bottom:10px;font-size:15px}
 body.single-episodes #single .film27-links .linktabs ul.film28-link-tabs{width:100%;gap:7px}
 body.single-episodes #single .film27-links .film28-tab{min-height:46px;gap:5px;padding:8px 5px;font-size:11px}
 body.single-episodes #single .film27-links .film28-tab-icon{flex-basis:24px;width:24px;height:24px;font-size:15px}
 body.single-episodes #single .film27-links .film28-tab-count{min-width:19px;height:19px;font-size:10px}
}

/* Keep publisher tools available without mixing their table into the public links. */
body.single-episodes #single .film35-manage-links{clear:both;margin:0 16px 16px;border-top:1px solid var(--detail-line)}
body.single-episodes #single .film35-manage-links>summary{display:inline-flex;align-items:center;min-height:38px;margin-top:12px;padding:8px 12px;border:1px solid var(--detail-line);border-radius:8px;color:var(--detail-text);font-size:12px;font-weight:700;cursor:pointer}
body.single-episodes #single .film35-manage-links #form{float:none;clear:both;max-width:100%;margin:12px 0;overflow-x:auto}
@media(max-width:700px){body.single-episodes #single .film35-manage-links{margin:0 12px 12px}body.single-episodes #single .film35-manage-links #form{padding:10px;overflow-x:auto}}
