/* =========================
   RESET
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #0c2b3a;
  color: #ffffff;
}

/* =========================
   APP WRAPPER
========================= */
.app {
  max-width: 430px;
  margin: 0 auto;
  background: #0c2b3a;
}

/* =========================
   HEADER
========================= */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 3px solid #c6e34c;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo {
  height: 26px;
}

.sponsored {
  font-size: 12px;
  opacity: 0.7;
}

.sponsor-logo {
  height: 18px;
}

.top-right {
  display: flex;
  gap: 14px;
}

.icon-btn {
  background: none;
  border: none;
  padding: 0;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
  stroke: white;
  fill: none;
  stroke-width: 2;
}

/* =========================
   HERO
========================= */
.hero-section {
  padding: 16px;
}

.hero-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
}

.hero-card img {
  width: 100%;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.15));
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-overlay h1 {
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.highlight {
  color: #c6e34c;
  font-weight: 600;
  margin-bottom: 6px;
}

.meta {
  font-size: 12px;
  opacity: 0.8;
}

/* =========================
   CAROUSEL DOTS
========================= */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.dot {
  width: 8px;
  height: 8px;
  background: #5c7683;
  border-radius: 50%;
}

.dot.active {
  width: 20px;
  border-radius: 10px;
  background: #ffffff;
}

/* =========================
   SECTION
========================= */
.section {
  padding: 24px 16px 32px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 20px;
}

.section-header a {
  color: #c6e34c;
  font-size: 14px;
  text-decoration: none;
}

/* =========================
   POSTERS
========================= */
.card-row {
  display: flex;
  gap: 14px;
}

.poster {
  position: relative;
  flex: 1;
  border-radius: 14px;
  overflow: hidden;
}

.poster img {
  width: 100%;
  display: block;
}

.tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
}

.tag.green {
  background: #c6e34c;
  color: #000;
}

.tag.yellow {
  background: #e4d44c;
  color: #000;
}


/* =====================================================
   LATEST STORIES — ITVX STYLE BLOCK
   Append-only, self-contained
===================================================== */

.latest-stories {
  padding: 16px;
  background: #0c2b3a;
  color: #ffffff;
}

/* ---------- Header ---------- */
.latest-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.latest-logo {
  height: 22px;
  width: auto;
}

.latest-header h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* ---------- Featured Story ---------- */
.latest-feature {
  border-radius: 14px;
  overflow: hidden;
  background: #0f3446;
  margin-bottom: 16px;
}

.feature-media {
  position: relative;
}

.feature-media img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.feature-meta {
  padding: 12px;
}

.feature-tag {
  display: inline-block;
  background: #e10600;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.feature-meta h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-meta p {
  font-size: 14px;
  line-height: 1.35;
  opacity: 0.95;
}

/* ---------- Play Badge ---------- */
.play-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  background: rgba(0, 150, 150, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-badge svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
  margin-left: 2px;
}

.play-badge.small {
  width: 34px;
  height: 34px;
}

.play-badge.small svg {
  width: 14px;
  height: 14px;
}

/* ---------- Story List ---------- */
.latest-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.latest-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.latest-item .thumb {
  position: relative;
  flex-shrink: 0;
}

.latest-item img {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.latest-item p {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
  color: #ffffff;
}

/* ---------- Hover Discipline ---------- */
.latest-item:hover p {
  text-decoration: underline;
}

.latest-feature:hover {
  filter: brightness(1.05);
}


/* =====================================================
   APPLE NEWS — PRE FOOTER FEATURE
   Pixel-disciplined editorial block
===================================================== */

.apple-news-block {
  background: linear-gradient(
    180deg,
    #2b2e33 0%,
    #1e2126 60%,
    #1a1c1f 100%
  );
  padding: 40px 18px 48px;
  color: #ffffff;
}

/* ---------- Header ---------- */

.apple-news-header {
  max-width: 520px;
}

.apple-news-brand {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.7;
  display: inline-block;
  margin-bottom: 8px;
}

.apple-news-header h1 {
  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 10px;
}

.apple-news-sub {
  font-size: 16px;
  opacity: 0.75;
}

/* ---------- Divider ---------- */

.apple-news-divider {
  height: 2px;
  background: rgba(255,255,255,0.35);
  margin: 28px 0 22px;
}

/* ---------- Kicker ---------- */

.apple-news-kicker {
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 18px;
}

/* ---------- Feature Card ---------- */

.apple-news-card {
  background: #2a2d32;
  border-radius: 6px;
  overflow: hidden;
}

.apple-news-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.apple-news-content {
  padding: 22px 18px 26px;
}

.apple-news-content h2 {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 10px;
}

.apple-news-desc {
  font-size: 16px;
  opacity: 0.75;
  margin-bottom: 14px;
}

.apple-news-source {
  font-size: 14px;
  opacity: 0.6;
}



/* =====================================================
   END-OF-PAGE SPACING
   Used before final section + footer
===================================================== */

.page-end-space {
  height: 40px;
  background: transparent;
}

/* =====================================================
   FINAL CONTENT SECTION WRAPPER
===================================================== */

.last-section {
  padding: 24px 16px 32px;
  background: #111418;
  color: #ffffff;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* =====================================================
   FOOTER
   Apple News–inspired, trust-heavy
===================================================== */

.site-footer {
  background: #1a1c1f;
  color: rgba(255,255,255,0.85);
  padding: 28px 16px 36px;
  font-size: 14px;
}

.site-footer .footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 24px 0;
}

/* ---------- Footer Sections ---------- */

.footer-block {
  margin-bottom: 28px;
}

.footer-block h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #ffffff;
}

/* ---------- Social Icons ---------- */

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
  opacity: 0.9;
}

/* ---------- Payment Icons ---------- */

.footer-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-payments img {
  height: 26px;
  width: auto;
  border-radius: 4px;
  background: #ffffff;
  padding: 2px 4px;
}

/* ---------- Trust Text ---------- */

.footer-note {
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.8;
}

/* ---------- Certification ---------- */

.footer-cert {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-cert img {
  height: 48px;
  width: auto;
}

/* ---------- Legal ---------- */

.footer-legal {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.75;
}

/* ---------- Back to Top ---------- */

.footer-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.footer-top svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
  opacity: 0.9;
}


/* ===============================
   RESPONSIVE CLEANUP
================================ */

img {
  width: 100%;
  display: block;
}

.card-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.poster {
  flex: 0 0 160px;
  scroll-snap-align: start;
}

.latest-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.latest-item {
  display: flex;
  gap: 14px;
  align-items: center;
}

.latest-item .thumb {
  width: 120px;
  flex-shrink: 0;
}

.latest-feature {
  margin-bottom: 24px;
}

.latest-feature img {
  border-radius: 12px;
}

@media (min-width: 768px) {

  .card-row {
    overflow: visible;
  }

  .poster {
    flex: 1;
  }

  .latest-item {
    gap: 20px;
  }

  .latest-item .thumb {
    width: 180px;
  }

}


/* =========================
   PREMIUM HERO CAROUSEL
========================== */

.hero-section {
  position: relative;
  height: 75vh;
  min-height: 420px;
  max-height: 620px;
  overflow: hidden;
  border-radius: 28px;
  margin: 16px;
}

.hero-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  cursor: pointer;
}

.hero-card.active {
  opacity: 1;
  z-index: 2;
}

/* Image */
.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 6s ease;
}

.hero-card.active img {
  transform: scale(1);
}

/* Dark gradient for readability */
.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75) 10%,
    rgba(0,0,0,0.45) 40%,
    rgba(0,0,0,0.1) 70%
  );
}

/* Text overlay */
.hero-overlay {
  position: absolute;
  bottom: 40px;
  left: 28px;
  right: 28px;
  color: #fff;
  z-index: 3;
}

/* Category */
.highlight {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #b7ff5c;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Headline */
.hero-overlay h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

/* Meta */
.meta {
  font-size: 13px;
  opacity: 0.85;
  letter-spacing: 0.5px;
}

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 4;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: all 0.3s ease;
  cursor: pointer;
}

.dot.active {
  width: 18px;
  border-radius: 10px;
  background: #fff;
}



/* =========================
   DRAWER SYSTEM
========================== */

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 998;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: linear-gradient(180deg, #0e2f36, #0b242a);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 22px;
  box-shadow: -10px 0 40px rgba(0,0,0,0.4);
}

.menu-drawer.active {
  transform: translateX(0);
}

/* HEADER */
.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-logo {
  height: 32px;
}

.menu-close {
  background: none;
  border: none;
  font-size: 22px;
  color: #fff;
  cursor: pointer;
}

/* SEARCH */
.menu-search {
  margin: 25px 0;
  display: flex;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
}

.menu-search input {
  flex: 1;
  border: none;
  padding: 12px;
  background: transparent;
  color: #fff;
  outline: none;
}

.menu-search button {
  background: #9BE000;
  border: none;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-search svg {
  width: 18px;
  height: 18px;
  stroke: #000;
  fill: none;
  stroke-width: 2;
}

/* LINKS */
.menu-links {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.menu-links li {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.menu-links a {
  display: block;
  padding: 16px 0;
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  transition: padding-left 0.2s ease;
}

.menu-links a:hover {
  padding-left: 6px;
}

/* FOOTER */
.menu-footer {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 13px;
}

.menu-footer p {
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
/* =========================
   EDITOR PICK SECTION
========================== */

.editor-pick-section {
  padding: 60px 20px;
  background: linear-gradient(180deg, #071c20, #0e2f36);
  color: #fff;
}

.editor-header {
  max-width: 700px;
  margin-bottom: 40px;
}

.editor-label {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9BE000;
  font-weight: 600;
}

.editor-title {
  font-size: 28px;
  margin: 8px 0 6px;
  font-weight: 700;
}

.editor-sub {
  font-size: 15px;
  opacity: 0.75;
}

.editor-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: rgba(255,255,255,0.04);
  border-radius: 18px;
  padding: 24px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.editor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.editor-cover img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
}

.editor-category {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9BE000;
  font-weight: 600;
}

.editor-content h3 {
  font-size: 22px;
  margin: 10px 0;
  line-height: 1.3;
}

.editor-desc {
  font-size: 15px;
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 16px;
}

.editor-meta {
  font-size: 13px;
  opacity: 0.6;
  margin-bottom: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.editor-btn {
  background: #9BE000;
  color: #000;
  border: none;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.editor-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* Desktop layout */
@media(min-width: 768px) {

  .editor-card {
    flex-direction: row;
    align-items: center;
  }

  .editor-cover {
    flex: 0 0 45%;
  }

  .editor-content {
    flex: 1;
  }

}

/* =========================
   PREMIUM FOOTER
========================== */

.site-footer {
  background: radial-gradient(circle at top left, #0e2f36, #081c20 70%);
  padding: 80px 20px 40px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
}

.footer-inner {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 60px;
}

.footer-logo {
  width: auto;
  height: 40px;   /* You can adjust 36–48px if needed */
  display: block;
  object-fit: contain;
}

.footer-tagline {
  opacity: 0.6;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.2s ease;
}

.footer-social svg {
  width: 16px;
  fill: #fff;
}

.footer-social a:hover {
  background: #9BE000;
  transform: translateY(-3px);
}

.footer-column h4 {
  margin-bottom: 18px;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9BE000;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
  opacity: 0.7;
}

.footer-column ul li a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.footer-column ul li a:hover {
  opacity: 1;
}

.meta-list li {
  opacity: 0.75;
}

.footer-bottom {
  margin-top: 70px;
  padding-top: 25px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  opacity: 0.6;
  font-size: 13px;
}





.feature-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.feature-link:visited,
.feature-link:hover,
.feature-link:active {
  text-decoration: none;
  color: inherit;
}