/* =========================
   Social / Progress
========================= */

.page-social,
.page-social-watch,
.page-social-profile {
    display: block;
    overflow-y: auto;
    height: 100%;
}

.social-shell,
.social-watch-shell {
    position: relative;
    z-index: 1;
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem 2.25rem 3rem;
}

.social-shell {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.social-watch-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(320px, 430px);
    gap: 2rem;
    align-items: start;
}

.page-social,
.page-social-watch,
.page-social-profile {
    --social-bg: rgba(12, 12, 22, 0.88);
    --social-surface: rgba(18, 18, 34, 0.9);
    --social-surface-strong: rgba(12, 12, 22, 0.96);
    --social-border: rgba(255, 255, 255, 0.08);
    --social-accent: #ef4444;
    --social-accent-soft: #fb7185;
    --social-accent-deep: #7f1d1d;
    --social-blue: #5ba3f5;
    --social-muted: rgba(229, 231, 235, 0.62);
    --social-shadow: 0 26px 54px rgba(0, 0, 0, 0.3);
}

.social-hero,
.social-studio,
.social-creators,
.social-rail-section,
.social-browse,
.social-watch-player,
.social-channel-hero__banner,
.social-watch-detail-card,
.social-comments,
.social-watch-sidebar,
.social-channel-section {
    position: relative;
    background:
        radial-gradient(circle at top right, rgba(239, 68, 68, 0.16), transparent 28%),
        radial-gradient(circle at bottom left, rgba(91, 163, 245, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(18, 18, 34, 0.96), rgba(12, 12, 22, 0.9));
    border: 1px solid var(--social-border);
    border-radius: 1.6rem;
    box-shadow: var(--social-shadow);
    overflow: hidden;
}

.social-hero {
    padding: 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 420px);
    gap: 1.5rem;
}

.social-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.72rem;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fecaca;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.social-hero h1,
.section-headline h2,
.social-watch-title h1,
.social-channel-hero__title h1 {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.social-hero h1 {
    font-size: clamp(2.2rem, 3vw, 3.35rem);
    line-height: 1.04;
    margin: 1rem 0 0.85rem;
}

.social-hero p,
.social-watch-detail-card__row span,
.social-channel-hero__copy p,
.community-card p,
.studio-card__header p {
    color: var(--social-muted);
    line-height: 1.65;
}

.social-hero__stats {
    display: grid;
    gap: 1rem;
}

.social-stat {
    padding: 1rem 1.15rem;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.social-stat strong {
    color: #ffffff;
    font-size: 1.15rem;
}

.social-stat__label {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.social-toolbar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-search {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    background: rgba(8, 8, 16, 0.72);
    border: 1px solid rgba(239, 68, 68, 0.16);
    border-radius: 1.2rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.social-search svg {
    color: rgba(255, 255, 255, 0.55);
    flex-shrink: 0;
}

.social-search input {
    background: transparent;
    border: none;
    color: #ffffff;
    width: 100%;
    font-size: 1rem;
}

.social-search input:focus {
    outline: none;
}

.social-toolbar__controls,
.social-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-toolbar__controls select,
.social-studio input,
.social-studio select,
.social-studio textarea,
.comment-composer input,
.comment-composer textarea,
.comment-reply-composer input,
.comment-reply-composer textarea,
.community-composer select,
.community-composer textarea {
    background: rgba(8, 8, 16, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-radius: 0.95rem;
    padding: 0.8rem 0.95rem;
    font-family: inherit;
}

.social-toolbar__controls select {
    min-width: 170px;
}

.social-chip {
    padding: 0.62rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.75);
    font-weight: 700;
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.social-chip.active,
.social-chip:hover {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.32);
    color: #ffffff;
    transform: translateY(-1px);
}

.social-chip--ghost {
    background: rgba(91, 163, 245, 0.12);
    border-color: rgba(91, 163, 245, 0.24);
}

.social-studio {
    padding: 1rem;
}

.social-studio__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 1rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    font-weight: 800;
}

.social-studio__grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.studio-card {
    padding: 1.1rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(5, 5, 12, 0.45);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.studio-card__header h3 {
    color: #ffffff;
    font-family: 'Lexend Deca', sans-serif;
    margin-bottom: 0.35rem;
}

.studio-card label {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.studio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.studio-grid textarea {
    grid-column: 1 / -1;
}

.studio-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #ffffff;
    padding: 0.2rem 0;
}

.studio-list {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.25rem;
}

.studio-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.studio-list__item--stacked {
    display: grid;
    justify-content: stretch;
}

.studio-list__item--stacked p,
.studio-note span,
.social-note-banner {
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.55;
}

.studio-note-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.studio-note {
    display: grid;
    gap: 0.4rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.studio-note strong,
.studio-list__item--stacked strong {
    color: #ffffff;
}

.studio-note code {
    color: #fecaca;
    font-family: inherit;
}

.studio-list__item strong,
.video-player-link,
.watch-side-card__body h3,
.social-grid-card__body h3,
.social-video-card__body h3,
.comment-card__head strong,
.community-card__head strong {
    color: #ffffff;
}

.studio-list__item span,
.watch-side-card__body span,
.watch-side-card__body p,
.social-grid-card__meta,
.social-video-card__body p,
.social-video-card__body span,
.comment-card__head span,
.comment-reply .comment-card__head span,
.community-card__head span,
.creator-pill span {
    color: rgba(255, 255, 255, 0.55);
}

.studio-delete {
    color: #fecaca;
    font-weight: 700;
}

.section-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-headline--compact {
    margin-bottom: 0.85rem;
}

.section-headline h2 {
    font-size: clamp(1.25rem, 2vw, 1.85rem);
    margin-top: 0.6rem;
}

.social-creators,
.social-rail-section,
.social-browse,
.social-channel-section,
.social-comments,
.social-watch-sidebar {
    padding: 1.35rem;
}

.social-creator-row,
.social-rail {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.social-creator-row::-webkit-scrollbar,
.social-rail::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.creator-pill {
    min-width: 260px;
    padding: 0.9rem;
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.creator-pill:hover,
.social-video-card:hover,
.social-grid-card:hover,
.watch-side-card:hover {
    transform: translateY(-4px);
    border-color: rgba(239, 68, 68, 0.24);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.creator-pill img,
.social-channel-card img,
.social-channel-hero__content > img {
    width: 58px;
    height: 58px;
    border-radius: 1rem;
    object-fit: cover;
}

.creator-pill strong,
.social-channel-card__name strong,
.social-channel-hero__title h1 {
    color: #ffffff;
}

.creator-pill__badge,
.video-badge,
.video-live-badge,
.video-frame-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.creator-pill__badge,
.video-badge {
    padding: 0.34rem 0.48rem;
    background: rgba(91, 163, 245, 0.18);
    border: 1px solid rgba(91, 163, 245, 0.22);
    color: #dbeafe;
}

.creator-pill__badge {
    min-width: 1.9rem;
    min-height: 1.9rem;
    padding: 0.34rem;
}

.creator-pill__badge svg {
    display: block;
}

.video-live-badge,
.video-frame-badge {
    padding: 0.3rem 0.65rem;
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.24);
    color: #fecaca;
}

.video-frame-badge {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
}

.social-video-card {
    min-width: 315px;
    max-width: 315px;
    border-radius: 1.15rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    scroll-snap-align: start;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    cursor: pointer;
}

.social-video-card__thumb,
.social-grid-card__thumb,
.watch-side-card__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.32);
}

.social-video-card__thumb img,
.social-grid-card__thumb img,
.watch-side-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.social-video-card:hover img,
.social-grid-card:hover img,
.watch-side-card:hover img {
    transform: scale(1.04);
    filter: saturate(1.08);
}

.social-video-card__thumb .video-badge,
.social-grid-card__thumb .video-badge,
.watch-side-card__thumb .video-badge {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
}

.social-video-card__body,
.social-grid-card__body,
.watch-side-card__body {
    padding: 0.9rem 1rem 1rem;
}

.social-video-card__body h3,
.social-grid-card__body h3,
.watch-side-card__body h3 {
    font-size: 0.97rem;
    line-height: 1.45;
    min-height: 2.8em;
    margin-bottom: 0.5rem;
}

.video-player-link {
    text-decoration: none;
    font-weight: 700;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    font: inherit;
}

.video-player-link:hover {
    color: #fda4af;
}

.video-meta-row,
.social-grid-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.7rem;
    font-size: 0.83rem;
}

.rail-actions {
    display: flex;
    gap: 0.55rem;
}

.rail-btn,
.social-action-btn,
.social-tab-btn,
.community-poll__option,
.comment-card__actions button,
.comment-card__reply-like {
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.rail-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

.rail-btn:hover,
.social-action-btn:hover,
.social-tab-btn:hover,
.community-poll__option:hover,
.comment-card__actions button:hover,
.comment-card__reply-like:hover {
    transform: translateY(-2px);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.social-grid--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.social-grid-card,
.watch-side-card,
.social-channel-card {
    display: block;
    border-radius: 1.2rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.social-grid-card {
    cursor: pointer;
}

.social-watch-main {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.social-watch-player {
    aspect-ratio: 16 / 9;
}

.social-watch-player iframe {
    width: 100%;
    height: 100%;
}

.social-watch-player__fallback {
    width: 100%;
    height: 100%;
    min-height: 320px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 2rem;
    background:
        radial-gradient(circle at top right, rgba(239, 68, 68, 0.18), transparent 32%),
        linear-gradient(180deg, rgba(18, 18, 34, 0.96), rgba(12, 12, 22, 0.92));
}

.social-watch-player__fallback h3 {
    color: #ffffff;
    font-family: 'Lexend Deca', sans-serif;
    margin-bottom: 0.55rem;
}

.social-watch-player__fallback p {
    color: rgba(255, 255, 255, 0.6);
}

.social-watch-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem 0.8rem;
}

.social-watch-title h1 {
    width: 100%;
    font-size: clamp(1.6rem, 2.5vw, 2.25rem);
    line-height: 1.2;
}

.social-watch-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-watch-meta strong {
    display: block;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.social-watch-meta span {
    color: rgba(255, 255, 255, 0.56);
}

.social-watch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.social-action-btn,
.social-tab-btn,
.community-poll__option {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.72rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
}

.social-action-btn.active,
.social-tab-btn.active {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.25);
    color: #ffffff;
}

.social-channel-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.social-channel-card__copy {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.social-channel-card__name {
    display: flex;
    align-items: center;
    gap: 0.72rem;
}

.social-watch-detail-card {
    padding: 1rem 1.2rem;
    display: grid;
    gap: 0.8rem;
}

.social-watch-detail-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.social-watch-detail-card__row strong {
    color: #ffffff;
}

.comment-composer,
.comment-reply-composer,
.community-composer {
    display: grid;
    gap: 0.75rem;
}

.comment-thread,
.community-feed {
    display: grid;
    gap: 0.95rem;
}

.social-note-banner {
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: rgba(91, 163, 245, 0.1);
    border: 1px solid rgba(91, 163, 245, 0.16);
}

.comment-card,
.community-card {
    padding: 1rem;
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.comment-card__head,
.community-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.comment-card p,
.comment-reply p {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
}

.comment-card__actions,
.comment-card__reply-like {
    margin-top: 0.75rem;
}

.comment-card__actions button,
.comment-card__reply-like {
    color: #fca5a5;
    font-weight: 700;
}

.comment-replies {
    display: grid;
    gap: 0.7rem;
    margin-top: 0.8rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.comment-reply {
    padding-left: 0.25rem;
}

.watch-side-card {
    display: grid;
    grid-template-columns: 164px minmax(0, 1fr);
    gap: 0.85rem;
}

.watch-side-card__thumb {
    border-radius: 0.95rem;
    overflow: hidden;
    margin: 0.7rem 0 0.7rem 0.7rem;
}

.watch-side-card__body {
    padding-left: 0;
}

.social-channel-hero__banner {
    min-height: 280px;
    padding: 1.5rem;
}

.social-channel-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(127, 29, 29, 0.24), transparent 42%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.24));
    pointer-events: none;
}

.social-channel-hero__content {
    position: relative;
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: end;
}

.social-channel-hero__content > img {
    width: 124px;
    height: 124px;
    border-radius: 1.5rem;
}

.social-channel-hero__title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.95rem 0 0.8rem;
}

.social-channel-hero__meta,
.social-channel-hero__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.85rem;
}

.social-channel-hero__meta span {
    color: rgba(255, 255, 255, 0.62);
}

.social-channel-hero__copy p {
    margin: 0.2rem 0 0.45rem;
    max-width: 74ch;
}

.social-link-chip {
    padding: 0.62rem 0.88rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
}

.social-link-chip.disabled {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}

.social-watch-sidebar {
    position: sticky;
    top: 1.5rem;
}

.social-channel-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.community-poll {
    display: grid;
    gap: 0.7rem;
    margin-top: 1rem;
}

.community-poll__option {
    justify-content: space-between;
    border-radius: 1rem;
}

.social-empty {
    padding: 2rem;
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.social-empty h3,
.social-empty h2 {
    color: #ffffff;
    font-family: 'Lexend Deca', sans-serif;
    margin-bottom: 0.55rem;
}

.social-empty p {
    color: rgba(255, 255, 255, 0.56);
}

/* =========================================
   YouTube-Style Comment System
========================================= */

/* Comment Composer */
.comment-composer-yt {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.25rem 0 1rem;
}

.comment-composer-yt__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(239, 68, 68, 0.18);
}

.comment-composer-yt__avatar--placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.32);
    flex-shrink: 0;
}

.comment-composer-yt__fields {
    flex: 1;
    min-width: 0;
}

.comment-composer-yt__fields textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.92rem;
    padding: 0.5rem 0;
    resize: none;
    outline: none;
    transition: border-color 0.25s ease;
}

.comment-composer-yt__fields textarea:focus {
    border-bottom-color: rgba(239, 68, 68, 0.5);
}

.comment-composer-yt__fields textarea::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.comment-composer-yt__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
    margin-top: 0.55rem;
    animation: fadeSlideUp 0.2s ease;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.btn-ghost {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.btn-ghost:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.btn-comment-submit {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.7), rgba(220, 38, 38, 0.85));
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ffffff;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-comment-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.25);
}

.btn-comment-submit:disabled {
    opacity: 0.38;
    cursor: default;
}

/* Disabled composer (not logged in) */
.comment-composer-yt--disabled {
    cursor: pointer;
    opacity: 0.72;
    transition: opacity 0.22s ease;
}

.comment-composer-yt--disabled:hover {
    opacity: 1;
}

.comment-composer-yt__placeholder {
    color: rgba(255, 255, 255, 0.32);
    font-size: 0.92rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Comment Thread */
.comment-thread-yt {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

/* Individual Comment */
.comment-yt {
    display: flex;
    gap: 0.75rem;
    padding: 0.65rem 0;
}

.comment-yt__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-yt__avatar--sm {
    width: 28px;
    height: 28px;
}

.comment-yt__body {
    flex: 1;
    min-width: 0;
}

.comment-yt__header {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.25rem;
}

.comment-yt__author {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
}

.comment-yt__time {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.78rem;
}

.comment-yt__text {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
    word-break: break-word;
}

/* Engagement Row */
.comment-yt__engagement {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-top: 0.35rem;
}

.comment-yt__action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.48);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 0.55rem;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.comment-yt__action:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.06);
}

.comment-yt__action.active {
    color: #fca5a5;
}

.comment-yt__action--reply {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 700;
}

.comment-yt__action--reply:hover {
    color: var(--social-accent-soft, #fb7185);
    background: rgba(239, 68, 68, 0.08);
}

.comment-yt__action svg {
    flex-shrink: 0;
}

/* Replies container */
.comment-yt__replies {
    margin-top: 0.5rem;
    padding-left: 0.15rem;
    border-left: 2px solid rgba(239, 68, 68, 0.12);
    animation: replyExpand 0.28s ease;
}

@keyframes replyExpand {
    from { opacity: 0; max-height: 0; }
    to   { opacity: 1; max-height: 2000px; }
}

.comment-yt--reply {
    padding: 0.45rem 0 0.45rem 0.55rem;
}

.comment-yt--reply .comment-yt__text {
    font-size: 0.85rem;
}

/* Reply Input */
.comment-yt__reply-input {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0 0.35rem 0.55rem;
}

.comment-yt__reply-input input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.84rem;
    padding: 0.35rem 0;
    outline: none;
    transition: border-color 0.25s ease;
}

.comment-yt__reply-input input:focus {
    border-bottom-color: rgba(239, 68, 68, 0.45);
}

.comment-yt__reply-input input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.btn-reply-submit {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn-reply-submit:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.28);
    color: #ffffff;
    transform: scale(1.08);
}

.btn-reply-submit:disabled {
    opacity: 0.32;
    cursor: default;
}

@media (max-width: 1200px) {
    .social-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .social-hero,
    .social-watch-shell,
    .social-studio__grid,
    .social-channel-hero__content {
        grid-template-columns: 1fr;
    }

    .social-channel-hero__content {
        align-items: start;
    }

    .social-grid,
    .social-grid--wide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .social-shell,
    .social-watch-shell {
        padding: 1.25rem 1rem 2rem;
    }

    .social-grid,
    .social-grid--wide,
    .studio-grid,
    .studio-note-grid {
        grid-template-columns: 1fr;
    }

    .social-video-card {
        min-width: 274px;
        max-width: 274px;
    }

    .watch-side-card {
        grid-template-columns: 1fr;
    }

    .watch-side-card__thumb {
        margin: 0;
        border-radius: 1rem 1rem 0 0;
    }

    .social-channel-card,
    .social-watch-meta,
    .social-watch-actions {
        align-items: flex-start;
    }
}
