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

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

.favorite-link:hover, .favorite-link:focus {
    color: #ED3F2F;
}

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

.article-section {
    padding: 0 15px;
}

.article-item {
    display: flex;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 10px;
}

.article-thumbnail {
    width: 100px;
    height: 150px;
    margin:5px;
}

.article-content {
    padding: 10px;
    flex: 1;
}

.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 MOVIES */

nav, footer {
    background: linear-gradient(90deg, #330000 10%, #A52B21 90%);
}

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

.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;
}


/* MOVIES SEARCH */

.table {
    width: 100% !important;
    /* border: 1px solid #f2f2f2; */
    border-collapse: collapse;
}

.table thead {
    background-color: #444;
}

.table thead th {
    color: #fff !important;
}

.table tbody tr {
    background-color: #555;
}

.table tbody td {
    color: #000000;
}

#moviesTable tr:nth-child(even) {
    background-color: #555 ;
}

.table tbody tr:hover {
    background-color: #afacac !important;
}



.tag-detail {
    top: 10px;
    left: -6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.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;
}


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

@media (max-width: 767.98px) { /* Příklad pro zařízení s menší obrazovkou */

    .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; /* Zruší absolutní pozicování */
        align-self: center; /* Zarovná na střed */
        width: 100%;
        text-align: center;
        margin-top: 10px; /* Přidá mezery mezi H1 a caption */
    }

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

    .carousel-slide img {
        width: 100%;
        object-fit: cover; /* Zajistí, že obrázek pokryje celou oblast bez deformace */
        height: 200px; /* Pevně nastavíme výšku obrázků */
    }

    .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;
    }

}

@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));
    }
}


