.thrisat-meme-example-entry {
	overflow: visible;
}

.thrisat-meme-example-entry .thrisat-page-header {
	max-width: 840px;
	margin-bottom: 1.4rem;
}

.thrisat-meme-example-entry .thrisat-page-header p:last-child {
	color: var(--thrisat-muted);
	font-size: 1.08rem;
	font-weight: 700;
}

.thrisat-reels-page,
.thrisat-posters-page,
.thrisat-by-category-page {
	position: relative;
	width: 100%;
	max-width: none;
	margin: 0 auto;
	color: var(--thrisat-ink);
}

.thrisat-reels-page *,
.thrisat-posters-page *,
.thrisat-by-category-page * {
	box-sizing: border-box;
	animation: none !important;
	transition: none !important;
}

.thrisat-reels-page h5,
.thrisat-posters-page h5,
.thrisat-by-category-page h5,
.thrisat-reels-page p,
.thrisat-posters-page p,
.thrisat-by-category-page p {
	max-width: none;
	margin: 0 0 12px;
	color: var(--thrisat-ink);
}

.thrisat-reels-grid,
.thrisat-posters-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	width: 100%;
	padding: 12px 0 0;
}

.thrisat-reels-card,
.thrisat-posters-card {
	display: grid;
	width: 100%;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: #111827;
	color: #fff;
	cursor: pointer;
	overflow: hidden;
	text-align: left;
}

.thrisat-reels-card video,
.thrisat-posters-card img {
	position: relative;
	display: block;
	width: 100%;
	max-width: 100%;
	background: #000;
}

.thrisat-reels-card video {
	aspect-ratio: 9 / 16;
	height: auto;
	object-fit: cover;
}

.thrisat-posters-card img {
	height: auto;
}

.thrisat-reels-card-label,
.thrisat-posters-card-label {
	display: block;
	padding: 8px 10px;
	background: #111827;
	color: #fff;
	font-size: 13px;
	line-height: 1.4;
	text-align: left;
}

.thrisat-reels-modal,
.thrisat-posters-modal,
.thrisat-by-category-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.85);
}

.thrisat-reels-modal.is-open,
.thrisat-posters-modal.is-open,
.thrisat-by-category-modal.is-open {
	display: flex;
}

.thrisat-reels-modal__dialog,
.thrisat-posters-modal__dialog {
	position: relative;
	background: #000;
}

.thrisat-reels-modal__dialog {
	width: min(100%, 420px);
	aspect-ratio: 9 / 16;
}

.thrisat-posters-modal__dialog {
	width: min(100%, 920px);
	max-height: calc(100vh - 32px);
	display: grid;
	place-items: center;
}

.thrisat-reels-modal__dialog video,
.thrisat-posters-modal__dialog img {
	display: block;
	width: 100%;
	max-width: 100%;
	background: #000;
}

.thrisat-reels-modal__dialog video {
	height: 100%;
	object-fit: contain;
}

.thrisat-posters-modal__dialog img {
	max-height: calc(100vh - 32px);
	object-fit: contain;
}

.thrisat-reels-modal__close,
.thrisat-posters-modal__close,
.thrisat-by-category-modal__close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.thrisat-posters-modal__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
}

.thrisat-posters-modal__prev {
	left: 8px;
}

.thrisat-posters-modal__next {
	right: 8px;
}

.thrisat-by-category-shell {
	width: 100%;
	margin: 0 auto;
	padding: 0;
}

.thrisat-by-category-search {
	margin: 16px 0;
}

.thrisat-by-category-page #search-box {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	color: #111827;
}

.thrisat-by-category-list {
	list-style: none;
	padding: 0;
	margin: 0;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
}

.thrisat-by-category-list li {
	padding: 12px 14px;
	border-bottom: 1px solid #e5e7eb;
	color: #111827 !important;
	cursor: pointer;
	line-height: 1.5;
}

.thrisat-by-category-list li:last-child {
	border-bottom: 0;
}

.thrisat-by-category-list li.is-highlighted {
	color: #5e17eb !important;
	font-weight: 700;
}

.thrisat-by-category-list li.is-active {
	background: #eef7fb;
}

.thrisat-by-category-modal__dialog {
	position: relative;
	width: min(100%, 1120px);
	max-height: calc(100vh - 32px);
	padding: 20px;
	overflow: auto;
	border-radius: 10px;
	background: #fff;
	color: #111827;
}

.thrisat-by-category-modal__close {
	top: 10px;
	right: 10px;
	background: #111827;
}

.thrisat-by-category-modal__content {
	display: grid;
	gap: 24px;
	margin-top: 16px;
}

.thrisat-by-category-section {
	display: grid;
	gap: 12px;
}

.thrisat-by-category-section h6 {
	margin: 0;
	color: #111827;
	font-size: 16px;
	line-height: 1.4;
}

.thrisat-by-category-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.thrisat-by-category-grid img,
.thrisat-by-category-grid video {
	display: block;
	width: 100%;
	max-width: 100%;
	border-radius: 8px;
	background: #000;
}

.thrisat-by-category-grid img {
	height: auto;
}

.thrisat-by-category-grid video {
	aspect-ratio: 9 / 16;
	object-fit: cover;
}

.thrisat-by-category-empty {
	margin: 0;
	color: #4b5563;
}

@media (max-width: 767px) {
	.thrisat-by-category-page .thrisat-by-category-list li {
		color: #111827 !important;
	}

	.thrisat-by-category-page .thrisat-by-category-list li.is-highlighted {
		color: #5e17eb !important;
	}
}

@media (min-width: 640px) {
	.thrisat-reels-grid,
	.thrisat-posters-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}
}

@media (min-width: 768px) {
	.thrisat-by-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}
}

@media (min-width: 960px) {
	.thrisat-reels-grid,
	.thrisat-posters-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
