/**
 * Yadongtube Theme - Main Design System & Layout Styles
 */

/* 1. Reset & Global Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    padding: 0;
    background-color: var(--yt-bg-secondary);
    color: var(--yt-text);
    font-family: var(--yt-font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--yt-primary);
    text-decoration: none;
    transition: color var(--yt-transition-fast);
}

a:hover {
    color: var(--yt-primary-hover);
}

/* Universal Typography & Root Vertical Spacing */
h1, h2, h3, h4, h5, h6 {
    color: var(--yt-text);
    font-family: var(--yt-font-sans);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.02em;
    margin-top: 2.25rem;
    margin-bottom: 0.95rem;
}

h1 {
    font-size: 2.25rem;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 1.35rem;
}

h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: 0.85rem;
}

h4 {
    font-size: 1.15rem;
    margin-top: 1.6rem;
    margin-bottom: 0.65rem;
}

h5, h6 {
    font-size: 1rem;
    margin-top: 1.35rem;
    margin-bottom: 0.5rem;
}

/* Reset headings when they are the leading element of a container */
*:first-child > h1,
*:first-child > h2,
*:first-child > h3,
*:first-child > h4,
.yt-catalog-header h1,
.yt-catalog-header h2,
.yt-catalog-header h3,
.yt-section-title,
.yt-hero-title,
.yt-card-title,
.yt-tool-card-box h2,
.yt-detail-desc-box h3:first-child,
.entry-header h1,
header h1,
header h2 {
    margin-top: 0;
}

/* Root Paragraph Rhythm */
p {
    margin-top: 0;
    margin-bottom: 1.35rem;
    line-height: 1.75;
    color: var(--yt-text-muted);
}

p:last-child {
    margin-bottom: 0;
}

/* Root List Spacing for Content & Articles */
.yt-entry-content ul,
.yt-entry-content ol,
.entry-content ul,
.entry-content ol,
.yt-article-content ul,
.yt-article-content ol,
.yt-text-content ul,
.yt-text-content ol {
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
    padding-left: 1.75rem;
    line-height: 1.75;
    color: var(--yt-text-muted);
}

.yt-entry-content li,
.entry-content li,
.yt-article-content li,
.yt-text-content li {
    margin-bottom: 0.65rem;
}

.yt-entry-content li:last-child,
.entry-content li:last-child,
.yt-article-content li:last-child,
.yt-text-content li:last-child {
    margin-bottom: 0;
}

/* Blockquotes & Callouts */
blockquote {
    margin: 1.75rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--yt-primary);
    background: var(--yt-bg-secondary);
    border-radius: 0 var(--yt-radius-sm) var(--yt-radius-sm) 0;
    font-style: italic;
    color: var(--yt-text);
}

/* Flow utility for child vertical rhythm */
.yt-flow > * + * {
    margin-top: 1.5rem;
}

.yt-flow-lg > * + * {
    margin-top: 2.25rem;
}

.yt-flow-sm > * + * {
    margin-top: 0.85rem;
}

/* Root-level Paragraph and Typography Anti-Collapse Enforcement */
.yt-entry-content p,
.entry-content p,
.yt-prose p,
.yt-page-layout p,
.yt-detail-desc-box p,
article p {
    margin-top: 0 !important;
    margin-bottom: 1.45rem !important;
    line-height: 1.8 !important;
    font-size: 15px;
}

.yt-entry-content p:last-child,
.entry-content p:last-child,
.yt-detail-desc-box p:last-child {
    margin-bottom: 0 !important;
}

.yt-entry-content h2,
.entry-content h2,
.yt-page-layout h2 {
    margin-top: 2.5rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.35 !important;
    color: var(--yt-text) !important;
    font-weight: 800 !important;
}

.yt-entry-content h3,
.entry-content h3,
.yt-page-layout h3 {
    margin-top: 2rem !important;
    margin-bottom: 0.85rem !important;
    line-height: 1.4 !important;
    color: var(--yt-text) !important;
    font-weight: 700 !important;
}

.yt-entry-content ul,
.yt-entry-content ol,
.entry-content ul,
.entry-content ol {
    margin-top: 1rem !important;
    margin-bottom: 1.6rem !important;
    padding-left: 2rem !important;
    line-height: 1.75 !important;
}

.yt-entry-content li,
.entry-content li {
    margin-bottom: 0.65rem !important;
}

/* Accessibility Skip Link */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--yt-bg-surface);
    border-radius: var(--yt-radius-sm);
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: var(--yt-primary);
    display: block;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    left: 8px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 8px;
    width: auto;
    z-index: 100000;
}

/* Container */
.yt-container {
    width: 100%;
    max-width: var(--yt-container-width);
    margin: 0 auto;
    padding: 0 var(--yt-container-padding);
}

/* 2. Header & Navigation */
.yt-site-header {
    background: var(--yt-bg-surface);
    border-bottom: 1px solid var(--yt-border);
    position: relative;
    z-index: 100;
    transition: box-shadow var(--yt-transition-normal);
}

.yt-site-header.is-sticky {
    position: sticky;
    top: 0;
    box-shadow: var(--yt-shadow-sm);
}

.yt-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--yt-header-height);
    gap: 20px;
}

.yt-brand-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.yt-brand-logo img,
.yt-brand-logo svg {
    max-height: 40px;
    width: auto;
}

.yt-site-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--yt-text);
    margin: 0;
    letter-spacing: -0.5px;
}

.yt-main-nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.yt-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
    height: 100%;
}

.yt-nav-list li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0;
    height: 100%;
    list-style: none;
}

.yt-nav-list a {
    color: var(--yt-text-muted);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    padding: 8px 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin: 0;
    white-space: nowrap;
    transition: color var(--yt-transition-fast);
}

.yt-nav-list a:hover,
.yt-nav-list .current-menu-item > a,
.yt-nav-list a.active {
    color: var(--yt-primary);
}

/* Navigation Dropdown Menu */
.yt-menu-item-has-children {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.yt-nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1;
}

.yt-nav-dropdown-trigger span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.yt-menu-item-has-children .yt-dropdown-arrow {
    margin-left: 6px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    transition: transform var(--yt-transition-fast);
}

.yt-menu-item-has-children:hover .yt-dropdown-arrow,
.yt-menu-item-has-children:focus-within .yt-dropdown-arrow,
.yt-menu-item-has-children.is-open .yt-dropdown-arrow {
    transform: rotate(180deg);
}

.yt-sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 320px;
    background: var(--yt-bg-surface);
    border: 1px solid var(--yt-border);
    border-radius: var(--yt-radius-md);
    box-shadow: var(--yt-shadow-lg);
    padding: 8px 0;
    margin: 4px 0 0 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: all var(--yt-transition-fast);
    z-index: 1000;
}

.yt-sub-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.yt-menu-item-has-children:hover > .yt-sub-menu,
.yt-menu-item-has-children:focus-within > .yt-sub-menu,
.yt-menu-item-has-children.is-open > .yt-sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.yt-sub-menu li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.yt-sub-menu li a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--yt-text);
    transition: background var(--yt-transition-fast), color var(--yt-transition-fast);
    white-space: normal;
    line-height: 1.4;
}

.yt-sub-menu li a:hover,
.yt-sub-menu li a:focus {
    background: var(--yt-bg-secondary);
    color: var(--yt-primary);
}

/* Header Search */
.yt-header-search-wrap {
    flex: 1;
    max-width: 440px;
    display: flex;
    align-items: center;
}

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

.yt-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    background: var(--yt-bg-secondary);
    border: 1px solid var(--yt-border);
    border-radius: var(--yt-radius-full);
    transition: all var(--yt-transition-fast);
}

.yt-search-input-wrap:focus-within {
    border-color: var(--yt-primary);
    background: var(--yt-bg-surface);
    box-shadow: 0 0 0 3px var(--yt-primary-light);
}

.yt-search-icon {
    position: absolute;
    left: 14px;
    color: var(--yt-text-light);
    display: flex;
    align-items: center;
    pointer-events: none;
}

.yt-search-field {
    width: 100%;
    background: transparent;
    border: none;
    padding: 10px 90px 10px 42px;
    font-size: 14px;
    color: var(--yt-text);
    font-family: inherit;
}

.yt-search-field:focus {
    outline: none;
}

.yt-search-submit {
    position: absolute;
    right: 4px;
    background: var(--yt-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--yt-radius-full);
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--yt-transition-fast);
}

.yt-search-submit:hover {
    background: var(--yt-primary-hover);
}

/* Mobile Toggle */
.yt-mobile-toggle-btn {
    display: none;
    background: transparent;
    border: none;
    padding: 8px;
    color: var(--yt-text);
    cursor: pointer;
}

/* Mobile Drawer */
.yt-mobile-drawer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    overflow: hidden;
}

.yt-mobile-drawer-inner {
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: var(--yt-bg-surface);
    padding: 24px 20px 48px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    box-shadow: var(--yt-shadow-lg);
    animation: ytDrawerSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ytDrawerSlideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.yt-mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.yt-mobile-nav-list a {
    font-size: 15px;
    font-weight: 600;
    color: var(--yt-text);
    display: flex;
    align-items: center;
    padding: 6px 0;
    transition: color var(--yt-transition-fast);
}

.yt-mobile-nav-list a:hover {
    color: var(--yt-primary);
}

/* 3. Hero Section */
.yt-hero-section {
    background: linear-gradient(180deg, var(--yt-bg-surface) 0%, var(--yt-bg-secondary) 100%);
    padding: 56px 0 36px 0;
    text-align: center;
    border-bottom: 1px solid var(--yt-border);
}

.yt-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--yt-primary-light);
    color: var(--yt-primary);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--yt-radius-full);
    margin-bottom: 18px;
}

.yt-hero-title {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px;
    max-width: 780px;
    margin: 0 auto 16px auto;
}

.yt-hero-subtitle {
    font-size: 17px;
    color: var(--yt-text-muted);
    max-width: 620px;
    margin: 0 auto 30px auto;
}

.yt-hero-search-box {
    max-width: 600px;
    margin: 0 auto;
}

.yt-hero-search-box .yt-search-field {
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: 15px;
}

.yt-hero-search-box .yt-search-submit {
    padding: 10px 24px;
}

/* 4. Category Chips Bar */
.yt-chips-section {
    background: var(--yt-bg-surface);
    border-bottom: 1px solid var(--yt-border);
    padding: 14px 0;
}

.yt-chips-container {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 0;
}

.yt-chips-container::-webkit-scrollbar {
    display: none;
}

.yt-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--yt-bg-secondary);
    color: var(--yt-text);
    padding: 8px 16px;
    border-radius: var(--yt-radius-full);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid var(--yt-border);
    transition: all var(--yt-transition-fast);
}

.yt-chip:hover {
    background: var(--yt-border-light);
    color: var(--yt-primary);
    border-color: var(--yt-border-hover);
}

.yt-chip.active {
    background: var(--yt-primary);
    color: #ffffff;
    border-color: var(--yt-primary);
}

.yt-chip.active .yt-chip-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.yt-chip-count {
    background: #e8eaf0;
    color: var(--yt-text-secondary);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
}

/* 5. Video Grid & Card Component */
.yt-section {
    padding: 48px 0;
}

.yt-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
}

.yt-section-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.yt-section-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.yt-section-sub {
    font-size: 14px;
    color: var(--yt-text-secondary);
    margin: 0;
}

.yt-view-all-link {
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.yt-video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Video Card */
.yt-video-card {
    background: var(--yt-bg-surface);
    border: 1px solid var(--yt-border);
    border-radius: var(--yt-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--yt-transition-normal);
    box-shadow: var(--yt-shadow-xs);
}

.yt-video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--yt-shadow-md);
    border-color: var(--yt-border-hover);
}

.yt-card-poster-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #f1f5f9;
    overflow: hidden;
}

.yt-card-poster-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.yt-video-card:hover .yt-card-poster-img {
    transform: scale(1.05);
}

.yt-card-top-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.yt-badge-quality {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.yt-badge-rating {
    background: rgba(15, 23, 42, 0.85);
    color: #facc15;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.yt-card-subline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.yt-card-performer-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--yt-primary);
    background: rgba(99, 91, 219, 0.08);
    padding: 2px 7px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.yt-card-duration-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(17, 24, 39, 0.85);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    backdrop-filter: blur(2px);
    letter-spacing: 0.3px;
}

.yt-card-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--yt-transition-fast);
}

.yt-video-card:hover .yt-card-play-overlay {
    opacity: 1;
}

.yt-card-play-icon {
    width: 44px;
    height: 44px;
    background: var(--yt-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(99, 91, 219, 0.5);
    transform: scale(0.9);
    transition: transform var(--yt-transition-fast);
}

.yt-video-card:hover .yt-card-play-icon {
    transform: scale(1);
}

.yt-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.yt-card-category-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--yt-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: inline-block;
}

.yt-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px 0;
    color: var(--yt-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.yt-card-title a:hover {
    color: var(--yt-primary);
}

.yt-card-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--yt-text-secondary);
    padding-top: 8px;
    border-top: 1px solid var(--yt-border-light);
}

.yt-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 6. Featured Collections Grid */
.yt-collections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.yt-collection-card {
    background: var(--yt-bg-surface);
    border: 1px solid var(--yt-border);
    border-radius: var(--yt-radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all var(--yt-transition-normal);
    box-shadow: var(--yt-shadow-xs);
}

.yt-collection-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--yt-shadow-md);
    border-color: var(--yt-primary);
}

.yt-collection-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
}

.yt-collection-desc {
    font-size: 13px;
    color: var(--yt-text-muted);
    margin: 0;
    line-height: 1.5;
}

.yt-collection-count-badge {
    align-self: flex-start;
    background: var(--yt-bg-secondary);
    color: var(--yt-text-secondary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--yt-radius-full);
}

/* 7. Editorial Blog & Archive Layouts */
.yt-blog-hero {
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--yt-border);
}

.yt-blog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--yt-primary);
    background: var(--yt-primary-light);
    padding: 4px 12px;
    border-radius: var(--yt-radius-full);
    margin-bottom: 12px;
}

.yt-blog-hero-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.6px;
    color: var(--yt-text);
    margin: 0 0 10px 0;
    line-height: 1.25;
}

.yt-blog-hero-desc {
    font-size: 15px;
    color: var(--yt-text-muted);
    line-height: 1.6;
    max-width: 780px;
    margin: 0 0 20px 0;
}

.yt-blog-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 18px;
}

.yt-blog-filter-pill {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--yt-text-secondary);
    background: var(--yt-bg-surface);
    border: 1px solid var(--yt-border);
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: all var(--yt-transition-fast);
    display: inline-block;
}

.yt-blog-filter-pill:hover {
    color: var(--yt-primary);
    border-color: var(--yt-primary);
    background: var(--yt-primary-light);
    transform: translateY(-1px);
}

.yt-blog-filter-pill.is-active {
    color: #ffffff;
    background: var(--yt-primary);
    border-color: var(--yt-primary);
    box-shadow: 0 2px 8px rgba(99, 91, 219, 0.28);
}

/* Featured Article Spotlight Card */
.yt-featured-post-card {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 32px;
    background: var(--yt-bg-surface);
    border: 1px solid var(--yt-border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--yt-shadow-sm);
    transition: transform var(--yt-transition-normal), box-shadow var(--yt-transition-normal);
}

.yt-featured-post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--yt-shadow-md);
    border-color: var(--yt-border-hover);
}

.yt-featured-post-img-wrap {
    position: relative;
    width: 100%;
    min-height: 280px;
    background: var(--yt-bg-secondary);
    overflow: hidden;
}

.yt-featured-post-img-link {
    display: block;
    width: 100%;
    height: 100%;
}

.yt-featured-post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.yt-featured-post-card:hover .yt-featured-post-img {
    transform: scale(1.04);
}

.yt-featured-badge-overlay {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.yt-featured-post-content {
    padding: 28px 28px 28px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.yt-featured-post-meta-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.yt-featured-post-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.4px;
    margin: 0 0 12px 0;
}

.yt-featured-post-title a {
    color: var(--yt-text);
    text-decoration: none;
    transition: color var(--yt-transition-fast);
}

.yt-featured-post-title a:hover {
    color: var(--yt-primary);
}

.yt-featured-post-excerpt {
    font-size: 14.5px;
    color: var(--yt-text-muted);
    line-height: 1.65;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yt-featured-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--yt-border);
    padding-top: 16px;
    margin-top: auto;
}

.yt-featured-date {
    display: block;
    font-size: 11.5px;
    color: var(--yt-text-secondary);
}

.yt-featured-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

/* Standard Blog Cards & Grid */
.yt-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.yt-blog-card {
    background: var(--yt-bg-surface);
    border: 1px solid var(--yt-border);
    border-radius: var(--yt-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--yt-shadow-xs);
    transition: all var(--yt-transition-normal);
    position: relative;
}

.yt-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--yt-shadow-md);
    border-color: var(--yt-border-hover);
}

.yt-blog-card-img-wrap {
    width: 100%;
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--yt-bg-secondary);
    overflow: hidden;
}

.yt-blog-card-img-link {
    display: block;
    width: 100%;
    height: 100%;
}

.yt-blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.yt-blog-card:hover .yt-blog-card-img {
    transform: scale(1.05);
}

.yt-blog-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--yt-primary);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    z-index: 2;
    text-decoration: none;
}

.yt-blog-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.yt-blog-card-meta-top {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--yt-text-muted);
    margin-bottom: 8px;
}

.yt-blog-card-dot {
    color: var(--yt-border);
}

.yt-blog-card-read {
    font-weight: 600;
    color: var(--yt-text-secondary);
}

.yt-blog-card-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yt-blog-card-title a {
    color: var(--yt-text);
    text-decoration: none;
    transition: color var(--yt-transition-fast);
}

.yt-blog-card-title a:hover {
    color: var(--yt-primary);
}

.yt-blog-card-excerpt {
    font-size: 13.5px;
    color: var(--yt-text-muted);
    margin-bottom: 16px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yt-blog-card-meta-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--yt-border);
    padding-top: 12px;
    margin-top: auto;
}

.yt-blog-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.yt-blog-author-avatar-stub {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--yt-primary-light);
    color: var(--yt-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.yt-blog-author-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--yt-text);
}

.yt-blog-card-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--yt-bg-secondary);
    color: var(--yt-text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--yt-transition-fast);
}

.yt-blog-card-arrow:hover {
    background: var(--yt-primary);
    color: #ffffff;
    transform: translateX(2px);
}

/* Editorial Charter Callout Card */
.yt-editorial-charter {
    background: linear-gradient(135deg, rgba(99, 91, 219, 0.05) 0%, rgba(139, 92, 246, 0.03) 100%);
    border: 1px solid var(--yt-border);
    border-radius: 16px;
    padding: 36px 40px;
    margin-top: 48px;
    margin-bottom: 32px;
}

.yt-charter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--yt-primary);
    background: var(--yt-primary-light);
    padding: 4px 12px;
    border-radius: var(--yt-radius-full);
    margin-bottom: 12px;
}

.yt-charter-heading {
    font-size: 22px;
    font-weight: 800;
    color: var(--yt-text);
    margin: 0 0 10px 0;
}

.yt-charter-text {
    font-size: 14.5px;
    color: var(--yt-text-muted);
    line-height: 1.65;
    max-width: 820px;
    margin: 0 0 20px 0;
}

.yt-charter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* 8. Trust & Safety Section */
.yt-trust-section {
    background: var(--yt-bg-surface);
    border-top: 1px solid var(--yt-border);
    border-bottom: 1px solid var(--yt-border);
    padding: 40px 0;
}

.yt-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.yt-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.yt-trust-icon {
    width: 40px;
    height: 40px;
    background: var(--yt-primary-light);
    color: var(--yt-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.yt-trust-content h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.yt-trust-content p {
    font-size: 13px;
    color: var(--yt-text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* 9. Video Detail Page */
.yt-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    margin-top: 24px;
}

.yt-detail-main {
    min-width: 0;
}

.yt-detail-title {
    font-size: 28px;
    font-weight: 800;
    margin: 18px 0 12px 0;
    line-height: 1.3;
}

.yt-detail-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--yt-border);
    font-size: 14px;
    color: var(--yt-text-secondary);
    flex-wrap: wrap;
    gap: 12px;
}

.yt-detail-meta-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.yt-detail-desc-box {
    background: var(--yt-bg-surface);
    border: 1px solid var(--yt-border);
    border-radius: var(--yt-radius-md);
    padding: 24px;
    margin-bottom: 32px;
}

.yt-detail-desc-box h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
}

.yt-detail-desc-box p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--yt-text-muted);
}

.yt-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.yt-tag-pill {
    background: var(--yt-bg-secondary);
    color: var(--yt-text);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--yt-radius-full);
    border: 1px solid var(--yt-border);
}

.yt-tag-pill:hover {
    color: var(--yt-primary);
    border-color: var(--yt-primary);
}

/* 10. Breadcrumbs */
.yt-breadcrumbs {
    padding: 14px 0;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--yt-text-muted);
}

.yt-breadcrumbs ol,
.yt-breadcrumbs ul,
.yt-breadcrumbs-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 8px;
}

.yt-breadcrumbs li,
.yt-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    list-style: none !important;
    margin: 0;
    padding: 0;
    font-size: 12.5px;
    color: var(--yt-text-muted);
}

.yt-breadcrumbs li:not(:last-child)::after,
.yt-breadcrumb-item:not(:last-child)::after {
    content: "›";
    margin-left: 8px;
    color: var(--yt-text-secondary);
    font-size: 14px;
    font-weight: 400;
    opacity: 0.6;
}

.yt-breadcrumbs a,
.yt-breadcrumb-item a {
    color: var(--yt-text-secondary);
    text-decoration: none;
    transition: color var(--yt-transition-fast);
}

.yt-breadcrumbs a:hover,
.yt-breadcrumb-item a:hover {
    color: var(--yt-primary);
}

.yt-breadcrumbs li:last-child,
.yt-breadcrumbs li[aria-current="page"],
.yt-breadcrumb-item.active {
    color: var(--yt-text);
    font-weight: 600;
}

/* 11. Pagination */
.yt-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.yt-pagination-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 6px;
}

.yt-page-item a,
.yt-page-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: var(--yt-radius-sm);
    background: var(--yt-bg-surface);
    border: 1px solid var(--yt-border);
    color: var(--yt-text);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--yt-transition-fast);
}

.yt-page-item a:hover {
    background: var(--yt-border-light);
    border-color: var(--yt-border-hover);
}

.yt-page-item.active span {
    background: var(--yt-primary);
    color: #ffffff;
    border-color: var(--yt-primary);
}

/* 12. Filter & Catalog Bar */
.yt-catalog-header {
    background: var(--yt-bg-surface);
    border-bottom: 1px solid var(--yt-border);
    padding: 32px 0 24px 0;
    margin-bottom: 32px;
}

.yt-catalog-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.yt-catalog-desc {
    font-size: 15px;
    color: var(--yt-text-muted);
    max-width: 700px;
    margin: 0;
}

.yt-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.yt-filter-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.yt-select {
    background: var(--yt-bg-surface);
    border: 1px solid var(--yt-border);
    border-radius: var(--yt-radius-sm);
    padding: 8px 14px;
    font-size: 14px;
    color: var(--yt-text);
    font-family: inherit;
    cursor: pointer;
}

.yt-select:focus {
    outline: none;
    border-color: var(--yt-primary);
}

/* 13. Footer */
.yt-site-footer {
    background: var(--yt-bg-surface);
    border-top: 1px solid var(--yt-border);
    padding: 60px 0 32px 0;
    margin-top: 60px;
}

.yt-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 48px;
}

.yt-footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    color: var(--yt-text);
}

.yt-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.yt-footer-col a {
    color: var(--yt-text-muted);
    font-size: 14px;
    transition: color var(--yt-transition-fast);
}

.yt-footer-col a:hover {
    color: var(--yt-primary);
}

.yt-footer-about-text {
    font-size: 14px;
    color: var(--yt-text-secondary);
    line-height: 1.6;
    margin-top: 12px;
}

.yt-footer-bottom {
    border-top: 1px solid var(--yt-border);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13px;
    color: var(--yt-text-secondary);
}

.yt-footer-disclaimer {
    font-size: 12px;
    line-height: 1.6;
    color: var(--yt-text-light);
}

/* 14. Standard Page & Article Layout */
.yt-page-layout {
    background: var(--yt-bg-surface);
    border: 1px solid var(--yt-border);
    border-radius: var(--yt-radius-md);
    padding: 40px;
    margin: 24px 0 48px 0;
}

.yt-entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--yt-text);
}

.yt-entry-content h2 {
    font-size: 24px;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--yt-text);
    font-weight: 800;
    letter-spacing: -0.3px;
}

.yt-entry-content h3 {
    font-size: 20px;
    margin-top: 24px;
    margin-bottom: 10px;
    color: var(--yt-text);
    font-weight: 700;
}

.yt-entry-content p {
    margin-bottom: 18px;
    color: var(--yt-text);
}

.yt-entry-content ul,
.yt-entry-content ol {
    margin: 0 0 20px 24px;
    padding: 0;
    line-height: 1.8;
}

.yt-entry-content li {
    margin-bottom: 8px;
}

/* 15. Interactive Tools & Form Controls */
.yt-tool-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.yt-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.yt-form-group label {
    font-size: 14px;
    font-weight: 700;
    color: var(--yt-text);
    margin-bottom: 4px;
}

.yt-form-control {
    width: 100%;
    box-sizing: border-box;
    font-size: 15px;
    font-family: inherit;
    color: var(--yt-text);
    background: #ffffff;
    border: 1px solid var(--yt-border);
    border-radius: var(--yt-radius-sm);
    padding: 10px 14px;
    outline: none;
    transition: border-color var(--yt-transition-fast), box-shadow var(--yt-transition-fast);
}

.yt-form-control:focus {
    border-color: var(--yt-primary);
    box-shadow: 0 0 0 3px rgba(99, 91, 219, 0.15);
}

.yt-form-control.code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
    line-height: 1.5;
}

/* 16. Buttons & Badges */
.yt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--yt-radius-sm);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--yt-transition-fast);
    line-height: 1.4;
}

.yt-btn-primary {
    background: var(--yt-primary);
    color: #ffffff;
    border-color: var(--yt-primary);
    box-shadow: 0 2px 6px rgba(99, 91, 219, 0.25);
}

.yt-btn-primary:hover {
    background: var(--yt-primary-hover);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 91, 219, 0.35);
}

.yt-btn-secondary {
    background: var(--yt-bg-secondary);
    color: var(--yt-text);
    border-color: var(--yt-border);
}

.yt-btn-secondary:hover {
    background: var(--yt-border-light);
    color: var(--yt-primary);
    border-color: var(--yt-border-hover);
}

/* 17. Specification & Comparison Tables */
.yt-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 24px 0;
    border: 1px solid var(--yt-border);
    border-radius: var(--yt-radius-md);
    background: #ffffff;
}

.yt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

.yt-table th {
    background: var(--yt-bg-secondary);
    color: var(--yt-text);
    font-weight: 700;
    padding: 12px 16px;
    border-bottom: 2px solid var(--yt-border);
    white-space: nowrap;
}

.yt-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--yt-border-light);
    color: var(--yt-text);
}

.yt-table tr:last-child td {
    border-bottom: none;
}

.yt-table tr:hover td {
    background: rgba(99, 91, 219, 0.03);
}

/* 18. FAQ Accordion & Informational Cards */
.yt-faq-card {
    background: var(--yt-bg-secondary);
    border: 1px solid var(--yt-border);
    border-radius: var(--yt-radius-md);
    padding: 20px 24px;
    margin-bottom: 16px;
    transition: border-color var(--yt-transition-fast);
}

.yt-faq-card:hover {
    border-color: var(--yt-border-hover);
}

.yt-faq-question {
    font-size: 16px;
    font-weight: 700;
    color: var(--yt-text);
    margin: 0 0 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.yt-faq-answer {
    font-size: 14px;
    line-height: 1.65;
    color: var(--yt-text-muted);
    margin: 0;
    padding-left: 24px;
}

/* 19. Publication-Grade Single Blog Post Layout & Typography */
.yt-reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3.5px;
    background: linear-gradient(90deg, var(--yt-primary), #8b5cf6, #ec4899);
    z-index: 99999;
    transition: width 0.08s linear;
}

.yt-single-post-wrapper {
    max-width: 980px;
    margin: 0 auto;
    padding: 24px 32px 72px 32px;
}

.yt-single-article {
    background: var(--yt-bg-surface);
    border: 1px solid var(--yt-border);
    border-radius: 20px;
    padding: 56px 68px 64px 68px;
    box-shadow: var(--yt-shadow-xs);
}

.yt-article-header {
    margin-bottom: 24px;
}

.yt-article-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.yt-article-pills .yt-blog-card-badge {
    position: static;
    box-shadow: none;
}

.yt-article-pill-dot {
    color: var(--yt-border);
}

.yt-article-read-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--yt-text-secondary);
    background: var(--yt-bg-secondary);
    padding: 3px 10px;
    border-radius: 20px;
}

.yt-article-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.6px;
    color: var(--yt-text);
    margin: 0 0 20px 0;
}

.yt-article-meta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--yt-border);
    padding-bottom: 20px;
    margin-bottom: 28px;
}

.yt-article-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.yt-article-author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--yt-primary-light);
    color: var(--yt-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.yt-article-author-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--yt-text);
    text-decoration: none;
    display: block;
}

.yt-article-author-name:hover {
    color: var(--yt-primary);
}

.yt-article-dates {
    font-size: 12.5px;
    color: var(--yt-text-muted);
}

.yt-article-updated {
    font-style: italic;
    color: var(--yt-text-secondary);
}

.yt-article-share-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.yt-share-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--yt-text-muted);
    margin-right: 4px;
}

.yt-share-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--yt-border);
    background: var(--yt-bg-secondary);
    color: var(--yt-text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--yt-transition-fast);
}

.yt-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--yt-shadow-sm);
}

.yt-share-copy:hover {
    background: var(--yt-primary-light);
    color: var(--yt-primary);
    border-color: var(--yt-primary);
}

.yt-share-tw:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.yt-share-rd:hover {
    background: #ff4500;
    color: #ffffff;
    border-color: #ff4500;
}

.yt-share-tg:hover {
    background: #229ed9;
    color: #ffffff;
    border-color: #229ed9;
}

.yt-article-hero-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--yt-border);
    box-shadow: var(--yt-shadow-sm);
    margin-bottom: 32px;
    background: var(--yt-bg-secondary);
}

.yt-article-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.yt-article-content {
    font-size: 17px;
    line-height: 1.85;
    color: var(--yt-text);
    padding: 0 10px;
}

.yt-article-content .yt-article-lead {
    font-size: 19.5px;
    font-weight: 500;
    line-height: 1.7;
    color: var(--yt-text);
    margin-bottom: 28px;
    border-left: 3px solid var(--yt-primary);
    padding-left: 18px;
}

.yt-article-content h2 {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin: 40px 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--yt-border);
    color: var(--yt-text);
}

.yt-article-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 28px 0 12px 0;
    color: var(--yt-text);
}

.yt-article-content p {
    margin-bottom: 20px;
    color: var(--yt-text);
}

.yt-article-content ul,
.yt-article-content ol {
    margin: 0 0 24px 28px;
    padding: 0;
    line-height: 1.8;
}

.yt-article-content li {
    margin-bottom: 8px;
}

.yt-article-content blockquote {
    border-left: 4px solid var(--yt-primary);
    background: var(--yt-bg-secondary);
    padding: 18px 24px;
    font-style: italic;
    border-radius: 0 8px 8px 0;
    margin: 28px 0;
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--yt-text);
}

.yt-article-content .yt-callout-box {
    border: 1px solid rgba(99, 91, 219, 0.3);
    background: rgba(99, 91, 219, 0.05);
    border-left: 4px solid var(--yt-primary);
    border-radius: 0 12px 12px 0;
    padding: 24px 32px;
    margin: 32px 0;
}

.yt-article-content .yt-callout-box h4 {
    font-size: 16px;
    font-weight: 800;
    color: var(--yt-primary);
    margin: 0 0 10px 0;
}

.yt-article-content .yt-callout-box p,
.yt-article-content .yt-callout-box ul,
.yt-article-content .yt-callout-box ol {
    margin-bottom: 0;
    font-size: 14.5px;
    line-height: 1.65;
}

.yt-article-tags-wrap {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--yt-border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.yt-article-tags-label {
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--yt-text-muted);
}

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

.yt-article-tag-pill {
    background: var(--yt-bg-secondary);
    border: 1px solid var(--yt-border);
    color: var(--yt-text-secondary);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all var(--yt-transition-fast);
}

.yt-article-tag-pill:hover {
    color: var(--yt-primary);
    border-color: var(--yt-primary);
    background: var(--yt-primary-light);
}

.yt-author-bio-card {
    background: var(--yt-bg-secondary);
    border: 1px solid var(--yt-border);
    border-radius: 12px;
    padding: 24px;
    margin: 36px 0;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.yt-author-bio-avatar-stub {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--yt-primary-light);
    color: var(--yt-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.yt-author-bio-name {
    font-size: 17px;
    font-weight: 800;
    color: var(--yt-text);
    margin: 0 0 2px 0;
}

.yt-author-bio-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--yt-primary);
}

.yt-author-bio-desc {
    font-size: 13.5px;
    color: var(--yt-text-muted);
    line-height: 1.6;
    margin: 8px 0 10px 0;
}

.yt-author-bio-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--yt-primary);
    text-decoration: none;
}

.yt-author-bio-link:hover {
    text-decoration: underline;
}

.yt-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 36px 0;
}

.yt-post-nav-card {
    background: var(--yt-bg-secondary);
    border: 1px solid var(--yt-border);
    border-radius: 10px;
    padding: 18px 20px;
    transition: all var(--yt-transition-fast);
}

.yt-post-nav-card:hover {
    border-color: var(--yt-primary);
    transform: translateY(-2px);
    box-shadow: var(--yt-shadow-xs);
}

.yt-post-nav-next {
    text-align: right;
}

.yt-post-nav-direction {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--yt-text-muted);
    display: block;
    margin-bottom: 6px;
}

.yt-post-nav-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--yt-text);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yt-post-nav-title:hover {
    color: var(--yt-primary);
}

.yt-related-posts-section {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid var(--yt-border);
}

/* 20. Modern Comments & Feedback Layout */
.yt-comments-area {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid var(--yt-border);
}

.yt-comments-header {
    margin-bottom: 24px;
}

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

.yt-comments-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--yt-text);
    margin: 0;
}

.yt-comments-count-badge {
    background: var(--yt-primary-light);
    color: var(--yt-primary);
    font-size: 12px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
}

.yt-comments-sub {
    font-size: 13.5px;
    color: var(--yt-text-muted);
    margin: 6px 0 0 0;
}

.yt-comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 36px 0;
}

.yt-comment-item {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--yt-border);
    padding-bottom: 20px;
}

.yt-comment-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.yt-comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.yt-comment-avatar {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    object-fit: cover;
    background: var(--yt-bg-secondary);
}

.yt-comment-author-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--yt-text);
    display: block;
}

.yt-comment-date {
    font-size: 12px;
    color: var(--yt-text-muted);
}

.yt-comment-content {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--yt-text);
    padding-left: 52px;
}

.yt-comment-reply {
    padding-left: 52px;
}

.yt-reply-link-wrap a {
    font-size: 12px;
    font-weight: 700;
    color: var(--yt-primary);
    text-decoration: none;
}

.yt-reply-link-wrap a:hover {
    text-decoration: underline;
}

/* Comment Form */
.comment-respond {
    background: var(--yt-bg-secondary);
    border: 1px solid var(--yt-border);
    border-radius: 12px;
    padding: 28px;
    margin-top: 24px;
}

.comment-reply-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--yt-text);
    margin-top: 0;
    margin-bottom: 16px;
    letter-spacing: -0.2px;
}

#cancel-comment-reply-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--yt-danger);
    margin-left: 12px;
    text-decoration: none;
}

#cancel-comment-reply-link:hover {
    text-decoration: underline;
}

.yt-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.yt-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.yt-form-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--yt-text);
}

.yt-form-control,
#respond textarea,
#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    color: var(--yt-text);
    background: var(--yt-bg-surface);
    border: 1px solid var(--yt-border);
    border-radius: 8px;
    box-sizing: border-box;
    transition: all var(--yt-transition-fast);
}

.yt-form-control:focus,
#respond textarea:focus,
#respond input[type="text"]:focus,
#respond input[type="email"]:focus,
#respond input[type="url"]:focus {
    outline: none;
    border-color: var(--yt-primary);
    box-shadow: 0 0 0 3px rgba(99, 91, 219, 0.18);
}

.yt-form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--yt-text-muted);
    margin-bottom: 20px;
}

.yt-form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--yt-primary);
    cursor: pointer;
}

.yt-comment-submit,
.form-submit #submit,
.form-submit input[type="submit"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--yt-primary);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--yt-transition-fast);
}

.yt-comment-submit:hover,
.form-submit #submit:hover,
.form-submit input[type="submit"]:hover {
    background: var(--yt-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 91, 219, 0.35);
}

#respond p.logged-in-as {
    font-size: 13px;
    color: var(--yt-text-muted);
    margin-bottom: 16px;
}

#respond p.logged-in-as a {
    color: var(--yt-primary);
    font-weight: 600;
    text-decoration: none;
}

#respond p.logged-in-as a:hover {
    text-decoration: underline;
}

.yt-no-comments {
    font-size: 14px;
    color: var(--yt-text-muted);
    font-style: italic;
    margin: 20px 0;
}

