/* ===================================================================
   3SRB — Videos page specific styles
   =================================================================== */

html {
    scroll-snap-type: y mandatory;
}

/* ========== DECORATIVE CIRCLE ========== */
.deco-circle--video {
    width: 450px;
    height: 450px;
    border-radius: 50%;
    border: 1px solid rgba(92, 35, 35, 0.04);
    position: absolute;
    top: -180px;
    left: -180px;
    pointer-events: none;
    z-index: 0;
}

/* ========== PAGE HERO ========== */
.page-hero {
    padding: calc(var(--nav-height) + 60px) 40px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero h1 {
    margin-bottom: 0.5rem;
}

.page-hero .subtitle {
    max-width: 600px;
    margin: 0 auto;
    color: var(--muted);
}

/* ========== VIDEO SECTIONS ========== */
.videos-page-section {
    padding: 60px 40px 80px;
    max-width: var(--section-max);
    margin: 0 auto;
}

.videos-page-section .label {
    margin-bottom: 1rem;
}

/* ========== YOUTUBE FEED ========== */
.yt-section--featured {
    background: rgba(92, 35, 35, 0.03);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid rgba(92, 35, 35, 0.08);
}

.yt-section-label {
    font-family: var(--font-button);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.yt-section-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.yt-section-title--sm {
    font-size: 1.3rem;
}

.yt-section-desc {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    max-width: 560px;
    line-height: 1.6;
}

.yt-section--secondary {
    padding: 8px 0;
}

/* Channel Header */
.yt-channel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 24px;
    background: var(--card);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    margin-bottom: 24px;
}

.yt-channel-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.yt-avatar-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg);
}

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

.yt-channel-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    display: block;
    transition: color 0.3s;
}

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

.yt-channel-stats {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 2px;
}

.yt-visit-btn {
    font-family: var(--font-button);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--primary);
    color: #fff;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
    white-space: nowrap;
}

.yt-visit-btn:hover {
    background: #7a2e2e;
}

/* Thumbnail video cards */
.video-card-thumb {
    background: var(--card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.video-card-thumb:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg);
}

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

.video-card-thumb:hover .thumb-wrapper img {
    transform: scale(1.05);
}

.thumb-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(92, 35, 35, 0.85);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: background 0.3s, transform 0.3s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.video-card-thumb:hover .thumb-play {
    background: var(--primary);
    transform: translate(-50%, -50%) scale(1.08);
}

.video-card-thumb .video-title {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--text);
    padding: 10px 14px 6px;
    line-height: 1.4;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card-thumb .video-meta {
    font-family: var(--font-button);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0 14px 10px;
}

.yt-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
    font-size: 0.9rem;
    font-family: var(--font-subheading);
    font-style: italic;
}

/* ========== VIDEO GRID ========== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 2rem;
}

/* ========== FACEBOOK SECTION ========== */
.video-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.5rem;
}

.video-section-header .badge {
    font-family: var(--font-button);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 100px;
    font-weight: 500;
}

.badge-facebook { background: rgba(24,119,242,0.08); color: #1877F2; }

.video-card {
    background: var(--card);
    border-radius: 10px;
    padding: 16px 18px;
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}

.video-card .day {
    font-family: var(--font-button);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    white-space: nowrap;
}

.video-card .play-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.7rem;
    transition: background 0.3s, transform 0.3s;
}

.video-card:hover .play-icon {
    background: var(--secondary);
    transform: scale(1.05);
}

.view-all {
    display: inline-block;
    font-family: var(--font-button);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    transition: opacity 0.3s;
}

.view-all:hover { opacity: 0.7; }

/* ========== BACK HOME ========== */
.back-home {
    text-align: center;
    padding: 40px;
}
.back-home a {
    font-family: var(--font-button);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.back-home a:hover { opacity: 1; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .page-hero { padding: calc(var(--nav-height) + 40px) 24px 40px; }
    .videos-page-section { padding: 40px 24px 60px; }
    .yt-section--featured { padding: 24px; }
    .yt-channel-header { flex-direction: column; align-items: flex-start; }
    .video-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
