/* Secao "Paroquia Sao Sebastiao no YouTube" (shortcode [ssp_youtube]). */
.ssp-yt { --ssp-yt-accent: #A02525; color: #fff; text-align: left; }
.ssp-yt-live { margin: 10px 0 0; }
.ssp-yt-live-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.ssp-yt-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 30px; background: #E3242B; color: #fff; font-size: 13px; font-weight: 700; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; }
.ssp-yt-badge span { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: ssp-yt-pulse 1.4s ease-in-out infinite; }
.ssp-yt-badge.is-upcoming { background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .5); }
.ssp-yt-live-title { color: #fff; font-size: 16px; font-weight: 500; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.ssp-yt-live-start { color: rgba(255, 255, 255, .9); font-size: 14px; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.ssp-yt-player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: #000; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.ssp-yt-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.ssp-yt-videos { position: relative; margin-top: 10px; }
.ssp-yt-live + .ssp-yt-videos { margin-top: 40px; }
.ssp-yt-videos-title { margin: 0 0 14px; color: #fff; font-size: 15px; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.ssp-yt-track { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.ssp-yt-track::-webkit-scrollbar { display: none; }
@media (min-width: 576px) { .ssp-yt-track { grid-auto-columns: calc((100% - 18px) / 2); gap: 18px; } }
@media (min-width: 992px) { .ssp-yt-track { grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; } }
@media (min-width: 1200px) { .ssp-yt-track { grid-auto-columns: calc((100% - 66px) / 4); gap: 22px; } }

.ssp-yt-video { display: block; scroll-snap-align: start; padding: 10px; border-radius: 16px; background: rgba(20, 12, 12, .55); color: #fff !important; text-decoration: none; }
.ssp-yt-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #000; }
.ssp-yt-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ssp-yt-video:hover .ssp-yt-thumb img, .ssp-yt-video:focus-visible .ssp-yt-thumb img { transform: scale(1.05); }
.ssp-yt-play { position: absolute; top: 50%; left: 50%; width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .92); transform: translate(-50%, -50%); transition: background-color .25s; }
.ssp-yt-play::after { content: ""; position: absolute; top: 50%; left: 54%; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent var(--ssp-yt-accent); transform: translate(-50%, -50%); transition: border-color .25s; }
.ssp-yt-video:hover .ssp-yt-play, .ssp-yt-video:focus-visible .ssp-yt-play { background: var(--ssp-yt-accent); }
.ssp-yt-video:hover .ssp-yt-play::after, .ssp-yt-video:focus-visible .ssp-yt-play::after { border-left-color: #fff; }
.ssp-yt-video-title { display: -webkit-box; margin: 12px 2px 0; overflow: hidden; font-size: 15px; font-weight: 600; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-height: 2.8em; }
.ssp-yt-date { display: block; margin: 4px 2px 2px; color: rgba(255, 255, 255, .7); font-size: 13px; }

.ssp-yt-nav { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.ssp-yt-nav button { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 0 3px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .6); background: rgba(0, 0, 0, .3); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; transition: background-color .25s, border-color .25s, opacity .25s; }
.ssp-yt-nav button:hover, .ssp-yt-nav button:focus-visible { background: var(--ssp-yt-accent); border-color: var(--ssp-yt-accent); }
.ssp-yt-nav button:disabled { opacity: .35; pointer-events: none; }
.ssp-yt-nav.is-hidden { display: none; }
.ssp-yt-more { display: flex; justify-content: center; margin-top: 30px; }

/* Lightbox */
.ssp-yt-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .88); }
.ssp-yt-modal-box { position: relative; width: min(1100px, 100%); aspect-ratio: 16 / 9; max-height: calc(100vh - 80px); background: #000; }
.ssp-yt-modal-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ssp-yt-modal-close { position: absolute; top: -44px; right: 0; width: 40px; height: 40px; padding: 0; border: 0; background: none; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }

@keyframes ssp-yt-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) {
	.ssp-yt-badge span { animation: none; }
	.ssp-yt-track { scroll-behavior: auto; }
	.ssp-yt-thumb img { transition: none; }
}
