@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600&display=swap");

.csirv, .csirv * { box-sizing: border-box; }
.csirv { --ink: #302977; --pink: #da0876; --white: #ffffff; position: relative; background: #f5f4fb; color: var(--ink); padding: 100px 24px; font-family: "Figtree", "Segoe UI", system-ui, Arial, sans-serif; }
.csirv h2, .csirv h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: -.01em; margin: 0; color: var(--ink); }
.csirv a:focus-visible, .csirv button:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.csirv-wrap { max-width: 1200px; margin: 0 auto; }

.csirv-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: 44px; }
.csirv-kicker { margin: 0 0 12px; font-size: 16px; font-weight: 600; color: var(--pink); }
.csirv .csirv-head h2 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.1; }
.csirv-btn { display: inline-block; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; padding: 16px 30px; border-radius: 999px; border: 2px solid var(--pink); background: var(--pink); color: var(--white); cursor: pointer; transition: background .25s, border-color .25s, color .25s; }
.csirv-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.csirv-btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.csirv-btn.ghost:hover { background: var(--ink); color: var(--white); }

/* media (poster / iframe / uploaded video) */
.csirv-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.csirv-media iframe, .csirv-poster, .csirv-media video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.csirv-media video { background: #000; object-fit: contain; display: block; }
.csirv-poster { display: block; padding: 0; cursor: pointer; border: 0; border-radius: 0; background-color: var(--ink); background-size: cover; background-position: center; }
.csirv-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(48,41,119,0) 45%, rgba(48,41,119,.55)); }
.csirv-play { position: absolute; z-index: 1; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--pink); display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(255,255,255,.28); transition: transform .25s, box-shadow .25s; }
.csirv-play svg { width: 24px; height: 24px; fill: var(--white); margin-left: 3px; }
.csirv-poster:hover .csirv-play { transform: scale(1.1); box-shadow: 0 0 0 12px rgba(255,255,255,.3); }

/* grid layout */
.csirv-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.csirv-card { background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: 0 18px 40px -26px rgba(48,41,119,.6); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; margin: 0; }
.csirv-card[hidden] { display: none; }
.csirv-card:hover { transform: translateY(-4px); box-shadow: 0 24px 46px -24px rgba(48,41,119,.7); }
.csirv-card-body { padding: 22px 24px 26px; border-top: 4px solid var(--pink); flex: 1; }
.csirv .csirv-card h3 { font-size: 21px; line-height: 1.3; margin-bottom: 8px; }
.csirv-card p { margin: 0; font-size: 15px; line-height: 1.65; color: #4a4a60; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.csirv-more { text-align: center; margin-top: 44px; }

/* featured layout */
.csirv-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px; align-items: start; }
.csirv-grid.single { grid-template-columns: minmax(0, 1fr); max-width: 860px; margin: 0 auto; }
.csirv-grid.single .csirv-list { display: none; }
.csirv-player { border-radius: 20px; box-shadow: 0 24px 50px -24px rgba(48,41,119,.55); }
.csirv-player .csirv-play { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.csirv-player .csirv-play svg { width: 30px; height: 30px; }
.csirv-cap { padding: 22px 4px 0; }
.csirv .csirv-cap h3 { font-size: 28px; line-height: 1.25; margin-bottom: 8px; }
.csirv-cap p { margin: 0; font-size: 17px; line-height: 1.7; color: #4a4a60; max-width: 62ch; }
.csirv-list { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 4px 6px 4px 2px; list-style: none; max-height: 520px; overflow-y: auto; }
.csirv-list li { margin: 0; }
.csirv-item { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: center; width: 100%; text-align: left; font: inherit; cursor: pointer; padding: 10px; border-radius: 16px; border: 2px solid transparent; background: var(--white); color: var(--ink); transition: border-color .25s, transform .25s; box-shadow: 0 8px 22px -16px rgba(48,41,119,.5); }
.csirv-item:hover { border-color: rgba(218,8,118,.5); transform: translateY(-2px); background: var(--white); color: var(--ink); }
.csirv-item[aria-current="true"] { border-color: var(--pink); }
.csirv-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: linear-gradient(160deg, var(--ink) 30%, var(--pink)) center / cover no-repeat; }
.csirv-thumb::after { content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23fff'/%3E%3C/svg%3E") center / 20px no-repeat; }
.csirv-item b { display: block; font-size: 16px; font-weight: 600; line-height: 1.35; }
.csirv-item em { display: block; margin-top: 4px; font-style: normal; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--pink); }

@media (max-width: 960px) {
  .csirv { padding: 72px 20px; }
  .csirv-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .csirv-grid { grid-template-columns: 1fr; gap: 28px; }
  .csirv-list { display: grid; grid-template-columns: 1fr 1fr; max-height: none; overflow: visible; }
}
@media (max-width: 600px) {
  .csirv { padding: 56px 16px; }
  .csirv-head { margin-bottom: 30px; }
  .csirv-head .csirv-btn, .csirv-more .csirv-btn { display: block; text-align: center; width: 100%; }
  .csirv-cards { grid-template-columns: 1fr; }
  .csirv .csirv-card h3 { font-size: 20px; }
  .csirv-player .csirv-play { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
  .csirv .csirv-cap h3 { font-size: 23px; }
  .csirv-list { grid-template-columns: 1fr; }
  .csirv-item { grid-template-columns: 112px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .csirv * { transition: none !important; } }
