* {
		margin: 0;
		padding: 0;
		box-sizing: border-box;
}

body {
		font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
		background: #ffffff;
		color: #1a202c;
}

button, input, select, textarea {
		font-family: inherit;
}

main {
		margin: 70px 8px 70px 8px;
}

@media (min-width: 768px) {
		main {
				margin: 70px 8px 8px 80px;
		}
}

header {
		height: 50px;
		width: 100%;
		background: #ffffff;
		color: #000000;
		position: fixed;
		top: 0;
		border-bottom: 1px solid #e2e8f0;
		display: flex;
		align-items: center;
		justify-content: space-between;
		z-index: 101;
}

.logo {
		display: flex;
		align-items: center;
}

.header-buttons {
		display: flex;
		gap: 5px;
}

.logo img {
		height: 50px;
		width: 50px;
		object-fit: contain;
}

.logo span {
		font-size: 20px;
		color: #ff4500;
		font-weight: 700;
		margin-left: 5px;
		user-select: none;
}

.search-btn, .notifi-btn {
		height: 50px;
		width: 50px;
		border: none;
		background: transparent;
		color: #000000;
		cursor: pointer;
}

.notification {
		position: relative;
		display: inline-block;
}

.notifi-badge {
		position: absolute;
		background: #ff0000;
		color: #ffffff;
		border-radius: 50%;
		height: 18px;
		width: 18px;
		display: flex;
		align-items: center;
		justify-content: center;
		top: 5px;
		right: 5px;
		font-size: 10px;
		font-weight: 700;
		pointer-events: none;
}

/* Hidden heading (read by Google and screen readers, not shown) */
.sr-only {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
}

/* Featured banner: picture on top, text and button below */
.weekly-banner {
		max-width: 1000px;
		border-radius: 14px;
		overflow: hidden;
		background: #ffffff;
		border: 1px solid #e2e8f0;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.weekly-banner.loading {
		min-height: 300px;
		border: none;
		box-shadow: none;
		background: linear-gradient(90deg, #edf2f7 25%, #f7fafc 50%, #edf2f7 75%);
		background-size: 200% 100%;
		animation: shimmer 1.4s linear infinite;
}

@keyframes shimmer {
		to { background-position: -200% 0; }
}

.weekly-banner > img {
		display: block;
		width: 100%;
		aspect-ratio: 16 / 9;
		object-fit: cover;
		background: #edf2f7;
}

/* Shown instead of the picture when a post has no image */
.banner-ph {
		aspect-ratio: 16 / 9;
		display: flex;
		align-items: center;
		justify-content: center;
		background: linear-gradient(135deg, #ff4500 0%, #ff7a45 100%);
		color: #ffffff;
}

.banner-ph svg {
		width: 48px;
		height: 48px;
}

.banner-description {
		padding: 16px;
}

.banner-description h2 {
		font-size: 20px;
		font-weight: 800;
		line-height: 1.3;
		margin-bottom: 6px;
		color: #1a202c;
}

.banner-description p {
		font-size: 14px;
		line-height: 1.6;
		color: #4a5568;
		margin-bottom: 14px;
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
}

.learn-more-btn {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		background: #ff4500;
		color: #ffffff;
		font-size: 14px;
		font-weight: 600;
		padding: 10px 22px;
		border-radius: 24px;
		text-decoration: none;
}

.learn-more-btn svg {
		width: 16px;
		height: 16px;
}

/* Bell is now a link, badge is hidden until there is something new */
.notifi-btn {
		display: flex;
		align-items: center;
		justify-content: center;
		text-decoration: none;
}

.notifi-badge[hidden] {
		display: none;
}

/* New section: cards that scroll sideways */
.latest {
		max-width: 1000px;
		margin-top: 26px;
}

.latest[hidden] {
		display: none;
}

.latest h2 {
		font-size: 20px;
		font-weight: 700;
		margin-bottom: 12px;
}

.latest-shelf {
		display: flex;
		gap: 14px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 6px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
}

.latest-shelf::-webkit-scrollbar {
		display: none;
}

.card {
		flex: 0 0 78%;
		max-width: 300px;
		scroll-snap-align: start;
		display: flex;
		flex-direction: column;
		gap: 6px;
		text-decoration: none;
		color: #1a202c;
		min-width: 0;
}

.card-thumb {
		position: relative;
		aspect-ratio: 16 / 9;
		border-radius: 10px;
		overflow: hidden;
		background: #edf2f7;
}

.card-thumb img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		display: block;
}

.card-ph {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
		color: #ff4500;
}

.card-ph svg {
		width: 30px;
		height: 30px;
}

/* Play icon + length, bottom-left of the picture */
.card-badge {
		position: absolute;
		left: 0;
		bottom: 0;
		display: flex;
		align-items: center;
		gap: 6px;
		background: rgba(0, 0, 0, 0.65);
		color: #ffffff;
		font-size: 12px;
		font-weight: 600;
		padding: 6px 10px;
		border-top-right-radius: 8px;
}

.card-badge svg {
		width: 14px;
		height: 14px;
}

.card-new {
		position: absolute;
		top: 6px;
		right: 6px;
		background: #ff4500;
		color: #ffffff;
		font-size: 10px;
		font-weight: 700;
		padding: 2px 8px;
		border-radius: 12px;
}

.card-title {
		font-size: 15px;
		font-weight: 600;
		line-height: 1.35;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
}

.card-sub {
		font-size: 12px;
		line-height: 1.4;
		color: #4a5568;
		display: -webkit-box;
		-webkit-line-clamp: 1;
		-webkit-box-orient: vertical;
		overflow: hidden;
}

.card-meta {
		font-size: 12px;
		color: #718096;
}

@media (min-width: 768px) {
		.card {
				flex-basis: 280px;
		}
		.weekly-banner {
				display: flex;
				align-items: stretch;
		}
		.weekly-banner > img, .banner-ph {
				width: 58%;
				aspect-ratio: auto;
				min-height: 300px;
		}
		.banner-description {
				flex: 1;
				display: flex;
				flex-direction: column;
				justify-content: center;
				align-items: flex-start;
				padding: 28px;
		}
		.banner-description h2 {
				font-size: 28px;
		}
		.banner-description p {
				font-size: 15px;
		}
}
