@charset "utf-8";

/* ==========================================================================
   CamTalk / camtalk/vod.php - 매력영상, the wide window (vd1).

   SCOPE. Every rule is inside `@media only screen and (min-width: 1001px)`,
   the other side of the project's breakpoint (css/camtalk-vod-mobile.css is
   `max-width: 1000px` from its first rule to its last), and under
   `.ctv-page`, the class only this page puts on <body>. The phone is not
   touched by a line of this file. It is linked from vod.php itself.

   ONE PAGE FOR BOTH WIDTHS. The wide window lays out the phone's own
   markup - the same twelve videos, the same strings, the same categories,
   더보기 and player (js/camtalk-vod-mobile.js, running once at any width).

   THE LAYOUT, top to bottom: a full-screen hero (the wide still under the
   site's transparent bar), the categories in one row, the recommended video
   as poster (60%) and words, the trending and just-added grids four across
   (three below 1180px), the shared footer.

   SCALE at 1440: container 1200 (gutters 120), 1280 from 1680; section
   headings 32, card titles 18, copy 17, dates 14; cards 24 apart, sections
   72 apart. Type is the site's Paperozi.

   STACKING. .gnb is z-index 1; every section here is its own stacking
   context at z-index 0.
   ========================================================================== */

/* The one rule outside the wide window: the wide still is not laid out on a
   phone (its <img> holds a 1 x 1 inline placeholder there, so it would be a
   1672 x 941 box of nothing). */
.ctv-hero__desk { display: none; }

@media only screen and (min-width: 1001px) {

	.ctv-hero__desk { display: block; }

	.ctv-page {
		--cv-max: 1200px;
		--cv-gutter: clamp(40px, 6vw, 120px);
		--cv-w: min(var(--cv-max), calc(100% - 2 * var(--cv-gutter)));
		--cv-gap: 24px;
		--cv-section: 72px;
		--cv-radius: 14px;

		--cv-bg: #ffffff;
		--cv-ink: #14141a;
		--cv-ink-2: #3c3c45;
		--cv-muted: #7d7d88;
		--cv-line: #ebebef;
		--cv-red: #e8253f;
		--cv-red-deep: #cf1b33;
		--cv-header: 96px;               /* .gnb on a wide window (camtalk-header.css) */
	}

	.ctv, .ctv *, .ctv *::before, .ctv *::after { box-sizing: border-box; }
	.ctv-page .ctv[hidden] { display: block; }
	.ctv { background: var(--cv-bg); color: var(--cv-ink); }
	.ctv img { display: block; max-width: 100%; }
	.ctv a { text-decoration: none; }
	.ctv ul { list-style: none; }
	.ctv em { font-style: normal; }
	:where(.ctv) button { background: none; font: inherit; cursor: pointer; }
	.ctv a:focus-visible,
	.ctv button:focus-visible {
		outline: 3px solid var(--cv-red);
		outline-offset: 3px;
	}

	/* the bar's hairline would be ruled across the photograph; it returns
	   when js/common.js turns the bar white past 150px */
	.ctv-page .gnb:not(.gnb_invert) { border-bottom-color: transparent; }

	/* ======================================================================
	   1. HERO - one screen with the bar lying over its top
	   ====================================================================== */

	.ctv-hero {
		position: relative;
		z-index: 0;
		isolation: isolate;
		display: flex;
		flex-direction: column;
		min-height: 100vh;
		min-height: 100svh;
		overflow: hidden;
		background: #0b0f24;
	}
	/* the phone's clip and its poster are not laid out here (the clip is
	   never given a source above the breakpoint, see the script) */
	.ctv-hero__video { display: none; }

	/* the wide still, cover-fitted: her face sits right of the middle of the
	   file, so the frame is held a little left of centre and the words on
	   the left never reach her */
	.ctv-hero__desk,
	.ctv-hero__desk img {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
	}
	.ctv-hero__desk { z-index: 0; }
	.ctv-hero__desk img { max-width: none; object-fit: cover; object-position: 38% 40%; }

	/* soft and local: the top band for the bar and the crumbs, a pool at the
	   lower left for the words; her face and the middle stay untouched */
	.ctv-hero__shade {
		position: absolute;
		inset: 0;
		z-index: 1;
		pointer-events: none;
		background:
			linear-gradient(to bottom, rgba(6, 8, 20, .55) 0, rgba(6, 8, 20, .28) 120px, rgba(6, 8, 20, 0) 220px),
			radial-gradient(64% 70% at 0% 100%, rgba(6, 8, 20, .86) 0%, rgba(6, 8, 20, .66) 34%, rgba(6, 8, 20, .30) 64%, rgba(6, 8, 20, 0) 100%),
			linear-gradient(to top, rgba(6, 8, 20, .62) 0%, rgba(6, 8, 20, .36) 16%, rgba(6, 8, 20, .10) 30%, rgba(6, 8, 20, 0) 40%);
	}

	.ctv-hero__body {
		position: relative;
		z-index: 2;
		display: flex;
		flex: 1 1 auto;
		flex-direction: column;
		width: var(--cv-w);
		margin: 0 auto;
		padding: calc(var(--cv-header) + 26px) 0 clamp(48px, 7vh, 64px);
		color: #fff;
	}
	.ctv-crumb {
		margin-bottom: auto;
		padding-bottom: 32px;
		font-size: 14px;
		font-weight: 600;
		letter-spacing: .01em;
		color: rgba(255, 255, 255, .8);
		text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
	}
	.ctv-crumb b { color: #fff; font-weight: 700; }
	.ctv-crumb span { margin: 0 8px; opacity: .6; }

	.ctv-hero__title {
		font-size: clamp(52px, min(4.4vw, 7.4vh), 68px);    /* 63 at 1440 x 900 */
		font-weight: 800;
		line-height: 1.06;
		letter-spacing: -.03em;
		word-break: keep-all;
		text-shadow: 0 2px 20px rgba(0, 0, 0, .3);
	}
	.ctv-hero__sub {
		margin-top: clamp(14px, 2vh, 20px);
		font-size: clamp(22px, 1.7vw, 26px);
		font-weight: 600;
		line-height: 1.42;
		letter-spacing: -.015em;
		color: rgba(255, 255, 255, .97);
		word-break: keep-all;
	}
	.ctv-hero__desc {
		margin-top: clamp(10px, 1.6vh, 14px);
		max-width: 620px;
		font-size: clamp(18px, 1.32vw, 20px);
		font-weight: 400;
		line-height: 1.62;
		color: rgba(255, 255, 255, .8);
		word-break: keep-all;
	}
	html[lang="en"] .ctv-hero__title,
	html[lang="en"] .ctv-hero__sub,
	html[lang="en"] .ctv-hero__desc { word-break: normal; overflow-wrap: break-word; }
	.ctv-hero__cta {
		align-self: flex-start;
		display: inline-flex;
		align-items: center;
		gap: 10px;
		margin-top: clamp(22px, 3.4vh, 32px);
		min-height: 54px;
		padding: 0 28px;
		border: 0;
		border-radius: 999px;
		background: var(--cv-red);
		color: #fff;
		font-size: 17px;
		font-weight: 700;
		letter-spacing: -.01em;
		box-shadow: 0 12px 28px -14px rgba(232, 37, 63, .9);
		transition: background-color .2s, transform .2s;
	}
	.ctv-hero__cta span { color: #fff; }
	.ctv-hero__cta:hover { background: var(--cv-red-deep); transform: translateY(-1px); }
	.ctv-hero__cta svg {
		width: 18px; height: 18px; fill: none; stroke: #fff;
		stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
	}
	.ctv-hero__cta:focus-visible { outline-color: #fff; }

	/* ======================================================================
	   2. THE CATEGORIES - one row on the container's left edge
	   ====================================================================== */

	.ctv-cats {
		position: relative;
		z-index: 0;
		isolation: isolate;
		width: var(--cv-w);
		margin: 0 auto;
		padding: 48px 0 0;
		scroll-margin-top: var(--cv-header);
		background: var(--cv-bg);
	}
	.ctv-cats__row { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; overflow: visible; }
	.ctv-chip {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		min-height: 44px;
		padding: 0 20px;
		border: 0;
		border-radius: 999px;
		background: #f1f1f4;
		color: var(--cv-ink-2);
		font-size: 15px;
		font-weight: 600;
		letter-spacing: -.01em;
		white-space: nowrap;
		transition: background-color .2s, color .2s;
	}
	.ctv-chip span { color: inherit; }
	.ctv-chip:hover { background: #e7e7ec; }
	.ctv-chip__icon {
		width: 17px; height: 17px; fill: none; stroke: currentColor;
		stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
	}
	.ctv-chip.is-on,
	.ctv-chip.is-on:hover {
		background: var(--cv-red);
		color: #fff;
		box-shadow: 0 8px 20px -12px rgba(232, 37, 63, .95);
	}
	.ctv-chip.is-on .ctv-chip__icon { fill: currentColor; stroke: none; }

	/* ======================================================================
	   3. SECTIONS AND HEADINGS
	   ====================================================================== */

	.ctv-section {
		position: relative;
		z-index: 0;
		isolation: isolate;
		width: var(--cv-w);
		margin: 0 auto;
		padding: var(--cv-section) 0 0;
		background: var(--cv-bg);
	}
	.ctv-section[hidden] { display: none; }
	.ctv-cats + .ctv-section { padding-top: 48px; }
	.ctv-section:last-of-type { padding-bottom: 112px; }

	.ctv-head {
		display: flex;
		align-items: center;
		gap: 16px;
		margin-bottom: 28px;
	}
	.ctv-head__title {
		position: relative;
		flex: 1 1 auto;
		min-width: 0;
		padding-left: 18px;
		font-size: clamp(28px, 2.25vw, 34px);              /* 32 at 1440 */
		font-weight: 800;
		line-height: 1.24;
		letter-spacing: -.03em;
		color: var(--cv-ink);
		word-break: keep-all;
	}
	.ctv-head__title::before {
		content: "";
		position: absolute;
		left: 0;
		top: .18em;
		width: 5px;
		height: .9em;
		border-radius: 3px;
		background: var(--cv-red);
	}
	html[lang="en"] .ctv-head__title { word-break: normal; }

	.ctv-more {
		flex: 0 0 auto;
		display: inline-flex;
		align-items: center;
		gap: 6px;
		min-height: 40px;
		padding: 0 4px;
		border: 0;
		font-size: 15px;
		font-weight: 600;
		color: var(--cv-ink-2);
		white-space: nowrap;
		transition: color .2s;
	}
	.ctv-more span { color: inherit; }
	.ctv-more:hover { color: var(--cv-red); }
	.ctv-more[hidden] { display: none; }
	.ctv-more svg {
		width: 17px; height: 17px; fill: none; stroke: currentColor;
		stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
		transition: transform .2s;
	}
	.ctv-more:hover svg { transform: translateX(2px); }

	/* ======================================================================
	   4. POSTERS - 16:9, the sources' own shape
	   ====================================================================== */

	.ctv-poster {
		position: relative;
		display: block;
		aspect-ratio: 16 / 9;
		border-radius: var(--cv-radius);
		overflow: hidden;
		background: #e7e7ea;
	}
	.ctv-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
	.ctv-poster--lg { border-radius: 18px; }
	.ctv-card .ctv-poster__play { display: none; }

	.ctv-poster__play {
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
		display: grid;
		place-items: center;
		width: 56px;
		height: 56px;
		border: 2px solid rgba(255, 255, 255, .92);
		border-radius: 50%;
		background: rgba(12, 12, 18, .30);
		transition: background-color .25s, transform .25s;
	}
	.ctv-poster__play svg { width: 26px; height: 26px; fill: #fff; margin-left: 2px; }
	.ctv-poster__play--lg { width: 80px; height: 80px; border-width: 3px; }
	.ctv-poster__play--lg svg { width: 38px; height: 38px; }

	/* bottom right, over the channel watermark eight thumbnails carry there */
	.ctv-poster__time {
		position: absolute;
		right: 6px;
		bottom: 6px;
		min-height: 26px;
		display: flex;
		align-items: center;
		padding: 0 9px 1px;
		border-radius: 7px;
		background: rgba(8, 8, 12, .9);
		color: #fff;
		font-size: 13px;
		font-weight: 700;
		line-height: 1.1;
		letter-spacing: .01em;
		font-variant-numeric: tabular-nums;
	}
	.ctv-poster--lg .ctv-poster__time {
		right: 16px;
		bottom: 16px;
		min-height: 30px;
		padding: 0 11px 1px;
		font-size: 14px;
	}
	.ctv-poster__badge {
		position: absolute;
		left: 16px;
		top: 16px;
		padding: 7px 12px 8px;
		border-radius: 9px;
		background: rgba(12, 12, 18, .72);
		color: #fff;
		font-size: 12px;
		font-weight: 800;
		line-height: 1;
		letter-spacing: .12em;
	}

	/* hover: the picture breathes, nothing moves in the grid */
	.ctv-card__link:hover .ctv-poster img,
	.ctv-pick:hover .ctv-poster img { transform: scale(1.03); }
	.ctv-pick:hover .ctv-poster__play { background: var(--cv-red); border-color: var(--cv-red); transform: translate(-50%, -50%) scale(1.05); }
	.ctv-card__link:focus-visible,
	.ctv-pick:focus-visible { outline-offset: 6px; border-radius: 6px; }

	/* ======================================================================
	   5. THE RECOMMENDED VIDEO - poster 60%, words beside it
	   ====================================================================== */

	.ctv-pick {
		display: grid;
		grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
		column-gap: 44px;
		align-items: center;
		color: inherit;
	}
	.ctv-pick__body { display: block; padding: 0; }
	.ctv-label {
		display: block;
		font-size: 13px;
		font-weight: 800;
		letter-spacing: .1em;
		line-height: 1.2;
		color: var(--cv-red);
	}
	.ctv-pick__title {
		display: block;
		margin-top: 14px;
		font-size: clamp(28px, 2.2vw, 34px);              /* 32 at 1440 */
		font-weight: 800;
		line-height: 1.3;
		letter-spacing: -.03em;
		color: var(--cv-ink);
		word-break: keep-all;
	}
	.ctv-pick__title em { color: var(--cv-red); }
	.ctv-pick__desc {
		display: block;
		margin-top: 16px;
		font-size: 17px;
		font-weight: 400;
		line-height: 1.7;
		color: var(--cv-ink-2);
		word-break: keep-all;
	}
	html[lang="en"] .ctv-pick__title,
	html[lang="en"] .ctv-pick__desc { word-break: normal; overflow-wrap: break-word; }
	.ctv-pick__by {
		display: flex;
		align-items: center;
		gap: 12px;
		margin-top: 22px;
		font-size: 14px;
		color: var(--cv-muted);
		font-variant-numeric: tabular-nums;
	}
	.ctv-pick__ch {
		display: inline-flex;
		align-items: center;
		padding: 5px 12px 6px;
		border: 1px solid var(--cv-line);
		border-radius: 999px;
		font-weight: 700;
		color: var(--cv-ink-2);
	}

	/* ======================================================================
	   6. THE GRIDS - four across, the dates on one baseline per row
	   ====================================================================== */

	.ctv-grid {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 40px var(--cv-gap);
	}
	.ctv-card { min-width: 0; display: flex; }
	.ctv-card[hidden] { display: none; }
	.ctv-card__link {
		display: flex;
		flex-direction: column;
		width: 100%;
		color: inherit;
	}
	.ctv-card__meta { display: block; margin-top: 14px; }
	.ctv-card__meta .ctv-label { font-size: 12px; letter-spacing: .08em; white-space: nowrap; }
	/* three lines at most; the whole name is the link's title (the script) */
	.ctv-card__title {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
		overflow: hidden;
		margin-top: 8px;
		font-size: 18px;
		font-weight: 700;
		line-height: 1.44;
		letter-spacing: -.02em;
		color: var(--cv-ink);
		word-break: keep-all;
		overflow-wrap: anywhere;
		transition: color .2s;
	}
	.ctv-card__link:hover .ctv-card__title { color: var(--cv-red-deep); }
	html[lang="en"] .ctv-card__title { word-break: normal; overflow-wrap: break-word; }
	.ctv-date {
		display: block;
		margin-top: auto;
		padding-top: 10px;
		font-size: 14px;
		font-weight: 500;
		color: var(--cv-muted);
		font-variant-numeric: tabular-nums;
	}

	/* ======================================================================
	   7. THE PLAYER - the phone's dialog, at a reading size
	   ====================================================================== */

	.ctv-player {
		position: fixed;
		inset: 0;
		z-index: 2147483000;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 72px 40px 40px;
	}
	.ctv-player[hidden] { display: none; }
	.ctv-player__veil { position: absolute; inset: 0; background: rgba(4, 5, 10, .92); }
	.ctv-player__box {
		position: relative;
		z-index: 1;
		width: min(1100px, 100%, calc((100vh - 200px) * 16 / 9));
	}
	.ctv-player__frame {
		position: relative;
		aspect-ratio: 16 / 9;
		border-radius: 14px;
		overflow: hidden;
		background: #000;
	}
	.ctv-player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
	.ctv-player__close {
		position: absolute;
		right: 0;
		bottom: calc(100% + 14px);
		display: grid;
		place-items: center;
		width: 48px;
		height: 48px;
		border: 0;
		border-radius: 50%;
		background: rgba(255, 255, 255, .14);
		transition: background-color .2s;
	}
	.ctv-player__close:hover { background: rgba(255, 255, 255, .26); }
	.ctv-player__close svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
	.ctv-player__title {
		margin-top: 18px;
		font-size: 17px;
		font-weight: 600;
		line-height: 1.5;
		color: rgba(255, 255, 255, .92);
		word-break: keep-all;
	}
	html[lang="en"] .ctv-player__title { word-break: normal; }
	body.ctv-locked { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }

	/* ======================================================================
	   8. THE REVEAL - one-shot, only on cards that were below the fold
	   ====================================================================== */

	.ctv-veil { opacity: 0; transform: translate3d(0, 10px, 0); }
	.ctv-veil.ctv-in {
		opacity: 1;
		transform: none;
		transition: opacity .42s ease, transform .42s cubic-bezier(.22, .61, .36, 1);
	}

	/* ---- wide: the container grows to 1280 -------------------------------- */
	@media (min-width: 1680px) {
		.ctv-page { --cv-max: 1280px; --cv-section: 80px; }
	}

	/* ---- narrower wide windows: three across ------------------------------ */
	@media (max-width: 1179px) {
		.ctv-page { --cv-section: 64px; }
		/* a narrow frame crops more of the wide still: she is held further
		   right so the words (ENG's longer title too) stay off her face */
		.ctv-hero__desk img { object-position: 22% 40%; }
		.ctv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
		.ctv-pick { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); column-gap: 32px; }
		.ctv-pick__title { font-size: 26px; }
		.ctv-pick__desc { font-size: 16px; }
	}

	@media (prefers-reduced-motion: reduce) {
		.ctv-veil, .ctv-veil.ctv-in { opacity: 1; transform: none; transition: none; }
		.ctv-poster img, .ctv-poster__play, .ctv-hero__cta, .ctv-chip, .ctv-more, .ctv-more svg, .ctv-card__title { transition: none; }
		.ctv-card__link:hover .ctv-poster img, .ctv-pick:hover .ctv-poster img { transform: none; }
	}
}
