/* Mobile-first detail page UI modernizer (movie reviews, news detail, etc.) */

:root {
  --ui-accent: #ba1d48;
  --ui-accent-2: #d42a5a;
  --ui-text: #1f2937;
  --ui-muted: #6b7280;
  --ui-border: rgba(0, 0, 0, 0.08);
  --ui-card: #ffffff;
  --ui-bg: #f3f4f6;
  --ui-radius: 16px;
}

html,
body {
  background: var(--ui-bg);
  color: var(--ui-text);
  font-family: Roboto, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--ui-accent);
  text-decoration: none;
}

a:hover {
  color: var(--ui-accent-2);
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  font-family: Montserrat, Roboto, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
}

/* Improve detail container look without changing layout behavior */
.detailSectionInner {
  background: var(--ui-card) !important;
  border-radius: var(--ui-radius);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06) !important;
 
}

/* Tabs: keep existing markup; just modernize spacing */
.tabs {
  margin-bottom: 18px;
}

.tabs .tab.active,
.tabs ul.tabs-mv li.active a,
.tabs ul.tabs-mv li:hover a {
  color: var(--ui-accent);
}

/* Mobile: float:none alone stacked each li full-width; use flex so tabs stay in a row */
@media (max-width: 767.98px) {
  .tabs ul.tab-links,
  .tabs ul.tabs-mv {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
  }

  .tabs ul.tab-links li,
  .tabs ul.tabs-mv li {
    float: none !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
  }
}

.tabs ul.tab-links,
.tabs ul.tabs-mv {
  /* Keep legacy float-based layout; only remove markers. */
  list-style: none;
}

/* Typography for “article-like” content */
.detail h4 {
  font-size: 20px;
  margin: 8px 0 12px;
}

.x-small,
.xx-small {
  color: var(--ui-muted);
}

.altTitle {
  color: var(--ui-accent) !important;
  font-weight: 600;
}

/* Review CTA buttons (keep existing class) */
a.movie_l_button,
.movie_l_button {
  background-color: var(--ui-accent);
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(186, 29, 72, 0.18) !important;
  padding: 14px 16px !important;
}

/* Related items separators */
.related_s {
  border-top: 1px solid var(--ui-border);
  padding-top: 12px;
  margin-top: 16px;
  font-weight: 700;
}

/* News detail */
.news-header {
  background: transparent;
  border-bottom: 1px solid var(--ui-border);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.news-header h1 {
  font-size: 26px;
  margin: 0 0 8px;
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.language-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 14px 0 16px;
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}

.language-link {
  background: rgba(186, 29, 72, 0.05);
  border: 1px solid rgba(186, 29, 72, 0.18);
  color: var(--ui-accent) !important;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
}

.language-link:hover {
  background: rgba(186, 29, 72, 0.12) !important;
  color: var(--ui-accent-2) !important;
  text-decoration: none;
}

.news-item {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

/* News list typography overrides (newshome.css variables may not apply) */
.news-title {
  color: var(--ui-text) !important;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.35;
  text-decoration: none;
}

.news-title:hover {
  color: var(--ui-accent) !important;
  text-decoration: none;
}

.news-date {
  color: var(--ui-muted) !important;
  font-size: 13px;
}

.news-image {
  border-radius: 10px;
  overflow: hidden;
}

.pagination {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-link {
  border: 1px solid var(--ui-border);
  border-radius: 999px;
  padding: 10px 14px;
  background: #ffffff;
  color: var(--ui-text) !important;
  font-weight: 700;
}

.pagination-link:hover {
  background: rgba(186, 29, 72, 0.06);
  border-color: rgba(186, 29, 72, 0.35);
  color: var(--ui-accent) !important;
}

/* Keep content readable */
.detailSectionInner p,
.detailSectionInner ul,
.detailSectionInner ol {
  line-height: 1.7;
  font-size: 15px;
}

/* News detail header */
.detailSectionInner > h1 {
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 10px;
}

/* Reading column like an article */
.detail {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.detail p {
  margin: 0 0 14px;
}

.related_s a {
  color: var(--ui-accent) !important;
  font-weight: 700;
}

/* Fallback for variable definitions (some tooling may leave an invalid ::root selector) */
:root {
  --ui-accent: #ba1d48;
  --ui-accent-2: #d42a5a;
  --ui-text: #1f2937;
  --ui-muted: #6b7280;
  --ui-border: rgba(0, 0, 0, 0.08);
  --ui-card: #ffffff;
  --ui-bg: #f3f4f6;
  --ui-radius: 16px;
}

