/* Shared Phase 1 foundations. Browse layout is scoped; media controls are untouched. */
:root { --pc-bg: #17232d; --pc-text: #fff; --pc-muted: #b6c4cd; --pc-primary: #1ecbe1; --pc-mint: #1ee196; --pc-border: rgba(255,255,255,.24); --pc-radius: 8px; }
.pc-browse-page { padding-top: 24px; padding-bottom: 24px; }
.pc-page-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 0 0 24px; }
.pc-page-header h1 { margin: 0; color: var(--pc-text); font: 700 clamp(24px,3vw,30px)/1.25 Inter,system-ui,sans-serif; text-transform: none; }
.pc-page-header p { color: var(--pc-muted); margin: 6px 0 0; font-size: 15px; }
.pc-page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pc-page-actions .btn { min-height: 44px; min-width: 44px; padding: 10px 14px; border: 1px solid var(--pc-border); border-radius: 6px; color: var(--pc-primary); background: transparent; font-size: 14px; }
.pc-page-actions .btn:hover { color: var(--pc-text); border-color: var(--pc-primary); }
.pc-date-field { display: grid; gap: 6px; color: var(--pc-text); font-size: 14px; }
.pc-date-field input { width: 100%; min-width: 0; min-height: 44px; font-size: 16px; }
.pc-browse-page .vod-header { text-align: left; border: 1px solid var(--pc-border); border-radius: var(--pc-radius); overflow: hidden; border-collapse: separate; border-spacing: 0; background: rgba(255,255,255,.025); }
.pc-browse-page .vod-header-top-round { border-radius: 8px 8px 0 0; background: transparent; font-size: 16px; line-height: 1.4; padding: 12px 12px 4px; overflow-wrap: anywhere; }
.pc-browse-page .vod-header-top { background: transparent; color: var(--pc-muted); font-size: 13px; line-height: 1.45; padding: 0 12px 12px; }
.pc-browse-page .vod-footer-left-round, .pc-browse-page .vod-footer-right-round { border-radius: 0; font-size: 12px; padding: 8px 12px; }
.pc-browse-page .vod-type-video, .pc-browse-page .vod-type-views { background: transparent; color: var(--pc-muted); }
.pc-browse-page .vod-type-clip { background: transparent; color: var(--pc-primary); padding: 8px 12px; font-size: 13px; }
.pc-browse-page .vod-header img { aspect-ratio: 16 / 9; object-fit: cover; }
.pc-browse-page .vod-item { margin-bottom: 16px; }
.pc-browse-page .clip-grid { font-size: 15px; line-height: 1.5; }
.pc-browse-page .clip-grid td { padding: 14px 12px; }
.pc-browse-page :focus-visible, #searchModal :focus-visible { outline: 3px solid var(--pc-primary); outline-offset: 3px; }
#searchModal .modal-content { background: var(--pc-bg); color: var(--pc-text); border: 1px solid var(--pc-border); border-radius: var(--pc-radius); }
#searchModal .form-control, #searchModal select { min-height: 44px; font-size: 16px; }
.modal-content .btn-close { width: 44px; height: 44px; min-width: 44px; min-height: 44px; box-sizing: border-box; padding: 8px; }
@media (max-width: 575px) { .pc-browse-page { padding-top: 16px; } .pc-page-header { margin-bottom: 16px; gap: 12px; } .pc-page-header p { font-size: 14px; } .pc-page-actions { max-width: 100%; } .pc-date-field { width: 100%; } }

/* Clip availability stays on the footer row without adding a row to the tile. */
.pc-browse-page .pc-recording-counts { text-align: right; background: transparent; }
.pc-browse-page .pc-clip-count { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; padding: 1px 7px; border-radius: 4px; background: var(--pc-mint); color: var(--pc-bg); font-size: 12px; font-weight: 700; line-height: 1.4; }

/* Phase 2 venue landing; standalone booking selection stays available. */
.pc-venue-page { padding-top: 16px; }
.pc-venue-title { margin: 0; font-size: clamp(24px,3vw,32px); font-weight: 700; }
.pc-venue-page .venue-banner { position: relative; width: 100%; margin: 16px 0; overflow: hidden; }
.pc-venue-page .venue-banner-image { display: block; width: 100%; height: auto; aspect-ratio: 37 / 5; object-fit: cover; object-position: center; }
.pc-venue-page .venue-logo { position: absolute; inset: 0; pointer-events: none; }
.pc-venue-page .venue-logo img { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.pc-venue-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; max-width: 720px; margin: 0 auto 24px; }
.pc-venue-actions .btn { padding: 16px; min-height: 56px; font-size: 18px; }
.pc-venue-booking { max-width: 720px; margin: 0 auto 24px; border: 1px solid var(--pc-border); padding: 16px; border-radius: 8px; }
.pc-venue-booking h2 { font-size: 18px; margin: 0 0 12px; }
.pc-venue-booking .card { background: transparent; border: 0; padding: 0; }
.pc-venue-booking .card-body { padding: 0 !important; }
.pc-venue-booking label { text-align: left !important; font-size: 14px !important; margin-bottom: 6px; }
.pc-venue-booking select, .pc-venue-booking #book { min-height: 48px; }
.pc-venue-booking #book, .pc-booking-create #book { background: transparent; border: 1px solid var(--pc-primary); color: var(--pc-primary); }
.pc-venue-page .list-inline-item a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
#editBookingModal .modal-dialog { width: calc(100% - 24px); max-width: 900px !important; margin: 12px auto; }
@media (max-width: 480px) {
  #editBookingModal #_qr_booking .time-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #editBookingModal #_qr_booking .time-btn { min-height: 48px; white-space: nowrap; }
  #editBookingModal h3 { font-size: 1.25rem; line-height: 1.3; }
}

/* Phase 5: shared account forms, used by the website and authenticated app browser. */
.pc-account-page { padding-bottom: 32px; }
.pc-account-title { font-size: clamp(24px,3vw,30px); text-align: center; margin: 8px 0 16px; font-weight: 700; }
.pc-account-form { width: 100%; max-width: 38rem; margin: 0 auto; }
.pc-account-form > .row:not(.hidden) { display: block; margin: 0 0 20px; }
.pc-account-form > .row > [class*="col-md-"] { width: 100%; max-width: 100%; margin-left: 0; padding: 0; }
.pc-account-form > .row > [class*="col-md-"]:empty { display: none; }
.pc-account-form .col-form-label { padding: 0 0 6px; color: var(--pc-text); font-size: 15px; font-weight: 600; }
.pc-account-form .form-control { min-height: 48px; font-size: 16px; border-radius: 6px; border: 1px solid #718894; color: #17232d; background: #f4f7f9; }
.pc-account-form .form-control:required { background: #fff3cd; }
.pc-account-form .form-control:focus { border-color: var(--pc-primary); outline: 2px solid var(--pc-primary); outline-offset: 2px; }
.pc-account-form .btn, .pc-account-page .social-auth-button { min-height: 48px; white-space: normal; }
.pc-account-form .btn + .btn { margin-left: 8px; }
.pc-account-form .pc-phone-input { gap: 8px; flex-wrap: wrap; }
.pc-account-form .pc-phone-input .dialing-code-select { flex: 0 0 104px; width: 104px; }
.pc-account-form .pc-phone-input input[type="tel"] { flex: 1; width: 0; min-width: 130px; }
.pc-form-help { display: block; color: var(--pc-muted); margin-top: 8px; line-height: 1.5; }
.pc-field-error { display: block; color: #ffb4b4; margin-top: 6px; width: 100%; }
.pc-account-security { border: 1px solid var(--pc-border); border-radius: var(--pc-radius); padding: 20px; overflow-wrap: anywhere; }
.pc-account-security h4 { font-size: 20px; }
.pc-account-page :focus-visible { outline: 3px solid var(--pc-primary); outline-offset: 3px; }
@media(max-width:575px) { .pc-account-page .card-body { padding-left: 0 !important; padding-right: 0 !important; } .pc-account-security { padding: 16px; } }

/* Personal search states share the existing browse layout and filters. */
.pc-personal-help { color:var(--pc-muted); margin:0 0 20px; line-height:1.5; }
.pc-personal-empty { border:1px solid var(--pc-border); border-radius:8px; padding:20px; margin:12px 0; color:var(--pc-text); }
.pc-personal-empty h2 { font-size:20px; margin:0 0 8px; }
.pc-personal-empty p { color:var(--pc-muted); margin:0; line-height:1.5; }
/* Shared booking management: presentation only; selectors and workflows are unchanged. */
.pc-bookings-page { max-width: 1140px; padding-top: 16px; padding-bottom: 24px; color: var(--pc-text); }
.pc-bookings-page > .row > .col-md-8 { flex: 0 0 100%; max-width: 100%; }
.pc-bookings-page .pc-booking-create { margin-top: 0 !important; margin-bottom: 24px; }
.pc-booking-create > div > .card-body { padding: 16px !important; border: 1px solid var(--pc-border); border-radius: var(--pc-radius); }
.pc-booking-create h3 { font-size: 19px; text-align: left !important; margin: 0; }
.pc-booking-create hr { margin: 12px 0; }
.pc-bookings-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.pc-bookings-heading h1 { font-size:clamp(24px,3vw,30px); margin:0; font-weight:700; }
.pc-bookings-heading > div { margin:0 !important; }
.pc-bookings-page .form-control, .pc-bookings-page .btn { min-height:48px; font-size:16px; }
.pc-bookings-page .btn-primary { color:#fff; }
.pc-bookings-page label { color:var(--pc-text); }
.pc-booking-filters { justify-content:flex-start !important; padding:0 !important; gap:12px; margin:0 !important; }
.pc-booking-filters > div { padding:0; margin:0 !important; align-items:flex-start !important; }
.pc-booking-filters .form-check { display:flex; align-items:center; gap:8px; min-height:48px; padding-left:0; margin:0; }
.pc-booking-filters .form-check-input { position:static; margin:0; flex-shrink:0; }
.pc-booking-filters .form-check-label { margin-bottom:0; padding:10px 0; cursor:pointer; }
.pc-booking-phone-filter { flex:1 1 360px; flex-wrap:wrap; gap:8px; }
.pc-bookings-page .booking-search-phone { max-width:none; flex:1 1 260px; flex-wrap:wrap; }
.pc-bookings-page .booking-search-phone input { width:0; min-width:120px; }
.pc-bookings-page .booking-search-phone small { width:100%; color:var(--pc-muted); line-height:1.4; }
.pc-bookings-page #search { margin-left:0 !important; }
.pc-bookings-page #result { color:var(--pc-text); margin-top:8px; }
.pc-bookings-page .booking-container { min-width:0; }
.pc-bookings-page .booking-container > .card { width:100%; border:1px solid var(--pc-border); border-radius:var(--pc-radius); overflow:hidden; }
.pc-bookings-page .booking-container .card-body { padding:16px; }
.pc-bookings-page .booking-container td { padding:4px; overflow-wrap:anywhere; }
.pc-bookings-page .booking-button { width:auto; min-width:0; white-space:normal !important; }
.pc-bookings-page :focus-visible { outline:3px solid var(--pc-primary); outline-offset:3px; }
@media(max-width:575px) {
 .pc-bookings-page { padding-top:12px; }
 .pc-booking-create > div > .card-body { padding:12px !important; }
 .pc-booking-filters .pc-booking-phone-filter { flex-basis:100%; }
 .pc-booking-phone-filter > .form-check { width:100%; }
 .pc-bookings-page .booking-search-phone { flex-basis:100%; }
 .pc-booking-filters > div:last-child { width:100%; }
 .pc-bookings-page #search { width:100%; }
 .pc-bookings-page #result > .col-md-4 { width:100%; max-width:100%; }
}

/* Saved media keeps a balanced type/status footer below its thumbnail. */
.pc-browse-page .pc-saved-media-footer > td { width: 50%; height: 36px; text-align: center; vertical-align: middle; }
.pc-browse-page .pc-saved-media-footer > .vod-type-favourite { background: rgba(30,203,225,.12); }
.pc-browse-page .pc-saved-media-footer > .vod-type-clip { background: #f4b544; color: #17232d; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
/* Reel labels remain distinct from teal clips, with text as well as colour. */
.pc-browse-page .pc-saved-media-footer > .vod-type-reel, .pc-browse-page .vod-type-reel { background: #7046a6; color: #fff; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .04em; }

/* Phase 5 close-out: shared Contact and informational pages. */
.contact-page .contact-details a, .contact-page .contact-actions a,
.pc-information-page a { color: var(--pc-primary); }
.contact-page a:hover, .pc-information-page a:hover { color: var(--pc-text); }
.contact-page h2 { font-size: 22px; margin: 8px 0 16px; }
.contact-page .pc-account-form { max-width: none; }
.contact-page .contact-actions a { min-height: 48px; }
.contact-page .contact-actions .btn-outline-primary { border-color: var(--pc-primary); }
.pc-information-page { max-width: 800px; padding-bottom: 32px; overflow-wrap: anywhere; }
.pc-information-page .card { padding: 0; }
.pc-information-page h1 { font-size: clamp(24px,3vw,30px); font-weight: 700; margin-bottom: 16px; }
.pc-information-page h2 { font-size: 22px; line-height: 1.35; margin: 24px 0 12px; }
.pc-information-page h3 { font-size: 18px; line-height: 1.4; margin: 16px 0 8px; }
.pc-information-page p, .pc-information-page li { line-height: 1.65; }
.pc-information-page :focus-visible { outline: 3px solid var(--pc-primary); outline-offset: 3px; }
@media(max-width:575px) { .pc-information-page .card-body { padding: 0; } }
.contact-page .pc-account-form textarea { min-height: 140px; }

/* Phase 6: readable account roles and venue links on the existing dark surfaces. */
.pc-account-role { color: var(--pc-mint); }
.pc-venue-page .list-inline-item a { color: var(--pc-primary); }
.pc-venue-page .list-inline-item a:hover, .pc-venue-page .list-inline-item a:focus-visible { color: var(--pc-text); }
.pc-venue-page .list-inline-item a:focus-visible { outline: 2px solid var(--pc-primary); outline-offset: 2px; }
/* Booking details and actions must both retain their intrinsic height on Safari. */
.pc-bookings-page .booking-container .card-body > table { flex: 0 0 auto; height: auto; }


/* Keep the Clips filter with its results at every screen width. */
.pc-clip-date-filter { display: flex; flex-wrap: nowrap; align-items: flex-end; gap: 12px; margin-bottom: 20px; }
.pc-clip-date-filter .pc-date-field { flex: 1; min-width: 0; margin: 0; }
.pc-clip-date-filter .btn { flex: 0 0 auto; white-space: nowrap; }

.pc-venue-social-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; padding: 0; }
.pc-venue-social-links .list-inline-item { margin: 0; }
.pc-venue-social-links a { gap: 8px; padding: 10px 14px; }

.pc-venue-page { color: var(--pc-text); }
.pc-venue-page .pc-venue-title, .pc-venue-page .description-text { color: var(--pc-text); }
.pc-venue-icon { flex: none; vertical-align: middle; }

/* Shared sign-in: centre actions, preserve touch targets, avoid stacked spacer utilities. */
.pc-sign-in-form > .row:not(.hidden) { margin-bottom: 12px; }
.pc-sign-in-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.pc-sign-in-actions .btn { display: inline-flex; align-items: center; justify-content: center; margin: 0; }
.pc-sign-in-actions .btn + .btn { margin-left: 0; }
.pc-sign-in-actions .btn-primary { min-width: 150px; }
.pc-sign-in-form > .pc-sign-in-register { margin-top: 0; padding-top: 0; }
@media (max-width: 480px) { .pc-sign-in-actions { column-gap: 12px; } .pc-sign-in-actions .btn-primary { min-width: 120px; } }
.pc-sign-in-form > .pc-sign-in-register:not(.hidden) { margin-bottom: 0; }
.pc-sign-in-form ~ .social-auth-options { margin-top: 8px; }

/* Shared browsing: centred when stacked, spread at medium widths,
   and grouped in one centred row on wider screens. */
.pc-browse-page > .pc-page-header { justify-content: center; align-items: center; text-align: center; }
.pc-browse-page > .pc-page-header > .pc-page-actions { justify-content: center; }
@media (max-width: 767.98px) {
  .pc-browse-page > .pc-page-header { flex-direction: column; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .pc-browse-page > .pc-page-header { justify-content: space-between; text-align: left; }
}
@media (min-width: 992px) {
  .pc-browse-page > .pc-page-header { flex-direction: row; column-gap: 48px; }
}

/* One compact result row for shared website/app list browsing. */
.pc-media-list { max-width: 1100px; margin: 0 auto 20px; display: grid; gap: 8px; }
.pc-browse-page .pc-media-list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 64px; padding: 10px 14px; border: 1px solid var(--pc-border); border-radius: var(--pc-radius); background: rgba(255,255,255,.025); color: var(--pc-text); text-decoration: none; }
.pc-browse-page a.pc-media-list-row:hover { background: rgba(30,203,225,.08); border-color: var(--pc-primary); color: var(--pc-text); }
.pc-media-list-details { min-width: 0; display: grid; gap: 4px; overflow-wrap: anywhere; }
.pc-media-list-details strong { font-size: 16px; line-height: 1.4; }
.pc-media-list-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; color: var(--pc-muted); font-size: 13px; line-height: 1.45; }
.pc-media-list-badges { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; flex-shrink: 0; font-size: 12px; }
.pc-media-list-views { color: var(--pc-muted); }
.pc-media-list-favourite { color: #ff6982; }
.pc-media-list-status { color: var(--pc-mint); font-size: 13px; }
.pc-media-list-badges .pc-media-list-type { border-radius: 4px; padding: 3px 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.pc-media-list-badges .vod-type-clip { background: #f4b544; color: #17232d; }
@media (max-width: 575px) {
  .pc-browse-page .pc-media-list-row { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 12px; }
  .pc-media-list-badges { justify-content: flex-start; }
}

/* Supporting search text follows the same alignment as its context header. */
.pc-browse-page > .pc-search-summary, .pc-browse-page > .pc-personal-help { text-align: center; color: var(--pc-muted); }
@media (min-width: 768px) and (max-width: 991.98px) {
  .pc-browse-page > .pc-search-summary, .pc-browse-page > .pc-personal-help { text-align: left; }
}

.pc-content-types { border: 0; margin: 0 0 16px; padding: 0; }
.pc-content-types legend { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.pc-content-types label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0 16px 0 0; }
.pc-content-types input { width: 18px; height: 18px; accent-color: var(--pc-primary); }
.pc-content-types [role="alert"] { color: #ffb5bf; margin: 4px 0 0; }

.pc-date-range { display: flex; gap: 12px; flex-wrap: wrap; }
.pc-date-range[hidden] { display: none; }
.pc-date-range > .form-group { flex: 1 1 170px; min-width: 0; }
.pc-date-hint { font-size: .85rem; margin: .4rem 0; color: var(--pc-text-muted, #bad1dd); }
#searchPeriodError { color: #ffb3bf; }

.pc-browse-page .pc-clip-hours td { padding: 0; }
.pc-clip-hours a { display: block; padding: 10px; color: inherit; text-decoration: none; }
.pc-clip-hours a:hover, .pc-clip-hours a:focus-visible { color: var(--pc-primary); }

#action-view-buttons:not(.hidden) { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px; }
#action-view-buttons > .btn { margin:0; min-height:44px; }
#action-view-buttons > .btn:not(.hidden):not([hidden]) { display:inline-flex; align-items:center; justify-content:center; gap:.4em; }
