/*
Theme Name: Melhores Doramas
Theme URI: https://melhoresdoramas.com.br
Description: Tema editorial para o portal Melhores Doramas
Author: Melhores Doramas
Version: 1.0.0
Text Domain: melhores-doramas
*/

/* ================================================================
   GOOGLE FONTS + TOKENS
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Lora:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  /* Cores */
  --primary:    #C8522A;
  --primary-d:  #A8431F;
  --primary-bg: #FDF5F1;
  --primary-bd: #F5C4A8;
  --text:       #1C1917;
  --text2:      #44403C;
  --text3:      #78716C;
  --text4:      #A8A29E;
  --border:     #EAE7E0;
  --border2:    #F4EEE6;
  --bg:         #F7F5F0;
  --bg2:        #FAFAF8;
  --bg3:        #F4F1EB;
  --card:       #ffffff;
  --gold:       #F4B942;
  --green:      #16A34A;
  /* Fontes */
  --font:       'DM Sans', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --font-body:  'Lora', serif;
  /* Raios */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  /* Sombras */
  --sh-xs: 0 1px 4px rgba(0,0,0,.06);
  --sh-sm: 0 4px 16px rgba(0,0,0,.08);
  --sh-md: 0 8px 28px rgba(0,0,0,.12);
}

/* ================================================================
   RESET + BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font); }

/* ================================================================
   CONTAINER
   ================================================================ */
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 20px; }

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  background: #fff;
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--sh-xs);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 62px;
  gap: 24px;
}
.site-logo {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -.4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo span { color: var(--primary); }
.site-logo img { height: 36px; width: auto; }

.header-nav { display: flex; gap: 0; flex: 1; }
.header-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text3);
  padding: 0 14px;
  height: 62px;
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.header-nav a:hover,
.header-nav a.current { color: var(--primary); border-bottom-color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-search { position: relative; }
.header-search input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px 6px 34px;
  font-size: 13px;
  color: var(--text);
  width: 200px;
  font-family: var(--font);
  transition: border-color .2s, width .3s;
}
.header-search input:focus { outline: none; border-color: var(--primary); width: 240px; }
.header-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text4);
  font-size: 14px;
  pointer-events: none;
}
.header-cta {
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 20px;
  border: none;
  white-space: nowrap;
  transition: background .2s;
}
.header-cta:hover { background: var(--primary-d); color: #fff; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text);
  padding: 4px;
}

/* ================================================================
   BREAKING BAR
   ================================================================ */
.breaking-bar {
  background: var(--text);
  color: #fff;
  padding: 7px 0;
  font-size: 12px;
}
.breaking-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}
.breaking-tag {
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .1em;
  flex-shrink: 0;
}
.breaking-text { color: rgba(255,255,255,.7); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breaking-text strong { color: #fff; }
.breaking-link { color: var(--primary); font-weight: 600; flex-shrink: 0; font-size: 11px; }

/* ================================================================
   HERO HOMEPAGE
   ================================================================ */
.hero-home {
  display: grid;
  grid-template-columns: 1fr 300px;
  height: 340px;
  overflow: hidden;
  max-width: 1160px;
  margin: 20px auto;
  border-radius: 14px;
  box-shadow: var(--sh-md);
}
.hero-main {
  position: relative;
  overflow: hidden;
  border-radius: 14px 0 0 14px;
}
.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-main-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #0C0A18 0%, #1E1236 40%, #3D1A0E 70%, #C8522A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,10,24,.95) 0%, rgba(12,10,24,.4) 55%, transparent 100%);
}
.hero-overlay2 {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(12,10,24,.45) 0%, transparent 55%);
}
.hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 22px 24px 20px;
}
.hero-badges { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.hero-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.hero-badge-type { background: var(--primary); color: #fff; }
.hero-badge-genre { background: rgba(255,255,255,.12); color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.2); }
.hero-badge-ok { background: var(--green); color: #fff; }
.hero-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.3px;
  margin-bottom: 4px;
}
.hero-orig {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,.45);
  font-style: italic;
  margin-bottom: 10px;
}
.hero-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-score-num {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.hero-score-sub { font-size: 10px; color: rgba(255,255,255,.35); }
.hero-stars { color: var(--gold); font-size: 11px; letter-spacing: 1px; }
.hero-sep { width: 1px; height: 24px; background: rgba(255,255,255,.15); }
.hero-detail { font-size: 11px; color: rgba(255,255,255,.6); line-height: 1.6; }
.hero-detail strong { color: rgba(255,255,255,.9); }

/* Hero sidebar */
.hero-sidebar {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  background: #fff;
  border-radius: 0 14px 14px 0;
  overflow: hidden;
}
.hero-sidebar-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text4);
  padding: 12px 16px 8px;
  border-bottom: 1px solid var(--border2);
}
.popular-item {
  display: flex;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border2);
  transition: background .15s;
}
.popular-item:hover { background: var(--bg); }
.popular-num {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  flex-shrink: 0;
  width: 22px;
}
.popular-title { font-size: 12px; font-weight: 500; color: var(--text2); line-height: 1.4; }
.popular-cat { font-size: 10px; color: var(--primary); font-weight: 600; margin-top: 2px; }

/* ================================================================
   HOME SECTIONS
   ================================================================ */
.home-section { padding: 32px 0; }
.home-section.alt { background: #fff; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}
.section-link {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}
.section-link:hover { text-decoration: underline; }

/* ================================================================
   DORAMA CARD (grid)
   ================================================================ */
.doramas-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.doramas-grid-4 { grid-template-columns: repeat(4, 1fr); }

.drama-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.drama-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: var(--primary);
}
.drama-card-poster {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--bg3);
}
.drama-card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.drama-card:hover .drama-card-poster img { transform: scale(1.05); }
.drama-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  background: linear-gradient(135deg, var(--bg3), var(--border));
}
.drama-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .06em;
  backdrop-filter: blur(4px);
}
.drama-card-rating {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--gold);
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
}
.drama-card-status {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.status-finalizado { background: var(--green); color: #fff; }
.status-andamento { background: var(--primary); color: #fff; }
.status-anunciado { background: #2563EB; color: #fff; }

.drama-card-body { padding: 10px 12px 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.drama-card-type { font-size: 9px; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.drama-card-title { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.drama-card-meta { font-size: 11px; color: var(--text4); display: flex; gap: 6px; margin-top: auto; }
.drama-card-genres { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.genre-tag { font-size: 9px; font-weight: 600; padding: 2px 7px; border-radius: 3px; background: var(--primary-bg); color: var(--primary); border: 1px solid var(--primary-bd); }

/* ================================================================
   SCROLL ROW (carrossel horizontal)
   ================================================================ */
.scroll-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.scroll-row::-webkit-scrollbar { height: 4px; }
.scroll-row::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.scroll-row .drama-card { flex-shrink: 0; width: 160px; }

/* ================================================================
   NEWS CARD
   ================================================================ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--sh-sm); }
.news-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg3);
  position: relative;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-thumb img { transform: scale(1.04); }
.news-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 28px; background: linear-gradient(135deg, #1a1a2e, #553C9A); }
.news-cat-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--primary);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.news-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.news-title { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-excerpt { font-size: 12px; color: var(--text3); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text4); margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border2); }
.news-meta img { width: 20px; height: 20px; border-radius: 50%; }

/* ================================================================
   SIDEBAR
   ================================================================ */
.sidebar-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px;
  margin-bottom: 18px;
}
.sidebar-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text4);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border2);
}
.top-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border2); }
.top-item:last-child { border: none; }
.top-num { font-family: var(--font-serif); font-size: 18px; font-weight: 900; color: var(--border); line-height: 1; width: 22px; flex-shrink: 0; }
.top-title { font-size: 12px; font-weight: 500; color: var(--text2); line-height: 1.4; }
.top-cat { font-size: 10px; color: var(--primary); font-weight: 600; margin-top: 2px; }
.category-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-pill { font-size: 11px; font-weight: 500; padding: 4px 10px; border-radius: 20px; background: var(--bg3); color: var(--text3); border: 1px solid var(--border); transition: all .15s; }
.cat-pill:hover, .cat-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* WhatsApp box */
.wpp-box { background: #25D366; border-radius: var(--r-md); padding: 16px; text-align: center; }
.wpp-title { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.wpp-sub { font-size: 11px; color: rgba(255,255,255,.8); margin-bottom: 12px; line-height: 1.5; }
.wpp-btn { background: #fff; color: #16A34A; font-size: 12px; font-weight: 700; padding: 8px 18px; border-radius: 20px; border: none; width: 100%; cursor: pointer; }

/* ================================================================
   SINGLE POST (dorama page)
   ================================================================ */
.single-hero {
  position: relative;
  height: 460px;
  overflow: hidden;
}
.single-hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.single-hero-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #0C0A18 0%, #1E1236 35%, #3D1A0E 65%, #C8522A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
}
.single-hero-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,10,24,.98) 0%, rgba(12,10,24,.7) 45%, rgba(12,10,24,.15) 80%, transparent 100%); }
.single-hero-grad2 { position: absolute; inset: 0; background: linear-gradient(to right, rgba(12,10,24,.6) 0%, transparent 60%); }
.single-hero-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 0 36px;
}
.single-hero-inner { display: grid; grid-template-columns: 1fr 130px; align-items: flex-end; gap: 20px; }
.single-hero-title { font-family: var(--font-serif); font-size: 34px; font-weight: 900; color: #fff; line-height: 1.05; letter-spacing: -.5px; margin-bottom: 5px; }
.single-hero-orig { font-family: var(--font-body); font-size: 13px; color: rgba(255,255,255,.45); font-style: italic; margin-bottom: 16px; }
.single-hero-stats { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.sh-score { display: flex; align-items: baseline; gap: 4px; }
.sh-score-num { font-family: var(--font-serif); font-size: 30px; font-weight: 900; color: var(--gold); line-height: 1; }
.sh-score-den { font-size: 11px; color: rgba(255,255,255,.35); }
.sh-stars { color: var(--gold); font-size: 13px; letter-spacing: 1px; display: block; margin-top: 1px; }
.sh-sep { width: 1px; height: 32px; background: rgba(255,255,255,.15); }
.sh-info { font-size: 12px; color: rgba(255,255,255,.6); line-height: 1.65; }
.sh-info strong { color: rgba(255,255,255,.9); font-weight: 600; }
.single-hero-poster { border-radius: 10px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.6); }
.single-hero-poster img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.single-hero-poster-ph { aspect-ratio: 2/3; background: linear-gradient(135deg, #1a1a2e, #553C9A); display: flex; align-items: center; justify-content: center; font-size: 40px; }

/* Action bar */
.action-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 11px 0;
  position: sticky;
  top: 62px;
  z-index: 90;
}
.action-bar-inner { display: flex; gap: 8px; align-items: center; }
.ab-btn { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 7px 14px; border-radius: 20px; border: 1px solid var(--border); background: #fff; color: var(--text2); cursor: pointer; transition: all .15s; }
.ab-btn:hover { border-color: var(--primary); color: var(--primary); }
.ab-btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.ab-btn.primary:hover { background: var(--primary-d); }
.ab-share { margin-left: auto; font-size: 11px; color: var(--text4); cursor: pointer; display: flex; align-items: center; gap: 4px; }

/* Single layout */
.single-layout { display: grid; grid-template-columns: 1fr 280px; gap: 28px; padding: 28px 0 48px; }

/* Post card */
.post-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; margin-bottom: 20px; }
.post-card-title { font-family: var(--font-serif); font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--border2); display: flex; align-items: center; gap: 8px; }
.post-card-title::before { content: ''; width: 4px; height: 18px; background: var(--primary); border-radius: 2px; flex-shrink: 0; display: block; }

/* Overview block */
.overview-grid { display: grid; grid-template-columns: 120px 1fr; gap: 18px; }
.overview-poster { border-radius: var(--r-sm); overflow: hidden; box-shadow: var(--sh-sm); }
.overview-poster img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.overview-poster-ph { aspect-ratio: 2/3; background: linear-gradient(135deg, #1a1a2e, #553C9A); display: flex; align-items: center; justify-content: center; font-size: 32px; }
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border2); font-size: 12px; }
.info-row:last-child { border: none; }
.info-label { color: var(--text4); font-weight: 500; }
.info-val { color: var(--text); font-weight: 600; text-align: right; }
.info-val.accent { color: var(--primary); }
.info-val.green { color: var(--green); }

/* Platform pills */
.platform-section { margin-top: 14px; }
.platform-section-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text4); margin-bottom: 8px; }
.platform-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.platform-pill { display: inline-flex; align-items: center; gap: 5px; background: var(--bg3); border: 1px solid var(--border); border-radius: 20px; padding: 5px 13px; font-size: 12px; font-weight: 600; color: var(--text2); transition: all .15s; }
.platform-pill:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
a.platform-pill { text-decoration: none; }

/* Prose */
.drama-prose { font-family: var(--font-body); font-size: 14.5px; line-height: 1.9; color: var(--text2); }
.drama-prose p { margin-bottom: 14px; }
.drama-prose p:first-child::first-letter { font-family: var(--font-serif); font-size: 52px; font-weight: 900; color: var(--primary); float: left; line-height: .82; margin: 5px 10px 0 0; }
.drama-prose .pull-quote { font-family: var(--font-serif); font-style: italic; font-size: 16px; color: var(--primary); border-left: 3px solid var(--primary); padding: 10px 16px; margin: 16px 0; background: var(--primary-bg); border-radius: 0 8px 8px 0; line-height: 1.5; }
.drama-prose a { color: var(--primary); font-weight: 600; }
.drama-prose a:hover { text-decoration: underline; }
.drama-prose h2 { font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--text); margin: 24px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border2); }
.drama-prose h3 { font-size: 15px; font-weight: 700; color: var(--text); margin: 18px 0 8px; }

/* Why watch cards */
.why-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 16px; }
.why-card { border-radius: 8px; padding: 12px; text-align: center; border: 1px solid; }
.why-card-romance { background: var(--primary-bg); border-color: var(--primary-bd); }
.why-card-misterio { background: #F0FDF4; border-color: #BBF7D0; }
.why-card-humor { background: #EFF6FF; border-color: #BFDBFE; }
.why-card-icon { font-size: 20px; margin-bottom: 5px; }
.why-card-label { font-size: 11px; font-weight: 700; margin-bottom: 3px; }
.why-card-romance .why-card-label { color: var(--primary); }
.why-card-misterio .why-card-label { color: #16A34A; }
.why-card-humor .why-card-label { color: #2563EB; }
.why-card-desc { font-size: 10px; color: var(--text3); }

/* Cast */
.cast-scroll { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.cast-scroll::-webkit-scrollbar { height: 4px; }
.cast-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.cast-card { flex-shrink: 0; width: 88px; text-align: center; cursor: pointer; }
.cast-photo { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 7px; display: flex; align-items: center; justify-content: center; font-size: 22px; border: 2px solid var(--border); overflow: hidden; }
.cast-photo img { width: 100%; height: 100%; object-fit: cover; }
.cast-name { font-size: 11px; font-weight: 600; color: var(--text); line-height: 1.3; margin-bottom: 2px; }
.cast-role { font-size: 10px; color: var(--primary); font-weight: 500; }

/* Episodes */
.ep-list { display: flex; flex-direction: column; gap: 6px; }
.ep-item { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; padding: 10px 14px; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; transition: border-color .15s; }
.ep-item:hover { border-color: var(--primary); }
.ep-num { font-family: var(--font-serif); font-size: 20px; font-weight: 900; color: var(--border); text-align: center; line-height: 1; }
.ep-title { font-size: 12px; font-weight: 600; color: var(--text); }
.ep-date { font-size: 11px; color: var(--text4); margin-top: 2px; }
.ep-dur { font-size: 11px; color: var(--text4); white-space: nowrap; }
.ep-more { text-align: center; padding: 10px; font-size: 12px; color: var(--primary); font-weight: 600; background: var(--primary-bg); border: 1px dashed var(--primary-bd); border-radius: 8px; cursor: pointer; margin-top: 2px; transition: background .15s; }
.ep-more:hover { background: var(--primary); color: #fff; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.gallery-item { aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; cursor: pointer; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.06); }

/* FAQ */
.faq-item { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 8px; background: var(--card); }
.faq-question { padding: 13px 16px; font-size: 13px; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: background .15s; }
.faq-question:hover { background: var(--bg); }
.faq-icon { color: var(--primary); font-size: 20px; font-weight: 300; line-height: 1; transition: transform .2s; }
.faq-answer { display: none; padding: 0 16px 13px; font-size: 13px; color: var(--text2); line-height: 1.7; border-top: 1px solid var(--border2); background: var(--bg2); padding-top: 12px; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* Author box */
.author-box { background: var(--primary-bg); border: 1px solid var(--primary-bd); border-radius: var(--r-md); padding: 14px; display: flex; gap: 12px; align-items: center; margin-top: 4px; }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-avatar-ph { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #553C9A); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.author-name { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.author-desc { font-size: 11px; color: var(--text3); line-height: 1.5; }

/* Sidebar score */
.score-block { text-align: center; padding: 8px 0 14px; }
.score-big { font-family: var(--font-serif); font-size: 50px; font-weight: 900; color: var(--primary); line-height: 1; }
.score-denom { font-size: 12px; color: var(--text4); margin-top: 2px; }
.score-stars { color: var(--gold); font-size: 17px; letter-spacing: 2px; margin: 7px 0 4px; }
.score-label { font-size: 11px; color: var(--text3); font-weight: 600; }
.score-bar { height: 6px; background: var(--border2); border-radius: 4px; overflow: hidden; margin-top: 12px; }
.score-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--primary)); border-radius: 4px; }

/* Related */
.related-list { display: flex; flex-direction: column; gap: 12px; }
.related-item { display: flex; gap: 10px; align-items: flex-start; text-decoration: none; color: inherit; }
.related-thumb { width: 48px; height: 64px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-thumb-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.related-title { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.35; margin-bottom: 3px; }
.related-meta { font-size: 10px; color: var(--text4); }
.related-rating { color: var(--gold); font-weight: 700; }

/* Tags */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-item { font-size: 11px; padding: 4px 10px; border-radius: 4px; background: var(--bg3); color: var(--text3); border: 1px solid var(--border); transition: all .15s; }
.tag-item:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.tag-genre { background: var(--primary-bg); color: var(--primary); border-color: var(--primary-bd); }

/* ================================================================
   BREADCRUMB
   ================================================================ */
.breadcrumb { padding: 10px 0; font-size: 11px; color: var(--text4); display: flex; gap: 5px; align-items: center; }
.breadcrumb a { color: var(--primary); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--border); }

/* ================================================================
   ARCHIVE / CATEGORY
   ================================================================ */
.archive-hero { background: linear-gradient(135deg, #0C0A18, #1E1236, #3D1A0E); padding: 36px 0 30px; }
.archive-hero-inner { display: flex; align-items: center; gap: 14px; }
.archive-hero-icon { font-size: 2.5rem; line-height: 1; }
.archive-hero-title { font-family: var(--font-serif); font-size: 28px; font-weight: 900; color: #fff; margin-bottom: 3px; line-height: 1.1; }
.archive-hero-count { font-size: 13px; color: rgba(255,255,255,.5); font-weight: 500; }

.archive-filters { background: #fff; border-bottom: 1px solid var(--border); padding: 10px 0; }
.archive-filters-inner { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.filter-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text4); }
.filter-btn { font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 20px; border: 1px solid var(--border); background: var(--bg); color: var(--text2); cursor: pointer; transition: all .15s; text-decoration: none; }
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.archive-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding: 28px 0 40px; }
.archive-pagination { display: flex; gap: 6px; justify-content: center; padding-bottom: 32px; }
.page-link { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; font-size: 13px; font-weight: 600; border: 1px solid var(--border); color: var(--text2); background: #fff; transition: all .15s; }
.page-link:hover, .page-link.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-link-text { width: auto; padding: 0 14px; }

/* ================================================================
   SEARCH
   ================================================================ */
.search-hero { background: linear-gradient(135deg, #0C0A18, #3D1A0E); padding: 36px 0; text-align: center; }
.search-hero-title { font-family: var(--font-serif); font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.search-form { display: flex; max-width: 500px; margin: 0 auto; gap: 8px; }
.search-form input { flex: 1; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: 10px 16px; font-size: 14px; color: #fff; font-family: var(--font); }
.search-form input::placeholder { color: rgba(255,255,255,.4); }
.search-form input:focus { outline: none; border-color: rgba(255,255,255,.5); }
.search-form button { background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: 10px 20px; font-size: 13px; font-weight: 700; cursor: pointer; }

/* ================================================================
   404
   ================================================================ */
.page-404 { text-align: center; padding: 80px 20px; }
.page-404-num { font-family: var(--font-serif); font-size: 100px; font-weight: 900; color: var(--border); line-height: 1; }
.page-404-title { font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.page-404-desc { font-size: 14px; color: var(--text3); margin-bottom: 24px; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer { background: var(--text); color: #fff; padding: 40px 0 20px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.footer-logo { font-family: var(--font-serif); font-size: 18px; font-weight: 900; margin-bottom: 10px; }
.footer-logo span { color: var(--primary); }
.footer-desc { font-size: 12px; color: #888; line-height: 1.7; margin-bottom: 16px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 32px; height: 32px; border-radius: 6px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; font-size: 14px; transition: background .15s; }
.footer-social a:hover { background: var(--primary); }
.footer-col-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #666; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 12px; color: #999; margin-bottom: 7px; transition: color .15s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid #333; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-copy { font-size: 11px; color: #666; }
.footer-tags { font-size: 11px; color: #555; }

/* ================================================================
   UTILITIES
   ================================================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text3); }
.empty-state-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.divider { border: none; border-top: 1px solid var(--border2); margin: 24px 0; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .doramas-grid { grid-template-columns: repeat(4, 1fr); }
  .archive-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-home { grid-template-columns: 1fr; height: auto; }
  .hero-sidebar { display: none; }
  .single-layout { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .doramas-grid { grid-template-columns: repeat(3, 1fr); }
  .archive-grid { grid-template-columns: repeat(3, 1fr); }
  .single-hero-inner { grid-template-columns: 1fr; }
  .single-hero-poster { display: none; }
  .overview-grid { grid-template-columns: 100px 1fr; }
  .why-cards { grid-template-columns: 1fr; }
}

/* ================================================================
   CARD POSTER — 16:9 para Google Discovery
   ================================================================ */
.drama-card-poster { aspect-ratio: 16/9; }
.drama-card-poster img { object-position: center top; }
.news-thumb { aspect-ratio: 16/9; }

/* ================================================================
   MOBILE
   ================================================================ */
@media (max-width: 640px) {
  /* Header compacto sem quebrar */
  .header-inner { flex-wrap: nowrap; gap: 8px; }
  .header-nav { display: none; }
  .header-search { display: none; }
  .header-cta { display: none; } /* esconde Em alta no header mobile */
  .menu-toggle { display: block; }

  /* Hero mobile */
  .hero-home {
    grid-template-columns: 1fr;
    height: 220px;
    margin: 10px 12px;
    border-radius: 10px;
  }
  .hero-sidebar { display: none; }
  .hero-main { border-radius: 10px; }
  .hero-title { font-size: 16px; }
  .hero-orig { display: none; }
  .hero-content { padding: 14px 16px 14px; }
  .hero-meta { gap: 8px; }
  .hero-score-num { font-size: 18px; }
  .hero-sep { display: none; }

  /* Breaking bar */
  .breaking-bar { font-size: 11px; padding: 6px 0; }

  /* Single */
  .single-hero { height: 260px; }
  .single-hero-title { font-size: 20px; }
  .single-layout { grid-template-columns: 1fr; }

  /* Grids */
  .doramas-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .cast-scroll .cast-card { width: 80px; }
  .action-bar-inner .ab-btn span { display: none; }
  .overview-grid { grid-template-columns: 90px 1fr; }
  .why-cards { grid-template-columns: repeat(3,1fr); }
  .why-card-desc { display: none; }

  /* Card body menor */
  .drama-card-title { font-size: 12px; }
  .drama-card-body { padding: 8px 10px 10px; }
  .genre-tag { font-size: 8px; }
}

/* ================================================================
   MOBILE SEARCH BAR
   ================================================================ */
.mobile-search-bar {
  display: none;
}
@media (max-width: 640px) {
  .mobile-search-bar {
    display: block;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 8px 16px;
  }
  .mobile-search-bar form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 14px;
  }
  .mobile-search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 13px;
    color: var(--text);
    font-family: var(--font);
  }
  .mobile-search-bar input:focus { outline: none; }
}
