/*
Theme Name: DayLive News
Theme URI: https://example.com/daylive-news
Author: Copilot
Description: A bold black-and-white video-news WordPress theme inspired by fast, interview-led news portals such as Jist News.
Version: 2.4.0
Text Domain: daylive-news
*/

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f6f8;
  --text: #0a0a0a;
  --muted: #6b7280;
  --border: #e7e7ea;
  --dark: #0a0a0a;
  --dark-2: #1a1a1a;
  --accent: #f5c518;
  --accent-ink: #1a1300;
  --danger: #e11d2e;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow: 0 12px 30px rgba(10, 10, 10, 0.06);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Keeps the sticky header from covering the top of the page/section
     you just scrolled or jumped to (e.g. the #subscribe anchor). */
  scroll-padding-top: 130px;
}
body {
  margin: 0;
  font-family: "Helvetica Neue", Inter, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; }
button { font-family: inherit; }

.container {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { opacity: 0.88; }
.btn-outline { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn-outline:hover { background: var(--dark); color: #fff; }
.btn-sm { padding: 7px 14px 7px 10px; font-size: 0.8rem; gap: 6px; }
.signin-btn svg { flex-shrink: 0; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--dark);
  color: #d1d5db;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 9px 0;
  font-size: 0.82rem;
}
.social-icons { display: flex; align-items: center; gap: 14px; }
.social-icons a { color: #fff; display: inline-flex; opacity: 0.85; }
.social-icons a:hover { opacity: 1; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}
.brand { display: flex; align-items: center; }
.brand-word {
  font-weight: 900;
  font-size: 1.9rem;
  letter-spacing: -0.03em;
  color: var(--text);
  position: relative;
}
.custom-logo-link img { max-height: 44px; width: auto; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav .menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
}
.main-nav .menu a { padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav .menu a:hover,
.main-nav .menu .current-menu-item a { border-color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.account-icon {
  border: 1.5px solid var(--text);
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
}
.account-icon:hover { background: var(--text); color: #fff; }
.icon-btn {
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  padding: 6px;
  border-radius: 999px;
}
.icon-btn:hover { background: var(--surface-2); }

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
}
.menu-toggle span { width: 22px; height: 2px; background: var(--text); display: block; }

.search-box {
  max-height: 0;
  overflow: hidden;
  border-top: 0 solid var(--border);
  transition: max-height 0.25s ease, border-color 0.25s ease;
}
.search-box.open {
  max-height: 90px;
  border-top: 1px solid var(--border);
}
#subscribe { scroll-margin-top: 130px; }
.search-box .container { display: flex; gap: 10px; padding: 14px 16px; }
.search-box input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  outline: none;
  font-size: 0.95rem;
}
.search-box button {
  border: 0;
  background: var(--dark);
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- Layout shell ---------- */
.site-main { padding: 28px 0 24px; }

/* ---------- Section head (eyebrow + arrow link) ---------- */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 16px;
}
.section-head h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.section-title-link { display: inline-flex; align-items: center; gap: 10px; }
.arrow-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  font-size: 0.85rem;
}
.archive-desc { color: var(--muted); margin: -8px 0 16px; }

/* ---------- Spotlight / hero ---------- */
.spotlight { margin-bottom: 40px; }
.spotlight-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
}
.spotlight-alt .spotlight-grid { grid-template-columns: 1fr 1.1fr; }
.spotlight-alt .spotlight-copy { order: 1; }
.spotlight-alt .spotlight-media { order: 2; }

.spotlight-copy h1 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.spotlight-copy h1 a:hover { text-decoration: underline; }
.underline-title {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 10px;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}
.spotlight-copy p { color: var(--muted); margin: 12px 0 18px; font-size: 1.02rem; }

.spotlight-media {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 320px;
  background: var(--dark);
  box-shadow: var(--shadow);
}
.spotlight-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; }
.thumb-fallback {
  width: 100%; height: 100%; min-height: 260px;
  background: linear-gradient(135deg, #1f1f1f, #3a3a3a);
}

.badge-eyebrow {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(10,10,10,0.85);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.badge-eyebrow-dark { position: static; display: inline-block; background: var(--dark); }

.guest-pill {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}
.guest-pill-lg {
  left: 16px;
  right: auto;
  bottom: 16px;
  padding: 8px 14px;
  font-size: 0.85rem;
}

.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(225,29,46,0.4);
}
.play-btn svg { margin-left: 3px; }

/* ---------- Watch grids / cards ---------- */
.watch-row-section { margin-bottom: 40px; }
.watch-grid {
  display: grid;
  gap: 18px;
}
.watch-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.watch-card { display: block; }
.watch-thumb {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--dark);
  aspect-ratio: 16/10;
}
.watch-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.watch-card:hover .watch-thumb img { transform: scale(1.05); }

.watch-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #fff;
  color: var(--text);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.watch-meta { padding: 12px 2px 0; }
.watch-meta h4 {
  margin: 4px 0 0;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.35;
}
.watch-meta h4 a:hover { text-decoration: underline; }

.post-meta {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Carousel ---------- */
.carousel-wrap { position: relative; display: flex; align-items: center; gap: 10px; }
.carousel-track {
  display: flex;
  grid-auto-flow: unset;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 18px;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track .watch-card {
  flex: 0 0 calc((100% - 36px) / 3);
  scroll-snap-align: start;
}
.carousel-arrow {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}
.carousel-arrow:hover { background: var(--dark); color: #fff; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); border: 0; cursor: pointer; padding: 0;
}
.carousel-dot.active { background: var(--dark); width: 20px; border-radius: 999px; }

/* ---------- Single post ----------
   Uses the full .container width (same as the homepage) so the page shell
   never gets narrower when you open a post. Only the running text column
   (.entry-content) is capped for comfortable reading. */
.single-post { width: 100%; }
.single-post .byline-row,
.single-post .single-title,
.single-post .single-meta,
.single-post .related-tags,
.single-post .author-box { max-width: 900px; margin-left: auto; margin-right: auto; }
.single-post .entry-content { max-width: 900px; margin-left: auto; margin-right: auto; }
.byline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.byline-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.avatar-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--text); color: var(--text);
}
.avatar-icon-lg { width: 56px; height: 56px; }

.single-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.single-meta { margin-bottom: 18px; }

.media-block { margin-bottom: 24px; }
.media-image, .yt-embed-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark);
  aspect-ratio: 16/9;
  cursor: pointer;
}
.media-image img, .yt-embed-wrap img { width: 100%; height: 100%; object-fit: cover; }
.yt-embed-wrap iframe { width: 100%; height: 100%; border: 0; }
.play-btn-lg { width: 68px; height: 68px; }
.yt-badge {
  position: absolute;
  bottom: 14px; right: 14px;
  background: #fff;
  color: var(--text);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.8rem;
}
.share-clock {
  position: absolute;
  bottom: 14px; left: 14px;
  display: flex; gap: 10px;
  background: rgba(10,10,10,0.55);
  padding: 8px 10px;
  border-radius: 999px;
  color: #fff;
}

.entry-content { font-size: 1.05rem; color: #262626; }
.entry-content p { margin-bottom: 16px; }
.entry-content h2, .entry-content h3 { margin-top: 26px; margin-bottom: 10px; font-weight: 800; }
.entry-content blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 16px;
  color: #4b5563;
  font-style: italic;
  margin: 20px 0;
}

.related-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 24px 0;
}
.related-tags-label { font-weight: 800; color: var(--muted); font-size: 0.85rem; text-transform: uppercase; }
.tag-chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}
.tag-chip:hover { background: var(--dark); color: #fff; }

.author-box {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 24px 0;
  padding: 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.author-box p { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }

.recommended-section { margin-top: 40px; margin-bottom: 0; }

/* ---------- Comments ---------- */
.comments-area {
  margin-top: 28px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 8px;
}
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment { padding: 14px 0; border-bottom: 1px solid var(--border); }
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  font-family: inherit;
}
.comment-form input[type="submit"] {
  width: auto;
  background: var(--dark);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
}

/* ---------- Archive / search ---------- */
.archive-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
}
.archive-layout .watch-grid-3 { grid-column: 1; }
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.sticky-sidebar { position: sticky; top: 96px; }
.sidebar-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.sidebar-card h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.sidebar-card ul { list-style: none; padding: 0; margin: 0; }
.sidebar-card li { padding: 9px 0; border-bottom: 1px solid var(--border); }
.sidebar-card li:last-child { border-bottom: none; }

.pagination { display: flex; gap: 10px; margin-top: 22px; }
.pagination a,
.pagination span {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
}
.pagination .current { background: var(--dark); color: #fff; border-color: var(--dark); }

/* ---------- Static page / 404 ----------
   Same rule as single posts: the page shell is full width (matches the
   homepage container), only the text itself is capped for readability. */
.page-content-wrap { width: 100%; }
.page-content-wrap .single-title,
.page-content-wrap .entry-content { max-width: 900px; margin-left: auto; margin-right: auto; }
.error-404-wrap {
  max-width: 560px;
  margin: 60px auto;
  text-align: center;
}
.error-404-wrap p { color: var(--muted); margin: 14px 0 22px; }
.error-actions { display: flex; gap: 12px; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: #d1d5db;
  padding: 36px 0 26px;
  margin-top: 0;
}
.newsletter-response {
  min-height: 1.2em;
  margin: 10px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
}
.newsletter-response.is-success { color: #86efac; }
.newsletter-response.is-error { color: #fca5a5; }
.newsletter {
  margin: 0 0 32px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #1a1a1a, #000);
  border: 1px solid #2a2a2a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.newsletter h3 { margin: 0 0 4px; color: #fff; font-size: 1.2rem; }
.newsletter p { margin: 0; color: #9ca3af; }
.newsletter form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter input {
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  min-width: 220px;
}
.newsletter button {
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  cursor: pointer;
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid #262626;
  margin-bottom: 20px;
}
.footer-brand .brand-word { color: #fff; }
.footer-brand .custom-logo-link img { filter: brightness(1); }

.footer-links { flex: 0 0 auto; }
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-weight: 600;
}
.footer-menu a { color: #d1d5db; }
.footer-menu a:hover { color: #fff; }

.footer-socials { flex: 0 0 auto; }
.footer-socials a { color: #fff; }

.footer-widgets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.footer-widgets .widget h3 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-widgets .widget { color: #9ca3af; }
.footer-widgets .widget a { color: #9ca3af; }

.footer-bottom {
  padding-top: 18px;
  border-top: 1px solid #262626;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* ---------- Membership / Subscribe page ---------- */
.membership-page { width: 100%; padding-bottom: 20px; }

.membership-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
  margin-bottom: 32px;
}
.membership-topbar .back-link { color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.membership-topbar .back-link:hover { color: var(--text); }
.membership-topbar-spacer { width: 120px; }
.membership-logo .brand-word { font-size: 1.4rem; }

.membership-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}
.membership-intro-copy h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900;
  margin: 0 0 16px;
}
.membership-subhead { font-size: 1.1rem; font-weight: 800; margin: 24px 0 10px; }
.membership-benefits { list-style: disc; padding-left: 20px; color: #262626; display: flex; flex-direction: column; gap: 8px; }
.membership-intro-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark);
  aspect-ratio: 16/10.5;
}
.membership-intro-media img { width: 100%; height: 100%; object-fit: cover; }

.membership-step-title { font-size: 1.3rem; font-weight: 900; text-align: center; margin: 0 0 6px; }
.membership-step-note { text-align: center; color: var(--muted); margin: 0 0 24px; }

.membership-plans { margin-bottom: 48px; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  background: var(--surface);
}
.plan-card-highlight { border: 2px solid var(--text); background: var(--surface-2); }
.plan-card h4 { margin: 0 0 14px; font-size: 1.05rem; }
.plan-old-price { color: var(--muted); text-decoration: line-through; font-size: 0.95rem; }
.plan-price { font-size: 1.7rem; font-weight: 900; margin: 2px 0 14px; }
.plan-feature { display: inline-flex; align-items: center; gap: 8px; color: #2563eb; font-weight: 700; font-size: 0.92rem; margin-bottom: 18px; }
.plan-dot { width: 9px; height: 9px; border-radius: 50%; background: #2563eb; display: inline-block; }
.plan-btn { width: 100%; }

.membership-contact { margin-bottom: 12px; }
.contact-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}
.contact-item { display: inline-flex; align-items: center; gap: 8px; color: #475569; font-weight: 600; }
.contact-item-muted { color: var(--muted); font-weight: 400; }

@media (max-width: 900px) {
  .membership-intro { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .contact-bar { flex-direction: column; align-items: flex-start; }
}

/* ---------- Auth pages (Login / Signup) - standalone minimal layout ---------- */
.auth-black-bar { background: var(--dark); height: 10px; }
.auth-topbar {
  border-bottom: 1px solid var(--border);
}
.auth-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.auth-topbar .back-link { color: var(--muted); font-weight: 500; font-size: 0.95rem; flex: 1; }
.auth-topbar .back-link:hover { color: var(--text); }
.auth-logo { flex: 1; display: flex; justify-content: center; }
.auth-logo .brand-word { font-size: 1.8rem; }
.auth-logo .custom-logo-link img { max-height: 40px; width: auto; }
.auth-topbar-spacer { flex: 1; }

.auth-main { padding: 40px 0 80px; }
.auth-page { display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 690px; padding: 0 16px; }

.auth-title { text-align: center; font-size: 1.9rem; font-weight: 800; margin: 0 0 8px; }
.auth-sub { text-align: center; color: var(--muted); margin: 0 0 32px; font-size: 1rem; }

.auth-response { min-height: 1.2em; margin: 0 0 16px; font-size: 0.9rem; font-weight: 600; text-align: center; }
.auth-response.is-success { color: #15803d; }
.auth-response.is-error { color: var(--danger); }

.auth-form { display: flex; flex-direction: column; gap: 20px; }
.auth-form label { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 0.95rem; color: #374151; }
.auth-form input {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 0.98rem;
  font-weight: 400;
  font-family: inherit;
  color: var(--text);
}
.auth-form input:focus { outline: none; border-color: var(--text); background: #fff; }
.auth-form input::placeholder { color: #9ca3af; }

.password-field { position: relative; display: flex; }
.password-field input { flex: 1; padding-right: 50px; }
.password-toggle {
  position: absolute;
  top: 50%; right: 14px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  padding: 4px;
}
.password-toggle:hover { color: var(--text); }

.otp-hint { text-align: center; color: var(--muted); margin: -4px 0 4px; }
.otp-hint strong { color: var(--text); }

.auth-form-links { display: flex; justify-content: flex-end; margin-top: -8px; }
.auth-form-links a { color: #2563eb; font-weight: 600; font-size: 0.9rem; }
.auth-form-links a:hover { text-decoration: underline; }

.auth-submit {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 16px 20px;
  background: var(--dark);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.auth-submit:hover { opacity: 0.88; }
.auth-submit:disabled { background: #d1d5db; cursor: not-allowed; opacity: 1; }
.auth-submit-outline { background: transparent; color: var(--dark); border: 2px solid var(--border); }
.auth-submit-outline:hover { background: var(--surface-2); opacity: 1; }

.auth-alt { text-align: center; margin: 28px 0 0; font-size: 0.95rem; color: var(--muted); }
.auth-alt a { font-weight: 700; color: #2563eb; }
.auth-alt a:hover { text-decoration: underline; }

/* ---------- My Account page ---------- */
.account-page { width: 100%; max-width: 900px; margin: 0 auto; padding: 0 16px; }
.account-title { text-align: center; font-size: 1.9rem; font-weight: 800; margin: 0 0 8px; }
.account-subtitle { text-align: center; color: var(--muted); margin: 0 0 32px; font-size: 1rem; }

.account-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.account-sidebar { display: flex; flex-direction: column; padding: 18px; gap: 6px; border-right: 1px solid var(--border); }
.account-tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
}
.account-tab-btn:hover { background: var(--surface-2); }
.account-tab-btn.is-active { background: var(--dark); color: #fff; }
.account-logout { color: var(--danger); margin-top: 8px; }
.account-logout:hover { background: rgba(225, 29, 46, 0.08); }

.account-panels { padding: 28px 32px; }
.account-panel { display: none; }
.account-panel.is-active { display: block; }
.account-panel h2 { margin: 0 0 18px; font-size: 1.2rem; font-weight: 800; }
.account-password-heading { margin-top: 32px; }

.account-form { display: flex; flex-direction: column; gap: 18px; }
.account-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.account-form label { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 0.9rem; color: #374151; }
.account-form input {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.95rem;
  background: var(--surface-2);
}
.account-form input:focus { outline: none; border-color: var(--text); background: #fff; }
.account-form input:disabled { color: var(--muted); cursor: not-allowed; }
.account-form .password-field input { padding-right: 50px; }
.account-update-btn { align-self: flex-start; padding: 12px 26px; }

.account-sub-desc { color: var(--muted); margin: 0 0 14px; }
.account-sub-status { font-size: 0.95rem; }
.account-sub-status a { font-weight: 700; color: #2563eb; }
.account-sub-status a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .account-card { grid-template-columns: 1fr; }
  .account-sidebar { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .account-panels { padding: 22px 18px; }
  .account-form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .auth-topbar-inner { padding: 16px 0; }
  .auth-topbar .back-link { font-size: 0; }
  .auth-topbar .back-link::before { content: "\2190"; font-size: 1.1rem; }
  .auth-card { padding: 0 12px; }
  .auth-title { font-size: 1.6rem; }
}

/* ---------- Dark mode kept for future use, opt-in only via body class ---------- */
body.dark-mode { background: #0a0a0a; color: #f5f5f5; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .archive-layout { grid-template-columns: 1fr; }
  .carousel-track .watch-card { flex: 0 0 calc((100% - 18px) / 2); }
}

@media (max-width: 900px) {
  .spotlight-grid { grid-template-columns: 1fr; }
  .spotlight-alt .spotlight-copy,
  .spotlight-alt .spotlight-media { order: 0; }
  .watch-grid-3 { grid-template-columns: 1fr 1fr; }
  .carousel-track .watch-card { flex: 0 0 calc((100% - 18px) / 2); }
  .footer-main { flex-direction: column; gap: 18px; }

  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: none;
    justify-content: flex-start;
  }
  .main-nav.open { display: flex; }
  .main-nav .menu { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; padding: 12px 16px 18px; }
  .main-nav .menu a { display: block; width: 100%; padding: 10px 0; }
  .menu-toggle { display: flex; }
  .btn-outline { display: none; }
}

@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; }
  .watch-grid-3 { grid-template-columns: 1fr; }
  .carousel-track .watch-card { flex: 0 0 85%; }
  .newsletter { flex-direction: column; align-items: flex-start; }
}
