/* ============================================================
   FILMS PAGE
   ============================================================ */

/* featured production */
.prod__top { display: grid; grid-template-columns: 1fr; gap: 40px; }
.prod__player { position: relative; z-index: 5; aspect-ratio: 16/9; border: 1px solid var(--line); background:#000; box-shadow: 0 50px 130px -50px rgba(212,175,55,0.3); isolation: isolate; }
.prod__player iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }

.prod__head { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(30px,5vw,70px); align-items: end; margin-bottom: 40px; }
@media (max-width: 860px){ .prod__head { grid-template-columns: 1fr; gap: 20px; align-items: start; } }
.prod__badge { display:inline-flex; align-items:center; gap:10px; font-family: var(--heading); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.prod__badge .pulse { width:8px; height:8px; border-radius:50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(212,175,55,0.7); animation: pulse 2.2s infinite; }
@keyframes pulse { 70%{ box-shadow: 0 0 0 9px rgba(212,175,55,0); } 100%{ box-shadow:0 0 0 0 rgba(212,175,55,0);} }
.prod__title { color: var(--cream); }
.prod__lede { color: var(--text); font-size: 17px; }

/* specs */
.specs { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); margin-top: 48px; }
@media (max-width: 860px){ .specs { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px){ .specs { grid-template-columns: 1fr; } }
.spec { padding: 26px 24px; border-right: 1px solid var(--line-soft); }
.spec:last-child { border-right: 0; }
.spec__k { font-family: var(--heading); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); }
.spec__v { font-family: var(--display); font-size: 24px; color: var(--gold-light); margin-top: 8px; letter-spacing: 0.02em; }
@media (max-width: 860px){ .spec { border-bottom: 1px solid var(--line-soft); } }

/* vision + topics */
.vision__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px,6vw,90px); align-items: start; }
@media (max-width: 880px){ .vision__grid { grid-template-columns: 1fr; gap: 30px; } }
.topics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.topic { font-family: var(--heading); font-size: 13px; letter-spacing: 0.04em; color: var(--text); padding: 11px 18px; border: 1px solid var(--line); transition: all .35s var(--ease); }
.topic:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-2px); }

/* OST block */
.ost { background: linear-gradient(180deg, rgba(20,16,8,0.0), rgba(20,16,8,0.4)); }
.ost__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(34px,5vw,70px); align-items: center; }
@media (max-width: 880px){ .ost__grid { grid-template-columns: 1fr; } }
.ost__player { position: relative; z-index: 5; aspect-ratio: 16/9; border: 1px solid var(--line); background:#000; isolation: isolate; }
.ost__player iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.ost__eq { display: flex; align-items: flex-end; gap: 5px; height: 30px; margin-bottom: 22px; }
.ost__eq span { width: 4px; background: var(--gold-grad); animation: eq 1s ease-in-out infinite; }
.ost__eq span:nth-child(2){ animation-delay:.2s } .ost__eq span:nth-child(3){ animation-delay:.4s } .ost__eq span:nth-child(4){ animation-delay:.1s } .ost__eq span:nth-child(5){ animation-delay:.3s }
@keyframes eq { 0%,100%{ height: 8px } 50%{ height: 30px } }

/* categories */
.cats__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
@media (max-width: 820px){ .cats__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .cats__grid { grid-template-columns: 1fr; } }
.cat { position: relative; padding: 34px 28px; border: 1px solid var(--line); overflow: hidden; min-height: 168px; display:flex; flex-direction:column; justify-content:space-between; transition: transform .4s var(--ease); }
.cat::after { content:""; position:absolute; inset:0; background: radial-gradient(120% 120% at 100% 0%, rgba(212,175,55,0.12), transparent 55%); opacity:0; transition: opacity .5s; }
.cat:hover { transform: translateY(-4px); border-color: rgba(212,175,55,0.4); }
.cat:hover::after { opacity:1; }
.cat__no { font-family: var(--display); font-size: 20px; color: var(--gold); }
.cat__name { font-family: var(--display); font-size: clamp(24px,3vw,34px); color: var(--cream); }
.cat__state { font-family: var(--heading); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); }

/* ============================================================
   INSTAGRAM DASHBOARD — "From The Set"
   ============================================================ */
.ig__head { display:flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: 36px; }

.ig-app {
  display: grid; grid-template-columns: 300px 1fr; gap: 0;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20,16,8,0.5), rgba(10,9,7,0.6));
  box-shadow: 0 50px 130px -50px rgba(0,0,0,0.9);
  overflow: hidden;
}
@media (max-width: 880px){ .ig-app { grid-template-columns: 1fr; } }

/* ---- left sidebar ---- */
.ig-side { padding: 30px 26px; border-right: 1px solid var(--line); position: sticky; top: var(--nav-h); align-self: start; }
@media (max-width: 880px){ .ig-side { position: static; border-right: 0; border-bottom: 1px solid var(--line); } }
.ig-brandrow { display:flex; align-items:center; gap:11px; padding-bottom: 24px; margin-bottom: 26px; border-bottom: 1px solid var(--line-soft); }
.ig-brandrow svg { width: 26px; height: 26px; }
.ig-brandrow span { font-family: var(--display); font-size: 22px; letter-spacing: 0.06em; color: var(--cream); }

.ig-profile { text-align: center; }
.ig-avatar { width: 104px; height: 104px; margin: 0 auto 18px; border-radius: 50%; padding: 3px;
  background: conic-gradient(from 210deg, #f9ce5a, #d4af37, #b8902e, #f4e1a0, #d4af37); display:grid; place-items:center;
  box-shadow: 0 0 30px -6px rgba(212,175,55,0.6); }
.ig-avatar div { width: 100%; height: 100%; border-radius: 50%; background: #0b0a08; padding: 7px; display:grid; place-items:center; }
.ig-avatar img { width: 100%; height: 100%; object-fit: contain; }
.ig-name { font-family: var(--display); font-size: 26px; color: var(--cream); letter-spacing: 0.03em; }
.ig-handle { display:inline-block; font-family: var(--heading); font-size: 13px; color: var(--text-dim); margin-top: 4px; transition: color .3s; }
.ig-handle:hover { color: var(--gold-light); }
.ig-stats { display:flex; justify-content: space-between; gap: 8px; margin: 22px 0; padding: 16px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.ig-stats div { flex:1; }
.ig-stats b { display:block; font-family: var(--display); font-size: 22px; color: var(--gold-light); line-height: 1; }
.ig-stats span { font-family: var(--heading); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); margin-top: 6px; display:block; }
.ig-bio { font-size: 13.5px; color: var(--text-dim); line-height: 1.55; margin-bottom: 20px; }
.ig-follow { display:flex; align-items:center; justify-content:center; gap: 9px; width:100%; padding: 13px;
  background: linear-gradient(95deg, #f9ce5a, #d4af37 60%, #b8902e); color:#1a1304;
  font-family: var(--heading); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.ig-follow:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(212,175,55,0.7); }
.ig-follow svg { width: 16px; height: 16px; }

.ig-nav { display:flex; flex-direction: column; gap: 4px; margin-top: 28px; }
.ig-navitem { display:flex; align-items:center; gap: 14px; padding: 13px 14px; background:none; border:0; width:100%; text-align:left;
  font-family: var(--heading); font-size: 14px; font-weight: 500; letter-spacing: 0.03em; color: var(--text-dim); border-radius: 4px;
  transition: all .3s var(--ease); position: relative; }
.ig-navitem svg { width: 21px; height: 21px; stroke: currentColor; fill:none; flex:none; }
.ig-navitem:hover { color: var(--cream); background: rgba(212,175,55,0.06); }
.ig-navitem.active { color: var(--gold-light); background: rgba(212,175,55,0.10); }
.ig-navitem.active::before { content:""; position:absolute; left:0; top:18%; bottom:18%; width:3px; background: var(--gold-grad); border-radius:3px; }
.ig-navitem .ct { margin-left:auto; font-family: var(--display); font-size: 14px; color: var(--text-faint); }

/* ---- right feed ---- */
.ig-feed { padding: 26px clamp(18px,3vw,34px) 34px; min-width: 0; }
.ig-feed__bar { display:flex; align-items:center; justify-content: space-between; padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--line-soft); }
.ig-feed__bar h3 { font-family: var(--display); font-size: 28px; color: var(--cream); }
.ig-feed__bar .cnt { font-family: var(--heading); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); }
.ig-feed__grid { column-count: 2; column-gap: 20px; }
@media (max-width: 680px){ .ig-feed__grid { column-count: 1; } }

.ig-post { break-inside: avoid; width: 100%; margin: 0 0 20px; display: inline-block;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; position: relative;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease); }
.ig-post.hide { display: none; }
.ig-post:hover { transform: translateY(-4px); border-color: rgba(212,175,55,0.5);
  box-shadow: 0 30px 60px -28px rgba(0,0,0,0.9), 0 0 34px -12px rgba(212,175,55,0.35); }
/* clickable overlay over the embed -> opens popup */
.ig-post__open { position:absolute; inset:0; z-index:6; background:transparent; border:0; cursor:pointer; }
.ig-post__open::after { content:"⤢"; position:absolute; top:12px; right:12px; width:34px; height:34px; display:grid; place-items:center;
  font-size: 16px; color:#fff; background: rgba(10,9,7,0.7); border:1px solid rgba(255,255,255,0.25); border-radius:50%;
  opacity:0; transform: scale(.8); transition: all .35s var(--ease); }
.ig-post:hover .ig-post__open::after { opacity:1; transform: scale(1); }
.ig-post__cat { position:absolute; top:12px; left:12px; z-index:7; pointer-events:none;
  font-family: var(--heading); font-size: 9.5px; font-weight:700; letter-spacing: 0.16em; text-transform: uppercase; color:#1a1304;
  background: linear-gradient(95deg, #f9ce5a, #d4af37); padding: 6px 11px; border-radius: 2px; box-shadow: 0 6px 16px -6px rgba(0,0,0,0.6); }

/* normalize the raw IG embed */
.instagram-media { background:#fff !important; border:0 !important; border-radius:0 !important; box-shadow:none !important; margin:0 !important; min-width:0 !important; max-width:100% !important; width:100% !important; padding:0 !important; }

/* ---- popup modal ---- */
.ig-modal { position: fixed; inset: 0; z-index: 5000; display: none; align-items: center; justify-content: center; padding: 24px; }
.ig-modal.open { display: flex; }
.ig-modal__backdrop { position:absolute; inset:0; background: rgba(4,3,2,0.86); backdrop-filter: blur(8px); animation: igFade .35s ease; }
@keyframes igFade { from { opacity:0; } }
.ig-modal__card { position: relative; z-index: 2; width: min(420px, 94vw); max-height: 90vh; overflow:auto;
  animation: igPop .45s var(--ease); }
@keyframes igPop { from { opacity:0; transform: translateY(20px) scale(.97); } }
.ig-modal__embed { background:#fff; border-radius: 16px; overflow: hidden; }
.ig-modal__embed .instagram-media { min-width: 0 !important; }
.ig-modal__close { position: absolute; top: -52px; right: 0; z-index:3; width: 42px; height: 42px; border-radius:50%;
  background: rgba(20,16,8,0.8); border: 1px solid var(--line); color: var(--gold-light); font-size: 26px; line-height: 1;
  display:grid; place-items:center; transition: all .3s var(--ease); }
.ig-modal__close:hover { background: var(--gold-grad); color:#1a1304; border-color:transparent; transform: rotate(90deg); }
.ig-modal__link { display:block; text-align:center; margin-top: 14px; font-family: var(--heading); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-light); }
.ig-modal__loading { padding: 60px 0; text-align:center; color: var(--text-dim); font-family: var(--heading); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }
