/* Hipersign Videos — cards, page sections and the Videos page. Matches the Hipersign theme (Plus Jakarta Sans, purple→blue). */
.hsv-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.hsv-section { padding-top: 72px; padding-bottom: 72px; }
.hsv-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; margin-bottom: 32px; }
.hsv-head h2 { margin: 0; }

.hsv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.hsv-grid.hsv-n1 { grid-template-columns: minmax(0, 760px); justify-content: center; }
.hsv-grid.hsv-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .hsv-grid.hsv-n2 { grid-template-columns: 1fr; } }

.hsv-card { background: #fff; border: 1px solid #EEF0F7; border-radius: 18px; overflow: hidden; box-shadow: 0 6px 24px rgba(28, 31, 58, .06); display: flex; flex-direction: column; }
.hsv-frame { position: relative; aspect-ratio: 16 / 9; background: #0E1030; }
.hsv-short .hsv-frame { aspect-ratio: 9 / 16; }
.hsv-frame iframe, .hsv-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hsv-play { padding: 0; margin: 0; background: none; cursor: pointer; display: block; }
.hsv-play img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.hsv-play:hover img, .hsv-play:focus-visible img { transform: scale(1.03); }
.hsv-btn { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: linear-gradient(90deg, #4A1FB8, #0A6CD6); box-shadow: 0 8px 24px rgba(10, 16, 60, .35); }
.hsv-btn::after { content: ""; position: absolute; left: 27px; top: 21px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff; }
.hsv-short .hsv-btn { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
.hsv-short .hsv-btn::after { left: 21px; top: 16px; border-width: 11px 0 11px 17px; }
.hsv-play:focus-visible { outline: 3px solid #0A6CD6; outline-offset: -3px; }
.hsv-dur { position: absolute; right: 10px; bottom: 10px; background: rgba(14, 16, 48, .82); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 6px; }
.hsv-meta { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hsv-type { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #4A2BC2; }
html[lang^="ar"] .hsv-type { letter-spacing: 0; }
.hsv-title { font-size: 17px !important; line-height: 1.35; font-weight: 600; color: #1C1F3A; margin: 0 !important; }
.hsv-short .hsv-meta { padding: 12px 14px 14px; }
.hsv-short .hsv-title { font-size: 14px !important; }
.hsv-langs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.hsv-lang { font: inherit; font-size: 13px; padding: 4px 11px; border-radius: 999px; border: 1px solid #DCDDF0; background: #fff; color: #3A3E5C; cursor: pointer; }
.hsv-lang[aria-pressed="true"] { background: #F1EEFF; border-color: #4A2BC2; color: #4A2BC2; font-weight: 600; }

.hsv-row-title { font-size: 20px !important; font-weight: 700; color: #1C1F3A; margin: 40px 0 16px !important; }
.hsv-shorts { display: grid; grid-auto-flow: column; grid-auto-columns: 200px; gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.hsv-shorts > .hsv-card { scroll-snap-align: start; }
@media (max-width: 600px) { .hsv-shorts { grid-auto-columns: 62%; } }
.hsv-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; margin-top: 28px; }
.hsv-all { font-weight: 600; color: #4A2BC2; text-decoration: none; }
.hsv-all:hover { text-decoration: underline; }
.hsv-note { font-size: 13px; color: #6B7094; }

/* Videos page */
.hsv-hero { padding-top: 72px; padding-bottom: 40px; text-align: center; }
.hsv-hero .hsv-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hsv-hero h1, .hsv-hero p { margin: 0; max-width: 780px; }
.hsv-sub { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: #FF0033; color: #fff !important; font-weight: 600; text-decoration: none; }
.hsv-lib { padding-top: 24px; padding-bottom: 72px; }
.hsv-filters { display: flex; flex-direction: column; gap: 14px; padding: 16px; border: 1px solid #EEF0F7; border-radius: 16px; background: #fff; position: sticky; top: 76px; z-index: 5; box-shadow: 0 6px 24px rgba(28, 31, 58, .06); }
.hsv-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.hsv-chip { font: inherit; white-space: nowrap; font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 1px solid #DCDDF0; background: #fff; color: #3A3E5C; cursor: pointer; }
.hsv-chip[aria-pressed="true"] { background: linear-gradient(90deg, #4A1FB8, #0A6CD6); border-color: transparent; color: #fff; font-weight: 600; }
.hsv-selects { display: flex; flex-wrap: wrap; gap: 12px; }
.hsv-selects label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #5B6080; }
.hsv-selects select { font: inherit; font-size: 14px; padding: 6px 10px; border-radius: 10px; border: 1px solid #DCDDF0; background: #fff; color: #1C1F3A; }
.hsv-empty { text-align: center; color: #5B6080; margin: 40px 0; }
.hsv-lib .hsv-block[hidden], .hsv-card[hidden] { display: none !important; }
@media (max-width: 600px) { .hsv-filters { position: static; } .hsv-section { padding-top: 48px; padding-bottom: 48px; } }

/* 1.1.0: link to the edition page on video cards */
.hsv-edlink { font-size: 14px; font-weight: 600; color: #0A6CD6; text-decoration: none; }
.hsv-edlink:hover { text-decoration: underline; }
.hsv-ed-hero { padding-bottom: 24px; }
