:root {
    --yt-consent-primary: #05c3de;
    --yt-consent-secondary: #4db956;
    --yt-consent-dark: #1d1d1f;
    --yt-consent-muted: #86868b;
    --yt-consent-line: rgba(29, 29, 31, 0.08);
    --yt-consent-surface: rgba(255, 255, 255, 0.96);
    --yt-consent-surface-soft: rgba(245, 245, 247, 0.98);
    --yt-consent-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
    --yt-consent-gradient: linear-gradient(90deg, var(--yt-consent-primary), var(--yt-consent-secondary));
}

html.yt-consent-modal-open,
html.yt-consent-modal-open body {
    overflow: hidden;
}

.yt-consent {
    position: relative;
    display: block;
    width: 100%;
    min-height: clamp(14rem, 34vw, 14rem);
    container-type: inline-size;
    overflow: hidden;
    background: #111;
    color: #fff;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
}

.yt-consent::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}

.yt-consent__thumb,
.yt-consent__iframe,
.yt-consent__overlay {
    position: absolute;
    inset: 0;
}

.yt-consent__thumb,
.yt-consent__iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.yt-consent__overlay {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: .75rem;
    padding: 1.5rem;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .86)),
        linear-gradient(120deg, rgba(5, 195, 222, .12), rgba(77, 185, 86, .08));
}

.yt-consent__eyebrow,
.yt-consent__title,
.yt-consent__text {
    margin: 0;
}

.yt-consent__eyebrow {
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .9;
    color: #b8f4fb;
}

.yt-consent__title {
    font-size: 1.35rem;
    line-height: 1.2;
}

.yt-consent__text {
    max-width: 40rem;
    font-size: 1rem;
    opacity: .92;
}

.yt-consent__trigger,
.yt-consent-banner__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    padding: .82rem 1.15rem;
    background: rgba(255, 255, 255, .12);
    color: inherit;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease;
}

.yt-consent__trigger:hover,
.yt-consent-banner__button:hover,
.yt-consent__trigger:focus,
.yt-consent-banner__button:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}

@container (max-width: 34rem) {
    .yt-consent__overlay {
        gap: .55rem;
        padding: 1rem;
    }

    .yt-consent__eyebrow {
        font-size: .68rem;
    }

    .yt-consent__title {
        font-size: 1.05rem;
        line-height: 1.16;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .yt-consent__text {
        max-width: none;
        font-size: .86rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .yt-consent__trigger {
        min-height: 2.7rem;
        max-width: 100%;
        padding: .72rem .95rem;
        font-size: .9rem;
        white-space: normal;
        text-align: center;
    }
}

@container (max-width: 26rem) {
    .yt-consent__overlay {
        padding: .85rem;
    }

    .yt-consent__eyebrow {
        display: none;
    }

    .yt-consent__title {
        font-size: .96rem;
    }

    .yt-consent__text {
        font-size: .78rem;
        -webkit-line-clamp: 2;
    }

    .yt-consent__trigger {
        width: 100%;
        min-height: 2.45rem;
        padding: .65rem .8rem;
        font-size: .82rem;
    }
}

.yt-consent-cmp {
    position: relative;
    z-index: 9998;
}

.yt-consent-banner {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 9999;
    width: min(45rem, calc(100vw - 2.5rem));
}

.yt-consent-banner--noscript {
    position: static;
    margin: 1rem;
}

.yt-consent-banner__inner {
    display: grid;
    gap: 1rem;
    padding: 1.4rem 1.4rem 1.3rem;
    border: 1px solid rgba(255, 255, 255, .68);
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(5, 195, 222, .10), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, .985), rgba(245, 245, 247, .96));
    color: var(--yt-consent-dark);
    box-shadow: var(--yt-consent-shadow);
    backdrop-filter: blur(18px) saturate(150%);
}

.yt-consent-banner__copy {
    display: grid;
    gap: .7rem;
}

.yt-consent-banner__eyebrow {
    margin: 0;
    color: var(--yt-consent-primary);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.yt-consent-banner__title,
.yt-consent-banner__text,
.yt-consent-banner__hint,
.yt-consent-banner__privacy {
    margin: 0;
}

.yt-consent-banner__title {
    max-width: 28rem;
    font-size: clamp(1.6rem, 2.4vw, 2.15rem);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -.035em;
}

.yt-consent-banner__text {
    color: var(--yt-consent-dark);
    max-width: 38rem;
    font-size: 1rem;
    line-height: 1.55;
}

.yt-consent-banner__meta {
    display: grid;
    gap: .5rem;
    padding: .9rem 0 0;
    border-top: 1px solid rgba(29, 29, 31, .08);
}

.yt-consent-banner__hint,
.yt-consent-banner__privacy a {
    font-size: .95rem;
    line-height: 1.45;
}

.yt-consent-banner__hint {
    color: var(--yt-consent-muted);
}

.yt-consent-banner__privacy a {
    color: var(--yt-consent-dark);
    font-weight: 600;
    text-decoration: none;
}

.yt-consent-banner__privacy a:hover,
.yt-consent-banner__privacy a:focus {
    color: var(--yt-consent-primary);
}

.yt-consent-banner__actions,
.yt-consent-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
}

.yt-consent-banner__actions {
    align-items: center;
    justify-content: space-between;
}

.yt-consent-banner__actions-secondary {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.yt-consent-banner__button {
    min-height: 3.3rem;
    border-color: rgba(29, 29, 31, .06);
    background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(246, 246, 248, .98));
    color: var(--yt-consent-dark);
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

.yt-consent-banner__button--primary {
    min-width: 17rem;
    background: var(--yt-consent-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(5, 195, 222, .22);
}

.yt-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.yt-consent-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, .55);
    backdrop-filter: blur(8px);
}

.yt-consent-modal__panel {
    position: relative;
    width: min(44rem, calc(100vw - 2rem));
    margin: 5vh auto;
    padding: 1.4rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(245,245,247,.98));
    box-shadow: 0 28px 70px rgba(0, 0, 0, .2);
}

.yt-consent-modal__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
}

.yt-consent-modal__eyebrow {
    margin: 0 0 .35rem;
    color: var(--yt-consent-primary);
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.yt-consent-modal__title {
    margin: 0;
    color: var(--yt-consent-dark);
    font-size: 1.4rem;
    letter-spacing: -.02em;
}

.yt-consent-modal__text {
    margin: 0 0 1rem;
    color: var(--yt-consent-muted);
    line-height: 1.6;
}

.yt-consent-modal__close {
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 999px;
    background: rgba(29, 29, 31, .06);
    color: var(--yt-consent-dark);
    font-size: 1.5rem;
    cursor: pointer;
}

.yt-consent-category {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.1rem;
    border: 1px solid var(--yt-consent-line);
    border-radius: 20px;
    background: #fff;
    margin-bottom: .85rem;
}

.yt-consent-category__copy h3 {
    margin: 0 0 .35rem;
    color: var(--yt-consent-dark);
    font-size: 1rem;
}

.yt-consent-category__copy p {
    margin: 0;
    color: var(--yt-consent-muted);
    line-height: 1.55;
}

.yt-consent-category__services {
    margin: .75rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: .5rem;
}

.yt-consent-category__services li {
    display: grid;
    gap: .12rem;
    padding: .65rem .75rem;
    border-radius: 14px;
    background: rgba(5, 195, 222, .06);
}

.yt-consent-category__services strong,
.yt-privacy-info__service-card h4 {
    color: var(--yt-consent-dark);
}

.yt-consent-category__services span {
    color: var(--yt-consent-muted);
    line-height: 1.45;
}

.yt-consent-toggle {
    width: 3.2rem;
    height: 1.9rem;
    border-radius: 999px;
    background: rgba(77, 185, 86, .18);
    position: relative;
    flex: 0 0 auto;
}

.yt-consent-toggle__pill {
    position: absolute;
    top: .18rem;
    right: .18rem;
    width: 1.54rem;
    height: 1.54rem;
    border-radius: 50%;
    background: var(--yt-consent-secondary);
}

.yt-consent-switch {
    position: relative;
    width: 3.2rem;
    height: 1.9rem;
    flex: 0 0 auto;
}

.yt-consent-switch input {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.yt-consent-switch__slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(29, 29, 31, .12);
    transition: background-color .2s ease;
}

.yt-consent-switch__slider::after {
    content: "";
    position: absolute;
    top: .18rem;
    left: .18rem;
    width: 1.54rem;
    height: 1.54rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .18);
    transition: transform .2s ease;
}

.yt-consent-switch input:checked + .yt-consent-switch__slider {
    background: rgba(5, 195, 222, .28);
}

.yt-consent-switch input:checked + .yt-consent-switch__slider::after {
    transform: translateX(1.28rem);
    background: var(--yt-consent-primary);
}

.yt-consent-settings {
    position: fixed;
    left: 1.25rem;
    bottom: 1.25rem;
    z-index: 9998;
    padding: .72rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(255, 255, 255, .65);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
    backdrop-filter: blur(16px) saturate(150%);
}

.yt-consent-settings-link {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: var(--yt-consent-dark);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: -.01em;
}

.yt-consent-settings-link__icon {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 1.15rem;
    background: var(--yt-consent-gradient);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M12 15.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z'/><path d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09a1.65 1.65 0 0 0-1-1.51 1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09a1.65 1.65 0 0 0 1.51-1 1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33h.01A1.65 1.65 0 0 0 10 3.09V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51h.01a1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82v.01a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1Z'/></svg>") center/contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M12 15.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z'/><path d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09a1.65 1.65 0 0 0-1-1.51 1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09a1.65 1.65 0 0 0 1.51-1 1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33h.01A1.65 1.65 0 0 0 10 3.09V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51h.01a1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82v.01a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1Z'/></svg>") center/contain no-repeat;
}

.yt-consent-settings-link__label {
    line-height: 1;
}

.yt-consent-settings-link--inline {
    justify-content: center;
    margin-top: 1rem;
    padding: .9rem 1.1rem;
    border-radius: 999px;
    background: rgba(5, 195, 222, .08);
    border: 1px solid rgba(5, 195, 222, .16);
}

.yt-privacy-info {
    color: var(--yt-consent-dark);
}

.yt-privacy-info h2,
.yt-privacy-info h3 {
    color: var(--yt-consent-dark);
    letter-spacing: -.02em;
}

.yt-privacy-info p {
    color: var(--yt-consent-muted);
    line-height: 1.7;
    margin: 0 0 1rem;
}

.yt-privacy-info__cookies {
    margin-top: 2rem;
}

.yt-privacy-info__table-wrap {
    overflow-x: auto;
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .08);
}

.yt-privacy-info__table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.yt-privacy-info__table th,
.yt-privacy-info__table td {
    padding: 1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.yt-privacy-info__table th {
    background: linear-gradient(90deg, rgba(5, 195, 222, .10), rgba(77, 185, 86, .08));
    color: var(--yt-consent-dark);
    font-size: .95rem;
}

.yt-privacy-info__table td {
    color: var(--yt-consent-muted);
    line-height: 1.55;
}

.yt-privacy-info__actions {
    margin-top: 1.5rem;
}

.yt-privacy-info__services {
    margin-top: 1.75rem;
}

.yt-privacy-info__service-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.yt-privacy-info__service-card {
    padding: 1rem 1.1rem;
    border: 1px solid var(--yt-consent-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .04);
}

.yt-privacy-info__service-card p,
.yt-privacy-info__service-card h4 {
    margin: 0 0 .5rem;
}

.yt-privacy-info__service-card p:last-child {
    margin-bottom: 0;
}

.yt-privacy-info__service-category {
    color: var(--yt-consent-primary);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

@media (max-width: 640px) {
    .yt-consent__overlay {
        padding: 1rem;
    }

    .yt-consent__title {
        font-size: 1.05rem;
    }

    .yt-consent {
        min-height: 13rem;
    }

    .yt-consent-banner {
        left: 1rem;
        width: auto;
    }

    .yt-consent-banner__inner {
        padding: 1.1rem;
        border-radius: 24px;
    }

    .yt-consent-banner__title {
        max-width: none;
        font-size: 1.35rem;
    }

    .yt-consent-banner__actions,
    .yt-consent-banner__actions-secondary {
        display: grid;
        gap: .7rem;
    }

    .yt-consent-banner__actions {
        justify-content: stretch;
    }

    .yt-consent-banner__button,
    .yt-consent-banner__button--primary {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .yt-consent-modal__panel {
        width: calc(100vw - 1rem);
        margin: 2vh auto;
        padding: 1rem;
    }

    .yt-consent-category {
        align-items: start;
    }

    .yt-consent-settings {
        left: 1rem;
        right: 1rem;
        bottom: .85rem;
        display: flex;
        justify-content: center;
    }

    .yt-privacy-info__table th,
    .yt-privacy-info__table td {
        min-width: 12rem;
    }
}
