/* MC_DORAMA_DETAIL_NAVY_GOLD_V1
 * Scope: only pages rendering templates/mc4918_detail.html, i.e. /doramas/<id>.
 * CSS only. Reuses existing images, poster dimensions, descriptions, links and layout.
 * Matches the editorial navy/gold v6 palette without loading v6 on other routes.
 */
:root { --mcdd-gold:#e8bb76; --mcdd-bright:#f7db9e; --mcdd-ink:#06121f; --mcdd-navy:#081a2c; --mcdd-panel:#0d2236; --mcdd-muted:#b7c7d5; --mcdd-line:rgba(232,187,118,.39); }
html:has(.mc4918-page) { background:#06121f; color-scheme:dark; }
body:has(.mc4918-page) {
  color:#f9f4eb!important;
  background:radial-gradient(ellipse at 85% 9%,rgba(20,48,71,.52),transparent 45%),#06121f!important;
}
body:has(.mc4918-page) > header,
body:has(.mc4918-page) > header:has(.mc494-links) {
  background:linear-gradient(115deg,rgba(5,16,30,.97),rgba(12,32,50,.97))!important;
  border-color:var(--mcdd-line)!important;
  box-shadow:0 10px 32px rgba(0,0,0,.13);
}
body:has(.mc4918-page) header .mc494-links a {color:#dbe4ed!important;}
body:has(.mc4918-page) header .mc494-links a:is(:hover,:focus-visible,[aria-current="page"],.active),
body:has(.mc4918-page) header .mc494-links a[href="/recomendaciones"] {
  color:var(--mcdd-bright)!important;
  background:rgba(232,187,118,.11)!important;
}
body:has(.mc4918-page) header .mc494-login,
body:has(.mc4918-page) header .mc494-menu {
  border:1px solid var(--mcdd-line)!important;
  background:linear-gradient(120deg,#112b42,#092036)!important;
  color:var(--mcdd-bright)!important;
  box-shadow:0 8px 24px rgba(0,0,0,.16)!important;
}
body:has(.mc4918-page) header .mc494-links.mc494-open {
  border-color:var(--mcdd-line)!important;
  background:#10273c!important;
}
body:has(.mc4918-page) > footer {
  background:#061321!important;
  border-color:rgba(232,187,118,.22)!important;
  color:var(--mcdd-muted)!important;
}
body:has(.mc4918-page) > footer a { color:var(--mcdd-bright)!important; }
body:has(.mc4918-page) > main {color:#f9f4eb;}
body:has(.mc4918-page) :is(a,button):focus-visible {
  outline:2px solid var(--mcdd-bright)!important;
  outline-offset:3px;
}

/* Existing detail module: visual restyle only, no poster replacement. */
body .mc4918-page { color:#f9f4eb; min-width:0; }
body .mc4918-page .mc4918-breadcrumb { margin:12px 0 22px; }
body .mc4918-page .mc4918-breadcrumb a {
  color:var(--mcdd-bright)!important;
  text-decoration:none;
  font-size:13px;
  font-weight:750;
}
body .mc4918-page .mc4918-breadcrumb a:hover { text-decoration:underline; }
body .mc4918-page .mc4918-hero {
  border:1px solid var(--mcdd-line)!important;
  border-radius:24px;
  background:linear-gradient(100deg,rgba(7,22,37,.97) 0%,rgba(11,31,49,.94) 56%,rgba(15,39,59,.85) 100%),var(--detail-backdrop) center/cover no-repeat!important;
  box-shadow:0 22px 56px rgba(0,0,0,.24)!important;
}
body .mc4918-page .mc4918-hero::before {
  background:linear-gradient(95deg,rgba(7,22,37,.76),rgba(11,31,49,.52) 66%,rgba(11,31,49,.28))!important;
}
body .mc4918-page .mc4918-poster {min-width:0;}
body .mc4918-page .mc4918-poster img {
  border:1px solid rgba(232,187,118,.29);
  border-radius:15px;
  box-shadow:0 20px 40px rgba(0,0,0,.32);
  height:auto;
  aspect-ratio:2/3;
  object-fit:cover;
}
body .mc4918-page .mc4918-poster > span {
  color:var(--mcdd-bright)!important;
  background:linear-gradient(145deg,#17334c,#0b1a2d)!important;
  border:1px solid var(--mcdd-line);
}
body .mc4918-page .mc4918-kicker {
  color:var(--mcdd-bright)!important;
  letter-spacing:.14em;
}
body .mc4918-page .mc4918-summary h1,
body .mc4918-page .mc4918-summary h2,
body .mc4918-page .mc4918-related h2 {
  color:#f9f4eb!important;
}
body .mc4918-page .mc4918-summary h1 {
  overflow-wrap:anywhere;
  line-height:1.12;
}
body .mc4918-page .mc4918-summary p {
  color:#c6d3df!important;
  line-height:1.72;
}
body .mc4918-page .mc4918-ratings > div {
  background:rgba(8,27,44,.86)!important;
  border:1px solid var(--mcdd-line)!important;
  border-radius:13px;
  min-width:0;
  flex:0 1 auto;
}
body .mc4918-page .mc4918-ratings strong {
  color:var(--mcdd-bright)!important;
  font-variant-numeric:tabular-nums;
}
body .mc4918-page .mc4918-ratings small {color:var(--mcdd-muted)!important;}
body .mc4918-page .mc4918-watch {
  border-color:rgba(232,187,118,.35)!important;
  color:var(--mcdd-bright)!important;
  line-height:1.5;
}
body .mc4918-page .mc4918-watch strong {color:#f9f4eb!important;}
body .mc4918-page .mc4918-warning {color:#ffd099!important;}

body .mc4918-page .mc4918-relatedgrid a {
  background:linear-gradient(155deg,#112940,#0b1c2e)!important;
  border:1px solid rgba(232,187,118,.30)!important;
  color:#f9f4eb!important;
  box-shadow:0 10px 30px rgba(0,0,0,.12);
  transition:border-color .18s,transform .18s,box-shadow .18s;
  min-width:0;
}
body .mc4918-page .mc4918-relatedgrid a:hover {
  border-color:var(--mcdd-gold)!important;
  box-shadow:0 15px 30px rgba(0,0,0,.22);
  transform:translateY(-2px);
}
body .mc4918-page .mc4918-relatedgrid img {display:block;width:100%;height:auto;aspect-ratio:2/3;object-fit:cover;}
body .mc4918-page .mc4918-relatedgrid strong {overflow-wrap:anywhere;line-height:1.35;}
body .mc4918-page .mc4918-relatedfallback {
  background:linear-gradient(145deg,#17334c,#0b1a2d)!important;
  color:var(--mcdd-bright)!important;
}
body .mc4918-page .mc4918-source {
  background:none!important;
  color:#9aafc0!important;
  border-color:rgba(232,187,118,.25)!important;
  text-align:center;
}
/* Preserve pre-existing detail-page links and controls if present in newer releases. */
body .mc4918-page .mc4918-title:hover,
body .mc4918-page .mc4918-review-nav a { color:var(--mcdd-bright)!important; }
body .mc4918-page .mc4918-more {
  color:#081827!important;
  background:linear-gradient(125deg,#f9dfaa,#d9a75c)!important;
  border:1px solid #f5d18c!important;
}
@media(max-width:650px) {
  body .mc4918-page .mc4918-hero {padding:18px!important;gap:22px;}
  body .mc4918-page .mc4918-poster {width:min(70%,240px);margin-inline:auto;}
  body .mc4918-page .mc4918-summary h1 {font-size:clamp(30px,8vw,44px);}
  body .mc4918-page .mc4918-ratings {gap:10px;}
  body .mc4918-page .mc4918-ratings > div {flex:1 1 135px;padding:12px!important;}
  body .mc4918-page .mc4918-watch {gap:5px;}
  body .mc4918-page .mc4918-relatedgrid {gap:10px;}
  body .mc4918-page .mc4918-relatedgrid a {padding:7px;}
  body .mc4918-page .mc4918-relatedgrid strong {font-size:12px;}
}
@media(max-width:380px) {
  body .mc4918-page .mc4918-hero {padding:14px!important;}
  body .mc4918-page .mc4918-relatedgrid {gap:8px;}
}
@media(prefers-reduced-motion:reduce) {
  body .mc4918-page .mc4918-relatedgrid a {transition:none;}
  body .mc4918-page .mc4918-relatedgrid a:hover {transform:none;}
}
