/* =========================================================
   Youthentic Play — OTT front-end styles
   Palette: White #ffffff canvas, Ink #14161a text, Orange #fd9900 accent
   Type: Poppins (display) + Inter (body)
   ========================================================= */

.yp-app {
	--yp-orange: #fd9900;
	--yp-orange-dark: #e08600;
	--yp-orange-tint: #fff4e2;
	--yp-ink: #14161a;
	--yp-ink-soft: #565a63;
	--yp-line: #ececee;
	--yp-white: #ffffff;
	--yp-radius: 14px;
	--yp-shadow: 0 10px 30px rgba(20, 22, 26, 0.08);
	--yp-shadow-hover: 0 18px 40px rgba(253, 153, 0, 0.22);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--yp-ink);
	background: var(--yp-white);
	max-width: 1360px;
	margin: 0 auto;
	padding: 0 clamp(16px, 4vw, 48px) 80px;
}

.yp-app h1, .yp-app h2, .yp-app h3 {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 0 0 8px;
}

.yp-app a { text-decoration: none; color: inherit; }
.yp-app button { font-family: inherit; cursor: pointer; }
.yp-app *:focus-visible { outline: 3px solid var(--yp-orange); outline-offset: 2px; }

.yp-empty { color: var(--yp-ink-soft); padding: 32px 0; text-align: center; }

/* -------------------- Buttons -------------------- */
.yp-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 26px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	border: none;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.yp-btn-primary { background: var(--yp-orange); color: #fff; box-shadow: 0 10px 24px rgba(253,153,0,.35); }
.yp-btn-primary:hover { background: var(--yp-orange-dark); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(253,153,0,.42); }
.yp-btn-ghost { background: rgba(20,22,26,.06); color: var(--yp-ink); backdrop-filter: blur(6px); }
.yp-btn-ghost:hover { background: rgba(20,22,26,.12); transform: translateY(-2px); }
.yp-btn-small { padding: 9px 18px; font-size: 13px; margin-top: 24px; }

/* -------------------- Hero -------------------- */
.yp-hero {
	margin: 0 -48px 48px;
	padding: 120px 48px 90px;
	border-radius: 0 0 32px 32px;
	background-size: cover;
	background-position: center;
	background-color: #1a1a1a;
	color: #fff;
	position: relative;
}
.yp-hero-inner { max-width: 640px; }
.yp-hero-eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--yp-orange);
	background: rgba(255,255,255,.12);
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 18px;
}
.yp-hero-title { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; margin-bottom: 16px; color: #fff; }
.yp-hero-desc { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.85); margin-bottom: 28px; }
.yp-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.yp-hero .yp-btn-ghost { background: rgba(255,255,255,.16); color: #fff; }
.yp-hero .yp-btn-ghost:hover { background: rgba(255,255,255,.26); }

@media (max-width: 640px) {
	.yp-hero { margin: 0 -16px 32px; padding: 90px 20px 56px; border-radius: 0 0 22px 22px; }
}

/* -------------------- Search -------------------- */
.yp-search-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #f7f7f8;
	border: 1px solid var(--yp-line);
	border-radius: 999px;
	padding: 14px 22px;
	margin: 0 0 32px;
	max-width: 480px;
	transition: border-color .18s ease, box-shadow .18s ease;
}
.yp-search-bar:focus-within { border-color: var(--yp-orange); box-shadow: 0 0 0 4px var(--yp-orange-tint); }
.yp-search-bar input {
	border: none; background: transparent; outline: none; width: 100%;
	font-size: 15px; color: var(--yp-ink); font-family: 'Inter', sans-serif;
}
.yp-search-icon { opacity: .5; }

/* -------------------- Toolbar / filters -------------------- */
.yp-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.yp-filter-group { display: flex; gap: 10px; flex-wrap: wrap; }
.yp-filter-pill {
	border: 1px solid var(--yp-line);
	background: #fff;
	padding: 9px 18px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 500;
	color: var(--yp-ink-soft);
	transition: all .16s ease;
}
.yp-filter-pill:hover { border-color: var(--yp-orange); color: var(--yp-ink); }
.yp-filter-pill.is-active { background: var(--yp-ink); border-color: var(--yp-ink); color: #fff; }
.yp-scholar-select {
	border: 1px solid var(--yp-line);
	border-radius: 999px;
	padding: 9px 16px;
	font-size: 14px;
	background: #fff;
	color: var(--yp-ink-soft);
}

/* -------------------- Grid & Cards -------------------- */
.yp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 24px;
}
.yp-grid-loading { text-align: center; padding: 30px 0; color: var(--yp-ink-soft); display: none; }

.yp-card { position: relative; display: block; border-radius: var(--yp-radius); transition: transform .22s ease, box-shadow .22s ease; }
.yp-card:hover { transform: translateY(-6px); box-shadow: var(--yp-shadow-hover); }
.yp-card-link { display: block; border-radius: var(--yp-radius); overflow: hidden; }

.yp-watchlist-btn {
	position: absolute; top: 10px; left: 10px; z-index: 2;
	width: 30px; height: 30px; border-radius: 50%; border: none;
	background: rgba(20,22,26,.55); color: #fff;
	display: flex; align-items: center; justify-content: center;
	backdrop-filter: blur(4px);
	transition: background .16s ease, transform .16s ease, color .16s ease;
}
.yp-watchlist-btn:hover { background: rgba(20,22,26,.8); transform: scale(1.08); }
.yp-watchlist-btn.is-active { background: var(--yp-orange); color: #fff; }
.yp-watchlist-btn.is-active svg { fill: currentColor; }

.yp-card-thumb {
	position: relative;
	aspect-ratio: 3 / 4;
	background: linear-gradient(135deg, #fdece0, #fff);
	overflow: hidden;
	border-radius: var(--yp-radius);
}
.yp-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.yp-card:hover .yp-card-thumb img { transform: scale(1.07); }
.yp-card-thumb-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 28px; color: var(--yp-orange); }

.yp-card-play {
	position: absolute; inset: 0; margin: auto; width: 52px; height: 52px;
	background: rgba(253,153,0,.92); color: #fff; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; font-size: 16px;
	opacity: 0; transform: scale(.8);
	transition: opacity .2s ease, transform .2s ease;
	box-shadow: 0 8px 20px rgba(253,153,0,.4);
}
.yp-card:hover .yp-card-play, .yp-episode-row:hover .yp-card-play { opacity: 1; transform: scale(1); }

.yp-badge-premium {
	position: absolute; top: 10px; right: 10px; background: var(--yp-ink); color: #fff;
	font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
	padding: 4px 10px; border-radius: 999px;
}
.yp-badge-inline { position: static; display: inline-block; vertical-align: middle; }

.yp-card-type {
	position: absolute; bottom: 10px; left: 10px; background: rgba(255,255,255,.92); color: var(--yp-ink);
	font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}

.yp-card-body { padding: 14px 4px 0; }
.yp-card-body h3 { font-size: 15px; line-height: 1.35; margin-bottom: 4px; }
.yp-card-meta { font-size: 13px; color: var(--yp-ink-soft); margin: 0; }

/* -------------------- Horizontal rows (carousels) -------------------- */
.yp-row { margin: 56px 0; }
.yp-row-title { font-size: 22px; margin-bottom: 18px; }
.yp-row-title-small { font-size: 17px; }
.yp-row-scroll {
	display: flex; gap: 20px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity;
	-ms-overflow-style: none; scrollbar-width: thin; scrollbar-color: var(--yp-orange) transparent;
}
.yp-row-scroll::-webkit-scrollbar { height: 6px; }
.yp-row-scroll::-webkit-scrollbar-thumb { background: var(--yp-orange); border-radius: 6px; }
.yp-row-card, .yp-continue-card { flex: 0 0 220px; scroll-snap-align: start; }

.yp-continue-card { position: relative; }
.yp-continue-progress { height: 4px; background: var(--yp-line); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.yp-continue-progress span { display: block; height: 100%; background: var(--yp-orange); }

/* -------------------- Detail page (series backdrop) -------------------- */
.yp-detail-backdrop {
	margin: 0 -48px; padding: 130px 48px 60px; background-size: cover; background-position: center;
	background-color: #1a1a1a; color: #fff; border-radius: 0 0 32px 32px;
}
.yp-detail-backdrop-inner { display: flex; gap: 32px; align-items: flex-end; max-width: 900px; }
.yp-detail-poster { width: 150px; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,.35); flex-shrink: 0; }
.yp-detail-eyebrow { display: block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--yp-orange); margin-bottom: 10px; }
.yp-detail-heading h1 { font-size: clamp(28px, 4vw, 42px); color: #fff; margin-bottom: 10px; }
.yp-detail-scholars { color: rgba(255,255,255,.8); margin-bottom: 20px; font-size: 15px; }
.yp-detail-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.yp-detail-body { padding-top: 40px; }
.yp-detail-desc { max-width: 760px; color: var(--yp-ink-soft); line-height: 1.7; margin-bottom: 40px; font-size: 15px; }

@media (max-width: 640px) {
	.yp-detail-backdrop { margin: 0 -16px; padding: 90px 20px 40px; border-radius: 0 0 22px 22px; }
	.yp-detail-backdrop-inner { flex-direction: column; align-items: flex-start; }
	.yp-detail-poster { width: 110px; }
}

/* -------------------- Episode list rows -------------------- */
.yp-episode-section { margin-bottom: 40px; }
.yp-episode-list { display: flex; flex-direction: column; gap: 4px; }
.yp-episode-row {
	display: flex; gap: 18px; align-items: center; padding: 12px; border-radius: 12px; transition: background .16s ease;
}
.yp-episode-row:hover { background: var(--yp-orange-tint); }
.yp-episode-thumb { position: relative; width: 160px; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: #f2f2f3; }
.yp-episode-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yp-episode-info h3 { font-size: 16px; margin-bottom: 2px; }
.yp-episode-excerpt { font-size: 13px; color: var(--yp-ink-soft); margin: 6px 0 0; max-width: 560px; }

@media (max-width: 560px) {
	.yp-episode-thumb { width: 110px; }
}

/* -------------------- Watch / player page -------------------- */
.yp-watch-page { padding-top: 32px; }
.yp-player-wrap { position: relative; width: 100%; border-radius: 18px; overflow: hidden; background: #000; box-shadow: var(--yp-shadow); }
.yp-player-16x9 { aspect-ratio: 16 / 9; }
.yp-player-16x9 iframe, .yp-native-video { width: 100%; height: 100%; display: block; border: none; }
.yp-player-empty { aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; background: #14161a; color: #999; border-radius: 18px; }

.yp-watch-info { display: grid; grid-template-columns: 1fr 320px; gap: 40px; margin-top: 32px; }
.yp-watch-main h1 { font-size: clamp(24px, 3.4vw, 32px); }
.yp-watch-upnext { background: #f7f7f8; border-radius: var(--yp-radius); padding: 18px; align-self: start; }

@media (max-width: 860px) {
	.yp-watch-info { grid-template-columns: 1fr; }
}

/* -------------------- Modal (trailer) -------------------- */
.yp-modal { position: fixed; inset: 0; background: rgba(10,10,10,.82); display: none; align-items: center; justify-content: center; z-index: 9999; padding: 20px; }
.yp-modal.is-open { display: flex; }
.yp-modal-inner { width: min(920px, 100%); position: relative; }
.yp-modal-close { position: absolute; top: -44px; right: 0; background: none; border: none; color: #fff; font-size: 32px; line-height: 1; }

/* -------------------- Misc -------------------- */
.yp-native-wrap video { background: #000; }
