/* Live */
.live-page {
    --live-red: #ff334d;
}

.live-watch-layout {
    align-items: start;
}

.live-watch-primary {
    padding-top: 0;
}

.live-broadcast {
    width: min(1460px, 100%);
    margin: 0 auto;
    padding: clamp(38px, 5vw, 76px) clamp(24px, 5vw, 78px) 80px;
}

.live-broadcast-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.live-broadcast-heading h1,
.live-offline-content h1 {
    margin: 14px 0 14px;
    font-size: clamp(3rem, 6vw, 6.4rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: 0;
}

.live-broadcast-heading p,
.live-offline-content > p {
    max-width: 650px;
    margin: 0;
    color: #b8b9bf;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1.05rem;
    line-height: 1.65;
}

.live-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
}

.live-status-online {
    color: #fff;
    background: var(--live-red);
    box-shadow: 0 7px 24px rgba(255, 51, 77, 0.22);
}

.live-status-offline {
    margin-bottom: 30px;
    color: #d0d1d5;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(15, 16, 18, 0.66);
    backdrop-filter: blur(12px);
}

.live-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.live-status-online .live-status-dot {
    animation: livePulse 1.6s ease-out infinite;
}

@keyframes livePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70%,
    100% {
        box-shadow: 0 0 0 7px rgba(255, 255, 255, 0);
    }
}

.live-community-link {
    flex: 0 0 auto;
    padding-bottom: 5px;
    color: #d5d6da;
    font-size: 0.78rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.live-community-link:hover {
    color: #fff;
}

.live-player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 15px;
    background: #000;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.live-offline-player-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.72) brightness(0.55);
}

.live-offline-player-state {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.16);
}

.live-offline-player-state .live-status-offline {
    margin: 0;
}

.live-player {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.live-player-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    color: #fff;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 6px;
    background: var(--live-red);
    pointer-events: none;
}

.live-player-badge span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}

.live-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: clamp(64px, 8vw, 92px);
    height: clamp(64px, 8vw, 92px);
    place-items: center;
    color: #111;
    border: 0;
    border-radius: 50%;
    background: var(--videos-accent);
    box-shadow: 0 15px 42px rgba(0, 0, 0, 0.46);
    transform: translate(-50%, -50%);
    transition: background-color 150ms ease, transform 150ms ease;
}

.live-play-button:hover,
.live-play-button:focus {
    background: #ffd044;
    transform: translate(-50%, -50%) scale(1.06);
}

.live-play-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.live-play-button svg {
    width: 44%;
    margin-left: 5%;
    fill: currentColor;
}

.live-player-message {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    display: none;
    padding: 12px 16px;
    color: #fff;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.85rem;
    text-align: center;
    border-radius: 8px;
    background: rgba(150, 25, 40, 0.92);
}

.live-player-message.visible {
    display: block;
}

.live-broadcast-meta {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 20px 3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.live-broadcast-meta img {
    width: 47px;
    height: 47px;
    padding: 6px;
    object-fit: contain;
    border-radius: 50%;
    background: #27282c;
}

.live-broadcast-meta strong,
.live-broadcast-meta span {
    display: block;
}

.live-broadcast-meta strong {
    font-size: 0.85rem;
}

.live-broadcast-meta span {
    color: #8f9096;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.76rem;
}

.live-broadcast-meta .live-broadcast-quality {
    margin-left: auto;
    color: var(--live-red);
    font-family: inherit;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.live-chat-panel {
    position: relative;
    display: flex;
    height: min(72svh, 720px);
    min-height: 520px;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: #16171a;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.25);
}

.live-chat-heading {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 18px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.live-chat-heading h2 {
    margin: 4px 0 0;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
}

.live-chat-status {
    flex: 0 0 auto;
    padding: 6px 9px;
    color: #fff;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    background: var(--live-red);
}

.live-chat-scroll-wrap {
    position: relative;
    min-height: 0;
    flex: 1 1 auto;
}

.live-chat-messages {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0;
    flex-direction: column;
    padding: 18px;
    overflow-y: auto;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.live-chat-message-list {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    gap: 14px;
}

.live-chat-empty,
.live-chat-feedback,
.live-chat-login {
    color: #9c9da3;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.82rem;
    line-height: 1.55;
}

.live-chat-empty {
    margin: auto;
    text-align: center;
}

.live-chat-message {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
}

.live-chat-message:first-child {
    margin-top: auto;
}

.live-chat-message img {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 50%;
    background: #24252a;
}

.live-chat-avatar-link {
    display: block;
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.live-chat-message p {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    margin: 0 0 2px;
}

.live-chat-message p a {
    overflow: hidden;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-chat-message p a:hover,
.live-chat-message p a:focus {
    color: var(--videos-accent);
}

.live-chat-message p a.is-admin {
    max-width: 100%;
    padding: 2px 7px;
    color: #111;
    border-radius: 5px;
    background: #ffc107;
}

.live-chat-message p a.is-admin:hover,
.live-chat-message p a.is-admin:focus {
    color: #111;
    background: #ffd34e;
}

.live-chat-message time {
    flex: 0 0 auto;
    color: #686970;
    font-size: 0.67rem;
}

.live-chat-message span {
    display: block;
    color: #d5d6da;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.82rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.live-chat-feedback {
    flex: 0 0 auto;
    min-height: 20px;
    margin: 0;
    padding: 0 18px 10px;
    color: #a7d9b8;
}

.live-chat-jump-recent {
    position: absolute;
    bottom: 14px;
    left: 50%;
    z-index: 2;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    color: #fff;
    border: 0;
    border-radius: 50%;
    background: #1f6feb;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
    transform: translateX(-50%);
}

.live-chat-jump-recent[hidden] {
    display: none;
}

.live-chat-jump-recent svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.live-chat-jump-recent:hover,
.live-chat-jump-recent:focus {
    background: #388bfd;
}

.live-chat-feedback.is-error {
    color: #ff9aa8;
}

.live-chat-form {
    flex: 0 0 auto;
    padding: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #121316;
}

.live-chat-form label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.live-chat-form textarea {
    width: 100%;
    min-height: 72px;
    max-height: 130px;
    padding: 11px 12px;
    color: #fff;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.86rem;
    resize: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    outline: 0;
    background: #1d1e22;
}

.live-chat-form textarea:focus {
    border-color: rgba(255, 193, 7, 0.7);
}

.live-chat-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.live-chat-form-footer span {
    color: #77787f;
    font-size: 0.72rem;
}

.live-chat-form-footer .btn {
    min-width: 86px;
    color: #111;
    font-weight: 800;
    border: 0;
    background: var(--videos-accent);
}

.live-chat-login {
    flex: 0 0 auto;
    margin: 0;
    padding: 16px 18px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #121316;
}

.live-chat-login a {
    color: #fff;
    font-weight: 800;
}

.live-offline-hero {
    position: relative;
    display: flex;
    min-height: min(76svh, 760px);
    align-items: end;
    overflow: hidden;
    background: #18191c;
}

.live-offline-image,
.live-offline-overlay {
    position: absolute;
    inset: 0;
}

.live-offline-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.66);
    transform: scale(1.015);
}

.live-offline-overlay {
    background:
        linear-gradient(90deg, rgba(8, 9, 11, 0.96) 0%, rgba(8, 9, 11, 0.7) 46%, rgba(8, 9, 11, 0.13) 82%),
        linear-gradient(0deg, #0f1012 0%, rgba(15, 16, 18, 0.02) 44%);
}

.live-offline-content {
    position: relative;
    z-index: 1;
    width: min(820px, 76%);
    padding: 70px clamp(30px, 5vw, 78px);
    text-shadow: 0 3px 24px rgba(0, 0, 0, 0.7);
}

.live-offline-content h1 {
    margin-top: 15px;
}

.live-offline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 30px;
}

.live-secondary-button {
    padding: 12px 20px;
    color: #fff;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 8px;
    background: rgba(15, 16, 18, 0.35);
    backdrop-filter: blur(10px);
}

.live-secondary-button:hover,
.live-secondary-button:focus {
    color: #111;
    background: #fff;
}

.live-experience {
    width: min(1550px, 100%);
    margin: 0 auto;
    padding: 10px clamp(24px, 4vw, 64px) 80px;
}

.live-experience-heading {
    max-width: 770px;
    margin-bottom: 42px;
}

.live-experience-heading h2,
.live-cta h2 {
    margin: 11px 0 17px;
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0;
}

.live-experience-heading p {
    margin: 0;
    color: #a9aab0;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
}

.live-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.live-feature-card {
    position: relative;
    min-height: 300px;
    padding: 34px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: #191a1e;
}

.live-feature-card::before {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--videos-accent);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 200ms ease;
}

.live-feature-card:hover::before {
    transform: scaleX(1);
}

.live-feature-card > svg {
    width: 40px;
    height: 40px;
    margin: 48px 0 27px;
    fill: none;
    stroke: var(--videos-accent);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.4;
}

.live-feature-number {
    position: absolute;
    top: 27px;
    right: 29px;
    color: #5e5f65;
    font-size: 0.72rem;
}

.live-feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.12rem;
    font-weight: 700;
}

.live-feature-card p {
    margin: 0;
    color: #96979d;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.9rem;
    line-height: 1.65;
}

.live-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    margin: 0 clamp(24px, 5vw, 78px) 80px;
    padding: clamp(34px, 4vw, 54px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    background: #1a1b1f;
}

.live-cta h2 {
    max-width: 700px;
    margin-bottom: 0;
    font-size: clamp(1.8rem, 3vw, 3rem);
}

.live-cta-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 991.98px) {
    .live-chat-panel {
        height: min(70svh, 620px);
        min-height: 460px;
    }

    .live-feature-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .live-feature-card {
        min-height: 250px;
    }

    .live-cta {
        display: block;
    }

    .live-cta-actions {
        margin-top: 25px;
    }
}

@media (max-width: 767.98px) {
    .live-broadcast-heading {
        display: block;
    }

    .live-community-link {
        display: inline-block;
        margin-top: 20px;
    }

    .live-player-shell {
        width: calc(100% + 48px);
        margin-left: -24px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .live-watch-layout .live-player-shell {
        width: 100%;
        margin-left: 0;
        border-right: 1px solid rgba(255, 255, 255, 0.09);
        border-left: 1px solid rgba(255, 255, 255, 0.09);
        border-radius: 12px;
    }

    .live-chat-panel {
        min-height: 420px;
    }

    .live-offline-hero {
        min-height: 680px;
    }

    .live-offline-image {
        background-position: 64% center;
    }

    .live-offline-overlay {
        background:
            linear-gradient(0deg, #0f1012 3%, rgba(8, 9, 11, 0.66) 62%, rgba(8, 9, 11, 0.16) 100%),
            linear-gradient(90deg, rgba(8, 9, 11, 0.48), transparent);
    }

    .live-offline-content {
        width: 100%;
        padding: 48px 24px;
    }

    .live-offline-content h1 {
        font-size: clamp(3rem, 15vw, 4.4rem);
    }

    .live-experience {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .live-feature-card {
        padding: 28px;
    }

    .live-cta {
        margin-bottom: 55px;
    }

    .live-cta-actions {
        display: grid;
    }
}

@media (prefers-reduced-motion: reduce) {
    .live-status-online .live-status-dot {
        animation: none;
    }

    .live-play-button,
    .live-feature-card::before {
        transition: none;
    }
}

