/**
 * GeneraTube Main Stylesheet
 * High-performance, responsive YouTube-themed design system & editorial typography
 *
 * @package GeneraTube
 * @author Rifan Muazin <https://ebot.my.id>
 */

/* ==========================================================================
   1. CSS VARIABLES & THEME TOKENS
   ========================================================================== */
:root {
	/* Light Mode (YouTube Light) */
	--gt-bg: #f9f9f9;
	--gt-surface: #f1f1f1;
	--gt-surface-hover: #e5e5e5;
	--gt-surface-active: #dcdcdc;
	--gt-card-bg: #ffffff;
	--gt-border: #e2e2e2;
	--gt-border-subtle: #eaeaea;
	--gt-text: #0f0f0f;
	--gt-text-secondary: #555555;
	--gt-text-muted: #888888;
	--gt-accent: #ff0000;
	--gt-accent-hover: #cc0000;
	--gt-badge-bg: rgba(0, 0, 0, 0.82);
	--gt-badge-text: #ffffff;
	--gt-chip-bg: #e8e8e8;
	--gt-chip-text: #0f0f0f;
	--gt-chip-active-bg: #0f0f0f;
	--gt-chip-active-text: #ffffff;
	--gt-paper-bg: #ffffff;
	--gt-paper-border: #e4e4e4;
	--gt-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
	--gt-shadow-hover: 0 8px 26px rgba(0, 0, 0, 0.09);
	--gt-header-height: 56px;
	--gt-sidebar-width: 240px;
	--gt-sidebar-mini-width: 72px;
	--gt-radius-sm: 6px;
	--gt-radius-md: 12px;
	--gt-radius-lg: 18px;
	--gt-radius-full: 9999px;
	--gt-transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
	--gt-font-sans: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--gt-font-heading: 'Outfit', 'Roboto', sans-serif;
}

[data-theme="dark"] {
	/* Dark Mode (YouTube Dark Default) */
	--gt-bg: #0f0f0f;
	--gt-surface: #1f1f1f;
	--gt-surface-hover: #282828;
	--gt-surface-active: #383838;
	--gt-card-bg: #141414;
	--gt-border: #262626;
	--gt-border-subtle: #1e1e1e;
	--gt-text: #f1f1f1;
	--gt-text-secondary: #aaaaaa;
	--gt-text-muted: #717171;
	--gt-accent: #ff0000;
	--gt-accent-hover: #e60000;
	--gt-badge-bg: rgba(0, 0, 0, 0.85);
	--gt-badge-text: #ffffff;
	--gt-chip-bg: #272727;
	--gt-chip-text: #f1f1f1;
	--gt-chip-active-bg: #f1f1f1;
	--gt-chip-active-text: #0f0f0f;
	--gt-paper-bg: #181818;
	--gt-paper-border: #282828;
	--gt-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
	--gt-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.7);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: var(--gt-font-sans);
	background-color: var(--gt-bg);
	color: var(--gt-text);
	line-height: 1.5;
	transition: background-color 0.25s ease, color 0.25s ease;
	overflow-x: hidden;
}

a {
	color: inherit;
	text-decoration: none;
	transition: var(--gt-transition);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

button, input, textarea, select {
	font-family: inherit;
	font-size: inherit;
	color: inherit;
	border: none;
	outline: none;
	background: none;
}

button {
	cursor: pointer;
}

.gt-icon {
	display: inline-block;
	vertical-align: middle;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

/* ==========================================================================
   3. HEADER & NAVBAR
   ========================================================================== */
.gt-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	height: var(--gt-header-height);
	background-color: var(--gt-bg);
	border-bottom: 1px solid var(--gt-border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 16px;
	transition: background-color 0.25s ease, border-color 0.25s ease;
}

.gt-header-left {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 200px;
}

.gt-drawer-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: var(--gt-text);
	transition: var(--gt-transition);
}

.gt-drawer-btn:hover {
	background-color: var(--gt-surface-hover);
}

.gt-brand {
	display: flex;
	align-items: center;
	gap: 6px;
}

.gt-brand-logo {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: var(--gt-font-heading);
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.5px;
	color: var(--gt-text);
}

.gt-brand-tube {
	color: var(--gt-accent);
}

/* Search Pill */
.gt-header-center {
	flex: 0 1 728px;
	margin: 0 16px;
}

.gt-search-form {
	display: flex;
	align-items: center;
	width: 100%;
}

.gt-search-input-wrap {
	display: flex;
	align-items: center;
	flex: 1;
	height: 40px;
	background-color: var(--gt-bg);
	border: 1px solid var(--gt-border);
	border-right: none;
	border-radius: 40px 0 0 40px;
	padding: 0 16px;
	transition: var(--gt-transition);
}

.gt-search-input-wrap:focus-within {
	border-color: #1c62b9;
	box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

.gt-search-input {
	width: 100%;
	color: var(--gt-text);
	font-size: 0.95rem;
}

.gt-search-input::placeholder {
	color: var(--gt-text-muted);
}

.gt-search-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 40px;
	background-color: var(--gt-surface);
	border: 1px solid var(--gt-border);
	border-radius: 0 40px 40px 0;
	color: var(--gt-text);
	transition: var(--gt-transition);
}

.gt-search-submit:hover {
	background-color: var(--gt-surface-hover);
}

/* Header Right Actions */
.gt-header-right {
	display: flex;
	align-items: center;
	gap: 8px;
}

.gt-create-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0 14px;
	height: 36px;
	border-radius: var(--gt-radius-full);
	background-color: var(--gt-surface);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--gt-text);
	transition: var(--gt-transition);
}

.gt-create-btn:hover {
	background-color: var(--gt-surface-hover);
}

.gt-action-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: var(--gt-text);
	position: relative;
	transition: var(--gt-transition);
}

.gt-action-btn:hover {
	background-color: var(--gt-surface-hover);
}

.gt-badge-dot {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 8px;
	height: 8px;
	background-color: var(--gt-accent);
	border-radius: 50%;
}

.gt-user-avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	overflow: hidden;
	margin-left: 4px;
	cursor: pointer;
	border: 2px solid transparent;
	transition: var(--gt-transition);
}

.gt-user-avatar:hover {
	border-color: var(--gt-accent);
}

.gt-user-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gt-dropdown-wrapper {
	position: relative;
}

.gt-user-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: 240px;
	background-color: var(--gt-surface);
	border: 1px solid var(--gt-border);
	border-radius: var(--gt-radius-md);
	box-shadow: var(--gt-shadow);
	padding: 8px 0;
	display: none;
	z-index: 1100;
}

.gt-dropdown-wrapper:hover .gt-user-dropdown,
.gt-user-dropdown.is-active {
	display: block;
}

.gt-dropdown-header {
	padding: 12px 16px;
	border-bottom: 1px solid var(--gt-border);
	margin-bottom: 4px;
}

.gt-dropdown-name {
	font-weight: 600;
	font-size: 0.95rem;
}

.gt-dropdown-sub {
	font-size: 0.8rem;
	color: var(--gt-text-secondary);
}

.gt-dropdown-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px;
	font-size: 0.875rem;
	color: var(--gt-text);
	transition: var(--gt-transition);
}

.gt-dropdown-item:hover {
	background-color: var(--gt-surface-hover);
	color: var(--gt-accent);
}

/* ==========================================================================
   4. CHIPS FILTER BAR
   ========================================================================== */
.gt-chips-container {
	position: sticky;
	top: var(--gt-header-height);
	z-index: 990;
	background-color: var(--gt-bg);
	padding: 12px 24px;
	display: flex;
	align-items: center;
	gap: 12px;
	border-bottom: 1px solid var(--gt-border-subtle);
}

.gt-chips-scroll {
	display: flex;
	align-items: center;
	gap: 12px;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
	scroll-behavior: smooth;
	flex: 1;
}

.gt-chips-scroll::-webkit-scrollbar {
	display: none;
}

.gt-chip {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	padding: 6px 14px;
	background-color: var(--gt-chip-bg);
	color: var(--gt-chip-text);
	border-radius: var(--gt-radius-sm);
	font-size: 0.875rem;
	font-weight: 500;
	transition: var(--gt-transition);
}

.gt-chip:hover {
	background-color: var(--gt-surface-hover);
}

.gt-chip.gt-chip-active {
	background-color: var(--gt-chip-active-bg);
	color: var(--gt-chip-active-text);
	font-weight: 600;
}

.gt-chips-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background-color: var(--gt-surface);
	color: var(--gt-text);
	font-size: 1.2rem;
	font-weight: bold;
	transition: var(--gt-transition);
}

.gt-chips-arrow:hover {
	background-color: var(--gt-surface-hover);
}

/* ==========================================================================
   5. LAYOUT & SIDEBAR NAVIGATION
   ========================================================================== */
.gt-main-layout {
	display: flex;
	min-height: calc(100vh - var(--gt-header-height));
}

.gt-sidebar-drawer {
	width: var(--gt-sidebar-width);
	background-color: var(--gt-bg);
	border-right: 1px solid var(--gt-border);
	padding: 12px;
	flex-shrink: 0;
	height: calc(100vh - var(--gt-header-height));
	position: sticky;
	top: var(--gt-header-height);
	overflow-y: auto;
	transition: width 0.25s cubic-bezier(0.2, 0, 0, 1), transform 0.25s ease;
}

.gt-sidebar-drawer.is-collapsed {
	width: var(--gt-sidebar-mini-width);
	padding: 12px 4px;
}

.gt-sidebar-drawer.is-collapsed .gt-nav-text,
.gt-sidebar-drawer.is-collapsed .gt-sidebar-section-title,
.gt-sidebar-drawer.is-collapsed .gt-sidebar-footer {
	display: none;
}

.gt-sidebar-drawer.is-collapsed .gt-nav-item {
	flex-direction: column;
	gap: 4px;
	padding: 12px 0;
	justify-content: center;
	font-size: 0.65rem;
}

.gt-sidebar-section {
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--gt-border);
}

.gt-sidebar-section:last-child {
	border-bottom: none;
}

.gt-sidebar-section-title {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--gt-text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 8px 12px;
}

.gt-nav-item {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 10px 14px;
	border-radius: var(--gt-radius-md);
	color: var(--gt-text);
	font-size: 0.9rem;
	font-weight: 500;
	transition: var(--gt-transition);
}

.gt-nav-item:hover {
	background-color: var(--gt-surface-hover);
}

.gt-nav-item.is-active {
	background-color: var(--gt-surface);
	font-weight: 700;
}

.gt-content-area {
	flex: 1;
	padding: 24px;
	max-width: 100%;
	overflow-x: hidden;
}

/* ==========================================================================
   6. YOUTUBE VIDEO CARDS (Standard 16:9)
   ========================================================================== */
.gt-tube-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px 16px;
}

.gt-tube-card {
	display: flex;
	flex-direction: column;
	background: transparent;
	transition: transform 0.2s ease;
}

.gt-card-thumbnail-wrap {
	position: relative;
	width: 100%;
	border-radius: var(--gt-radius-md);
	overflow: hidden;
	background-color: var(--gt-surface);
}

.gt-ratio-16-9 {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%; /* 16:9 */
}

.gt-thumb-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.gt-tube-card:hover .gt-thumb-img {
	transform: scale(1.04);
}

.gt-placeholder-thumb {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--gt-surface) 0%, var(--gt-surface-hover) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--gt-text-muted);
}

.gt-thumb-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	opacity: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.25s ease;
}

.gt-play-btn {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background-color: var(--gt-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	transform: scale(0.8);
	transition: transform 0.25s ease;
	box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

.gt-tube-card:hover .gt-thumb-overlay {
	opacity: 1;
}

.gt-tube-card:hover .gt-play-btn {
	transform: scale(1);
}

.gt-duration-badge {
	position: absolute;
	bottom: 8px;
	right: 8px;
	background-color: var(--gt-badge-bg);
	color: var(--gt-badge-text);
	font-size: 0.75rem;
	font-weight: 600;
	padding: 2px 6px;
	border-radius: 4px;
	letter-spacing: 0.5px;
}

.gt-card-details {
	display: flex;
	gap: 12px;
	margin-top: 12px;
}

.gt-card-avatar {
	flex-shrink: 0;
}

.gt-card-avatar img,
.gt-avatar-img {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
}

.gt-card-meta-wrap {
	flex: 1;
	min-width: 0;
}

.gt-card-title {
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.35;
	margin-bottom: 4px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gt-card-title a {
	color: var(--gt-text);
}

.gt-card-title a:hover {
	color: var(--gt-accent);
}

.gt-card-channel {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 0.825rem;
	color: var(--gt-text-secondary);
}

.gt-channel-name:hover {
	color: var(--gt-text);
}

.gt-verified-icon {
	color: var(--gt-text-muted);
	display: inline-flex;
}

.gt-card-stats {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 0.8rem;
	color: var(--gt-text-secondary);
	margin-top: 2px;
}

/* ==========================================================================
   7. CATEGORY SHELVES & SHORTS
   ========================================================================== */
.gt-shelf-section {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--gt-border);
}

.gt-shelf-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}

.gt-shelf-title-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
}

.gt-shelf-title {
	font-family: var(--gt-font-heading);
	font-size: 1.25rem;
	font-weight: 700;
}

.gt-shelf-viewall {
	font-size: 0.875rem;
	font-weight: 600;
	color: #3ea6ff;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.gt-shelf-viewall:hover {
	text-decoration: underline;
}

.gt-shelf-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

/* Shorts Shelf */
.gt-shorts-shelf {
	margin-top: 40px;
	padding: 24px 0;
	border-top: 1px solid var(--gt-border);
	border-bottom: 1px solid var(--gt-border);
}

.gt-shorts-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
}

.gt-shorts-heading {
	font-family: var(--gt-font-heading);
	font-size: 1.35rem;
	font-weight: 800;
	display: flex;
	align-items: center;
	gap: 8px;
}

.gt-shorts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 16px;
}

.gt-shorts-card {
	position: relative;
	border-radius: var(--gt-radius-md);
	overflow: hidden;
	background-color: var(--gt-surface);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gt-shorts-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--gt-shadow-hover);
}

.gt-ratio-9-16 {
	position: relative;
	width: 100%;
	padding-bottom: 177.77%; /* 9:16 */
}

.gt-shorts-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gt-shorts-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
	color: #ffffff;
	font-size: 0.7rem;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 4px;
	z-index: 2;
}

.gt-shorts-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 24px 12px 12px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
	color: #ffffff;
	z-index: 2;
}

.gt-shorts-title {
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: 4px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: #ffffff;
}

.gt-shorts-views {
	font-size: 0.75rem;
	color: #cccccc;
}

/* ==========================================================================
   8. SINGLE POST: YOUTUBE WATCH LAYOUT
   ========================================================================== */
.gt-watch-layout {
	display: flex;
	gap: 32px;
	max-width: 1700px;
	margin: 0 auto;
}

.gt-watch-main {
	flex: 1;
	min-width: 0;
}

.gt-player-container {
	position: relative;
	width: 100%;
	border-radius: var(--gt-radius-md);
	overflow: hidden;
	background-color: #000000;
	box-shadow: var(--gt-shadow);
	margin-bottom: 18px;
}

.gt-player-container .gt-thumb-img {
	object-fit: cover;
}

.gt-watch-title {
	font-family: var(--gt-font-heading);
	font-size: 1.7rem;
	font-weight: 800;
	line-height: 1.3;
	margin-bottom: 16px;
	letter-spacing: -0.02em;
}

/* Channel & Actions Bar */
.gt-watch-action-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--gt-border);
}

.gt-channel-info-wrap {
	display: flex;
	align-items: center;
	gap: 12px;
}

.gt-channel-avatar-lg img {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	object-fit: cover;
}

.gt-channel-details {
	display: flex;
	flex-direction: column;
}

.gt-channel-author-name {
	font-weight: 700;
	font-size: 1.05rem;
	display: flex;
	align-items: center;
	gap: 4px;
}

.gt-channel-subscribers {
	font-size: 0.825rem;
	color: var(--gt-text-secondary);
}

.gt-channel-btn-group {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: 12px;
}

.gt-btn-join {
	padding: 0 16px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	border-radius: var(--gt-radius-full);
	border: 1px solid var(--gt-border);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--gt-text);
	background-color: var(--gt-surface);
	transition: var(--gt-transition);
}

.gt-btn-join:hover {
	background-color: var(--gt-surface-hover);
}

.gt-btn-subscribe {
	padding: 0 18px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: var(--gt-radius-full);
	background-color: var(--gt-chip-active-bg);
	color: var(--gt-chip-active-text);
	font-size: 0.875rem;
	font-weight: 600;
	transition: var(--gt-transition);
}

.gt-btn-subscribe:hover {
	opacity: 0.9;
	transform: scale(1.02);
}

.gt-watch-buttons {
	display: flex;
	align-items: center;
	gap: 8px;
}

.gt-like-dislike-pill {
	display: inline-flex;
	align-items: center;
	background-color: var(--gt-surface);
	border-radius: var(--gt-radius-full);
	height: 38px;
	overflow: hidden;
}

.gt-btn-like, .gt-btn-dislike {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 14px;
	height: 100%;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--gt-text);
	transition: var(--gt-transition);
}

.gt-btn-like:hover, .gt-btn-dislike:hover {
	background-color: var(--gt-surface-hover);
}

.gt-pill-divider {
	width: 1px;
	height: 20px;
	background-color: var(--gt-border);
}

.gt-watch-action-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 14px;
	height: 38px;
	background-color: var(--gt-surface);
	border-radius: var(--gt-radius-full);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--gt-text);
	transition: var(--gt-transition);
}

.gt-watch-action-pill:hover {
	background-color: var(--gt-surface-hover);
}

/* ==========================================================================
   9. EDITORIAL ARTICLE CONTAINER & SPACIOUS TYPOGRAPHY
   ========================================================================== */
.gt-article-container-wrap {
	width: 100%;
	margin-bottom: 36px;
}

.gt-article-paper {
	background-color: var(--gt-paper-bg);
	border: 1px solid var(--gt-paper-border);
	border-radius: var(--gt-radius-lg);
	padding: 40px 48px;
	box-shadow: var(--gt-shadow);
	transition: background-color 0.25s ease, border-color 0.25s ease;
}

/* Meta Bar inside Paper */
.gt-article-header-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 28px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--gt-border-subtle);
}

.gt-meta-stat-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--gt-text-secondary);
	background-color: var(--gt-surface);
	padding: 5px 14px;
	border-radius: var(--gt-radius-full);
}

/* Rich Editorial Content Styles with Ample Spacing */
.gt-article-content-body {
	font-size: 1.15rem;
	line-height: 1.95;
	color: var(--gt-text);
	letter-spacing: -0.01em;
	word-wrap: break-word;
}

.gt-article-content-body p {
	margin-bottom: 2em;
}

.gt-article-content-body h2 {
	font-family: var(--gt-font-heading);
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1.35;
	margin-top: 2.5em;
	margin-bottom: 1em;
	padding-left: 14px;
	border-left: 4px solid var(--gt-accent);
	color: var(--gt-text);
}

.gt-article-content-body h3 {
	font-family: var(--gt-font-heading);
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1.4;
	margin-top: 2.2em;
	margin-bottom: 0.8em;
	color: var(--gt-text);
}

.gt-article-content-body h4,
.gt-article-content-body h5,
.gt-article-content-body h6 {
	font-family: var(--gt-font-heading);
	font-size: 1.2rem;
	font-weight: 600;
	margin-top: 1.8em;
	margin-bottom: 0.6em;
}

.gt-article-content-body hr {
	margin: 3.5em auto;
	border: none;
	height: 1px;
	width: 90%;
	background: linear-gradient(90deg, transparent, var(--gt-border), transparent);
}

.gt-article-content-body blockquote {
	background-color: var(--gt-surface);
	border-left: 4px solid var(--gt-accent);
	padding: 24px 28px;
	margin: 2.5em 0;
	border-radius: 0 var(--gt-radius-md) var(--gt-radius-md) 0;
	font-style: italic;
	font-size: 1.18rem;
	line-height: 1.8;
	color: var(--gt-text);
}

.gt-article-content-body ul,
.gt-article-content-body ol {
	margin: 1.8em 0 2.2em 2em;
	line-height: 1.9;
}

.gt-article-content-body li {
	margin-bottom: 0.8em;
}

.gt-article-content-body pre {
	background-color: #050505;
	color: #50fa7b;
	padding: 20px 24px;
	border-radius: var(--gt-radius-md);
	font-family: 'Fira Code', Consolas, Monaco, monospace;
	font-size: 0.95rem;
	line-height: 1.65;
	overflow-x: auto;
	margin: 2.4em 0;
	border: 1px solid var(--gt-border);
}

.gt-article-content-body code {
	background-color: var(--gt-surface);
	color: var(--gt-accent);
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 0.9em;
	font-family: monospace;
}

.gt-article-content-body pre code {
	background: none;
	color: inherit;
	padding: 0;
}

.gt-article-content-body table {
	width: 100%;
	border-collapse: collapse;
	margin: 2.5em 0;
	font-size: 0.95rem;
}

.gt-article-content-body th,
.gt-article-content-body td {
	padding: 14px 18px;
	border: 1px solid var(--gt-border);
	text-align: left;
}

.gt-article-content-body th {
	background-color: var(--gt-surface);
	font-weight: 700;
}

.gt-article-content-body tr:nth-child(even) {
	background-color: rgba(255, 255, 255, 0.02);
}

.gt-article-content-body figure {
	margin: 2.5em 0;
}

.gt-article-content-body figcaption {
	font-size: 0.875rem;
	color: var(--gt-text-secondary);
	text-align: center;
	margin-top: 10px;
	font-style: italic;
}

/* Article Tags at the very bottom */
.gt-article-bottom-tags {
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid var(--gt-border-subtle);
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.gt-bottom-tags-label {
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--gt-text-secondary);
}

.gt-article-tags-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.gt-article-tag {
	font-size: 0.85rem;
	font-weight: 600;
	color: #3ea6ff;
	background: rgba(62, 166, 255, 0.08);
	padding: 4px 12px;
	border-radius: var(--gt-radius-full);
	transition: var(--gt-transition);
}

.gt-article-tag:hover {
	background: rgba(62, 166, 255, 0.2);
	color: #65b8ff;
	transform: translateY(-1px);
}

.gt-post-pagination {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid var(--gt-border);
}

/* ==========================================================================
   10. WATCH SIDEBAR & GRAPHICAL WIDGETS
   ========================================================================== */
.gt-watch-sidebar {
	width: 410px;
	flex-shrink: 0;
}

.gt-watch-sidebar-chips {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 12px;
	margin-bottom: 18px;
	scrollbar-width: none;
}

.gt-watch-sidebar-chips::-webkit-scrollbar {
	display: none;
}

.gt-watch-chip {
	font-size: 0.825rem;
	padding: 6px 14px;
	cursor: pointer;
	border-radius: var(--gt-radius-sm);
	white-space: nowrap;
}

.gt-watch-posts-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 200px;
}

/* Graphical Compact Card */
.gt-compact-card {
	display: flex;
	gap: 12px;
	background: transparent;
	padding: 6px;
	border-radius: var(--gt-radius-md);
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.gt-compact-card:hover {
	background-color: var(--gt-surface);
}

.gt-compact-thumb-wrap {
	width: 168px;
	flex-shrink: 0;
	border-radius: var(--gt-radius-sm);
	overflow: hidden;
	position: relative;
	background-color: var(--gt-surface);
}

.gt-compact-details {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.gt-compact-title {
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.35;
	margin-bottom: 4px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gt-compact-title a {
	color: var(--gt-text);
}

.gt-compact-title a:hover {
	color: var(--gt-accent);
}

.gt-compact-author {
	font-size: 0.775rem;
	color: var(--gt-text-secondary);
	display: block;
	margin-bottom: 2px;
}

.gt-compact-author:hover {
	color: var(--gt-text);
}

.gt-compact-stats {
	font-size: 0.75rem;
	color: var(--gt-text-secondary);
	display: flex;
	gap: 4px;
}

/* Graphical Sidebar Widgets */
.gt-widget {
	background-color: var(--gt-surface);
	border: 1px solid var(--gt-border);
	border-radius: var(--gt-radius-md);
	padding: 20px;
	margin-top: 24px;
}

.gt-widget-title {
	font-family: var(--gt-font-heading);
	font-size: 1.05rem;
	font-weight: 700;
	margin-bottom: 14px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--gt-border);
	display: flex;
	align-items: center;
	gap: 8px;
}

.gt-widget ul {
	list-style: none;
}

.gt-widget li {
	padding: 8px 0;
	border-bottom: 1px solid var(--gt-border-subtle);
	font-size: 0.875rem;
}

.gt-widget li:last-child {
	border-bottom: none;
}

.gt-widget li a:hover {
	color: var(--gt-accent);
}

/* ==========================================================================
   11. YOUTUBE COMMENTS SECTION
   ========================================================================== */
.gt-comments-area {
	margin-top: 36px;
}

.gt-comments-header {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-bottom: 24px;
}

.gt-comments-count {
	font-size: 1.25rem;
	font-weight: 700;
}

.gt-comment-form-wrap {
	display: flex;
	gap: 16px;
	margin-bottom: 32px;
}

.gt-comment-form-inner {
	flex: 1;
}

.gt-comment-textarea {
	width: 100%;
	background: transparent;
	border-bottom: 1px solid var(--gt-border);
	padding: 8px 0;
	color: var(--gt-text);
	resize: vertical;
	min-height: 38px;
	transition: border-color 0.2s ease;
}

.gt-comment-textarea:focus {
	border-bottom: 2px solid var(--gt-text);
}

.gt-comment-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 10px;
}

.gt-btn-submit-comment {
	padding: 0 16px;
	height: 36px;
	background-color: var(--gt-chip-active-bg);
	color: var(--gt-chip-active-text);
	border-radius: var(--gt-radius-full);
	font-weight: 600;
	font-size: 0.875rem;
}

.gt-comment-list {
	list-style: none;
}

.gt-comment-item {
	display: flex;
	gap: 16px;
	margin-bottom: 20px;
}

.gt-comment-body {
	flex: 1;
}

.gt-comment-header-line {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
}

.gt-comment-author-name {
	font-size: 0.875rem;
	font-weight: 600;
}

.gt-comment-date {
	font-size: 0.75rem;
	color: var(--gt-text-secondary);
}

.gt-comment-text {
	font-size: 0.925rem;
	color: var(--gt-text);
	line-height: 1.5;
}

.gt-comment-actions-bar {
	margin-top: 6px;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--gt-text-secondary);
}

/* ==========================================================================
   12. SEARCH, CHANNEL & MODAL
   ========================================================================== */
.gt-search-container {
	max-width: 1100px;
	margin: 0 auto;
}

.gt-search-header-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--gt-border);
	margin-bottom: 24px;
}

.gt-search-card {
	display: flex;
	gap: 20px;
	margin-bottom: 24px;
}

.gt-search-thumb-wrap {
	width: 360px;
	flex-shrink: 0;
	border-radius: var(--gt-radius-md);
	overflow: hidden;
}

.gt-search-details {
	flex: 1;
	min-width: 0;
}

.gt-search-title {
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.35;
	margin-bottom: 6px;
}

.gt-search-stats {
	font-size: 0.8rem;
	color: var(--gt-text-secondary);
	display: flex;
	gap: 4px;
	margin-bottom: 10px;
}

.gt-search-author {
	margin-bottom: 10px;
}

.gt-search-author-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.85rem;
	color: var(--gt-text-secondary);
}

.gt-search-excerpt {
	font-size: 0.875rem;
	color: var(--gt-text-secondary);
	line-height: 1.5;
}

/* Channel Header */
.gt-channel-header-container {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-bottom: 36px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--gt-border);
}

.gt-channel-avatar-xl img {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
}

.gt-channel-title {
	font-family: var(--gt-font-heading);
	font-size: 1.5rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 4px;
}

.gt-channel-substats {
	font-size: 0.85rem;
	color: var(--gt-text-secondary);
	display: flex;
	gap: 6px;
	margin-bottom: 10px;
}

.gt-channel-bio {
	font-size: 0.9rem;
	color: var(--gt-text-secondary);
	margin-bottom: 14px;
	max-width: 700px;
}

/* Modal */
.gt-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
	z-index: 2000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.gt-modal-backdrop.is-active {
	display: flex;
}

.gt-modal-dialog {
	width: 100%;
	max-width: 500px;
	background-color: var(--gt-surface);
	border: 1px solid var(--gt-border);
	border-radius: var(--gt-radius-md);
	box-shadow: var(--gt-shadow-hover);
	padding: 24px;
	position: relative;
	animation: gtModalIn 0.25s cubic-bezier(0.2, 0, 0, 1);
}

@keyframes gtModalIn {
	from {
		opacity: 0;
		transform: scale(0.95) translateY(10px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.gt-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.gt-modal-title {
	font-size: 1.15rem;
	font-weight: 700;
}

.gt-share-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 24px;
	text-align: center;
}

.gt-share-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--gt-text);
}

.gt-share-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	transition: transform 0.2s ease;
}

.gt-share-icon.gt-share-wa { background: #25d366; }
.gt-share-icon.gt-share-tg { background: #0088cc; }
.gt-share-icon.gt-share-fb { background: #1877f2; }
.gt-share-icon.gt-share-x  { background: #000000; }

.gt-share-btn:hover .gt-share-icon {
	transform: scale(1.1);
}

.gt-copy-link-wrap {
	display: flex;
	align-items: center;
	background-color: var(--gt-bg);
	border: 1px solid var(--gt-border);
	border-radius: var(--gt-radius-sm);
	padding: 6px 12px;
}

.gt-copy-link-input {
	flex: 1;
	font-size: 0.85rem;
	color: var(--gt-text-secondary);
}

.gt-btn-copy {
	padding: 6px 14px;
	background-color: #3ea6ff;
	color: #0f0f0f;
	font-weight: 700;
	font-size: 0.85rem;
	border-radius: var(--gt-radius-full);
}

/* ==========================================================================
   13. FOOTER & MOBILE
   ========================================================================== */
.gt-footer {
	background-color: var(--gt-bg);
	border-top: 1px solid var(--gt-border);
	padding: 40px 24px 24px;
	margin-top: 60px;
}

.gt-footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 0.85rem;
	color: var(--gt-text-secondary);
	padding-top: 24px;
	border-top: 1px solid var(--gt-border-subtle);
}

.gt-footer-creator a {
	color: var(--gt-text);
	font-weight: 600;
}

.gt-footer-creator a:hover {
	color: var(--gt-accent);
}

.gt-mobile-bottom-bar {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: 52px;
	background-color: var(--gt-bg);
	border-top: 1px solid var(--gt-border);
	z-index: 1000;
	justify-content: space-around;
	align-items: center;
}

.gt-mobile-nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	font-size: 0.65rem;
	color: var(--gt-text);
}

/* ==========================================================================
   14. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1200px) {
	.gt-watch-layout {
		flex-direction: column;
	}
	.gt-watch-sidebar {
		width: 100%;
	}
}

@media (max-width: 900px) {
	.gt-sidebar-drawer {
		position: fixed;
		left: -260px;
		top: var(--gt-header-height);
		bottom: 0;
		z-index: 1500;
		box-shadow: var(--gt-shadow-hover);
	}
	.gt-sidebar-drawer.is-open {
		left: 0;
	}
	.gt-header-center {
		flex: 1;
	}
	.gt-search-card {
		flex-direction: column;
	}
	.gt-search-thumb-wrap {
		width: 100%;
	}
}

@media (max-width: 600px) {
	.gt-content-area {
		padding: 12px;
	}
	.gt-article-paper {
		padding: 24px 18px;
		border-radius: var(--gt-radius-md);
	}
	.gt-article-content-body {
		font-size: 1.05rem;
		line-height: 1.8;
	}
	.gt-tube-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.gt-shelf-grid {
		grid-template-columns: 1fr;
	}
	.gt-shorts-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.gt-mobile-bottom-bar {
		display: flex;
	}
	body {
		padding-bottom: 56px;
	}
	.gt-header-left {
		min-width: auto;
	}
	.gt-create-btn span {
		display: none;
	}
}
