/**
 * TrueCrime Theme Prototype Stylesheet (Neo-Noir / Carmine #991b1b)
 * Domain: truecrime.monster
 * R125 Theme Surface
 */

:root {
	--tc-bg-main: #0d0f12;
	--tc-bg-surface: #16191f;
	--tc-bg-elevated: #20242d;
	--tc-border-subtle: #262a33;
	--tc-border-prominent: #383e4c;
	--tc-accent-carmine: #991b1b;
	--tc-accent-carmine-hover: #dc2626;
	--tc-accent-dark-carmine: #7f1d1d;
	--tc-text-primary: #f3f4f6;
	--tc-text-secondary: #9ca3af;
	--tc-text-muted: #6b7280;
	--tc-radius: 6px;
	--tc-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after {
	box-sizing: border-box;
}

img, picture, video, canvas, svg {
	display: block;
	max-width: 100%;
}

body.tc-body {
	margin: 0;
	padding: 0;
	background-color: var(--tc-bg-main);
	color: var(--tc-text-primary);
	font-family: var(--tc-font-family);
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	width: 100%;
}

a {
	color: var(--tc-text-primary);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--tc-accent-carmine-hover);
}

.tc-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
}

/* Header */
.tc-header {
	background-color: var(--tc-bg-surface);
	border-bottom: 2px solid var(--tc-accent-dark-carmine);
}

.tc-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 14px;
	padding-bottom: 14px;
	gap: 16px;
}

.tc-logo {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.5px;
	text-transform: uppercase;
	white-space: nowrap;
}

.tc-logo__accent {
	color: var(--tc-accent-carmine);
}

.tc-logo__badge {
	font-size: 11px;
	background: var(--tc-accent-carmine);
	color: #fff;
	padding: 2px 6px;
	border-radius: 4px;
	margin-left: 4px;
	vertical-align: middle;
}

.tc-search {
	flex-grow: 1;
	max-width: 500px;
}

.tc-search__box {
	display: flex;
	position: relative;
}

.tc-search__input {
	width: 100%;
	background: var(--tc-bg-main);
	border: 1px solid var(--tc-border-subtle);
	color: var(--tc-text-primary);
	padding: 8px 12px;
	border-radius: var(--tc-radius) 0 0 var(--tc-radius);
	outline: none;
	font-size: 14px;
}

.tc-search__input:focus {
	border-color: var(--tc-accent-carmine);
}

.tc-search__btn {
	background: var(--tc-accent-carmine);
	color: #fff;
	border: 1px solid var(--tc-accent-carmine);
	padding: 8px 16px;
	border-radius: 0 var(--tc-radius) var(--tc-radius) 0;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	transition: background-color 0.2s ease;
}

.tc-search__btn:hover {
	background: var(--tc-accent-carmine-hover);
}

.tc-nav-quick {
	display: flex;
	gap: 12px;
	white-space: nowrap;
}

.tc-nav-quick__link {
	font-weight: 600;
	padding: 6px 10px;
	border-radius: var(--tc-radius);
	background: var(--tc-bg-elevated);
	font-size: 13px;
}

.tc-nav-quick__link:hover {
	background: var(--tc-border-subtle);
}

.tc-subheader {
	background: var(--tc-bg-main);
	border-bottom: 1px solid var(--tc-border-subtle);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.tc-categories-bar {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 8px 0;
	gap: 18px;
	white-space: nowrap;
}

.tc-categories-bar a {
	color: var(--tc-text-secondary);
	font-size: 13px;
	font-weight: 500;
}

.tc-categories-bar a:hover {
	color: var(--tc-text-primary);
}

/* Main Content */
.tc-main {
	padding-top: 24px;
	padding-bottom: 48px;
}

.tc-section__title {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 20px 0;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--tc-border-subtle);
}

.tc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 20px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

/* Card in Grid */
.tc-card {
	min-width: 0;
	max-width: 100%;
	background: var(--tc-bg-surface);
	border: 1px solid var(--tc-border-subtle);
	border-radius: var(--tc-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.tc-card:hover {
	border-color: var(--tc-border-prominent);
	transform: translateY(-2px);
}

.tc-card__poster-link {
	position: relative;
	display: block;
	width: 100%;
	max-width: 100%;
	padding-bottom: 140%;
	background: #000;
	overflow: hidden;
}

.tc-card__img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: cover;
}

.tc-card__placeholder {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 36px;
	color: var(--tc-text-muted);
}

.tc-card__overlay {
	position: absolute;
	bottom: 8px;
	left: 8px;
	display: flex;
	gap: 6px;
}

.tc-card__info {
	padding: 12px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.tc-card__title {
	margin: 0 0 6px 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	word-wrap: break-word;
	overflow-wrap: break-word;
	word-break: break-word;
	hyphens: auto;
}

.tc-card__meta {
	margin-top: auto;
	font-size: 12px;
	color: var(--tc-text-muted);
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px;
}

.tc-card__category {
	display: inline;
}

.tc-card__category a {
	color: var(--tc-text-secondary);
	display: inline;
	transition: color 0.2s ease;
}

.tc-card__category a:hover {
	color: var(--tc-text-primary);
	text-decoration: underline;
}

.tc-card__category a + a::before {
	content: ", ";
	color: var(--tc-text-muted);
	display: inline;
}


/* Badges */
.tc-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	padding: 2px 6px;
	border-radius: 4px;
	line-height: 1.2;
}

.tc-badge--carmine {
	background: var(--tc-accent-carmine);
	color: #fff;
}

.tc-badge--subtle {
	background: rgba(0, 0, 0, 0.7);
	color: #e5e7eb;
}

/* Article / Fullstory */
.tc-article__header {
	margin-bottom: 20px;
}

.tc-breadcrumbs {
	font-size: 13px;
	color: var(--tc-text-muted);
	margin-bottom: 8px;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.tc-breadcrumbs a {
	color: var(--tc-text-secondary);
	display: inline;
}

.tc-breadcrumbs a + a::before {
	content: " » ";
	color: var(--tc-text-muted);
	margin: 0 4px;
}

.tc-meta-list li span a + a::before {
	content: ", ";
	color: var(--tc-text-muted);
	margin-right: 2px;
}

.tc-article__title {
	font-size: 28px;
	font-weight: 800;
	margin: 0 0 12px 0;
	line-height: 1.25;
	word-wrap: break-word;
	overflow-wrap: break-word;
	word-break: break-word;
}


.tc-article__badges {
	display: flex;
	gap: 8px;
}

.tc-article__media-grid {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 24px;
	margin-bottom: 30px;
	min-width: 0;
	max-width: 100%;
}

.tc-article__poster-col {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.tc-poster-img {
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: var(--tc-radius);
	border: 1px solid var(--tc-border-subtle);
	display: block;
}

.tc-poster-placeholder {
	width: 100%;
	aspect-ratio: 2/3;
	background: var(--tc-bg-surface);
	border: 1px solid var(--tc-border-subtle);
	border-radius: var(--tc-radius);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: var(--tc-text-muted);
	gap: 8px;
}

.tc-poster-placeholder__icon {
	font-size: 48px;
}

.tc-meta-list {
	list-style: none;
	margin: 0;
	padding: 0;
	background: var(--tc-bg-surface);
	border: 1px solid var(--tc-border-subtle);
	border-radius: var(--tc-radius);
	overflow: hidden;
}

.tc-meta-list li {
	padding: 10px 14px;
	border-bottom: 1px solid var(--tc-border-subtle);
	display: flex;
	justify-content: space-between;
	font-size: 14px;
}

.tc-meta-list li:last-child {
	border-bottom: none;
}

.tc-meta-list strong {
	color: var(--tc-text-secondary);
}

/* Responsive 16:9 Player */
.tc-player-section {
	margin-bottom: 36px;
	background: var(--tc-bg-surface);
	border: 1px solid var(--tc-border-subtle);
	border-radius: var(--tc-radius);
	overflow: hidden;
}

.tc-player-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: var(--tc-bg-elevated);
	border-bottom: 1px solid var(--tc-border-subtle);
	gap: 12px;
	flex-wrap: wrap;
}

.tc-player-heading {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--tc-text-primary);
}

.tc-player-tabs {
	display: flex;
	gap: 8px;
}

.tc-player-tab {
	background: var(--tc-bg-surface);
	color: var(--tc-text-secondary);
	border: 1px solid var(--tc-border-subtle);
	padding: 6px 14px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	transition: all 0.2s ease;
}

.tc-player-tab:hover {
	color: var(--tc-text-primary);
	border-color: var(--tc-border-prominent);
}

.tc-player-tab--active {
	background: var(--tc-accent-carmine);
	color: #fff;
	border-color: var(--tc-accent-carmine);
}

.tc-player-viewport {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
	height: 0;
	overflow: hidden;
	background: #000;
}

.tc-player-frame {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: none;
}

.tc-player-frame--active {
	display: block;
}

.tc-player-embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.tc-player-embed iframe {
	width: 100% !important;
	height: 100% !important;
	border: 0;
	display: block;
}

.tc-player-stub {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #11141a;
	color: var(--tc-text-muted);
	padding: 20px;
	text-align: center;
}

.tc-player-stub__msg {
	font-size: 15px;
	font-weight: 500;
}

/* Synopsis Section */
.tc-synopsis-section {
	margin-bottom: 36px;
	background: var(--tc-bg-surface);
	border: 1px solid var(--tc-border-subtle);
	border-radius: var(--tc-radius);
	padding: 20px;
}

.tc-section-subheading {
	margin: 0 0 14px 0;
	font-size: 18px;
	font-weight: 700;
	border-bottom: 1px solid var(--tc-border-subtle);
	padding-bottom: 8px;
}

.tc-synopsis-text {
	font-size: 15px;
	line-height: 1.7;
	color: #e5e7eb;
}

/* Footer */
.tc-footer {
	background: var(--tc-bg-surface);
	border-top: 1px solid var(--tc-border-subtle);
	padding: 28px 0;
	margin-top: 40px;
}

.tc-footer__inner {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
	flex-wrap: wrap;
}

.tc-footer__desc {
	margin: 6px 0 0 0;
	font-size: 13px;
	color: var(--tc-text-muted);
}

.tc-footer__copy {
	margin: 0;
	font-size: 13px;
	color: var(--tc-text-secondary);
}

.tc-footer__disclaimer {
	margin: 4px 0 0 0;
	font-size: 12px;
	color: var(--tc-text-muted);
}

/* Responsive Breakpoints & Viewport Hygiene */

/* Desktop & Tablet: 769px to 1024px */
@media (max-width: 1024px) {
	.tc-article__media-grid {
		grid-template-columns: 200px 1fr;
	}
	.tc-grid {
		grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	}
}

/* Mobile & Small Tablets: <= 768px */
@media (max-width: 768px) {
	.tc-header__inner {
		flex-direction: column;
		align-items: stretch;
	}
	.tc-search {
		max-width: 100%;
	}
	.tc-nav-quick {
		justify-content: center;
	}
	.tc-article__media-grid {
		grid-template-columns: 1fr;
	}
	.tc-article__poster-col {
		max-width: 220px;
		margin: 0 auto;
	}
	.tc-player-header {
		flex-direction: column;
		align-items: flex-start;
	}
	.tc-player-tabs {
		width: 100%;
		overflow-x: auto;
	}
	.tc-article__title {
		font-size: 22px;
	}
}

/* Target Mobile: <= 430px (e.g. iPhone 14/15/16 Pro Max) */
@media (max-width: 430px) {
	.tc-container {
		padding: 0 12px;
	}
	.tc-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
	.tc-card__title {
		font-size: 13px;
	}
	.tc-article__title {
		font-size: 20px;
	}
	.tc-player-tab {
		padding: 5px 10px;
		font-size: 12px;
	}
}

/* Target Mobile: <= 390px (e.g. iPhone 12/13/14) */
@media (max-width: 390px) {
	.tc-logo {
		font-size: 17px;
	}
	.tc-grid {
		gap: 10px;
	}
	.tc-card__title {
		font-size: 12px;
	}
	.tc-badge {
		font-size: 10px;
		padding: 1px 4px;
	}
	.tc-player-heading {
		font-size: 14px;
	}
}

/* Target Mobile: <= 360px (Compact Androids) */
@media (max-width: 360px) {
	.tc-container {
		padding: 0 8px;
	}
	.tc-card__title {
		font-size: 11px;
	}
	.tc-meta-list li {
		font-size: 12px;
		padding: 8px 10px;
	}
	.tc-player-tab {
		padding: 4px 8px;
		font-size: 11px;
	}
}

/* Generic / Static Pages */
.tc-section--generic {
	padding: 24px 0;
}
.tc-static {
	background: var(--tc-bg-surface);
	border: 1px solid var(--tc-border-subtle);
	border-radius: var(--tc-radius);
	padding: 24px;
}
.tc-search-page, .tc-form-box {
	margin: 20px 0;
}
.tc-pagination a {
	display: inline-block;
	padding: 6px 12px;
	background: var(--tc-bg-surface);
	border: 1px solid var(--tc-border-subtle);
	border-radius: 4px;
	color: var(--tc-text-primary);
	margin: 0 2px;
}
.tc-pagination span {
	display: inline-block;
	padding: 6px 12px;
	background: var(--tc-accent-carmine);
	color: #fff;
	border-radius: 4px;
	margin: 0 2px;
}
