/* ============================================================
   FADHEL HASAN PORTFOLIO
   Design tokens are at the top. Change --accent / --grad to recolor.
   Shape rule: media and cards use --r (6px), buttons are full pills.
============================================================ */

/* ── Fonts (self-hosted, no Google dependency) ─────────── */
@font-face { font-family: 'Geist'; src: url('../fonts/geist-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('../fonts/geist-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('../fonts/geist-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('../fonts/geist-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('../fonts/geist-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('../fonts/geist-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Zain Local'; src: url('../fonts/Zain.ttf') format('truetype'); font-display: swap; }

/* ── Tokens ────────────────────────────────────────────── */
:root {
  --bg: #0e0d0c;
  --bg2: #171513;
  --line: rgba(242, 236, 228, .1);
  --text: #f2ece4;
  --soft: rgba(242, 236, 228, .64);
  --faint: rgba(242, 236, 228, .42);
  --accent: #ff6a2b;
  --grad: linear-gradient(100deg, #ff3d2e 0%, #ff6a2b 45%, #ffb03d 100%);
  --ink-on-accent: #1a0d06;
  --r: 6px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 72px;
  --ff-m: 'Geist Mono', ui-monospace, monospace; /* used by the timeline panel */
  /* z-index scale */
  --z-nav: 40; --z-lb: 80; --z-grain: 90;
}

/* ── Base ──────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { background: var(--bg); color: var(--text); font-family: 'Geist', system-ui, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--ink-on-accent); }
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 48px; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px; z-index: 100; }
.skip:focus { top: 12px; }

/* film grain: fixed layer, never on scrolling containers */
body::after { content: ''; position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none; opacity: .07;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ── Buttons ───────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 26px; border-radius: 999px; font-size: 15px; font-weight: 500; white-space: nowrap; transition: transform .3s var(--ease), background-color .3s, border-color .3s, filter .3s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.98); }
.btn-main { background: var(--grad); color: var(--ink-on-accent); }
.btn-main:hover { filter: brightness(1.08); }
.btn-line { border: 1px solid rgba(242, 236, 228, .24); }
.btn-line:hover { border-color: var(--text); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.round { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(242, 236, 228, .24); display: grid; place-items: center; font-size: 18px; transition: border-color .3s, background-color .3s; }
.round:hover { border-color: var(--text); background: rgba(242, 236, 228, .06); }

/* ── Arabic logo ───────────────────────────────────────── */
.logo .ar { font-family: 'Zain Local', sans-serif; font-size: 30px; line-height: .82; display: inline-flex; flex-direction: column; align-items: flex-end; direction: ltr; }
.logo .ar > span { display: block; direction: rtl; }
/* عباس is ~5% narrower than فاضل: stretch it so both words share both edges */
.logo .ar > span:last-child { transform-origin: right center; transform: translateX(.016em) scaleX(1.055); }
.logo:hover { color: var(--accent); }

/* ── Nav ───────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: var(--z-nav); transition: background-color .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(14, 13, 12, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav-in { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.links { display: flex; gap: 34px; font-size: 15px; color: var(--soft); }
.links a { transition: color .25s; }
.links a:hover, .links a.active { color: var(--text); }
.menu-btn { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 6px; padding: 0 10px; }
.menu-btn span { height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { display: grid; gap: 4px; padding: 8px 16px 20px; background: rgba(14, 13, 12, .96); border-bottom: 1px solid var(--line); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { font-size: 28px; font-weight: 600; letter-spacing: -.03em; padding: 6px 0; }

/* ── Hero ──────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; padding-top: 24px; min-height: min(820px, calc(100dvh - var(--nav-h))); }
.hero h1 { font-weight: 800; font-size: clamp(56px, 9.2vw, 132px); line-height: .92; letter-spacing: -.055em; padding-bottom: 8px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 21px; line-height: 1.5; color: var(--soft); max-width: 30ch; margin: 28px 0 36px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.reel { position: relative; height: min(680px, 78dvh); border-radius: var(--r); overflow: hidden; background: var(--bg2); }
.reel img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; filter: grayscale(1) contrast(1.08); transition: transform 1.4s var(--ease); }
.reel:hover img { transform: scale(1.03); }
.reel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(14, 13, 12, .78)); pointer-events: none; }
.play { position: absolute; left: 24px; bottom: 24px; z-index: 2; display: flex; align-items: center; gap: 14px; font-weight: 500; font-size: 15px; }
.play i { width: 56px; height: 56px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; transition: transform .3s var(--ease); }
.play i::before { content: ''; border-left: 14px solid var(--ink-on-accent); border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.play:hover i { transform: scale(1.08); }

/* ── Roles marquee ─────────────────────────────────────── */
.roles { margin-top: 72px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; padding: 22px 0; }
.roles-track { display: inline-flex; gap: 56px; font-size: 44px; font-weight: 600; letter-spacing: -.04em; animation: marquee 40s linear infinite; }
.roles-track span:nth-child(even) { color: var(--faint); font-weight: 400; font-style: italic; }
@keyframes marquee { to { transform: translateX(calc(-50% - 28px)); } }

/* ── Sections ──────────────────────────────────────────── */
.sec { padding-top: 128px; }
h2 { font-weight: 800; font-size: clamp(44px, 6vw, 84px); letter-spacing: -.05em; line-height: .98; padding-bottom: 4px; }
.lead { font-size: 19px; color: var(--soft); max-width: 52ch; margin-top: 18px; line-height: 1.55; }
.mono { font-family: var(--ff-m); font-size: 13px; color: var(--faint); }

/* ── Video tiles (shared by bento + masonry) ───────────── */
.tile { position: relative; display: block; width: 100%; border-radius: var(--r); overflow: hidden; background: var(--bg2); text-align: left; }
.tile video, .tile img { width: 100%; height: 100%; object-fit: cover; }
/* preview: light blur while playing muted; sharper on hover; full quality when clicked */
.tile video { filter: blur(14px) brightness(.7); transform: scale(calc(var(--z, 1) * 1.06)); transition: filter .9s var(--ease), transform .9s var(--ease); }
.tile.in-view video { filter: blur(2.5px) brightness(.9); transform: scale(calc(var(--z, 1) * 1.03)); }
.tile:hover video { filter: blur(1px) brightness(.97); }
.tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; background: linear-gradient(0deg, rgba(14, 13, 12, .88), transparent); display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.tile h3 { font-size: 22px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.tile .mono { white-space: nowrap; }
.tile .pbtn { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; background: rgba(14, 13, 12, .55); backdrop-filter: blur(8px); display: grid; place-items: center; opacity: 0; transform: scale(.9); transition: opacity .3s, transform .3s var(--ease); }
.tile .pbtn::before { content: ''; border-left: 11px solid var(--text); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.tile:hover .pbtn, .tile:focus-visible .pbtn { opacity: 1; transform: scale(1); }

/* bento: exactly 5 cells */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 260px; gap: 16px; margin-top: 48px; }
.bento .tile:nth-child(1) { grid-column: 1 / 9; grid-row: span 2; }
.bento .tile:nth-child(2) { grid-column: 9 / 13; grid-row: span 3; }
.bento .tile:nth-child(3) { grid-column: 1 / 5; grid-row: span 2; }
.bento .tile:nth-child(4) { grid-column: 5 / 9; grid-row: span 2; }
.bento .tile:nth-child(5) { grid-column: 9 / 13; grid-row: span 1; }
.bento .tile:nth-child(5) video { object-position: center 60%; }

/* all videos: JS masonry (keeps newest-first reading order) */
.vid-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(242, 236, 228, .2); font-size: 14px; color: var(--soft); transition: all .25s; }
.filter:hover { color: var(--text); border-color: var(--text); }
.filter.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.masonry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; align-items: start; }
.mcol { display: grid; gap: 16px; }
.masonry .tile { aspect-ratio: 9 / 16; }
.masonry .tile.wide { aspect-ratio: 4 / 3; }
.masonry .tile h3 { font-size: 18px; }
.masonry .tile .cap { padding: 16px; flex-direction: column; align-items: flex-start; gap: 4px; }
.show-all { display: flex; justify-content: center; margin-top: 40px; }
.show-all[hidden] { display: none; }

/* ── Photography shelf ─────────────────────────────────── */
.shelf-wrap { margin-top: 48px; }
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: 340px; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: max(48px, calc((100vw - 1400px) / 2 + 48px)); padding: 0 max(48px, calc((100vw - 1400px) / 2 + 48px)) 8px; scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.shot { scroll-snap-align: start; text-align: left; }
.shot .ph { position: relative; height: 440px; border-radius: var(--r); overflow: hidden; background: var(--bg2); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.shot .n { position: absolute; top: 14px; right: 14px; font-family: var(--ff-m); font-size: 12px; background: rgba(14, 13, 12, .6); backdrop-filter: blur(8px); padding: 5px 10px; border-radius: 999px; }
.shot h3 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin-top: 14px; }
.shot p { color: var(--faint); font-size: 15px; margin-top: 2px; }
.shelf-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

/* ── About ─────────────────────────────────────────────── */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.about .pic { height: 640px; border-radius: var(--r); overflow: hidden; position: sticky; top: calc(var(--nav-h) + 24px); }
.about .pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.about blockquote { font-size: clamp(28px, 3vw, 40px); line-height: 1.18; letter-spacing: -.035em; font-weight: 500; }
.about blockquote em { font-style: italic; color: var(--accent); font-weight: 400; }
.about .body { font-size: 18px; color: var(--soft); line-height: 1.6; max-width: 56ch; margin-top: 28px; }
.nums { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 56px; margin-top: 48px; }
.nums b { display: block; font-size: 72px; font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.nums span { color: var(--soft); font-size: 15px; }
.skills { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; max-width: 560px; }
.skills div { display: flex; justify-content: space-between; font-size: 17px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.skills div span:last-child { font-family: var(--ff-m); color: var(--accent); }

/* ── Timeline wrapper ──────────────────────────────────── */
.pp-wrap { margin-top: 48px; }
.pp-panel { border-radius: var(--r); }

/* ── Experience ────────────────────────────────────────── */
.exp { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.job { background: var(--bg2); border-radius: var(--r); padding: 32px; transition: background-color .3s; }
.job:hover { background: #1c1917; }
/* odd number of cards: the last one spans the full width */
.exp .job:last-child:nth-child(odd) { grid-column: 1 / -1; }
.job .when { font-family: var(--ff-m); font-size: 13px; color: var(--accent); }
.job h3 { font-size: 30px; font-weight: 600; letter-spacing: -.035em; margin-top: 14px; line-height: 1.1; }
.job .where { color: var(--soft); margin-top: 6px; }
.job p { color: var(--faint); margin-top: 16px; line-height: 1.55; max-width: 52ch; }

/* ── Contact ───────────────────────────────────────────── */
.contact { padding-top: 150px; padding-bottom: 40px; }
.contact h2 { font-size: clamp(36px, 4.4vw, 62px); }
.tel { display: block; width: max-content; font-size: clamp(40px, 8vw, 116px); font-weight: 800; letter-spacing: -.05em; line-height: 1.05; margin: 24px 0 10px; padding-bottom: 8px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; white-space: nowrap; transition: filter .3s; }
.tel:hover { filter: brightness(1.12); }
.mail { display: inline-block; font-size: clamp(18px, 1.8vw, 24px); font-weight: 500; color: var(--soft); margin-bottom: 40px; border-bottom: 1px solid var(--accent); padding-bottom: 2px; transition: color .3s; }
.mail:hover { color: var(--text); }
.contact .row { display: flex; gap: 12px; flex-wrap: wrap; }
.phone { margin-top: 24px; color: var(--soft); }
.phone a { color: var(--text); border-bottom: 1px solid var(--accent); }
.foot { border-top: 1px solid var(--line); margin-top: 96px; padding-top: 28px; padding-bottom: 36px; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--faint); font-size: 14px; }
.foot .logo .ar { font-size: 24px; color: var(--soft); }

/* ── Lightbox ──────────────────────────────────────────── */
.lb { position: fixed; inset: 0; z-index: var(--z-lb); background: rgba(10, 9, 8, .96); display: grid; grid-template-rows: auto 1fr; }
.lb[hidden] { display: none; }
.lb-bar { display: flex; align-items: center; gap: 16px; padding: 16px 24px; }
#lb-title { font-weight: 600; font-size: 17px; flex: 1; }
#lb-count { font-family: var(--ff-m); color: var(--faint); font-size: 13px; }
.lb-stage { display: grid; place-items: center; padding: 0 88px 32px; min-height: 0; }
.lb-stage video, .lb-stage img { max-width: 100%; max-height: calc(100dvh - 120px); border-radius: var(--r); display: none; }
.lb-stage .show { display: block; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(14, 13, 12, .6); }
.lb-prev { left: 20px; } .lb-next { right: 20px; }
.lb-prev[hidden], .lb-next[hidden] { display: none; }

/* ── Reveal on scroll + hero entrance ──────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.rise { animation: rise 1.1s var(--ease) both; }
.rise.d1 { animation-delay: .12s; } .rise.d2 { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(32px); } }

/* ── Mobile (< 768px): everything collapses to one column ─ */
@media (max-width: 1100px) {
  .links { gap: 22px; font-size: 14px; }
  .masonry { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .links, .nav-in > .btn { display: none; }
  .menu-btn { display: flex; }
}
@media (max-width: 767px) {
  .wrap { padding: 0 16px; }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 28px; padding-top: 16px; }
  .hero p { font-size: 18px; margin: 18px 0 26px; }
  .reel { height: 460px; }
  .roles { margin-top: 56px; padding: 16px 0; }
  .roles-track { font-size: 28px; gap: 32px; }
  @keyframes marquee { to { transform: translateX(calc(-50% - 16px)); } }
  .sec { padding-top: 88px; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; margin-top: 32px; }
  .bento .tile { grid-column: 1 / -1 !important; grid-row: auto !important; height: 340px; }
  .bento .tile:nth-child(2) { height: 540px; }
  .masonry { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 28px; }
  .mcol { gap: 10px; }
  .masonry .tile .cap { padding: 12px; }
  .masonry .tile h3 { font-size: 15px; }
  .tile .pbtn { display: none; }
  .shelf { grid-auto-columns: 78%; scroll-padding-left: 16px; padding: 0 16px 8px; }
  .shot .ph { height: 400px; }
  .shelf-nav { display: none; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about .pic { height: 440px; position: static; }
  .nums { gap: 28px; } .nums b { font-size: 46px; }
  .skills { grid-template-columns: 1fr; }
  .exp { grid-template-columns: 1fr; }
  .job { padding: 24px; } .job h3 { font-size: 24px; }
  .contact { padding-top: 110px; }
  .foot { flex-direction: column; align-items: flex-start; }
  .lb-stage { padding: 0 12px 20px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
}

/* ── Reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .roles-track, .rise { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tile video { filter: none; transform: scale(var(--z, 1)); transition: none; }
}


/* ============================================================
   TIMELINE PANEL (Premiere Pro look), carried over from the old site
============================================================ */
.pp-panel {
  width: 100%;
  background: #1e1e1e;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  font-family: var(--ff-m);
  user-select: none;
  overflow: hidden;
}

.pp-titlebar {
  height: 32px;
  background: #2d2d2d;
  border-bottom: 1px solid #111;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding-right: 12px;
}
.pp-tabs { display: flex; align-items: stretch; }
.pp-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 0 14px;
  font-size: .65rem; color: #888;
  border-right: 1px solid #111;
  cursor: default;
  transition: background .2s;
}
.pp-tab span { color: #555; font-size: .6rem; }
.pp-tab-active { background: #1e1e1e; color: #ccc; border-bottom: 1px solid #ff6a2b; }
.pp-win-btns { display: flex; align-items: center; gap: 6px; }
.pp-wb { width: 10px; height: 10px; border-radius: 50%; cursor: default; }
.pp-wb-min { background: #e8b020; }
.pp-wb-max { background: #20c020; }
.pp-wb-close { background: #e03030; }

.pp-toolbar {
  height: 36px;
  background: #252525;
  border-bottom: 1px solid #111;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  gap: 8px;
}
.pp-tools { display: flex; align-items: center; gap: 3px; }
.pp-tool {
  width: 26px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 3px; color: #aaa; font-size: .65rem;
  transition: background .15s, color .15s; cursor: default;
}
.pp-tool:hover { background: #3a3a3a; color: #fff; }
.pp-tool-active { background: #3d3d3d; color: #ddd; }
.pp-sep { width: 1px; height: 18px; background: #333; margin: 0 4px; }
.pp-tc { font-size: .7rem; color: #e0e0e0; background: #1a1a1a; padding: 3px 8px; border-radius: 3px; border: 1px solid #333; letter-spacing: .06em; min-width: 88px; text-align: center; }
.pp-zoom-wrap { display: flex; align-items: center; gap: 6px; }
.pp-zoom-bar { width: 80px; height: 4px; background: #333; border-radius: 100px; position: relative; cursor: default; }
.pp-zoom-thumb { width: 30px; height: 100%; background: #666; border-radius: 100px; position: absolute; left: 10px; }

.pp-body { display: flex; height: 340px; }

.pp-headers { width: 140px; flex-shrink: 0; background: #2a2a2a; border-right: 1px solid #111; display: flex; flex-direction: column; }
.pp-corner { height: 24px; display: flex; align-items: center; padding: 0 10px; border-bottom: 1px solid #111; }
.pp-hdr {
  display: flex; align-items: center; gap: 6px;
  padding: 0 8px; border-bottom: 1px solid #111;
  position: relative; flex-shrink: 0;
}
.pp-hdr-video { height: 48px; }
.pp-hdr-audio { height: 44px; }
.pp-hdr-target { background: #2f2f2f; }
.pp-hdr-controls { display: flex; flex-direction: column; gap: 3px; }
.pp-hc-btn { width: 16px; height: 16px; border-radius: 2px; font-size: .55rem; color: #777; display: flex; align-items: center; justify-content: center; background: #222; border: 1px solid #333; transition: color .15s; cursor: default; }
.pp-hc-btn:hover { color: #bbb; }
.pp-mute, .pp-solo { font-size: .55rem; letter-spacing: 0; }
.pp-hdr-name { font-size: .65rem; color: #bbb; font-weight: 500; letter-spacing: .06em; flex: 1; text-align: center; }
.pp-target-badge { font-size: .55rem; color: #ff6a2b; border: 1px solid #ff6a2b; border-radius: 2px; padding: 1px 4px; }
.pp-audio-div-hdr { height: 16px; display: flex; align-items: center; gap: 6px; padding: 0 8px; border-bottom: 1px solid #111; background: #222; }
.pp-audio-div-hdr span { font-size: .55rem; color: #555; letter-spacing: .1em; }

.pp-timeline-right { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }

.pp-ruler {
  height: 24px; background: #252525; border-bottom: 1px solid #111;
  position: relative; flex-shrink: 0; cursor: pointer;
}
.pp-ruler:hover { background: #2a2a2a; }
.pp-inout-range { position: absolute; top: 0; height: 100%; background: rgba(255,106,43,.09); pointer-events: none; }
.pp-tick { position: absolute; top: 8px; font-size: .58rem; color: #666; letter-spacing: .04em; transform: translateX(-50%); pointer-events: none; }

.pp-ruler-head {
  position: absolute; top: 0; width: 12px; height: 100%;
  transform: translateX(-50%);
  cursor: ew-resize; pointer-events: all;
}
.pp-ruler-head::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 8px solid #dc2626;
}
.pp-ruler-head::after {
  content: '';
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: calc(100% - 8px);
  background: #dc2626;
}

.pp-tracks { flex: 1; position: relative; overflow: hidden; background: #1e1e1e; }

.pp-playhead {
  position: absolute; top: 0; bottom: 0;
  width: 1px; background: #dc2626;
  z-index: 20; pointer-events: none;
  box-shadow: 0 0 6px rgba(220,38,38,.4);
}

.pp-track {
  position: relative;
  border-bottom: 1px solid #111;
}
.pp-track-v { height: 48px; background: #1e1e1e; }
.pp-track-v:hover { background: #202020; }
.pp-track-a { height: 44px; background: #1a1a1a; }
.pp-track-a:hover { background: #1c1c1c; }

.pp-audio-divider-line { height: 16px; background: #222; border-top: 1px solid #111; border-bottom: 1px solid #111; }
.pp-audio-div-hdr { height: 16px; }

.pp-clip {
  position: absolute;
  top: 3px; height: calc(100% - 6px);
  border-radius: 3px;
  overflow: hidden;
  display: flex; align-items: center;
  padding: 0 6px;
  gap: 4px;
  transition: filter .2s;
  cursor: default;
  border: 1px solid transparent;
}
.pp-clip:hover { filter: brightness(1.15); z-index: 5; }
.pp-clip-name { font-size: .58rem; color: rgba(255,255,255,.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .03em; flex: 1; }

.pp-clip-stripe { width: 2px; height: 60%; border-radius: 1px; flex-shrink: 0; }
.pp-fx-badge { font-size: .48rem; padding: 1px 4px; border-radius: 2px; background: rgba(0,0,0,.4); color: rgba(255,255,255,.6); letter-spacing: .05em; flex-shrink: 0; }

.pp-clip-mogrt { background: linear-gradient(180deg,#4c1d95,#3b0764); border-color: #7c3aed44; }
.pp-clip-mogrt .pp-clip-stripe { background: #a78bfa; }
.pp-clip-mogrt .pp-clip-name { color: rgba(196,168,255,.85); }

.pp-clip-broll { background: linear-gradient(180deg,#164e63,#083344); border-color: #0e749044; }
.pp-clip-broll .pp-clip-stripe { background: #22d3ee; }
.pp-clip-broll .pp-clip-name { color: rgba(103,232,249,.85); }

.pp-clip-aroll { background: linear-gradient(180deg,#1e3a8a,#172554); border-color: #1d4ed844; }
.pp-clip-aroll .pp-clip-stripe { background: #60a5fa; }
.pp-clip-aroll .pp-clip-name { color: rgba(147,197,253,.85); }

.pp-clip-music { background: linear-gradient(180deg,#14532d,#052e16); border-color: #16653444; }
.pp-clip-music .pp-clip-stripe { background: #4ade80; }
.pp-clip-music .pp-clip-name { color: rgba(134,239,172,.85); z-index: 2; position: relative; }

.pp-clip-sfx { background: linear-gradient(180deg,#166534,#052e16); border-color: #15803d44; }
.pp-clip-sfx .pp-clip-stripe { background: #22c55e; }
.pp-clip-sfx .pp-clip-name { color: rgba(134,239,172,.85); z-index: 2; position: relative; }

.pp-clip-dialogue { background: linear-gradient(180deg,#3f6212,#1a2e05); border-color: #65a30d44; }
.pp-clip-dialogue .pp-clip-stripe { background: #a3e635; }
.pp-clip-dialogue .pp-clip-name { color: rgba(190,242,100,.85); z-index: 2; position: relative; }

.pp-clip-selected { border-color: rgba(255,255,255,.4) !important; filter: brightness(1.2); box-shadow: 0 0 0 1px rgba(255,255,255,.2); }

.pp-transition-fx {
  position: absolute; top: 3px; height: calc(100% - 6px);
  background: linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,.22), rgba(255,255,255,.12));
  border-radius: 2px; z-index: 10; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  font-size: .5rem; color: rgba(255,255,255,.5);
}
.pp-transition-fx::after { content:'◇'; }

.pp-waveform {
  position: absolute; inset: 0; display: flex; align-items: center; gap: 1.5px; padding: 4px 4px 4px 30px; pointer-events: none; overflow: hidden;
}
.pp-waveform span {
  flex-shrink: 0; width: 1.5px; height: var(--h,50%); border-radius: 1px;
  background: rgba(255,255,255,.2);
}
.pp-clip-music .pp-waveform span  { background: rgba(74,222,128,.35); }
.pp-clip-sfx .pp-waveform span    { background: rgba(34,197,94,.3); }
.pp-clip-dialogue .pp-waveform span { background: rgba(163,230,53,.35); }

.pp-scrollbar { height: 12px; background: #222; border-top: 1px solid #111; position: relative; }
.pp-sb-thumb { position: absolute; left: 4%; width: 40%; height: 100%; background: #3a3a3a; border-radius: 3px; cursor: default; }


@media (max-width: 1024px) {
  .pp-headers { width: 110px; }
  .pp-hdr-name { font-size: .6rem; }
  .pp-target-badge { display: none; }
}
@media (max-width: 768px) {
  .pp-body { height: 260px; }
  .pp-hdr-video { height: 38px; }
  .pp-hdr-audio { height: 34px; }
  .pp-track-v { height: 38px; }
  .pp-track-a { height: 34px; }
  .pp-tabs .pp-tab:not(.pp-tab-active) { display: none; }
}
@media (max-width: 480px) {
  .pp-toolbar { display: none; }
  .pp-headers { width: 80px; }
  .pp-hdr-controls { display: none; }
  .pp-tc { display: none; }
}
/* ============================================================
   TRANSPARENT TIMELINE (Premiere Pro panel) - glass style
   Remove this block to go back to the solid grey look.
============================================================ */

.pp-panel {
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.pp-titlebar, .pp-toolbar, .pp-ruler, .pp-scrollbar,
.pp-audio-div-hdr, .pp-audio-divider-line { background: rgba(255,255,255,.035) !important; }
.pp-ruler:hover { background: rgba(255,255,255,.06) !important; }
.pp-tab-active { background: rgba(255,255,255,.06) !important; }
.pp-headers { background: rgba(255,255,255,.04) !important; border-right-color: rgba(255,255,255,.06) !important; }
.pp-hdr-target { background: rgba(255,106,43,.10) !important; }
.pp-hc-btn, .pp-tc { background: rgba(0,0,0,.2) !important; border-color: rgba(255,255,255,.08) !important; }
.pp-tracks, .pp-track-v, .pp-track-a { background: transparent !important; }
.pp-track-v:hover, .pp-track-a:hover { background: rgba(255,255,255,.03) !important; }
.pp-tool:hover { background: rgba(255,255,255,.08) !important; }
.pp-tool-active { background: rgba(255,255,255,.1) !important; }
.pp-sb-thumb { background: rgba(255,255,255,.12) !important; }
.pp-panel [class*="pp-"]:not([class*="pp-clip"]):not(.pp-tab-active):not(.pp-target-badge):not(.pp-transition-fx) { border-color: rgba(255,255,255,.06); }
.pp-clip { opacity: .92; }


/* ============================================================
   PREMIERE PRO LABEL COLORS (default label assignments)
   Violet   = Movie clips (video+audio)  -> V1 edits
   Iris     = Video-only clips           -> V2 b-roll
   Lavender = Stills / Graphics          -> V3 graphics
   Caribbean= Audio clips                -> A1-A3
   Playhead = Premiere blue
============================================================ */
:root {
  --pr-violet:    #a990dd;
  --pr-iris:      #7d8ae3;
  --pr-lavender:  #e384e3;
  --pr-caribbean: #1db3a0;
  --pr-playhead:  #2d8ceb;
}
.pp-clip { border-radius: 2px; border: 1px solid rgba(0,0,0,.35) !important; opacity: 1 !important; }
.pp-clip-name { color: rgba(0,0,0,.82) !important; font-weight: 500; }
.pp-clip-stripe { background: rgba(0,0,0,.25) !important; }
.pp-fx-badge { background: #e8c547; color: #1a1a1a; font-weight: 700; }

.pp-clip-aroll  { background: var(--pr-violet) !important; }
.pp-clip-broll  { background: var(--pr-iris) !important; }
.pp-clip-mogrt  { background: var(--pr-lavender) !important; }
.pp-clip-music, .pp-clip-sfx, .pp-clip-dialogue { background: var(--pr-caribbean) !important; }
.pp-clip-music .pp-waveform span,
.pp-clip-sfx .pp-waveform span,
.pp-clip-dialogue .pp-waveform span { background: rgba(0,0,0,.38) !important; }

.pp-clip-selected { border-color: #fff !important; box-shadow: 0 0 0 1px #fff; filter: brightness(1.12); }
.pp-transition-fx { background: linear-gradient(90deg, rgba(255,255,255,.35), rgba(255,255,255,.55), rgba(255,255,255,.35)); color: rgba(0,0,0,.6); }

.pp-playhead { background: var(--pr-playhead) !important; box-shadow: 0 0 6px rgba(45,140,235,.5) !important; }
.pp-ruler-head::before { border-top-color: var(--pr-playhead) !important; }
.pp-ruler-head::after  { background: var(--pr-playhead) !important; }
.pp-tab-active { border-bottom-color: var(--pr-playhead) !important; }


@font-face {
  font-family: 'Zain Local';
  src: url('../fonts/Zain.ttf') format('truetype');
  font-weight: normal; font-style: normal; font-display: swap;
}
