.bl-tag {background-color: #3396ff;}
.gl-tag {background-color: #ee14d8;}
.thai-tag {background-color: #ff913d;}
.chines-tag {background-color: #f7eb00;}
.japones-tag {background-color: #9933ff;}
.filme-tag {background-color: #ff1212;}
.especial-tag {background-color: #2febd2;}
.taiwanes-tag {background-color: #e91e63;}
.youtube-tag {background-color: #37d366;}
.reality-tag {background-color: #00bcd4;}
.korean-tag {background-color: #ccc;}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #ffffff;
    color: #000000;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body::-webkit-scrollbar {
    display: none;
}

header {
    position: relative;
    height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    border-bottom-left-radius: 5%;
    border-bottom-right-radius: 5%;
}

header.h-dramas {background: url('img/inicio_dramas.jpg') center/cover no-repeat;}
header.h-assistindo {background: url('img/inicio_assistindo.png') center/cover no-repeat;}
header.h-assistir {background: url('img/inicio_assistir.jpg') center/cover no-repeat;}

.nav {
    padding-top: 0;
    margin-bottom: 4px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 5em;
    z-index: 2;
}

.nav a {
    all: unset;
    color: #ffffff;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    cursor: pointer;
}

.nav a:hover {
    color: #a1a1a1;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
    border-bottom-left-radius: 5%;
    border-bottom-right-radius: 5%;
}

.hero {
    align-items: center;
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 10px;
}

.hero h2 {
    color: white;
    font-size: 30px;
    line-height: 1.4;
    margin-bottom: 5px;
}

.hero p {
    color: white;
    font-size: 14px;
    font-style: italic;
}

.stats {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(50%);
    display: flex;
    padding: 0.6rem 1rem;
    background-color: rgba(255, 255, 255);
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
    margin: 0;
}

.stats button {
    all: unset;
    text-align: center;
    padding: 0 15px;
    border-right: 1px solid #ccc;
}

.stats button:last-child {
    border-right: none;
}

.stats span {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #000;
}

.stats p {
    font-size: 14px;
    color: #555;
    margin-top: 2px;
}

main {
    padding: 0 1rem;
}

.opcoes {
    width: max-content;
    display: flex;
    gap: 5px;
}

#filtro {
    appearance: none;
    font-size: 12px;
    width: 7em;
    cursor: pointer;
}

#select {
    position: absolute;
    z-index: 800;
    background-color: #ffffff;
    border: 2px solid #c9c7c7;
    border-radius: 8px;
    font-size: 12px;
    width: 7em;
    cursor: pointer;
}

.select-open {
    width: 7em;
    padding: 4px 6px;
    margin-top: 2px;
    height: 2em;
    background-color: #ffffff;
    border: 2px solid #c9c7c7;
    border-radius: 8px;
}

.select-open:hover {
    background-color: #ffffff;
}

li {
    list-style: none;
    padding: 4px 6px;
    margin-top: 2px;
    height: 2em;
    background-color: #ffffff;
    border-radius: 0.3rem;
}

li:hover {
    background-color: #c8c8c8;
}

.final {
    width: 25px;
    height: auto;
    font-size: large;
    all: unset;
    cursor: pointer;
}

.inicio {
    font-size: large;
    all: unset;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: white;
    border-radius: 10px;
    padding: 0.2rem 0.2rem;
    cursor: pointer;
}

.heading {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
}

.h-heading {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

#add_dramas {
    margin-top: 5px;
    cursor: pointer;
}

#edit_dramas {
    margin-top: 5px;
    cursor: pointer;
}

body.modo-edicao-on .media-card,
body.modo-edicao-on .card,
body.modo-edicao-on .movie-card {
    cursor: pointer;
    outline: 2px dashed #ff9800;
}

#edit_dramas.ativo {
    color: #e53935;
}

.card-modal {
    display: none;
    position: fixed;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: min(90vw, 420px);
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,.25);
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 999;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

#btn-back {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

#card-mode {
    background: #000;
    color: #fff;
    padding: 5px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    font-style: italic;
}

.card-body {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.poster-container {
    width: 130px;
    height: 185px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e6e6e6;
}

.poster-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.form-fields {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-items: flex-start;
    gap: 6px;
}

.tags {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tags select {
    width: 10.124rem;
}

#tagsSelecionadas {
    font-size: 12px;
    margin-left: 10px;
}

.form-group label {
    width: 65px;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
}

.form-group input,
.form-group select {
    flex: 1;
    height: 30px;
    border: 1px solid #707070;
    border-radius: 15px;
    padding: 0 12px;
    font-size: 11px;
    outline: none;
    background: #fff;
}

.form-group input::placeholder {
    color: #b0b0b0;
}

.form-group select {
    appearance: none;
    cursor: pointer;
    padding-right: 28px;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23333' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-size: 12px;
    background-position: right 10px center;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.btn {
    border: none;
    border-radius: 16px;
    padding: 8px 18px;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
    transition: .2s;
}

.btn:hover {
    opacity: .85;
}

.btn-cancel {
    background: #7d7d7d;
    color: #fff;
}

.btn-save {
    background: #000;
    color: #fff;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.movie-card {
    border-radius: 14px;
    flex: 0 0 160px;
    text-align: center;
    padding-bottom: 8px;
    position: relative;
}

.movie-card {
    width: auto;
    position: relative;
}

.movie-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.movie-card p {
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    font-style: italic;
}

.category-tags-container {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.category-tag {
    display: block;
    width: 24px;
    height: 15px;
    border-radius: 6px;
}

/* assistindo.html */
.media-list {
    grid-template-columns: repeat(4, 1fr);
    display: grid;
    flex-direction: row;
    gap: 24px;
    padding: 20px;
    max-width: 100%;
}

.media-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.media-card img {
    height: 200px;
    width: 140px;
    object-fit: cover;
    border-radius: 12px;
}

.media-info .category-tags-container {
    position: static;      
    flex-direction: row;   
    margin-top: 8px;       
    margin-bottom: 70px;   
}

.media-info .category-tag {
    display: inline-block;
    width: 24px;
    height: 15px;
}

.episode-current {
    border: none;
    background-color: #555555;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: bold;
    padding: 8px 24px;
    border-radius: 6px;
    width: fit-content;
    margin-top: 6px;
    margin-bottom: 8px;
    text-align: center;
    cursor: pointer;
}

.btn-concluir {
    border: none;
    background-color: #66e468;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: bold;
    padding: 8px 24px;
    border-radius: 6px;
    width: fit-content;
    margin-top: 6px;
    margin-bottom: 8px;
    text-align: center;
    cursor: pointer;
}

.episode-total {
    font-size: 14px;
    font-weight: bold;
    color: #000000;
}

/* assistir.html */
.card-grid {
    margin-left: 15px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.card img {
    height: 200px;
    width: 140px;
    object-fit: cover;
    border-radius: 12px;
}

.card-info {
    display: flex;
    flex-direction: column;
    height: 180px;
    justify-content: space-between;
}

.card-info h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
}

.card-info .category-tags-container {
    position: static;      
    flex-direction: row;   
    margin-top: 2px;       
    margin-bottom: 5.5em;   
}

.card-info .category-tag {
    width: 2em;
    display: inline-block;
}

.episodes {
    font-size: 12px;
    font-weight: bold;
}

.where_watch {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    display: block;
    margin-top: 5px;
}

.telegram {background: url(img/telegram.jpg) center/cover no-repeat;}
.netflix {background: url(img/netflix.jpg) center/cover no-repeat;}

.btn-mdl {
    display: block;
    width: 130px;
    padding: 8px 0;
    background-color: #38b6ff;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
    border-radius: 4px;
    margin-top: 8px;
}

.coming-soon-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    margin-top: 15px;
}

.coming-soon {
    margin-left: 15px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* RESPONSIVIDADE */
@media (min-width: 1200px) {
    main {
        max-width: 1920px;
        margin: 0 auto;
        padding: 0 2rem;
    }

    .movie-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 20px;
    }

    .movie-card.watched img {
        height: 250px;
    }
}

@media (min-width: 600px) and (max-width: 1199px) {
    main {
        max-width: auto;
        margin: 0 auto;
    }

    header {
        height: 450px;
        margin: 0 auto;
        padding: 0 auto;
    }

    .movie-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }

    .movie-card.watched img {
        height: 210px;
    }

    .media-list {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
        flex-direction: column;
    }

    .coming-soon {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-modal {
        width: 60vw;
        max-height: 72vh;
        padding: 16px;
        border-radius: 14px;
    }

    .card-header {
        margin-bottom: 14px;
    }

    .card-body {
        flex-direction: row;
        align-items: flex-start;
        gap: 18px;
    }

    .poster-container {
        width: 150px;
        height: 220px;
    }

    .form-fields {
        width: 100%;
    }

    .form-group {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 30px;
    }

    .form-group .tags {
        justify-content: space-between;
        gap: 18px;
    }

    #tagsSelecionadas {
        font-size: 12px;
        margin-left: 10px;
    }

    .form-group {
        width: auto;
    }

    .form-group input,
    .form-group select,
    .form-group textarea,
    .form-group button {
        width: 90%;
    }

    #card-mode {
        font-size: 12px;
        padding: 5px 14px;
    }

    #btn-back {
        font-size: 13px;
    }

    .form-actions {
        margin-top: 5px;
    }
}

@media (min-width: 100px) and (max-width: 599px) {
    main {
        max-width: auto;
        margin: 0 auto;
    }

    header {
        height: 350px;
        margin: 0 auto;
        padding: 0 auto;
    }

    .nav {
        font-size: 15px;
        gap: 30px;
    }

    .hero h2 {
        font-size: 18px;
    }

    .hero p {
        font-size: 14px;
    }

    .stats {
        font-size: 4px;
    }

    .heading {
        font-size: x-small;
    }

    .card-body {
        flex-direction: row;
        align-items: center;
    }

    .poster-container {
        width: 150px;
        height: 210px;
    }

    .form-fields {
        width: 100%;
    }

    .form-group {
        flex-direction: column;
        align-items: stretch;
    }

    .form-group label {
        width: auto;
        margin-bottom: 2px;
    }

    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .movie-card.watched img {
        height: 180px;
    }

    .media-list {
        grid-template-columns: repeat(1, 1fr);
        display: grid;
        flex-direction: column;
    }

    .coming-soon {
        grid-template-columns: repeat(1, 1fr);
    }

    .card-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .card-modal {
        width: 75vw;
        max-height: 65vh;
        padding: 16px;
        border-radius: 14px;
    }

    .card-header {
        margin-bottom: 14px;
    }

    .card-body {
        flex-direction: row;
        align-items: flex-start;
        gap: 18px;
    }

    .poster-container {
        width: 150px;
        height: 220px;
    }

    .form-fields {
        width: 100%;
        flex: 1;
        min-width: 0;
    }

    .form-group {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 30px;
    }

    .form-group .tags {
        justify-content: space-between;
        gap: 18px;
    }

    #tagsSelecionadas {
        font-size: 12px;
        margin-left: 10px;
    }

    .form-group label {
        width: auto;
    }

    .form-group input,
    .form-group select,
    .form-group textarea,
    .form-group button {
        width: 100%;
        box-sizing: border-box;
    }

    #card-mode {
        font-size: 12px;
        padding: 5px 14px;
    }

    #btn-back {
        font-size: 13px;
    }

    .form-actions {
        margin-top: 5px;
    }

    @media (max-width: 600px) {

    .card-modal {
        width: 85vw;
        max-width: 340px;
        padding: 12px;
        border-radius: 14px;
    }

    .card-body {
        gap: 12px;
    }

    .poster-container {
        width: 95px;
        height: 145px;
    }

    .form-fields {
        font-size: 10px;
        gap: 8px;
    }

    .form-group {
        font-size: 10px;
        gap: 5px;
    }

    .form-group label {
        font-size: 10px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 10px;
        padding: 6px 8px;
    }

    #card-mode {
        font-size: 11px;
        padding: 4px 14px;
    }

    #btn-back {
        font-size: 12px;
    }

    .btn {
        font-size: 12px;
        padding: 8px 14px;
    }
}
}