.yt-cerez {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1050;
    width: min(440px, calc(100vw - 40px));
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.yt-cerez[hidden] {
    display: none;
}

.yt-cerez__kutu {
    padding: 20px 22px;
    background: #ffffff;
    color: #1d1e20;
    border: 1px solid #e6e7e5;
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(23, 24, 27, 0.18);
}

.yt-cerez__baslik {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.yt-cerez__simge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(250, 193, 11, 0.18);
    color: #17181b;
    font-size: 0.95rem;
}

.yt-cerez__simge--buyuk {
    width: 52px;
    height: 52px;
    background: #fac10b;
    font-size: 1.35rem;
}

.yt-cerez__metin {
    margin: 0;
    color: #61635e;
    font-size: 0.875rem;
    line-height: 1.6;
}

.yt-cerez__metin a,
.yt-cerez-panel__baglantilar a {
    color: #1d1e20;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #fac10b;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.yt-cerez__dugmeler {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e6e7e5;
}

.yt-cerez__dugme {
    height: auto;
    padding: 11px 20px;
    border: 1.5px solid #fac10b;
    border-radius: 999px;
    background: #fac10b;
    color: #17181b;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.yt-cerez__dugme:hover {
    border-color: #e3ac00;
    background: #e3ac00;
}

.yt-cerez__dugme--cizgi {
    border-color: #17181b;
    background: #ffffff;
}

.yt-cerez__dugme--cizgi:hover {
    border-color: #17181b;
    background: #17181b;
    color: #ffffff;
}

.yt-cerez__dugme--koyu {
    border-color: #17181b;
    background: #17181b;
    color: #ffffff;
}

.yt-cerez__dugme--koyu:hover {
    border-color: #fac10b;
    background: #fac10b;
    color: #17181b;
}

.yt-cerez__dugme--sade {
    border-color: #e6e7e5;
    background: #f5f6f5;
}

.yt-cerez__dugme--sade:hover {
    border-color: #17181b;
    background: #ffffff;
}

.yt-cerez__dugme:focus-visible,
.yt-cerez-panel__kapat:focus-visible,
.yt-cerez-kategori__detay:focus-visible,
.yt-cerez-anahtar input:focus-visible + .yt-cerez-anahtar__ray {
    outline: 2px solid #17181b;
    outline-offset: 2px;
}

.yt-cerez-acik {
    overflow: hidden;
}

.yt-cerez-panel {
    width: min(640px, calc(100vw - 24px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    background: #ffffff;
    color: #1d1e20;
    box-shadow: 0 24px 60px rgba(23, 24, 27, 0.3);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.yt-cerez-panel:not([open]) {
    display: none;
}

.yt-cerez-panel::backdrop {
    background: rgba(23, 24, 27, 0.55);
    backdrop-filter: blur(3px);
}

.yt-cerez-panel__kutu {
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 32px);
}

.yt-cerez-panel__bas {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid #e6e7e5;
}

.yt-cerez-panel__bas > div {
    flex: 1 1 auto;
    min-width: 0;
}

.yt-cerez-panel__baslik {
    margin: 0;
    color: #1d1e20;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.yt-cerez-panel__alt {
    margin: 2px 0 0;
    color: #61635e;
    font-size: 0.875rem;
}

.yt-cerez-panel__kapat {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e6e7e5;
    border-radius: 50%;
    background: #ffffff;
    color: #1d1e20;
    cursor: pointer;
}

.yt-cerez-panel__kapat:hover {
    border-color: #17181b;
}

.yt-cerez-panel__govde {
    display: grid;
    gap: 12px;
    padding: 18px 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.yt-cerez-panel__bilgi {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #e6e7e5;
    border-radius: 14px;
    background: #f5f6f5;
    color: #3a3c38;
    font-size: 0.875rem;
    line-height: 1.6;
}

.yt-cerez-kategori {
    padding: 16px 18px;
    border: 1px solid #e6e7e5;
    border-radius: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.yt-cerez-kategori:has(input[data-cerez-kategori]:checked) {
    border-color: #fac10b;
    box-shadow: 0 0 0 1px #fac10b;
}

.yt-cerez-kategori__bas {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.yt-cerez-kategori__metin {
    flex: 1 1 auto;
    min-width: 0;
}

.yt-cerez-kategori__ad {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 700;
}

.yt-cerez-kategori__aciklama {
    margin: 0;
    color: #61635e;
    font-size: 0.85rem;
    line-height: 1.55;
}

.yt-cerez-rozet {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border: 1px solid rgba(22, 163, 74, 0.35);
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.08);
    color: #15803d;
    font-size: 0.72rem;
    font-weight: 700;
}

.yt-cerez-anahtar {
    position: relative;
    flex: 0 0 auto;
    margin-top: 2px;
    cursor: pointer;
}

.yt-cerez-anahtar input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.yt-cerez-anahtar input:disabled {
    cursor: not-allowed;
}

.yt-cerez-anahtar__ray {
    position: relative;
    display: block;
    width: 52px;
    height: 30px;
    border-radius: 999px;
    background: #d9dbd7;
    transition: background-color 0.2s;
}

.yt-cerez-anahtar__ray::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(23, 24, 27, 0.25);
    transition: transform 0.2s;
}

.yt-cerez-anahtar__ray i {
    position: absolute;
    top: 50%;
    right: 10px;
    z-index: 1;
    color: #17181b;
    font-size: 0.62rem;
    transform: translateY(-50%);
}

.yt-cerez-anahtar input:checked + .yt-cerez-anahtar__ray {
    background: #fac10b;
}

.yt-cerez-anahtar input:checked + .yt-cerez-anahtar__ray::after {
    transform: translateX(22px);
}

.yt-cerez-anahtar input:disabled + .yt-cerez-anahtar__ray {
    background: #17181b;
}

.yt-cerez-kategori__detay {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: auto;
    margin-top: 10px;
    padding: 0;
    line-height: 1.4;
    border: 0;
    background: none;
    color: #1d1e20;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.yt-cerez-kategori__detay i {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.yt-cerez-kategori__detay[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.yt-cerez-tablo {
    margin-top: 12px;
    overflow-x: auto;
    border: 1px solid #e6e7e5;
    border-radius: 12px;
}

.yt-cerez-tablo table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.yt-cerez-tablo th {
    padding: 9px 12px;
    background: #f5f6f5;
    color: #61635e;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
}

.yt-cerez-tablo td {
    padding: 10px 12px;
    border-top: 1px solid #e6e7e5;
    vertical-align: top;
}

.yt-cerez-tablo code {
    display: block;
    padding: 0;
    background: none;
    white-space: nowrap;
    color: #1d1e20;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.78rem;
    font-weight: 600;
}

.yt-cerez-tablo small {
    display: block;
    margin-top: 2px;
    color: #61635e;
    font-size: 0.74rem;
    line-height: 1.45;
}

.yt-cerez-panel__ayak {
    padding: 16px 24px 18px;
    border-top: 1px solid #e6e7e5;
    background: #f5f6f5;
}

.yt-cerez-panel__dugmeler {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.yt-cerez-panel__baglantilar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 12px 0 0;
    color: #61635e;
    font-size: 0.8rem;
}

.yt-cerez-panel__baglantilar a {
    color: #61635e;
    font-weight: 500;
}

.yt-cerez-tercih {
    height: auto;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.yt-cerez-tercih:hover,
.yt-cerez-tercih:focus-visible {
    color: #fac10b;
}

.yt-gomulu {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 260px;
    padding: 28px 20px;
    border-radius: inherit;
    background: #f5f6f5 repeating-linear-gradient(135deg, transparent 0 14px, rgba(23, 24, 27, 0.025) 14px 28px);
    color: #1d1e20;
    text-align: center;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.yt-gomulu--yuklendi {
    display: block;
    padding: 0;
    background: none;
}

.yt-gomulu--yuklendi iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    border: 0;
}

.yt-gomulu__simge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 16px rgba(23, 24, 27, 0.08);
    font-size: 1.3rem;
}

.yt-gomulu__baslik {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.yt-gomulu__metin {
    max-width: 420px;
    margin: 0;
    color: #61635e;
    font-size: 0.85rem;
    line-height: 1.55;
}

.yt-gomulu__dugmeler {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.yt-gomulu__dugmeler .yt-cerez__dugme {
    padding: 10px 18px;
}

@media (max-width: 639px) {
    .yt-cerez {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
    }

    .yt-cerez__kutu {
        padding: 16px;
    }

    .yt-cerez__dugmeler {
        grid-template-columns: 1fr 1fr;
    }

    .yt-cerez__dugmeler .js-cerez-ayarla {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .yt-cerez-panel {
        width: 100vw;
        max-height: 100dvh;
        margin: auto 0 0;
        border-radius: 20px 20px 0 0;
    }

    .yt-cerez-panel__kutu {
        max-height: 92dvh;
    }

    .yt-cerez-panel__bas,
    .yt-cerez-panel__govde,
    .yt-cerez-panel__ayak {
        padding-left: 16px;
        padding-right: 16px;
    }

    .yt-cerez__simge--buyuk {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .yt-cerez-panel__dugmeler {
        grid-template-columns: 1fr;
    }
}
