main a, main a:hover {
    color: #B25F08;
}

main a:is(.dark *) {
    color: #E79B3E;
}


/******************************/
/*       FAVORITE IKONY       */
/******************************/
.favorite-box.active {
    background: #ffe8e5;
    color: #B25F08 !important;
}

.favorite-box.active i {
    color: #B25F08;
}




.p-2 p {
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.container-fluid {
    max-width: 1200px; /* Omezuje max šířku obsahu */
    margin: 0 auto; /* Centruje obsah na stránce */
}

.card-text {
    -webkit-line-clamp: 5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 10px 0;
}

.card2 {
    height: 350px;
}

.card2 .card-body {
    border-radius: 0 0 .5rem .5rem !important;
}

/* Změna barvy odkazů pro postavy */
.character-link {
    color: #007BFF; /* Modrá barva odkazů */
    text-decoration: none; /* Bez podtržení */
}

.character-link:hover {
    text-decoration: underline; /* Podtržení při najetí myší */
}




/******************************/
/*        NAVBAR serieS       */
/******************************/
nav, footer {
    background: linear-gradient(90deg, #311b00 10%, #B25F08 90%);
}

.tab-links a.active {
    background-color: #B25F08;
}

.actors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1rem; /* 16px */
}

.postava {
    display: flex;
    align-items: center;
}

.postava img {
    object-fit: cover;
    max-width: 70px;
    height: 105px;
}

.postava-detail {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-left: .5rem; /* 8px */
}

.watching {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.watching img {
    width: 50px;
    border-radius: 50%;
    border: 1px solid lightgrey;
}

.tag-detail {
    top: 10px;
    left: -6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    font-weight: 600;
    color: #d94b4b;
    background: rgba(217, 75, 75, 0.1);
    border: 1px solid rgba(217, 75, 75, 0.3);
    border-radius: 0 9999px 9999px 0;
    padding: 4px 10px 4px 12px;
    box-shadow: 0 2px 6px rgba(217, 75, 75, 0.25);
    transition: all 0.25s ease;
}

.add-cinema {
    display: flex;
    flex-wrap: wrap;
}

.genre-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem; /* 12px */
}

.arrow-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.arrow-next, .arrow-prev  {
    display: block;
    width: 20px;
    height: 28px;
    font-family: "slick";
    font-size: 20px;
    line-height: 32px;
}

.arrow-prev {
    float: left;
}

.arrow-next {
    float: right;
}

.arrow-next.disabled, .arrow-prev.disabled {
    color: #969696;
}

.arrow-next::before {
    content: "\2192";
}

.arrow-prev::before {
    content: "\2190";
}

.arrow-prev::before, .arrow-next:hover::before {
    transform: scale(1.2);
}

.article-head-title {
    display: flex;
    flex-wrap: wrap;
}

.article-head-title a {
    width: 100%;
}

.title-arrow {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.card-title a {
    width: 100%;
}

.page-title {
    margin-bottom: 1.5rem;
    width: 100%;
}


/******************************/
/*           HLÁŠKY           */
/******************************/
.quotes {
    text-align: center; 
    justify-content: center;
}

.quotes h3,
.quotes p {
    width: 100%;
}

.more-quotes {
    margin-top: 1rem; 
    width: 100%; 
    font-size: 80%;
    text-align: end;
}


/******************************/
/*      CS / EN SWITCHER      */
/******************************/
.lang-switcher {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.lang-btn {
    cursor: pointer;
    text-decoration: none;
    color: #B25F08;
}

.lang-btn:is(.dark *) {
    color: #E79B3E;
}

.lang-btn.active {
    color: #aaa !important;
    font-weight: bold;
    text-decoration: none;
}


/******************************/
/*           SEARCH           */
/******************************/
.search-table {
    width: 100%;
    margin-left: 2rem;
}

.search-grid {
    display: grid;
    grid-template-columns: 90px 1fr 80px 180px;
    align-items: center;
    gap: .5rem;
    border: 1px solid #ccc;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    background-color: #f9f9f9;
}

.search-header {
    padding: .75rem 0;
    font-weight: 600;
    min-height: 1px;
    width: 100%;
    border-radius: .5rem !important;
}

.search-grid:is(.dark *) {
    background: #252229;
}

.search-row {
    margin-top: .6rem;
    border-radius: .5rem;
    /* padding: .5rem; */
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.search-rating {
    display: flex;
    align-items: center;
    font-size: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.serie-rating {
    width: 80px;
    text-align: center;
}

.search-row img {
    display: block;
    width: 80px;
    border-radius: .5rem 0 0 .5rem;
    object-fit: cover;
}

.title a {
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
}

.year {
    color: #6b7280;
    text-align: center;
}

.rating {
    white-space: nowrap;
}

.stars {
    letter-spacing: 1px;
    text-align: center;
    padding: .25rem;
}



.v-kine {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    margin-top: 1rem;
}

.serie-card {
    display: flex;
    background: #ffffff;
    border-radius: .5rem;
    border: 1px solid #ccc;
    overflow: hidden;
    transition: all .25s ease;
}

.serie-card:is(.dark *) {
    background: #0d0c0f;
}

.serie-link {
    text-decoration: none;
    color: white;
    display: block;
}

.serie-poster {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.serie-poster img {
    width: 60px;
    border-radius: .5rem 0 0 .5rem;
    box-shadow: 0 6px 14px rgba(0,0,0,.8);
}

.serie-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: .75rem;
    color: #000000;
}

.serie-info:is(.dark *) {
    color: #ffffff;
}

.serie-info h4 {
    font-size: .9rem;
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 .3rem;
    color: #B25F08;
}

.serie-info h4:is(.dark *) {
    color: #E79B3E;
}

.serie-date {
    font-size: .75rem;
    color: #505050;
}

.serie-date:is(.dark *) {
    color: #ccc;
}

.serie-link {
    text-decoration: none;
}

.serie-card,
.serie-info {
    background: none;
}

.seasons {
    display: flex;
    flex-wrap: wrap;
}




@media (max-width: 475px) {
    
}

@media (min-width: 992px) and (max-width: 1200px) {
    .card-text {
        -webkit-line-clamp: 6;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .v-kine {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 1rem;
    }
}

@media (max-width: 767.98px) {
    .smaller-stars .star-ratings-rating-full, 
    .smaller-stars .star-ratings-rating-empty {
        width: 16px;
        height: 16px;
        background-size: 48px;
    }

    .smaller-stars .star-ratings-rating-empty {
        background-position: -16px 0;
    }

    .smaller-stars .star-ratings-rating-full:hover, 
    .smaller-stars .star-ratings-rating-empty:hover {
        background-position: -32px 0;
    }

    .banner {
        flex-direction: column;
    }

    .banner-caption {
        position: static;
        align-self: center;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .carousel-side-image {
        display: block;
    }

    .carousel-slide img {
        width: 100%;
        object-fit: cover;
        height: 200px;
    }

    .form-inline {
        width: 100%;
    }

    .grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .margin-l {
        margin-left: 20px;
    }

    .margin-t {
        margin-top: 20px;
    }

    .search-table {
        margin-left: 0;
    }
    
    .search-grid {
        display: grid;
        grid-template-columns: 80px minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        grid-template-areas:
            "poster title title"
            "poster year rating";
        gap: .45rem .8rem;
        align-items: start;
    }

    .search-thumb {
        grid-area: poster;
    }

    .search-row {
        border-radius: .5rem;
        box-shadow: 0 6px 14px rgba(0,0,0,.4);
        padding: .35rem;
    }

    .search-row img {
        width: 80px;
        height: 120px;
    }

    .title {
        grid-area: title;
        align-self: end;
        padding-top: .2rem;
    }

    .title a {
        display: block;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: normal;
        overflow-wrap: break-word;
    }

    .year {
        grid-area: year;
        text-align: left;
        font-size: .9rem;
        align-self: center;
    }

    .search-rating {
        grid-area: rating;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: .6rem;
        margin-right: .2rem;
        align-self: center;
    }

    .serie-rating {
        width: auto;
        padding: 4px 10px;
        border-radius: 8px;
        background: rgba(255,80,80,.12);
        color: #ff6a6a;
        font-weight: 600;
    }

    .stars {
        white-space: nowrap;
    }

    .search-grid > a {
        grid-area: img;
    }

    .search-header {
        display: none;
    }
}

@media (max-width: 640px) {
    .genre-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 599px) {
    .actors {
        grid-template-columns: repeat(1, minmax(0, 2fr));
    }
}

@media (max-width: 475px) {

    .card-text {
        -webkit-line-clamp: 2;
    }

    .grid-cols-3 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .genre-list {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}
