.elt-header-social {
    display: flex;
    align-items: center;
}

.elt-header-social + .elt-header-social {
    margin-left: -6px;
}

.elt-header-social__link {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: rgba(241, 229, 207, 0.74);
    border: 1px solid rgba(190, 126, 54, 0.22);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.018);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.elt-header-social__link:hover,
.elt-header-social__link:focus-visible {
    color: #f4c36c;
    border-color: rgba(215, 145, 55, 0.58);
    background: rgba(184, 105, 29, 0.1);
    transform: translateY(-1px);
}

.elt-header-social__icon,
.elt-header-social__icon svg {
    display: block;
    width: 17px;
    height: 17px;
}

.elt-header-social__icon svg {
    fill: currentColor;
}

.elt-header-social__mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: rgba(241, 229, 207, 0.8) !important;
    border-color: rgba(190, 126, 54, 0.16) !important;
    background: rgba(255, 255, 255, 0.012) !important;
}

.elt-header-social__mobile-link .elt-header-social__icon {
    order: 2;
    color: #c58b43;
}

@media (max-width: 1100px) and (min-width: 981px) {
    .elt-header-social__link {
        width: 29px;
        height: 29px;
    }
}

@media (max-width: 980px) {
    .elt-header-social + .elt-header-social {
        margin-left: 0;
    }
}

/* Homepage latest videos. This belongs to the global UI, not the forum skin. */
.elthm-youtube {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    width: 100%;
    margin: 16px auto 0;
    padding: 12px;
    color: #f6f2eb;
    border: 1px solid rgba(196, 106, 44, 0.14);
    border-radius: 16px;
    background:
        radial-gradient(circle at 12% -20%, rgba(196, 106, 44, 0.08), transparent 58%),
        linear-gradient(180deg, rgba(8, 8, 8, 0.42), rgba(8, 8, 8, 0.28));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 14px 26px rgba(0, 0, 0, 0.14);
    font-family: "Rajdhani", "Segoe UI", Tahoma, sans-serif;
    pointer-events: auto;
    overflow: hidden;
}

.elthm-youtube::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.05;
    background-image: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 6px);
}

.elthm-youtube__head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.elthm-youtube__eyebrow {
    margin: 0 0 4px;
    color: rgba(255, 214, 184, 0.88);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.elthm-youtube__title-main {
    margin: 0;
    color: #fff7ec;
    font-size: clamp(20px, 2.2vw, 27px);
    line-height: 1.16;
}

.elthm-social-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.elthm-youtube__channel {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 9px 13px;
    color: #ffd6b8 !important;
    border: 1px solid rgba(196, 106, 44, 0.22);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.16);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-decoration: none !important;
    text-transform: uppercase;
    white-space: nowrap;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.elthm-youtube__channel:hover,
.elthm-youtube__channel:focus-visible {
    color: #ffe6d1 !important;
    border-color: rgba(196, 106, 44, 0.42);
    background: rgba(196, 106, 44, 0.08);
    transform: translateY(-1px);
}

.elthm-youtube__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.elthm-youtube__card {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    padding: 8px;
    color: #f6f2eb !important;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.14);
    text-decoration: none !important;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.elthm-youtube__thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.elthm-youtube__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 180ms ease, filter 180ms ease, opacity 180ms ease;
}

.elthm-youtube__play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 44px;
    height: 30px;
    place-items: center;
    color: #fff;
    border-radius: 8px;
    background: rgba(216, 35, 24, 0.94);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.34);
    font-size: 15px;
    line-height: 1;
    transform: translate(-50%, -50%);
}

.elthm-youtube__title {
    margin-top: 9px;
    color: #f6f2eb;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.elthm-youtube__meta {
    margin-top: 5px;
    color: rgba(239, 228, 215, 0.68);
    font-size: 12px;
    font-weight: 600;
}

.elthm-youtube__card:hover,
.elthm-youtube__card:focus-visible {
    border-color: rgba(196, 106, 44, 0.26);
    background: rgba(196, 106, 44, 0.07);
    transform: translateY(-1px);
}

.elthm-youtube__card:hover .elthm-youtube__thumb img,
.elthm-youtube__card:focus-visible .elthm-youtube__thumb img {
    opacity: 1;
    filter: saturate(1.06) contrast(1.03);
    transform: scale(1.035);
}

@media (max-width: 820px) {
    .elthm-youtube {
        margin-top: 12px;
        padding: 10px;
    }

    .elthm-youtube__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .elthm-social-cta {
        width: 100%;
        justify-content: flex-start;
    }

    .elthm-youtube__grid {
        grid-template-columns: 1fr;
    }

    .elthm-youtube__title-main {
        font-size: 22px;
    }
}
