/* IFFI 2026: what changes from DIFF's app.css. Loaded after it.
   Paper, ink and peacock blue, with the colours of the 57th edition's four-point stars for the
   programme: gold (opening and closing), pink (competitions), orange (Indian Panorama), green
   (Indian specials), blue (world cinema), teal (open air), violet (masterclasses). */

:root {
  --bg: #f4f1ea;
  --card: #fffdf8;
  --bar: rgba(244, 241, 234, .84);
  --accent: #2f4aa0;
  --accent-fill: rgba(47, 74, 160, .1);
  --c-gala: #b07d0a;
  --c-comp: #cf2f75;
  --c-panorama: #d9581c;
  --c-india: #1b8a4d;
  --c-world: #3150b0;
  --c-open: #0e8e93;
  --c-talk: #7d4bb0;
  --c-class: #7d4bb0;
  --c-event: #b07d0a;
  /* Screens by building: the audis in one building share a colour. */
  --v-panjim: #2f62d0;
  --v-maquinez: #4b47b8;
  --v-samrat: #a33b6b;
  --v-kala: #7d4bb0;
  --v-porvorim: #0f8a7b;
  --v-margao: #c8442a;
  --v-ponda: #1d8c52;
  --v-beach: #d27a00;
  --v-stadium: #b07d0a;
}
:root.dark {
  --bg: #0a0b10;
  --card: #15161d;
  --bar: rgba(10, 11, 16, .82);
  --accent: #7d99ff;
  --accent-fill: rgba(125, 153, 255, .16);
  --c-gala: #f0c24f;
  --c-comp: #ff6fa8;
  --c-panorama: #ff9a5c;
  --c-india: #5ad08f;
  --c-world: #8aa6ff;
  --c-open: #4fd3d6;
  --c-talk: #c39bff;
  --c-class: #c39bff;
  --c-event: #f0c24f;
  --v-panjim: #7ea3ff;
  --v-maquinez: #a39dff;
  --v-samrat: #ff86b5;
  --v-kala: #c39bff;
  --v-porvorim: #4fd3c4;
  --v-margao: #ff8a6f;
  --v-ponda: #6fdc9b;
  --v-beach: #ffbd5c;
  --v-stadium: #f0c24f;
}

.c-gala { --c: var(--c-gala); } .c-comp { --c: var(--c-comp); } .c-panorama { --c: var(--c-panorama); } .c-india { --c: var(--c-india); }
.c-world { --c: var(--c-world); } .c-open { --c: var(--c-open); } .c-talk { --c: var(--c-talk); } .c-class { --c: var(--c-class); } .c-event { --c: var(--c-event); }
.v-ip1, .v-ip2, .v-ip3, .v-ip4 { --vc: var(--v-panjim); } .v-mq1 { --vc: var(--v-maquinez); } .v-sam, .v-ash { --vc: var(--v-samrat); } .v-ka { --vc: var(--v-kala); }
.v-pv1, .v-pv2, .v-pv3, .v-pv4 { --vc: var(--v-porvorim); } .v-rbm, .v-oar { --vc: var(--v-margao); } .v-mmp { --vc: var(--v-ponda); } .v-oam, .v-oav { --vc: var(--v-beach); } .v-spm { --vc: var(--v-stadium); }
/* A screen's short name carries its building's colour as a dot: thirteen screens read better grouped. */
.vchip { display: inline-flex; align-items: center; gap: 5px; }
.vchip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--vc, var(--ink3)); flex: none; }

/* Missing artwork: the festival's stars on a tint of the strand's colour, not a grey box. */
.img-ph { background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='%23fff' fill-opacity='.55'%3E%3Cpath d='M14 6Q14 14 22 14Q14 14 14 22Q14 14 6 14Q14 14 14 6Z'/%3E%3Cpath d='M42 34Q42 42 50 42Q42 42 42 50Q42 42 34 42Q42 42 42 34Z'/%3E%3C/g%3E%3C/svg%3E") center / 56px,
  linear-gradient(135deg, color-mix(in srgb, var(--c, var(--accent)) 55%, var(--card)), color-mix(in srgb, var(--c, var(--accent)) 85%, #000 0%)); }
:root.dark .img-ph { opacity: .8; }

/* The brand mark: five stars that turn a little in the wind rather than hang like flags. */
.stars-mark .flag { transform-box: fill-box; transform-origin: 50% 50%; animation: twirl 4.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.55s); }
@keyframes twirl { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(8deg) scale(1.06); } }
.brand .flags { width: 50px; }
/* Paper lanterns hang from their cord and swing from the top. */
.paper-sky .sky-flag { transform-origin: 50% 0; }

/* Schedule grid: as many columns as screens running that day. */
.gridbox { --gcol: clamp(122px, calc((100vw - 44px) / 2.5), 180px); }
.g-head span { font-size: 12.5px; padding: 0 6px; text-align: center; line-height: 1.15; }
.g-head span .vdot { flex: none; }
@media (min-width: 1024px) {
  /* Thirteen screens don't fit side by side: on desktop the grid scrolls sideways (the arrows in
     the screen names, a trackpad, or shift and the wheel) and only the page scrolls up and down.
     overflow-x: auto would make overflow-y auto too, so hide it outright: then the wheel always
     reaches the page. The padding keeps a short last tile from being cut off. */
  #p-schedule .gridbox { --gcol: 150px; }
  #p-schedule .grid { overflow-x: auto; overflow-y: hidden; overscroll-behavior-y: auto; scroll-snap-type: x proximity; }
  #p-schedule .grid-in { padding-bottom: 24px; }
  #p-schedule .g-rail { position: sticky; }
}

/* Booking: when it opens, a link out, and the mark you set once you have the ticket. */
.cta-book { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--fill); font-size: 14.5px; line-height: 1.38; color: var(--ink2); }
/* The leading icon sits on the middle of the first line of text. */
.cta-book > .ico, .cta-book > span > .ico { flex: none; margin-top: 3px; margin-top: calc((1lh - 13px) / 2); }
.cta-book.soon { background: var(--accent-fill); color: var(--ink); }
.cta-book.soon .ico { color: var(--accent); }
.cta-book.open { flex-direction: column; align-items: stretch; background: color-mix(in srgb, var(--c-comp) 10%, transparent); color: var(--ink); }
.cta-book.open > span { display: flex; gap: 8px; align-items: flex-start; }
.cta-book.open .ico { color: var(--c-comp); }
.cta-book.open .btn-row { margin-top: 2px; }
/* Any message with buttons: the message on top, the buttons below. */
.cta-book:has(> .btn-row) { flex-direction: column; align-items: stretch; }
.cta-book:has(> .btn-row) > span:first-child { display: flex; gap: 8px; align-items: flex-start; }
.cta-book > .btn-row { margin-top: 2px; }
.cta-book.booked { justify-content: space-between; align-items: center; background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ink); }
.cta-book.booked .ico, .cta-book.free .ico { color: var(--ok); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14.5px; }
.slot-i .slot-book { font-size: 13px; color: var(--ink2); margin-top: 2px; }
.slot-book.b-open { color: var(--c-comp); font-weight: 600; }
.slot-book.b-booked { color: var(--ok); font-weight: 600; }
.slot-i .slot-note { font-size: 13px; color: var(--ink2); margin-top: 2px; } /* the Film Guide's note on a show */
.tk-book { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0; font-size: 14px; color: var(--ink2); }
.tk-book .chipbtn { margin-left: auto; }
.tk-book .chipbtn + .chipbtn { margin-left: 6px; }
.tk-book.b-open { color: var(--c-comp); font-weight: 600; }
.tk-book.b-booked { color: var(--ok); font-weight: 600; }
.tk-book.b-booked .text { margin-left: auto; font-weight: 500; }
.quota-over { color: var(--live); font-weight: 600; }
.quota-note { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--live) 9%, transparent); color: var(--ink); font-size: 14px; }
.quota-note .ico { color: var(--live); flex: none; margin-top: 3px; margin-top: calc((1lh - 13px) / 2); }
.xfer.k-rule { color: var(--warn); border-left-color: var(--warn); }

/* Today's "Tickets to book" card. */
.book-card { padding: 14px 16px; }
.bk-lead { margin: 0 0 8px; font-size: 15px; color: var(--ink2); }
.bk-lead b { color: var(--ink); }
.bk-list { display: flex; flex-direction: column; }
.bk-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: .5px solid var(--line); }
.bk-film { flex: 1; min-width: 0; text-align: left; display: flex; flex-direction: column; }
.bk-film b { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-film small { color: var(--ink2); font-size: 13.5px; }
.bk-warn { display: flex; gap: 6px; align-items: flex-start; margin: 8px 0 0; color: var(--live); font-size: 14px; font-weight: 600; }
.bk-next { display: flex; gap: 6px; align-items: flex-start; margin: 10px 0 0; font-size: 14.5px; color: var(--ink2); }
.bk-next b { color: var(--ink); font-variant-numeric: tabular-nums; }
.bk-next .ico, .bk-warn .ico { flex: none; margin-top: 3px; margin-top: calc((1lh - 13px) / 2); }
/* Two actions (Book and Mark booked): the film gets the full width, the buttons a line below. */
.bk-row:has(.chipbtn + .chipbtn) { flex-wrap: wrap; row-gap: 8px; }
.bk-row:has(.chipbtn + .chipbtn) .bk-film { flex-basis: 100%; }
.bk-row:has(.chipbtn + .chipbtn) .bk-film + .chipbtn { margin-left: 0; }
.bk-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-right: 7px; border-radius: 10px; background: var(--fill); font-size: 12.5px; font-weight: 700; vertical-align: 1px; }
.bk-fast { font-style: normal; font-weight: 650; color: var(--live); }
.book-card .btn-row .btn .ico { margin-right: 6px; }
.book-card .btn-row { margin-top: 10px; }
.book-card > :first-child { margin-top: 0; }

/* Film page extras. */
.f-note { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--accent-fill); font-size: 14.5px; }
.f-note .ico { color: var(--accent); flex: none; margin-top: 3px; margin-top: calc((1lh - 13px) / 2); }
.awards { margin: 0; padding-left: 18px; color: var(--ink2); font-size: 15px; line-height: 1.45; }
.awards li + li { margin-top: 4px; }
/* A portrait poster in the 4:3 hero: keep the top (titles and faces), and no art at all gets a
   shorter hero in the strand's colour. */
.f-hero.is-cover img { object-position: 50% 18%; }
.f-hero.no-art { aspect-ratio: 16 / 9; }
.f-hero.no-art .img-ph { background-size: 84px, auto; }

/* Settings: the pass picker shows each pass's quota under its name. */
.chip small { margin-left: 6px; opacity: .7; }
.chipwrap.pad-s { padding: 10px 12px; }

/* Ticket stubs: IFFI's screen names ("INOX Panjim 1", "Ravindra Bhavan") are longer than DIFF's,
   so the screen wraps onto two lines instead of running under the tick. */
.tk-stub { gap: 14px; }
.tk-stub .grow b { white-space: normal; font-size: 16px; line-height: 1.12; overflow-wrap: anywhere; }

/* Long titles (sessions: "‘What if the Villain is Right?’ The Unconventional Filmmaker…") stay in
   the shade at the foot of the hero instead of climbing over the picture. */
.f-title.long { font-size: 29px; }
.f-title.xlong { font-size: 24px; line-height: 1.08; }
.slot-i .slot-with { font-size: 13px; color: var(--accent); font-weight: 600; margin-top: 2px; }
.cta-when .slot-with { display: block; font-size: 14px; color: var(--accent); font-weight: 600; margin-top: 2px; }

/* What other delegates found when they tried to book. */
.cta-crowd { display: flex; gap: 5px; align-items: center; margin-top: 6px; color: var(--ink2); font-size: 13.5px; }

/* Today: the badge reminder and the link to the first-timer's guide. */
.badge-card p { margin: 0 0 10px; font-size: 15px; line-height: 1.42; color: var(--ink2); }
.badge-card p b { color: var(--ink); }
.badge-card .btn .ico { margin-right: 6px; }
.guide-link { display: flex; gap: 12px; align-items: center; padding: 14px 16px; color: var(--ink); text-decoration: none; }
.guide-link span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.guide-link small { color: var(--ink2); font-size: 14px; line-height: 1.35; }
.bk-warn span { flex: 1; }
