@font-face{font-family:Canal;font-style:italic;font-weight:700;font-display:swap;unicode-range:U+20-7E,U+A0-AC,U+AE-FF,U+152-153,U+2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+2009,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122,U+2191,U+2193,U+2212;src:url(https://static.canalplus.com/dive/fonts/woff/Canal-VF-rc.1-wght700.ital1-Latin.4825ae.woff2)format("woff2"),url(https://static.canalplus.com/dive/fonts/woff/Canal-VF-rc.1-wght700.ital1-Latin.b56a5a.woff)format("woff")}@font-face{font-family:Canal;font-style:italic;font-weight:700;font-display:swap;unicode-range:U+100-137,U+139-148,U+14A-151,U+154-17E,U+18F,U+192,U+1FA-1FF,U+218-21B,U+237,U+259,U+2C7,U+2DD,U+1E80-1E85,U+1E9E,U+1EF2-1EF5,U+1EF8-1EF9,U+20A8,U+20B4,U+20B8-20BA,U+20BD,U+20BF,U+2113,U+2D8-2D9,U+2DB,U+300,U+302-303,U+306-307,U+30A-30C,U+312,U+323,U+326-328,U+1EA0-1EA1,U+1EAC-1EAD,U+1EB6-1EB9,U+1EBC-1EBD,U+1EC6-1EC7,U+1ECA-1ECD,U+1ED8-1ED9,U+1EE4-1EE5;src:url(https://static.canalplus.com/dive/fonts/woff/Canal-VF-rc.1-wght700.ital1-LatinExtended.dab0a2.woff2)format("woff2"),url(https://static.canalplus.com/dive/fonts/woff/Canal-VF-rc.1-wght700.ital1-LatinExtended.b65fba.woff)format("woff")}@font-face{font-family:Canal;font-style:italic;font-weight:700;font-display:swap;unicode-range:U+301,U+400-45F,U+490-491;src:url(https://static.canalplus.com/dive/fonts/woff/Canal-VF-rc.1-wght700.ital1-Cyrillic.d6cd81.woff2)format("woff2"),url(https://static.canalplus.com/dive/fonts/woff/Canal-VF-rc.1-wght700.ital1-Cyrillic.3b2c18.woff)format("woff")}@font-face{font-family:Canal;font-style:italic;font-weight:700;font-display:swap;unicode-range:U+374-375,U+37E,U+384-38A,U+38C,U+38E-3A1,U+3A3-3CF,U+3D7;src:url(https://static.canalplus.com/dive/fonts/woff/Canal-VF-rc.1-wght700.ital1-Greek.9f7723.woff2)format("woff2"),url(https://static.canalplus.com/dive/fonts/woff/Canal-VF-rc.1-wght700.ital1-Greek.626f0e.woff)format("woff")}@font-face{font-family:Canal;font-style:italic;font-weight:700;font-display:swap;unicode-range:U+E3F,U+2070,U+2074-2079,U+2080-2089,U+2116-2117,U+2120,U+212E,U+2190,U+2192,U+2202,U+2206,U+220F,U+2211,U+221A,U+221E,U+222B,U+2248,U+2260,U+2264-2265,U+2460-2469,U+24EA,U+24FF,U+25BA,U+25C4,U+25CA-25CB,U+25D8-25D9,U+263A-263C,U+2640,U+2642,U+2660,U+2663,U+2665-2666,U+266A-266B,U+2776-2793,U+E000-E002,U+FEFF,U+1F10B-1F10C;src:url(https://static.canalplus.com/dive/fonts/woff/Canal-VF-rc.1-wght700.ital1-SymbolsExtended.ad5fe9.woff2)format("woff2"),url(https://static.canalplus.com/dive/fonts/woff/Canal-VF-rc.1-wght700.ital1-SymbolsExtended.63b9c5.woff)format("woff")}@font-face{font-family:Hind;font-style:normal;font-weight:400;font-display:swap;unicode-range:U+20-7E,U+A0-AC,U+AE-FF,U+152-153,U+2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+2009,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122,U+2191,U+2193,U+2212;src:url(https://static.canalplus.com/dive/fonts/woff/Hind-Regular-400-Latin.38c582.woff2)format("woff2"),url(https://static.canalplus.com/dive/fonts/woff/Hind-Regular-400-Latin.bd434b.woff)format("woff")}@font-face{font-family:Hind;font-style:normal;font-weight:400;font-display:swap;unicode-range:U+100-137,U+139-148,U+14A-151,U+154-17E,U+18F,U+192,U+1FA-1FF,U+218-21B,U+237,U+259,U+2C7,U+2DD,U+1E80-1E85,U+1E9E,U+1EF2-1EF5,U+1EF8-1EF9,U+20A8,U+20B4,U+20B8-20BA,U+20BD,U+20BF,U+2113,U+2D8-2D9,U+2DB,U+300,U+302-303,U+306-307,U+30A-30C,U+312,U+323,U+326-328,U+1EA0-1EA1,U+1EAC-1EAD,U+1EB6-1EB9,U+1EBC-1EBD,U+1EC6-1EC7,U+1ECA-1ECD,U+1ED8-1ED9,U+1EE4-1EE5;src:url(https://static.canalplus.com/dive/fonts/woff/Hind-Regular-400-LatinExtended.438c04.woff2)format("woff2"),url(https://static.canalplus.com/dive/fonts/woff/Hind-Regular-400-LatinExtended.e78b50.woff)format("woff")}@font-face{font-family:Hind;font-style:normal;font-weight:600;font-display:swap;unicode-range:U+20-7E,U+A0-AC,U+AE-FF,U+152-153,U+2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+2009,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122,U+2191,U+2193,U+2212;src:url(https://static.canalplus.com/dive/fonts/woff/Hind-Semibold-600-Latin.d935cd.woff2)format("woff2"),url(https://static.canalplus.com/dive/fonts/woff/Hind-Semibold-600-Latin.712f79.woff)format("woff")}@font-face{font-family:Hind;font-style:normal;font-weight:600;font-display:swap;unicode-range:U+100-137,U+139-148,U+14A-151,U+154-17E,U+18F,U+192,U+1FA-1FF,U+218-21B,U+237,U+259,U+2C7,U+2DD,U+1E80-1E85,U+1E9E,U+1EF2-1EF5,U+1EF8-1EF9,U+20A8,U+20B4,U+20B8-20BA,U+20BD,U+20BF,U+2113,U+2D8-2D9,U+2DB,U+300,U+302-303,U+306-307,U+30A-30C,U+312,U+323,U+326-328,U+1EA0-1EA1,U+1EAC-1EAD,U+1EB6-1EB9,U+1EBC-1EBD,U+1EC6-1EC7,U+1ECA-1ECD,U+1ED8-1ED9,U+1EE4-1EE5;src:url(https://static.canalplus.com/dive/fonts/woff/Hind-Semibold-600-LatinExtended.c07d0b.woff2)format("woff2"),url(https://static.canalplus.com/dive/fonts/woff/Hind-Semibold-600-LatinExtended.6640d9.woff)format("woff")}:root{font-feature-settings:"ss01"}

/* ==========================================================================
   MAXTELA · Cabeçalho, dropdown de perfil e "Quem está assistindo"
   ========================================================================== */

/* ---------- Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    background: #0f0f0f;
    font-family: "Google Sans Flex", sans-serif;
}

a {
    text-decoration: none;
}

[hidden] {
    display: none !important;
}

body.wiw-aberto {
    overflow: hidden;
}

/* ---------- Tokens de animação ---------- */
@keyframes wiw-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes wiw-subir {
    from { opacity: 0; transform: translateY(16px) scale(.98); }
    to   { opacity: 1; transform: none; }
}

@keyframes wiw-entrar-tela {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   Cabeçalho
   ========================================================================== */
header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(50px);
    width: 100%;
    padding: 15px 45px;
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff;
}

.logo {
    font-size: 28px;
    font-family: "Canal", sans-serif;
    color: #fff;
}

.navlinks {
    display: flex;
}

.navlinks li {
    list-style: none;
}

.navlinks a {
    padding: 8px 13px;
    border-radius: 50px;
    color: #fff;
    font-size: large;
    font-weight: 700;
    transition: all ease-in-out .2s;
}

.navlinks a:hover {
    background-color: #202020;
}

.navleft {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.navleft a {
    padding: 8px;
    border-radius: 50px;
}

.navleft a:hover {
    transition: all ease-in-out .2s;
    background-color: #202020;
}

.navleft .iconify {
    display: flex;
    font-size: 25px;
    color: #fff;
}

/* ---------- Botão ASSINE ---------- */
.assinatura_infos {
    display: flex;
    align-items: center;
    justify-content: center;
}

.assinatura_infos #subscribe_area {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
    isolation: isolate;
    padding: 8px 20px;
    border-radius: 50px;
    background-color: rgb(255, 0, 64);
    color: #fff;
    font-family: "Canal", sans-serif;
    font-size: larger;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
}

/* brilho que passa no hover */
.assinatura_infos #subscribe_area::after {
    content: "";
    position: absolute;
    inset: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: skewX(-20deg);
    transition: left .5s ease;
    pointer-events: none;
}

.assinatura_infos #subscribe_area:hover::after {
    left: 150%;
}

/* ==========================================================================
   Botão de perfil no cabeçalho + dropdown
   ========================================================================== */
.profilediv {
    position: relative;
    display: inline-flex;
    align-items: center;
    border-radius: 50px;
    background-color: #202020;
    transition: background-color .2s ease-in-out;
}

.profilediv:hover {
    background-color: #303030;
}

.profilediv a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 2px 5px;
}

.profilediv .iconify {
    font-size: 35px;
}

.profilediv .iconify:last-child {
    font-size: 20px;
}

.profile-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.profile-toggle .iconify:last-child {
    transition: transform .2s ease;
}

.header-avatar {
    width: 35px;
    height: 35px;
    display: flex;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 50%;
    background: #181818;
}

.header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ---------- Painel do dropdown ---------- */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 999;
    min-width: 300px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #202020;
    border-radius: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

/* abre ao passar o mouse, focar ou com a classe .open */
.profilediv:hover .profile-dropdown,
.profilediv:focus-within .profile-dropdown,
.profilediv.open .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profilediv:hover .profile-toggle .iconify:last-child,
.profilediv.open .profile-toggle .iconify:last-child {
    transform: rotate(180deg);
}

.profile-dropdown hr {
    width: 100%;
    margin: 20px 0 0 0;
    border: 0;
    border-top: 1px solid #303030;
}

.profile-dropdown span {
    padding: 5px;
    border-radius: 5px;
    background-color: #303030;
}

.profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 106%;
    margin-left: -10px;
    padding: 5px 15px;
    border-radius: 0;
    color: #eee;
    font-weight: 500;
    white-space: nowrap;
    transition: background .2s ease;
}

.profile-dropdown a:hover {
    background: #303030;
}

.profile-dropdown a:hover span {
    background-color: #404040;
}

.dropdown_links_users {
    margin-top: 10px;
}

.dropdown_links_users a {
    cursor: pointer;
}

#logout {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    margin-left: 0;
    padding: 15px;
    border-radius: 15px;
    background-color: #303030;
    font-size: large;
    font-weight: 800;
}

#logout:hover {
    background-color: #404040;
}

/* botão "Gerenciar perfil" dentro do dropdown */
.profile-dropdown .dropdown-gerenciar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    padding: 5px 15px;
    border: 1px solid #fff;
    border-radius: 50px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease, transform .15s ease;
}

.profile-dropdown .dropdown-gerenciar:hover {
    background: #404040;
}

.profile-dropdown .dropdown-gerenciar:active {
    transform: scale(.98);
}

/* ---------- Perfis no dropdown ---------- */
.profiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding-bottom: 20px;
}

.profiles .profile.dropdown-perfil {
    width: 84px;
    height: auto;
    display: block;
    padding: 4px;
    border: none;
    border-radius: 16px;
    background: none;
    color: #9a9a9a;
    font: inherit;
    text-align: center;
    cursor: pointer;
    outline: none;
    transition: transform .2s cubic-bezier(.2, .7, .2, 1);
}

.profiles .profile.dropdown-perfil:hover {
    transform: translateY(-2px);
}

.profiles .profile.dropdown-perfil:focus-visible {
    outline: 2px solid #505050;
    outline-offset: 2px;
}

.profiles .profile.dropdown-perfil img {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    background: #181818;
    outline: 2px solid transparent;
    outline-offset: 2px;
    transition: outline-color .2s ease, transform .3s cubic-bezier(.2, .7, .2, 1);
}

.profiles .profile.dropdown-perfil:hover img {
    transform: scale(1.04);
}

.profiles .profile.dropdown-perfil.active img {
    outline-color: #fff;
}

.profiles .profile.dropdown-perfil .account_name {
    display: block;
    max-width: 100%;
    background-color: transparent;
    overflow: hidden;
    color: #9a9a9a;
    font-size: 16px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .2s ease;
}

.profiles .profile.dropdown-perfil:hover .account_name,
.profiles .profile.dropdown-perfil.active .account_name {
    color: #fff;
}

.profiles .profile.dropdown-perfil .mais {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 50%;
    background: #181818;
    color: #9a9a9a;
    font-size: 34px;
    font-weight: 300;
}

/* ==========================================================================
   Estado deslogado no dropdown
   ========================================================================== */
.dropdown-deslogado {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 8px 6px;
}

.dropdown-deslogado .deslogado-msg {
    color: #cfcfcf;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

.btn-entrar-dropdown {
    width: 100%;
    padding: 10px 16px;
    border: 0;
    border-radius: 5px;
    background-color: rgb(255, 0, 64);
    color: #fff;
    font-family: "Canal", sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s ease;
}

.btn-entrar-dropdown:hover {
    background-color: rgb(220, 0, 55);
}

[data-user-show][hidden],
[data-user-hide][hidden] {
    display: none !important;
}

/* ==========================================================================
   Rodapé e conteúdo
   ========================================================================== */
footer {
    display: flex;
    justify-content: space-between;
    padding: 20px 40px;
    border-top: 1px solid #303030;
}

footer p {
    width: 60%;
    color: #505050;
    font-size: small;
    font-weight: 400;
}

.social_footer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social_footer a {
    display: flex;
    padding: 10px;
    border-radius: 50%;
    background-color: #202020;
    color: #505050;
    transition: all ease-in-out .1s;
}

.social_footer a:hover {
    background-color: #303030;
    color: #808080;
}

#content {
    min-height: 100vh;
}

/* ==========================================================================
   Quem está assistindo · overlay em tela cheia
   ========================================================================== */
.wiw {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    color: #fff;
    animation: wiw-fade .3s ease both;
}

.wiw .wiw-fundo {
    position: absolute;
    inset: 0;
    background: #0f0f0f;
}

.wiw .containerprofiles {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    padding: 96px 32px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #0f0f0f;
    animation: wiw-subir .4s cubic-bezier(.2, .7, .2, 1) both;
}

.wiw .containerprofiles > * {
    flex-shrink: 0;
}

.wiw .containertitleprofiles h2 {
    color: #fff;
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 700;
    text-align: center;
}

.wiw .profileslist_ {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.wiw .wiw-status {
    color: #9a9a9a;
    font-size: 14px;
    text-align: center;
}

/* ----- Cards do overlay ----- */
.wiw .profile {
    position: relative;
    width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: none;
    border-radius: 20px;
    background: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}

.wiw .profile:hover {
    transform: translateY(-4px);
}

.wiw .profile:active {
    transform: scale(.97);
    transition-duration: .1s;
}

.wiw .profile:focus-visible {
    outline: 2px solid #505050;
    outline-offset: 4px;
}

.wiw .profile img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    background: #181818;
    outline: 3px solid transparent;
    outline-offset: 4px;
    transition: outline-color .25s ease, transform .35s cubic-bezier(.2, .7, .2, 1);
}

.wiw .profile:hover img {
    transform: scale(1.03);
}

/* contorno branco só no perfil ativo */
.wiw .profile.active img {
    outline-color: #fff;
}

.wiw .profile .account_name {
    max-width: 100%;
    overflow: hidden;
    color: #9a9a9a;
    font-size: 18px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .25s ease;
}

.wiw .profile:hover .account_name,
.wiw .profile.active .account_name {
    color: #fff;
}

/* badges e botão de editar dentro do card */
.wiw .profile .badge-infantil {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 3px 10px;
    border-radius: 50px;
    background: #1f3a2a;
    color: #7ee2a8;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.wiw .profile .badge-pin {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, .75);
    color: #fff;
}

.wiw .profile .badge-pin .iconify {
    font-size: 16px;
}

.wiw .profile .profile-editar {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, .75);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    transform: scale(.85);
    transition: opacity .2s ease, transform .2s cubic-bezier(.2, .7, .2, 1), background-color .2s ease;
}

.wiw .profile:hover .profile-editar,
.wiw .profile:focus-within .profile-editar,
.wiw .modo-gerenciar .profile-editar {
    opacity: 1;
    transform: scale(1);
}

.wiw .profile .profile-editar:hover {
    background: #202020;
}

.wiw .profile .profile-editar .iconify {
    font-size: 18px !important;
}

/* card "+" (adicionar perfil) */
.wiw .profile.novo h2 {
    width: 190px;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-radius: 50%;
    background: #181818;
    color: #9a9a9a;
    font-size: 94px;
    font-weight: 300;
    transition: background-color .25s ease, color .25s ease;
}

.wiw .profile.novo:hover h2 {
    background: #252525;
    color: #fff;
}

/* botão "Gerenciar perfil" */
.wiw .wiw-gerenciar {
    height: 46px;
    padding: 0 26px;
    border: 2px solid #303030;
    border-radius: 50px;
    background: none;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}

.wiw .wiw-gerenciar:hover {
    background: #181818;
    border-color: #505050;
}

.wiw .wiw-gerenciar:active {
    transform: scale(.97);
}

.wiw .wiw-gerenciar[aria-pressed="true"] {
    background: #fff;
    border-color: #fff;
    color: #0f0f0f;
}

/* checkbox "Não exibir mais esta tela" */
.wiw .gl-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #9a9a9a;
    font-size: 15px;
    cursor: pointer;
}

.wiw .gl-checkbox__input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}

.wiw .gl-checkbox__box {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #303030;
    border-radius: 8px;
    color: #0f0f0f;
    transition: background-color .2s ease, border-color .2s ease, transform .15s ease;
}

.wiw .gl-checkbox:active .gl-checkbox__box {
    transform: scale(.9);
}

.wiw .gl-checkbox__check {
    width: 14px;
    height: 14px;
    opacity: 0;
    transform: scale(.6);
    transition: opacity .2s ease, transform .2s cubic-bezier(.2, .7, .2, 1);
}

.wiw .gl-checkbox__input:checked + .gl-checkbox__box {
    background: #fff;
    border-color: #fff;
}

.wiw .gl-checkbox__input:checked + .gl-checkbox__box .gl-checkbox__check {
    opacity: 1;
    transform: scale(1);
}

.wiw .gl-checkbox__input:focus-visible + .gl-checkbox__box {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ==========================================================================
   Diálogos (ficam no body, acima do overlay)
   ========================================================================== */
.wiw-modal {
    width: min(520px, 92vw);
    max-height: 90vh;
    margin: auto;
    padding: 0;
    overflow: auto;
    background: #181818;
    color: #fff;
    border: 2px solid #202020;
    border-radius: 25px;
    animation: wiw-subir .3s cubic-bezier(.2, .7, .2, 1) both;
}

.wiw-modal::backdrop {
    background: rgba(0, 0, 0, .75);
    animation: wiw-fade .25s ease both;
}

.wiw-modal-avatar {
    width: min(640px, 94vw);
}

/* tela cheia: criar e editar perfil */
.wiw-modal-tela {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: #0f0f0f;
    animation: wiw-entrar-tela .35s cubic-bezier(.2, .7, .2, 1) both;
}

.wiw-modal-tela::backdrop {
    background: #0f0f0f;
}

.wiw-modal-tela .wiw-modal-form {
    min-height: 100vh;
    max-width: 640px;
    margin: 0 auto;
    padding: 56px 24px 40px;
    justify-content: center;
    gap: 24px;
}

.wiw-modal-tela .wiw-modal-titulo {
    font-size: clamp(26px, 4vw, 36px);
    text-align: center;
}

.wiw-modal-tela .wiw-modal-acoes {
    justify-content: center;
    margin-top: 8px;
}

.wiw-modal-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 28px;
}

.wiw-modal-titulo {
    font-size: 22px;
    font-weight: 800;
}

.wiw-modal-erro {
    color: #ff7b7b;
    font-size: 14px;
}

.wiw-modal-erro:not([hidden]) {
    animation: wiw-subir .25s ease both;
}

.wiw-modal-acoes {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.wiw-texto {
    color: #9a9a9a;
    font-size: 15px;
    line-height: 1.5;
}

/* campos */
.wiw-campo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wiw-campo-rotulo {
    color: #9a9a9a;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.wiw-campo-dica {
    color: #9a9a9a;
    font-size: 13px;
}

.wiw-modal-form input,
.wiw-campo input,
.wiw-select {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 18px;
    border: 2px solid #202020;
    border-radius: 50px;
    background: #0f0f0f;
    color: #fff;
    font: inherit;
    font-size: 16px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.wiw-modal-form input:focus,
.wiw-campo input:focus,
.wiw-select:focus {
    border-color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .08);
}

.wiw-select {
    cursor: pointer;
}

/* botões de opção (ex.: Perfil padrão / infantil, Sem PIN / Com PIN) */
.wiw-opcoes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wiw-opcao {
    height: 40px;
    padding: 0 18px;
    border: 2px solid #202020;
    border-radius: 50px;
    background: #0f0f0f;
    color: #9a9a9a;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, transform .15s ease;
}

.wiw-opcao:hover {
    color: #fff;
}

.wiw-opcao:active {
    transform: scale(.96);
}

.wiw-opcao.ativo {
    background: #fff;
    border-color: #fff;
    color: #0f0f0f;
}

/* botões principal / secundário / perigo */
.wiw-btn-principal,
.wiw-btn-secundario,
.wiw-btn-perigo {
    height: 46px;
    padding: 0 26px;
    border: none;
    border-radius: 50px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease, transform .15s ease, opacity .2s ease;
}

.wiw-btn-principal:active,
.wiw-btn-secundario:active,
.wiw-btn-perigo:active {
    transform: scale(.97);
}

.wiw-btn-principal {
    background: #fff;
    color: #0f0f0f;
}

.wiw-btn-principal:hover {
    background: #e6e6e6;
}

.wiw-btn-principal:disabled {
    opacity: .5;
    cursor: default;
}

.wiw-btn-secundario {
    background: #202020;
    color: #fff;
}

.wiw-btn-secundario:hover {
    background: #2a2a2a;
}

.wiw-btn-perigo {
    background: #3a1c1c;
    color: #ff7b7b;
}

.wiw-btn-perigo:hover {
    background: #4a2222;
}

/* botão de troca de avatar dentro dos diálogos */
.avatar-escolher {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0;
    border: none;
    background: none;
    color: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
    outline: none;
}

.avatar-escolher img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 50%;
    background: #0f0f0f;
    outline: 2px solid #202020;
    outline-offset: 3px;
    transition: transform .3s cubic-bezier(.2, .7, .2, 1), outline-color .2s ease;
}

.avatar-escolher:hover img {
    transform: scale(1.04);
}

.avatar-escolher:focus-visible img {
    outline-color: #505050;
}

.avatar-trocar {
    color: #9a9a9a;
    font-weight: 600;
    transition: color .2s ease;
}

.avatar-escolher:hover .avatar-trocar {
    color: #fff;
}

/* ==========================================================================
   Seletor de avatar: abas e ícones em uma linha, com rolagem horizontal
   ========================================================================== */
.icon-sets-wrap,
.icon-grade-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

/* abas (coleções) */
.icon-sets {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 4px 2px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.icon-sets::-webkit-scrollbar {
    display: none;
}

.icon-set {
    flex-shrink: 0;
    height: 40px;
    padding: 0 18px;
    border: 2px solid #202020;
    border-radius: 50px;
    background: #0f0f0f;
    color: #9a9a9a;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}

.icon-set:hover {
    color: #fff;
}

.icon-set:active {
    transform: scale(.96);
}

.icon-set.ativo {
    background:transparent;
    border: none;
    color: #fff;
    font-size: larger;
    padding: 0;
}

/* ícones: cada coleção ocupa uma única linha */
.icon-grade {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 96px;
    gap: 12px;
    padding: 6px 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    scrollbar-color: #303030 transparent;
}

.icon-grade::-webkit-scrollbar {
    height: 6px;
}

.icon-grade::-webkit-scrollbar-thumb {
    background: #303030;
    border-radius: 50px;
}

.icon-grade > * {
    width: 96px;
    animation: wiw-subir .3s cubic-bezier(.2, .7, .2, 1) both;
}

.icon-opcao {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 50%;
    background: none;
    cursor: pointer;
    transition: border-color .2s ease, transform .2s cubic-bezier(.2, .7, .2, 1);
}

.icon-opcao:hover {
    transform: scale(1.05);
}

.icon-opcao.selecionado {
    border-color: #fff;
}

.icon-opcao img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
}

/* setas laterais */
.icon-setas {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #202020;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s ease, transform .15s ease;
}

.icon-setas:hover {
    background: #2a2a2a;
}

.icon-setas:active {
    transform: scale(.94);
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 600px) {
    .wiw .containerprofiles {
        padding: 88px 18px 32px;
        gap: 32px;
    }

    .wiw .profile {
        width: 110px;
    }

    .wiw .profile img {
        width: 96px;
        height: 96px;
    }

    .wiw .profile .profile-editar {
        opacity: 1;
        transform: none;
    }

    .wiw .profile.novo h2 {
        width: 96px;
        height: 96px;
        font-size: 48px;
    }

    .avatar-escolher img {
        width: 76px;
        height: 76px;
    }

    .wiw-modal-tela .wiw-modal-form {
        padding: 48px 18px 32px;
    }

    .icon-grade {
        grid-auto-columns: 80px;
    }

    .icon-grade > * {
        width: 80px;
    }

    .icon-setas {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
}

/* ==========================================================================
   Acessibilidade: quem desativou animações no sistema
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .wiw,
    .wiw .containerprofiles,
    .wiw-modal,
    .wiw-modal::backdrop,
    .wiw-modal-tela,
    .icon-grade > *,
    .wiw-modal-erro:not([hidden]) {
        animation: none;
    }

    .wiw .profile,
    .wiw .profile img,
    .profiles .profile.dropdown-perfil,
    .profiles .profile.dropdown-perfil img,
    .wiw-btn-principal,
    .wiw-btn-secundario,
    .wiw-opcao,
    .icon-set,
    .icon-opcao {
        transition: none;
    }

    .icon-sets,
    .icon-grade {
        scroll-behavior: auto;
    }
}

/* ==========================================================================
   Caixa de sugestões (site)
   ========================================================================== */
.sug-caixa {
    width: min(1000px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px;
    background: #181818;
    border: 2px solid #202020;
    border-radius: 15px;
    color: #fff;
    margin-top: 50px;
}

.sug-titulo {
    font-family: "Canal", sans-serif;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
}

.sug-texto {
    color: #9a9a9a;
    font-size: 15px;
    line-height: 1.5;
}

.sug-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sug-rotulo {
    color: #9a9a9a;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.sug-opcoes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sug-opcao {
    height: 40px;
    padding: 0 18px;
    border: 2px solid #202020;
    border-radius: 50px;
    background: #0f0f0f;
    color: #9a9a9a;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, transform .15s ease;
}

.sug-opcao:hover {
    color: #fff;
}

.sug-opcao:active {
    transform: scale(.96);
}

.sug-opcao.ativo {
    background: #fff;
    border-color: #fff;
    color: #0f0f0f;
}

.sug-textarea {
    width: 100%;
    min-height: 120px;
    padding: 14px 18px;
    border: 2px solid #202020;
    border-radius: 20px;
    background: #0f0f0f;
    color: #fff;
    font: inherit;
    font-size: 15px;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.sug-textarea:focus {
    border-color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .08);
}

.sug-rodape {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.sug-contador {
    color: #9a9a9a;
    font-size: 13px;
}

.sug-btn-principal {
    height: 46px;
    padding: 0 26px;
    border: none;
    border-radius: 50px;
    background: #fff;
    color: #0f0f0f;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease, transform .15s ease, opacity .2s ease;
}

.sug-btn-principal:hover {
    background: #e6e6e6;
}

.sug-btn-principal:active {
    transform: scale(.97);
}

.sug-btn-principal:disabled {
    opacity: .5;
    cursor: default;
}

.sug-aviso {
    min-height: 1em;
    color: #9a9a9a;
    font-size: 14px;
}

.sug-aviso.erro {
    color: #ff7b7b;
}

.sug-aviso.ok {
    color: #7ee2a8;
}
