/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Template: astra
Author: Brainstorm Force
Description: Astra child theme with the AFTV editorial homepage implementation.
Version: 1.1.0
Text Domain: astra-child
*/

/* ==========================================================================
   AFTV homepage — Figma frame 130:194 (1360 × 7907)
   All page styles are scoped to .aftv to avoid leaking into WordPress content.
   ========================================================================== */

.page-id-36 {
  & .site-content > .ast-container {
    max-width: none;
    padding: 0;
  }

  & .content-area,
  & .site-main,
  & .entry-content {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  & .entry-header {
    display: none;
  }
}

.aftv {
  --aftv-black: #0a0a0a;
  --aftv-white: #ffffff;
  --aftv-wine: #8f1530;
  --aftv-soft-white: #c4c4c4;
  --aftv-muted: #737373;
  --aftv-dark-muted: #525252;
  --aftv-card: #151515;
  --aftv-shell: 1140px;
  --aftv-gap: 24px;

  display: flex;
  flex-direction: column;
  gap: 80px;
  min-width: 0;
  padding: 48px 0;
  overflow: hidden;
  color: var(--aftv-white);
  background: var(--aftv-black);
  font-family: "Archivo", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;

  &,
  & * {
    box-sizing: border-box;
  }

  & .shell {
    width: min(var(--aftv-shell), calc(100% - 44px));
    margin-inline: auto;
  }

  & h1,
  & h2,
  & h3,
  & p {
    margin: 0;
  }

  & h1,
  & h2,
  & h3 {
    color: inherit !important;
  }

  & a {
    color: inherit !important;
    text-decoration: none !important;
  }

  & img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  & .eye,
  & .tag {
    font: 600 13px/16px "Archivo", Arial, sans-serif;
    letter-spacing: 0.52px;
    text-transform: uppercase;
  }

  & .eye { color: var(--aftv-wine); }
  & .title { font: 500 44px/48px "Newsreader", Georgia, serif; letter-spacing: -0.44px; }
  & .support { color: var(--aftv-soft-white); font: 400 18px/23px "Archivo", Arial, sans-serif; }
  & .meta { color: var(--aftv-soft-white); font: 500 13px/18px "Archivo", Arial, sans-serif; text-transform: uppercase; }
  & .pic { position: relative; overflow: hidden; background: var(--aftv-card); }

  /* Header --------------------------------------------------------------- */
  & .header { height: 162px; }
  & .brandrow { display: flex; justify-content: space-between; align-items: flex-start; height: 112px; }
  & .brand { position: relative; display: flex; align-items: flex-start; width: 520px; height: 112px; padding: 20px 24px; }
  & .brand::after { content: ""; position: absolute; top: 27px; left: 250px; width: 2px; height: 58px; background: var(--aftv-wine); }
  & .mark { width: 208px; font: 600 72px/72px "Newsreader", Georgia, serif; letter-spacing: -1.44px; }
  & .name { width: 240px; margin: 14px 0 0 38px; font: 600 18px/22px "Archivo", Arial, sans-serif; letter-spacing: 0.18px; text-transform: uppercase; }
  & .search { margin-top: 0; font: 600 14px/18px "Archivo", Arial, sans-serif; letter-spacing: 0.14px; }
  & .nav { display: flex; gap: 24px; height: 18px; margin-top: 32px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  & .nav::-webkit-scrollbar { display: none; }
  & .nav a { color: var(--aftv-soft-white); font: 500 13px/18px "Archivo", Arial, sans-serif; }

  /* Opening editorial ---------------------------------------------------- */
  & .hero { height: 917px; }
  & .hero .intro { display: flex; flex-direction: column; gap: 16px; width: 849px; max-width: 100%; height: 224px; margin-bottom: 48px; }
  & .hero h1 { font: 600 68px/72px "Newsreader", Georgia, serif; letter-spacing: -1.02px; }
  & .hero .intro p { color: var(--aftv-soft-white); font: 500 23px/32px "Archivo", Arial, sans-serif; }
  & .spread { display: grid; grid-template-columns: 920fr 440fr; width: 100vw; height: 645px; margin-left: calc((100% - 100vw) / 2); background: var(--aftv-black); }
  & .spread img { object-fit: cover; filter: grayscale(1); }
  & .spread .cap { display: none; }
  & .spreadcopy { display: flex; flex-direction: column; align-items: flex-start; height: 645px; padding: 153.5px 48px 0; background: var(--aftv-wine); }
  & .spreadcopy .eye { color: var(--aftv-white); }
  & .spreadcopy h2 { width: 344px; max-width: 100%; margin-top: 24px; font: 500 44px/48px "Newsreader", Georgia, serif; letter-spacing: -0.44px; }
  & .spreadcopy > p:not(.meta) { width: 344px; max-width: 100%; margin-top: 24px; font: 400 18px/23px "Archivo", Arial, sans-serif; }
  & .spreadcopy .meta { margin-top: 24px; color: var(--aftv-white); }
  & .spreadcopy::after { content: none; }

  /* Shared editorial cards ---------------------------------------------- */
  & .card { min-width: 0; }
  & .card .pic { border-radius: 8px; }
  & .tag { position: relative; display: flex; align-items: center; width: min(267px, 100%); height: 48px; padding: 0 12px 0 25px; color: var(--aftv-white); background: transparent; }
  & .tag::before { content: ""; position: absolute; left: 12px; top: 14px; width: 3px; height: 20px; background: var(--aftv-wine); }
  & .card h3 { margin-top: 8px; font: 500 23px/32px "Archivo", Arial, sans-serif; }
  & .card .meta { margin-top: 8px; }
  & .feature h3 { font: 600 28px/36px "Archivo", Arial, sans-serif; letter-spacing: -0.14px; }
  & .feature .pic { height: 314px; }
  & .reel .pic { height: 474px; }
  & .play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 50%; background: #191919; color: var(--aftv-white); font-size: 16px; line-height: 1; transform: translate(-50%, -50%); }
  & .dur { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; min-width: 170px; height: 32px; padding: 0 10px; border-radius: 16px; background: rgb(10 10 10 / 78%); color: var(--aftv-white); font: 500 13px/18px "Archivo", Arial, sans-serif; text-transform: uppercase; }
  & .watch .play, & .watch .dur, & .reelssec .play, & .reelssec .dur { display: none; }

  /* Watch now ------------------------------------------------------------ */
  & .watch { height: 778px; color: var(--aftv-white); background: var(--aftv-black); }
  & .watchhead { display: flex; justify-content: space-between; align-items: center; height: 56px; margin: 24px 0; }
  & .watchhead h2 { font: 500 44px/44px "Newsreader", Georgia, serif; }
  & .watchhead .support { width: 364px; }
  & .controls { display: flex; gap: 12px; }
  & .controls button { height: 33px; padding: 0 14px; border: 1px solid var(--aftv-white); color: var(--aftv-black); background: var(--aftv-white); font: 600 12px/13px "Archivo", Arial, sans-serif; letter-spacing: 0.48px; text-transform: uppercase; cursor: pointer; }
  & .controls .wpv { width: 94px; }
  & .controls .wnx { width: 62px; }
  & .watchgrid { display: grid; grid-template-columns: 558px minmax(0, 558px); gap: 24px; height: 658px; }
  & .watch .feature, & .partner .feature { height: 452px; }
  & .watch .feature .tag, & .partner .feature .tag { margin-top: 12px; }
  & .watch .feature h3, & .partner .feature h3 { margin-top: 12px; }
  & .watch .feature .meta, & .partner .feature .meta { margin-top: 12px; }
  & .rail { min-width: 0; overflow: visible; }
  & .swiper { width: 100%; }
  & .rail .swiper, & .reelsw, & .continuesw { overflow: visible; }
  & .rail .swiper-slide, & .reelsw .swiper-slide, & .continuesw .swiper-slide { width: 267px; }
  & .watch .reel, & .reelssec .reel, & .partner .reel { height: 658px; }
  & .watch .reel .tag, & .reelssec .reel .tag, & .partner .reel .tag { margin-top: 12px; }
  & .watch .reel h3, & .reelssec .reel h3, & .partner .reel h3 { margin-top: 12px; }
  & .watch .reel .meta, & .reelssec .reel .meta, & .partner .reel .meta { margin-top: 12px; }

  /* Advertisement -------------------------------------------------------- */
  & .adwrap { height: 160px; }
  & .ad { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; height: 160px; border: 1px solid #2a2a2a; color: var(--aftv-white); text-transform: uppercase; }
  & .ad span { font: 600 13px/16px "Archivo", Arial, sans-serif; letter-spacing: 0.52px; }
  & .ad small { color: var(--aftv-muted); font: 500 13px/20px "Archivo", Arial, sans-serif; }

  /* Reels ---------------------------------------------------------------- */
  & .reelssec { height: 786px; }
  & .reelsintro { display: grid; grid-template-columns: 760px 112px 220px; gap: 24px; align-items: start; height: 80px; margin-bottom: 48px; }
  & .reelsintro .support { display: none; }
  & .reelsintro > div:not(.count) { grid-column: 1; }
  & .reelsintro h2 { margin-top: 16px; font: 500 44px/48px "Newsreader", Georgia, serif; letter-spacing: -0.44px; }
  & .count { grid-column: 3; color: var(--aftv-wine); font: 500 44px/48px "Newsreader", Georgia, serif; letter-spacing: -0.44px; text-align: right; }

  /* Image edit ----------------------------------------------------------- */
  & .imageedit { width: 100vw; height: 804px; margin-left: calc((100% - 100vw) / 2); padding-top: 64px; color: var(--aftv-black); background: var(--aftv-white); }
  & .imageedit > .shell { width: min(var(--aftv-shell), calc(100% - 44px)); }
  & .imageedit .intro, & .latest .intro { display: flex; flex-direction: column; gap: 16px; width: 849px; max-width: 100%; height: 119px; margin-bottom: 48px; }
  & .imageedit .support { color: var(--aftv-dark-muted); }
  & .imagerow { display: grid; grid-template-columns: 267px 267px 558px; gap: 24px; height: 500px; }
  & .portrait .pic { height: 334px; }
  & .square .pic { height: 267px; }
  & .imageedit .feature .pic { height: 314px; }
  & .imageedit .tag, & .latest .tag, & .continue .tag { margin-top: 16px; color: currentColor; }
  & .imageedit .meta, & .imageedit .support { color: var(--aftv-dark-muted); }
  & .carousel-count { position: absolute; top: 16px; left: 16px; z-index: 2; display: grid; place-items: center; width: 72px; height: 32px; color: var(--aftv-black); background: var(--aftv-white); font: 600 12px/16px "Archivo", Arial, sans-serif; }
  & .carousel-next { position: absolute; top: 50%; right: 16px; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; color: var(--aftv-black); background: #f2f2f0; font-size: 22px; transform: translateY(-50%); }

  /* Partner program ------------------------------------------------------ */
  & .partner { width: 100vw; height: 971px; margin-left: calc((100% - 100vw) / 2); color: var(--aftv-white); background: var(--aftv-black); }
  & .partner { display: none !important; }
  & .partner > .shell { width: min(var(--aftv-shell), calc(100% - 44px)); }
  & .partner .intro { display: flex; flex-direction: column; gap: 16px; width: 849px; max-width: 100%; height: 183px; margin-bottom: 48px; }
  & .partner-disclosure { position: relative; display: flex; align-items: center; width: 520px; max-width: 100%; height: 48px; padding-left: 25px; color: var(--aftv-white); font: 600 13px/16px "Archivo", Arial, sans-serif; letter-spacing: 0.52px; text-transform: uppercase; }
  & .partner-disclosure::before { content: ""; position: absolute; left: 12px; width: 3px; height: 20px; background: var(--aftv-wine); }
  & .partnerrow { display: grid; grid-template-columns: 558px 267px 267px; gap: 24px; height: 658px; }
  & .native { height: 458px; border: 1px solid #2d2d2d; }
  & .native-media { display: grid; place-items: center; height: 334px; color: var(--aftv-muted); background: var(--aftv-card); font: 500 13px/16px "Archivo", Arial, sans-serif; text-transform: uppercase; }
  & .native small { position: relative; display: flex; align-items: center; height: 44px; padding-left: 27px; font: 600 13px/16px "Archivo", Arial, sans-serif; letter-spacing: 0.52px; text-transform: uppercase; }
  & .native small::before { content: ""; position: absolute; left: 16px; width: 3px; height: 16px; background: var(--aftv-wine); }
  & .native h3 { padding: 0; font: 500 13px/20px "Archivo", Arial, sans-serif; }

  /* Latest intelligence -------------------------------------------------- */
  & .latest { height: 1243px; }
  & .latestgrid { display: grid; grid-template-columns: repeat(4, 267px); grid-auto-rows: 514px; gap: 48px 24px; height: 1076px; }
  & .latestgrid .feature { grid-column: span 2; }
  & .latestgrid .card:not(.feature) .pic, & .continue .pic { height: 334px; }

  /* Continue exploring --------------------------------------------------- */
  & .continue { height: 722px; padding-top: 64px; }
  & .continue h2 { height: 48px; margin-bottom: 32px; font: 500 48px/48px "Newsreader", Georgia, serif; }
  & .continue .continuesw { height: 514px; }

  /* Footer --------------------------------------------------------------- */
  & .footer { width: 100vw; height: 548px; margin-left: calc((100% - 100vw) / 2); border-top: 1px solid #242424; color: var(--aftv-white); background: var(--aftv-black); }
  & .footer > .shell { width: min(var(--aftv-shell), calc(100% - 44px)); padding-top: 64px; }
  & .footertop { display: block; }
  & .footerbrand { height: 152px; }
  & .footmark { width: 216px; height: 96px; padding: 16px 17px; font: 600 64px/64px "Newsreader", Georgia, serif; letter-spacing: -1.28px; }
  & .foottag { margin-top: 24px; font: 500 23px/32px "Archivo", Arial, sans-serif; }
  & .footlinks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; height: 154px; margin-top: 48px; }
  & .footlinks h3 { font: 600 13px/18px "Archivo", Arial, sans-serif; text-transform: uppercase; }
  & .footlinks a { display: block; margin-top: 16px; color: var(--aftv-soft-white); font: 500 13px/18px "Archivo", Arial, sans-serif; }
  & .disc { height: 36px; margin-top: 48px; color: var(--aftv-soft-white); font: 500 13px/18px "Archivo", Arial, sans-serif; }
}

@media (max-width: 900px) {
  .aftv {
    gap: 64px; padding: 32px 0;
    & .shell, & .imageedit > .shell, & .partner > .shell, & .footer > .shell { width: calc(100% - 32px); }
    & .header, & .hero, & .watch, & .adwrap, & .reelssec, & .imageedit, & .partner, & .latest, & .continue, & .footer { height: auto; }
    & .brand { width: auto; height: auto; padding: 0; }
    & .brandrow { height: auto; }
    & .brand::after { top: 0; left: 186px; height: 50px; }
    & .mark { width: 164px; font-size: 54px; line-height: 56px; }
    & .name { width: auto; margin: 7px 0 0 38px; font-size: 14px; line-height: 18px; }
    & .nav { margin-top: 28px; }
    & .hero .intro { height: auto; }
    & .hero h1 { font-size: 52px; line-height: 56px; }
    & .spread { grid-template-columns: 1fr; width: 100%; height: auto; margin-left: 0; }
    & .spread .pic { height: min(68vw, 620px); }
    & .spreadcopy { height: auto; min-height: 360px; padding: 56px 40px; }
    & .watchgrid { grid-template-columns: 1fr; height: auto; }
    & .watch .feature { width: min(558px, 100%); margin-bottom: 24px; }
    & .reelsintro { grid-template-columns: 1fr auto; height: auto; }
    & .reelsintro > div:not(.count) { grid-column: 1; }
    & .count { grid-column: 2; }
    & .imagerow { display: flex; height: auto; overflow-x: auto; padding-bottom: 12px; }
    & .imagerow .card { flex: 0 0 267px; }
    & .imageedit, & .partner, & .footer { padding-block: 56px; }
    & .partnerrow { grid-template-columns: 1fr 1fr; height: auto; }
    & .native { grid-column: 1 / -1; }
    & .latestgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; height: auto; }
    & .continue { padding-top: 0; }
    & .footlinks, & .disc { height: auto; }
  }
}

@media (max-width: 600px) {
  .aftv {
    gap: 48px; padding: 24px 0;
    & .shell, & .imageedit > .shell, & .partner > .shell, & .footer > .shell { width: calc(100% - 28px); }
    & .header { min-height: 98px; }
    & .search, & .name, & .brand::after { display: none; }
    & .mark { width: auto; font-size: 48px; line-height: 50px; }
    & .nav { gap: 18px; margin-top: 24px; }
    & .hero .intro, & .imageedit .intro, & .partner .intro, & .latest .intro { height: auto; margin-bottom: 32px; }
    & .hero h1 { font-size: 44px; line-height: 46px; }
    & .hero .intro p { font-size: 18px; line-height: 25px; }
    & .spread .pic { height: 110vw; }
    & .spreadcopy { min-height: 410px; padding: 48px 28px; }
    & .spreadcopy h2, & .title, & .watchhead h2, & .reelsintro h2 { font-size: 36px; line-height: 40px; }
    & .watchhead { align-items: flex-end; }
    & .controls { gap: 6px; }
    & .controls button { padding-inline: 9px; }
    & .controls .wpv { width: 82px; }
    & .controls .wnx { width: 54px; }
    & .reelsintro { display: block; }
    & .count { margin-top: 16px; text-align: left; }
    & .imageedit, & .partner, & .footer { padding-block: 48px; }
    & .partnerrow, & .latestgrid { display: block; }
    & .partner .card, & .partner .native, & .latestgrid .card { width: 100%; margin-bottom: 40px; }
    & .latestgrid .card .pic { height: min(110vw, 420px); }
    & .continue h2 { height: auto; font-size: 42px; line-height: 46px; }
    & .footertop, & .footerbrand { height: auto; }
    & .footlinks { grid-template-columns: 1fr 1fr; row-gap: 40px; margin-top: 48px; }
  }
}

.aftv {
    & .spreadcopy {
        padding: 20px 48px 20px;
        flex-direction: column;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .page-id-36 .aftv .spreadcopy {
        height: auto !important;
    }
	
	.page-id-36 .aftv .aftv-latest-mobile-swiper {
		margin-top: 40px;
	}
}