/*
Theme Name: Cartelera de Cine Dark
Theme URI: https://carteleradecine.com.do/
Author: Cartelera de Cine
Description: Tema para CarteleraDeCine.com.do con modos oscuro y claro.
Version: 0.4.21
Requires PHP: 7.4
Text Domain: cdc-dark
*/
:root{color-scheme:dark}*{box-sizing:border-box}body{margin:0;background:#121316;color:#f5f5f5;font:15px/1.5 Arial,sans-serif}a{color:#ffa82b}.cdc-header{background:#08090b;border-bottom:1px solid #303138}.cdc-wrap{max-width:1320px;margin:auto;padding:12px 20px}.cdc-header .cdc-wrap{display:flex;justify-content:space-between;align-items:center;gap:20px}.cdc-brand img{display:block;width:min(360px,60vw);height:auto}.cdc-nav{display:flex;gap:24px}.cdc-nav a{color:#eee;text-decoration:none;font-weight:600;font-size:13px}.cdc-nav a:hover{color:#ffad28}.cdc-view{display:block;width:100%;border:0;min-height:1100px;background:#121316}.cdc-footer{padding:28px 20px;border-top:1px solid #333;text-align:center;color:#aaa;font-size:12px}@media(max-width:650px){.cdc-wrap{padding:10px 12px}.cdc-brand img{width:min(245px,68vw)}.cdc-nav{gap:10px}.cdc-nav a{font-size:11px}}

/* Cinema landing pages, server-rendered and indexable */
.cdc-native{max-width:1250px;margin:0 auto;padding:32px 20px 60px}.cdc-native h1{font-size:clamp(25px,3vw,38px);margin:5px 0}.cdc-native>p{color:#b9bbc2}.cdc-back{font-size:13px}.cdc-eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:1.6px;color:#ffac2d!important;font-weight:700}.cdc-controls{display:flex;gap:14px;flex-wrap:wrap;background:#24262b;border:1px solid #3c3d44;border-radius:10px;padding:16px;margin:22px 0}.cdc-controls label{display:block;color:#ffad35;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.6px}.cdc-controls select,.cdc-controls input{display:block;margin-top:7px;padding:11px;background:#121316;color:white;border:1px solid #50515a;border-radius:6px;min-width:210px}.cdc-schedules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.cdc-schedule{display:flex;gap:17px;background:#22242a;border:1px solid #3c3e46;border-radius:10px;padding:14px}.cdc-schedule h2{font-size:19px;margin:0 0 6px}.cdc-schedule p{color:#b9bbc2;font-size:12px;margin:0 0 12px}.cdc-poster{flex:0 0 112px}.cdc-poster img{width:112px;aspect-ratio:2/3;object-fit:cover;border-radius:6px}.cdc-times{display:flex;flex-wrap:wrap;gap:6px}.cdc-time{border:1px solid #755327;background:#362b1c;color:#ffbd58;padding:6px 8px;border-radius:5px;font-size:12px;font-weight:700}.cdc-formats{margin-top:9px;display:grid;gap:3px;color:#a9acb5}.cdc-formats small{font-size:10px}.cdc-notice{padding:20px;background:#25262b;border-radius:8px}.cdc-description{margin-top:38px;border-top:1px solid #383a42;padding-top:20px}.cdc-description p{color:#afb2bc}@media(max-width:760px){.cdc-schedules{grid-template-columns:1fr}.cdc-poster{flex-basis:86px}.cdc-poster img{width:86px}.cdc-schedule h2{font-size:16px}.cdc-controls select,.cdc-controls input{min-width:0;width:100%}.cdc-controls>*{flex:1 1 200px}}

/* v0.3.3: compact cinema pages and grouped session labels */
@media(min-width:1100px){.cdc-schedules{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.cdc-schedule{gap:11px;padding:11px}.cdc-poster{flex-basis:82px}.cdc-poster img{width:82px;height:123px}.cdc-schedule h2{font-size:15px;line-height:1.3}.cdc-time{font-size:11px;padding:4px 6px}}
@media(min-width:761px) and (max-width:1099px){.cdc-schedules{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.cdc-schedules{grid-template-columns:1fr}}
.cdc-session-group{margin:9px 0}.cdc-session-label{font-size:10px;color:#d6d6d9;margin-bottom:5px}.cdc-poster img{display:block;background:#292a30}.cdc-schedule>div:last-child{min-width:0;flex:1}

/* v0.3.4: full-width cinema schedule, three horizontal cards per row */
.cdc-native{width:100%;max-width:1500px;padding:24px clamp(14px,2.2vw,36px) 64px;margin-inline:auto}
.cdc-native .cdc-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,280px);gap:12px;align-items:end}
.cdc-native .cdc-controls label,.cdc-native .cdc-controls form{min-width:0;width:100%}
.cdc-native .cdc-controls select,.cdc-native .cdc-controls input{width:100%;min-width:0}
.cdc-schedules{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch}
.cdc-schedule{min-width:0;display:flex;align-items:flex-start;gap:12px;padding:12px;background:#22242a}
.cdc-schedule>div:last-child{flex:1;min-width:0;overflow-wrap:anywhere}
.cdc-schedule h2{font-size:clamp(13px,1.15vw,17px);line-height:1.35;margin:0 0 5px}
.cdc-schedule p{margin:0 0 9px;font-size:11px}
.cdc-poster{flex:0 0 84px;max-width:84px}
.cdc-poster img{display:block;width:84px;height:126px;object-fit:cover;border-radius:6px}
.cdc-session-group{margin:7px 0 10px}.cdc-session-label{line-height:1.4;font-size:10px;color:#c9cbd0}
.cdc-times{gap:5px}.cdc-time{font-size:11px;padding:4px 6px;white-space:nowrap}
@media(max-width:1120px){.cdc-schedules{grid-template-columns:repeat(2,minmax(0,1fr))}.cdc-schedule h2{font-size:16px}}
@media(max-width:680px){.cdc-schedules{grid-template-columns:minmax(0,1fr)}.cdc-native .cdc-controls{grid-template-columns:1fr}.cdc-schedule h2{font-size:16px}.cdc-poster{flex-basis:90px;max-width:90px}.cdc-poster img{width:90px;height:135px}}

/* v0.3.5: enforce cinema page layout independently of embedded homepage */
@media(min-width:1150px){body .cdc-native .cdc-schedules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:701px) and (max-width:1149px){body .cdc-native .cdc-schedules{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){body .cdc-native .cdc-schedules{grid-template-columns:minmax(0,1fr)}}
body .cdc-native .cdc-schedule{background:#22242a;color:#f5f5f5}
body .cdc-native .cdc-schedule h2{color:#fff}
body .cdc-native .cdc-session-label{color:#ddd}

/* Local data release */
.cdc-schedule h2 a{color:#f7f7f8;text-decoration:none}.cdc-schedule h2 a:hover{color:#ffb02c}.cdc-info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;margin:20px 0}.cdc-info-grid>div{padding:16px;background:#24262b;border:1px solid #393b42;border-radius:9px}.cdc-info-grid strong{display:block;color:#ffb33f;margin-bottom:6px}.cdc-description iframe{width:100%;height:340px;border:0;border-radius:10px}.cdc-movie-head{display:grid;grid-template-columns:minmax(120px,240px) 1fr;gap:24px;align-items:start}.cdc-movie-head img{width:100%;height:auto;border-radius:9px}.cdc-movie-head p{color:#c7c8ce}.cdc-cinema-row{padding:18px;margin:14px 0;background:#24262b;border-radius:9px}.cdc-cinema-row h3 a{color:#ffb33f;text-decoration:none}.cdc-cinema-row .cdc-time{display:inline-block;margin:3px}.cdc-movie-details{margin:22px 0}@media(max-width:600px){.cdc-movie-head{grid-template-columns:110px 1fr;gap:13px}}

/* v0.4.2: full movie card link, retaining selectable text and independent links */
.cdc-schedule{position:relative;cursor:pointer;transition:border-color .18s,background .18s,transform .18s}
.cdc-schedule:hover,.cdc-schedule:focus-within{border-color:#e59a30;background:#292b32;transform:translateY(-1px)}
.cdc-card-hit{position:absolute;inset:0;z-index:1;border-radius:inherit}
.cdc-schedule h2 a{position:relative;z-index:2}
.cdc-schedule:has(.cdc-card-hit:focus-visible){outline:2px solid #ffb23f;outline-offset:3px}

/* v0.4.6: poster cards are single clickable links; trailers load only on click. */
.cdc-trailer{margin:28px 0}.cdc-trailer-launch{display:grid;place-items:center;width:min(100%,720px);aspect-ratio:16/9;border:1px solid #444;border-radius:12px;background-color:#1d1e22;background-position:center;background-size:cover;cursor:pointer}.cdc-trailer-launch span{display:grid;place-items:center;background:#ff0033;color:#fff;font-size:28px;border-radius:13px;width:76px;height:52px}.cdc-trailer-launch:hover span{background:#d9002b}.cdc-trailer iframe{width:min(100%,720px);aspect-ratio:16/9;border:0;border-radius:12px}.home-card .body{padding-bottom:10px!important}.home-card-foot{display:none!important}

/* v0.4.7: persistent compact header, visible on desktop and mobile */
.cdc-header{position:sticky;top:0;z-index:9999;box-shadow:0 3px 12px rgba(0,0,0,.24)}
body.admin-bar .cdc-header{top:32px}
@media(max-width:782px){body.admin-bar .cdc-header{top:46px}}
@media(max-width:600px){body.admin-bar .cdc-header{top:0}}
.cdc-back{display:inline-flex;align-items:center;gap:9px;font-size:16px;font-weight:700;line-height:1.35;padding:10px 12px;margin:-10px 0 10px -12px;text-decoration:none;border-radius:7px;min-height:44px;color:#ffb343}
.cdc-back:hover,.cdc-back:focus-visible{background:#292a30;color:#ffd187;text-decoration:underline}
.cdc-back .cdc-back-arrow{font-size:24px;line-height:1;display:inline-block}

.cdc-release-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;margin:24px 0 44px}
.cdc-release-card{display:flex;flex-direction:column;background:#23252b;border:1px solid #393c43;border-radius:9px;overflow:hidden;color:#fff;text-decoration:none;transition:border-color .15s,transform .15s}
.cdc-release-card:hover,.cdc-release-card:focus-visible{border-color:#ffa51e;transform:translateY(-2px)}
.cdc-release-card img{display:block;width:100%;height:auto;aspect-ratio:2/3;object-fit:cover}
.cdc-release-title{font-weight:700;font-size:14px;padding:10px 10px 4px}
.cdc-release-card small{padding:0 10px 12px;color:#bfc2cb}
@media(max-width:1000px){.cdc-release-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.cdc-release-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}

/* v0.4.10: ad slots and compact navigation */
.cdc-header .cdc-nav{display:flex;align-items:center;gap:clamp(10px,2vw,24px)}
.cdc-header .cdc-nav a{white-space:nowrap}
.cdc-ad{box-sizing:border-box;width:100%;max-width:1200px;margin:18px auto;text-align:center;min-width:0;overflow:hidden}
.cdc-ad-mobile{display:none}
.cdc-ad-break{grid-column:1/-1;min-width:0;width:100%;margin:4px 0}
.cdc-ad-break .cdc-ad{margin:12px auto}
.cdc-ad-top{padding-inline:12px}
.cdc-ad-bottom{margin-top:28px;margin-bottom:28px;padding-inline:12px}
@media(max-width:767px){.cdc-ad-desktop{display:none}.cdc-ad-mobile{display:block}.cdc-header .cdc-nav{gap:12px}.cdc-header .cdc-nav a{font-size:12px}}
@media(max-width:400px){.cdc-header .cdc-nav a{font-size:11px}.cdc-header .cdc-brand img{max-width:165px;height:auto}}

/* Preview placeholders: temporary visual markers; hidden when preview is disabled */
.cdc-ad-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:90px;border:1px dashed #6b7280;border-radius:8px;background:repeating-linear-gradient(135deg,#24272e,#24272e 12px,#292d35 12px,#292d35 24px);color:#d1d5db;font:12px/1.4 system-ui,sans-serif;letter-spacing:.06em}
.cdc-ad-placeholder strong{font-size:17px;color:#f59e0b;letter-spacing:0}
.cdc-ad-placeholder small{color:#9ca3af;font-size:11px;letter-spacing:0}
.cdc-ad-top.cdc-ad-placeholder{max-width:970px;min-height:90px}
.cdc-ad-middle.cdc-ad-placeholder{max-width:728px;min-height:90px}
.cdc-ad-bottom.cdc-ad-placeholder{max-width:970px;min-height:160px}
@media(max-width:767px){.cdc-ad-top.cdc-ad-placeholder{max-width:320px;min-height:100px}.cdc-ad-middle.cdc-ad-placeholder,.cdc-ad-bottom.cdc-ad-placeholder{max-width:300px;min-height:250px}}

/* v0.4.12: ad positions are outside the footer and span complete grid rows */
.cdc-ad-break{grid-column:1/-1!important;display:block!important;width:100%!important;min-width:0!important;margin:14px 0!important}
.cdc-ad-break .cdc-ad{max-width:970px;margin:0 auto}
.cdc-before-footer{margin:24px auto 0;max-width:1200px;padding:0 16px}
.cdc-before-footer .cdc-ad{margin:0 auto 18px}
.cdc-ad-middle.cdc-ad-placeholder{max-width:970px}
@media(max-width:767px){.cdc-ad-middle.cdc-ad-placeholder{max-width:320px;min-height:100px}}

/* v0.4.13: full-width movie ad, responsive slots, compact footer spacing */
.cdc-movie-ad{width:100%;clear:both;margin:22px auto 24px;display:block}
.cdc-movie-ad .cdc-ad{margin:0 auto;max-width:970px}
.cdc-movie-ad + h2{margin-top:20px}
.cdc-before-footer{margin:20px auto 0!important;padding:0 16px;max-width:1200px}
.cdc-before-footer .cdc-ad{margin:0 auto 16px!important}
.cdc-view{min-height:0!important;height:420px}
@media(max-width:767px){.cdc-ad-desktop{display:none!important}.cdc-ad-mobile{display:flex!important}.cdc-movie-ad .cdc-ad{max-width:320px}}
@media(min-width:768px){.cdc-ad-mobile{display:none!important}}

.cdc-editorial-content{margin:28px auto 12px;padding:24px clamp(16px,2vw,30px);border-top:1px solid #393b43;color:#d2d4db;line-height:1.75;max-width:1250px}.cdc-editorial-content h2{font-size:clamp(21px,2vw,28px);color:#fff;margin:26px 0 12px}.cdc-editorial-content h3{font-size:17px;color:#fff;margin:18px 0 8px}.cdc-editorial-content a{color:#ffb13d}.cdc-home-editorial{padding-top:0;padding-bottom:20px}.cdc-home-editorial .cdc-editorial-content{margin-top:0}

/* v0.4.15: legal footer, responsive ad preview and compact layout */
.cdc-footer nav{display:flex;gap:22px;justify-content:center;flex-wrap:wrap;margin-top:10px}.cdc-footer a{color:#f4ad3b;text-decoration:none}.cdc-footer a:hover{text-decoration:underline}
.cdc-legal{max-width:1000px}.cdc-legal .cdc-editorial-content{line-height:1.75}.cdc-legal .cdc-editorial-content h2{margin:26px 0 8px}
.cdc-ad-desktop{display:flex!important}.cdc-ad-mobile{display:none!important}
@media(max-width:767px){.cdc-ad-desktop{display:none!important}.cdc-ad-mobile{display:flex!important}}
.cdc-before-footer{margin:22px auto 0!important;min-height:0!important;padding:0 16px!important}.cdc-before-footer:empty{display:none!important}
.cdc-before-footer .cdc-ad{margin:0 auto 16px!important}
.cdc-movie-ad{width:100%;grid-column:1/-1;clear:both;margin:24px auto}.cdc-movie-ad .cdc-ad{margin:0 auto}
.cdc-view{min-height:0!important;display:block}

/* v0.4.16: readable showtimes across cinema and movie detail pages */
body .cdc-native .cdc-times{gap:8px;align-items:flex-start}
body .cdc-native .cdc-time{font-size:15px;line-height:1.25;font-weight:700;padding:10px 12px;min-height:40px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;border-radius:6px}
body .cdc-native .cdc-cinema-row .cdc-time{display:inline-flex;margin:4px}
@media(max-width:760px){
  body .cdc-native .cdc-times{gap:8px}
  body .cdc-native .cdc-time{font-size:16px;line-height:1.25;min-height:44px;padding:11px 12px}
  body .cdc-native .cdc-cinema-row .cdc-time{margin:4px 4px 4px 0}
}

/* Header color-mode control */
.cdc-header .cdc-brand { flex: 0 1 auto; min-width: 0; }
.cdc-header .cdc-brand img { max-width: 100%; }
.cdc-mode-toggle {
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid #50515a;
  border-radius: 8px;
  background: #202228;
  color: #ffbf62;
  cursor: pointer;
}
.cdc-mode-toggle[hidden],
.cdc-mode-moon,
[data-cdc-mode="light"] .cdc-mode-sun { display: none; }
[data-cdc-mode="light"] .cdc-mode-moon { display: block; }
.cdc-mode-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (max-width: 650px) {
  .cdc-header .cdc-wrap { gap: 8px; }
  .cdc-header .cdc-nav { gap: 8px; }
}

/* Light palette for WordPress templates */
:root[data-cdc-mode="light"] {
  color-scheme: light;
  --cdc-light-page: #fff;
  --cdc-light-ink: #222;
  --cdc-light-muted: #555;
  --cdc-light-surface: #f4f4f4;
  --cdc-light-border: #d4d4d4;
}
[data-cdc-mode="light"] body,
[data-cdc-mode="light"] .cdc-view {
  background: var(--cdc-light-page);
  color: var(--cdc-light-ink);
}
[data-cdc-mode="light"] .cdc-header {
  background: var(--cdc-light-page);
  border-color: var(--cdc-light-border);
  box-shadow: 0 3px 12px #00000014;
}
[data-cdc-mode="light"] .cdc-brand {
  background: #000;
  padding: 5px 7px;
  border-radius: 6px;
}
[data-cdc-mode="light"] .cdc-nav a,
[data-cdc-mode="light"] .cdc-editorial-content h2,
[data-cdc-mode="light"] .cdc-editorial-content h3,
[data-cdc-mode="light"] .cdc-native .cdc-schedule h2,
[data-cdc-mode="light"] .cdc-schedule h2 a { color: var(--cdc-light-ink); }
[data-cdc-mode="light"] a,
[data-cdc-mode="light"] .cdc-nav a:hover,
[data-cdc-mode="light"] .cdc-schedule h2 a:hover,
[data-cdc-mode="light"] .cdc-controls label,
[data-cdc-mode="light"] .cdc-cinema-row h3 a,
[data-cdc-mode="light"] .cdc-info-grid strong,
[data-cdc-mode="light"] .cdc-ad-placeholder strong { color: var(--cdc-light-ink); }
[data-cdc-mode="light"] .cdc-eyebrow { color: var(--cdc-light-ink) !important; }
[data-cdc-mode="light"] .cdc-native p,
[data-cdc-mode="light"] .cdc-footer,
[data-cdc-mode="light"] .cdc-editorial-content,
[data-cdc-mode="light"] .cdc-formats,
[data-cdc-mode="light"] .cdc-native .cdc-session-label,
[data-cdc-mode="light"] .cdc-release-card small,
[data-cdc-mode="light"] .cdc-ad-placeholder small { color: var(--cdc-light-muted); }
[data-cdc-mode="light"] .cdc-controls,
[data-cdc-mode="light"] .cdc-cinema-row,
[data-cdc-mode="light"] .cdc-info-grid > div,
[data-cdc-mode="light"] .cdc-notice,
[data-cdc-mode="light"] .cdc-mode-toggle {
  background: var(--cdc-light-surface);
  border-color: var(--cdc-light-border);
  color: var(--cdc-light-ink);
}
[data-cdc-mode="light"] .cdc-native .cdc-schedule,
[data-cdc-mode="light"] .cdc-release-card,
[data-cdc-mode="light"] .cdc-controls select,
[data-cdc-mode="light"] .cdc-controls input {
  background: var(--cdc-light-page);
  border-color: var(--cdc-light-border);
  color: var(--cdc-light-ink);
}
[data-cdc-mode="light"] .cdc-native .cdc-schedule:hover,
[data-cdc-mode="light"] .cdc-native .cdc-schedule:focus-within,
[data-cdc-mode="light"] .cdc-release-card:hover,
[data-cdc-mode="light"] .cdc-release-card:focus-visible { border-color: var(--cdc-light-ink); }
[data-cdc-mode="light"] .cdc-back:hover,
[data-cdc-mode="light"] .cdc-back:focus-visible {
  background: var(--cdc-light-surface);
  color: var(--cdc-light-ink);
}
[data-cdc-mode="light"] .cdc-time {
  background: #222;
  border-color: #222;
  color: #fff;
}
[data-cdc-mode="light"] .cdc-trailer-launch span { background: #222; }
[data-cdc-mode="light"] .cdc-trailer-launch:hover span { background: #444; }
[data-cdc-mode="light"] .cdc-brand img { filter: grayscale(1); }
[data-cdc-mode="light"] .cdc-schedule:has(.cdc-card-hit:focus-visible) { outline-color: #333; }
[data-cdc-mode="light"] .cdc-poster img { background: var(--cdc-light-surface); }
[data-cdc-mode="light"] :is(.cdc-cinema-row h3 a, .cdc-footer a):hover { text-decoration: underline; }
[data-cdc-mode="light"] .cdc-footer,
[data-cdc-mode="light"] .cdc-description,
[data-cdc-mode="light"] .cdc-editorial-content { border-color: var(--cdc-light-border); }
[data-cdc-mode="light"] .cdc-ad-placeholder {
  background: repeating-linear-gradient(135deg, #f4f4f4 0 12px, #fff 12px 24px);
  border-color: var(--cdc-light-border);
  color: var(--cdc-light-muted);
}

.cdc-error{text-align:center;min-height:48vh;padding:60px 20px}.cdc-error-code{font-size:clamp(64px,12vw,110px);font-weight:800;line-height:1;color:#ffa82b;margin:0 0 16px}.cdc-error p{margin:14px auto 25px;max-width:550px}.cdc-error-button{display:inline-block;background:#ffad28;color:#151515!important;padding:12px 24px;border-radius:7px;font-weight:700;text-decoration:none}.cdc-error-button:hover{text-decoration:underline}
