/* MOVIES */
.movies {
    color: #A52B21;
}

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

/* BOOKS */
.books {
    color: #61872B;
}

.books:is(.dark *) {
    color: #4FB021;
}

/* GAMES */
.games {
    color: #00A0E3;
}

.games:is(.dark *) {
    color: #14ACF5;
}


.novinka p, .novinka {
    margin: 10px 0;
}

.nadpis {
    text-align: left;
    font-size: 20px;
    font-weight: bold;
}

.btn:hover {
    color: #ffffff;
    text-decoration: none;
}

.film {
    text-align: center;
    font-size: 20px;
    margin-bottom: 0;
}

.uzivatel {
    text-align: end;
    margin-bottom: 0;
    padding-right: 10px;
}

.v-kinech li {

    margin: 10px auto;
}


/* MAIN */
.main-grid {
    display: flex;
    flex-wrap: wrap;
}


table th {
    font-weight: normal;
}

table tr:nth-child(even) {
    background-color: #e3e3e3;
}


.all-comments-tab {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    border: 1px solid #dee2e6 !important;
    border-radius: .5rem !important;
    background-color: #ffffff;
    margin-top: .5rem;
    padding: 1rem;
}

.all-comments-tab:is(.dark *) {
    background-color: #0d0c0f;
}


.info-card {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.after.line:last-child::after {
    content: none; /* Odstraní obsah posledního after */
}

.alert {
    margin-bottom: 1.25rem; /* 20px */
    margin-top: 1.25rem; /* 20px */
    padding: 1rem; /* 16px */
    border-radius: .5rem !important;
    background: #cfefcf;
}

.alert:is(.dark *) {
    background: #4FB021;
}




/******************************/
/*          CAROUSEL          */
/******************************/
.carousel-container-index {
    display: flex;
    align-items: center;
    position: relative;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: .5rem !important;
    margin-bottom: 1rem; /* 16px */
}

.carousel-track-index {
    display: flex;
}

.carousel-index {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.carousel-item-index {
    min-width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    position: relative;
    width: 100%;
    border: 1px solid #dee2e6 !important;
    border-radius: .5rem !important;
}

.carousel-item-index img {
    display: block;
    height: 100%;
    width: 100%;
    border-radius: .5rem !important;
}

.carousel-item-index h5 {
    position: absolute;
    bottom: 8px; 
    left: 16px; 
    color: white;
    font-size: 1.25rem;
    line-height: 1.75rem;
    padding-left: .5rem; /* 8px */
    padding-right: .5rem; /* 8px */
    border-radius: .5rem !important;
}

.card-wrapper {
    max-width: 1100px;
    margin: 0 30px 35px;
    overflow: hidden;
}

.swiper-wrapper {
    display: flex;
    margin-top: 5px;
}

.card-list .card-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    flex: 0 0 25%;
    box-sizing: border-box;
    margin-left: 5px;
    text-align: center;
    width: 100%;
    height: 100%;
    position: relative;
    transition-property: transform;
}

.card-list .card-item .card-link {
    user-select: none;
    display: block;
    background: #fff;
    border-radius: .5rem;
    text-decoration: none;
    border: 2px solid transparent;
    /* box-shadow: 0 10px 10px rgba(0, 0, 0, 30%); */
    transition: .2s ease;
}

.card-list .card-item .card-link:active {
    cursor: grabbing;
}

.card-list .card-item .card-link .card-image {
    max-width: 100px; 
    height: 150px;
    object-fit: cover;
    border-radius: .5rem;
}

.card-list .card-item p {
    width: 100%;
}

.card-link {
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.carousel-ratting {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-bottom: -40px;
}

.rating {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 0;
    box-shadow: 3px 3px 10px rgb(147 147 147);
}

.rating:is(.dark *) {
    box-shadow: none;
}

.rating::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 44px;
    background: #444444;
    border-radius: 50%;
    z-index: 2;
}

.rating::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 50px;
    height: 50px;
    background: conic-gradient(
        var(--gradient-color, #0a0) 0%,
        var(--gradient-color, #0a0) var(--gradient-value, 50%),
        #777777 var(--gradient-value, 50%)
    );
    border-radius: 50%;
    z-index: 1;
}

.rating-inner {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}

.rating-inner span {
    font-size: 10px;
    margin-left: 2px;
    color: #ffd700;
}



/******************************/
/*          ARTICLES          */
/******************************/
.article {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    height: 100%;
    border: 1px solid #dee2e6;
    background-color: #ffffff;
    border-radius: .5rem !important;
    margin-top: .5rem;
}

.article:is(.dark *) {
    background-color: #0d0c0f;
}

.article img {
    border-top-left-radius: .5rem; /* 8px */
    border-bottom-left-radius: .5rem; /* 8px */
    max-width: 100px;
    object-fit: contain; 
    margin-right: 5px
}

.article-text {
    display: flex;
    flex-wrap: wrap;
    padding: .5rem; /* 8px */
    flex: 2;
}



.comment-head {
    display: flex;
    width: 100%;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: .5rem;
}

.comment-head a {
    display: flex;
    align-items: center;
    margin-left: .25rem;
    gap: .25rem; /* 4px */
    font-weight: 700;
}

.comment {
    width: 100%;
    font-size: .875rem; /* 14px */
    line-height: 1.25rem; /* 20px */
    margin-top: .25rem; /* 4px */
}

.user-comment {
    text-align: right;
    width: 100%;
}


/******************************/
/*          BIRTHDAY          */
/******************************/
.birthday {
    display: flex;
    flex-wrap: wrap;
}

.birthday img {
    width: 100px;
    margin-right: 10px;
}

.birthday-body {
    display: flex;
    flex-wrap: wrap;
    flex: 2;
}

.birthday-body h3 {
    margin-top: .5rem; /* 8px */
    width: 100%;
}

.birthday-body a {
    width: 100px;
    margin-bottom: 1rem; /* 16px */
    font-weight: 700;
}

.birthday-body p {
    width: 100%;
}

.birthday-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.birthday-item {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #ccc;
    border-radius: .5rem;
    background: rgba(255,255,255,0.04);
    transition: background 0.25s ease, transform 0.25s ease;
}

.birthday-item:is(.dark *) {
    background-color: #0d0c0f;
}

.birthday-avatar {
    width: 90px;
    /* height: 56px;
    border-radius: 50%; */
    object-fit: cover;
    flex-shrink: 0;
    background: #222;
    border-radius: .5rem 0 0 .5rem;
}

.birthday-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.birthday-info a {
    color: #000000;
    text-decoration: none;
}

.birthday-info a:is(.dark *) {
    color: #ffffff
}

.birthday-info a:hover {
    text-decoration: underline;
}

.birthday-meta {
    display: flex;
    flex-wrap: wrap;
    font-size: .85rem;
    opacity: .85;
    gap: 1rem;
}

.birthday-date {
    color: #d08100;
    width: 100%;
    font-weight: 500;
}

.birthday-date:is(.dark *) {
    color: #f5c16c;
}

.birthday-role {
    color: #ab7ef0;
    width: 100%;
    font-weight: 500;
}

.birthday-role:is(.dark *) {
    color: #ddc7ff;
}

.birthday-more {
    width: 100%;
    text-align: center;
    margin-top: .5rem;
}


/******************************/
/*         MY MARKET          */
/******************************/
.account-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.account-box {
    padding: 1.25rem;
    border-radius: .5rem;
    border: 1px solid #ccc;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.account-box:is(.dark *) {
    background: #252229;
}

.account-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .75rem;
}

.account-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-list-item {
    padding: .5rem 0;
    border-bottom: 1px dashed #ddd;
}

.dark .account-list-item {
    border-color: #222;
}

.pending-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem;
    border-radius: .5rem;
    background: rgba(0,0,0,.03);
}

.pending-item:is(.dark *) {
    background: rgba(255,255,255,.04);
}

.trade-card {
    display: flex;
    gap: 1rem;
}

.trade-cover img {
    width: 64px;
    height: 96px;
    object-fit: cover;
    border-radius: .5rem;
}

.trade-info a {
    font-weight: 600;
    text-decoration: none;
}

.trade-meta {
    font-size: .8rem;
    opacity: .8;
}

.my-market-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    border-radius: .5rem;
    border: 1px solid #ccc;
    background-color: #F9F9FB;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.my-market-list:is(.dark *) {
    background: #0d0c0f;
}

.my-market-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .75rem 1rem;
    border-radius: .5rem;
    /* border: 1px solid #ccc; */
    background: #fff;
    transition: box-shadow .2s ease, transform .2s ease;
}

.my-market-card:is(.dark *) {
    background: #252229;
}

.my-market-cover img {
    width: 64px;
    height: 96px;
    object-fit: cover;
    border-radius: .5rem;
    background: #eee;
}

.my-market-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.my-market-title {
    font-weight: 600;
    text-decoration: none;
    color: inherit;
}

.my-market-title:hover {
    text-decoration: underline;
}

.my-market-status {
    display: inline-block;
    width: fit-content;
    font-size: .75rem;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
}

.status-active {
    background: #e6f4ea;
    color: #198754;
}

.status-reserved {
    background: #fff3cd;
    color: #856404;
}

.status-completed {
    background: #e2e3e5;
    color: #6c757d;
}

.dark .status-active { 
    background:#0f2e1d; 
    color:#5dd39e; 
}

.dark .status-reserved { 
    background:#332701; 
    color:#ffd166; 
}

.dark .status-completed { 
    background:#2a2a2a; 
    color:#aaa; 
}

.my-market-date {
    font-size: .75rem;
    opacity: .6;
}

.my-market-price {
    font-weight: 700;
    white-space: nowrap;
}

.admin-payouts {
    border-left: 4px solid #d4a017; /* jemné admin zvýraznění */
}

.account-subtitle {
    font-size: .75rem;
    font-weight: 400;
    opacity: .6;
    margin-left: .5rem;
}

.payout-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payout-item {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1rem;
    border-radius: .5rem;
    background: rgba(0,0,0,.03);
}

.dark .payout-item {
    background: rgba(255,255,255,.04);
}

.payout-info {
    font-size: .9rem;
}

.payout-user {
    margin-bottom: .25rem;
}

.payout-account {
    font-size: .85rem;
    opacity: .8;
    margin-bottom: .5rem;
}

.payout-qr {
    width: 160px;
    margin: .5rem 0;
    border-radius: .5rem;
    background: #fff;
    padding: .25rem;
}

.payout-amount {
    font-size: .95rem;
}

.payout-action {
    display: flex;
    align-items: center;
}


/******************************/
/*        BOOK MARKET         */
/******************************/
.book-market {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    width: 100%;
}

.book-market-title {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.book-market-title h4 {
    font-weight: 700;
    margin: 0;
}

.book-market-body {
    display: flex;
    align-items: center;
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    background-color: #ffffff;
    transition: transform .2s ease, box-shadow .2s ease;
    overflow: hidden;
}

.book-market-body:is(.dark *) {
    background-color: #0d0c0f;
}

.book-market-body img {
    width: 72px;
    height: 108px;
    object-fit: cover;
    flex-shrink: 0;
    background: #eee;
}

.book-market-body:is(.dark *) img {
    background: #1a1a1a;
    border: .5rem 0 0 .5rem;
}

.book-market-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: .5rem 0.75rem;
    flex: 1;
    min-height: 108px;
}

.book-market-text p {
    margin: 0;
    -webkit-line-clamp: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-market-text p:first-child a {
    font-weight: 600;
    text-decoration: none;
    color: inherit;
}

.book-market-text p:first-child a:hover {
    text-decoration: underline;
}

.book-market-text p:nth-child(2) {
    font-size: .875rem;
    opacity: .8;
}

.book-market-text p:nth-child(3) {
    font-weight: 700;
}

.book-market-user {
    font-size: .75rem;
    opacity: .7;
    text-align: right;
}




  

@media (max-width: 1280px) {
    .after.cinemaline:last-child::after {
        content: none; /* Odstraní obsah posledního after */
    }
}

@media (max-width: 1023.98px) {
    .card-list .card-item {
        flex: 1 0 33%; /* Pro obrazovky menší než 1024px bude zobrazeno 3 karty */
    }

    .lg\:w-\[182px\] {
        width: 100%;
    }

    .margin-l {
        margin-left: .75rem;
    }
}

@media (min-width: 500px) and (max-width: 992.98px) {
    .birthday-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .card-list .card-item {
        flex: 1 0 50%; /* Pro obrazovky menší než 768px (mobilní zařízení) budou zobrazeny 2 karty */
    }

    .payout-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .payout-action {
        width: 100%;
    }

    .payout-action button {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    main {
        width: 100%;
    }

    .my-market-card {
        align-items: flex-start;
    }

    .my-market-price {
        margin-top: .25rem;
    }
}  

@media (min-width: 640px) {
    .sm\:h-56 {
        height: auto;
    }
}

/* @media (min-width: 1280px) {
    .xl\:grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
} */

