/* Item View Styles */

/* Title Image Wrapper - container width */
.item-title-image-wrapper {
    position: relative;
    margin-bottom: 30px;
    width: 100%;
}

.item-title-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Image Overlay - lehké černé ztmavení bez gradientu */
.item-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 1;
}

/* Play Button - uprostřed obrázku */
.item-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: var(--cta-button-bg, #04BA13);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: opacity 0.3s ease;
    padding: 0;
    text-decoration: none;
}

.item-play-button:hover {
    opacity: 0.9;
}

.item-play-button:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Play Icon - trojúhelník */
.item-play-icon {
    width: 0;
    height: 0;
    border-left: 24px solid #000;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    margin-left: 4px;
}

/* Fullwidth Image Wrapper (for series/show without id_video) */
.item-fullwidth-image-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: -20px !important;
    margin-bottom: -20px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    aspect-ratio: 1920 / 820;
    overflow: hidden;
}

@media (max-width: 767px) {
    .item-fullwidth-image-wrapper {
        margin-top: -15px !important;
        margin-bottom: -15px !important;
    }
    
    .item-fullwidth-content-wrapper {
        padding-bottom: 20px;
    }
    
    .item-fullwidth-content .item-parent-title {
        font-size: 1rem;
        margin-bottom: 6px;
        line-height: 1.2;
    }
    
    .item-fullwidth-content .item-title {
        font-size: 1.4rem;
        max-width: 100%;
        margin-bottom: 8px;
        line-height: 1.1;
    }
    
    .item-fullwidth-content .item-details {
        font-size: 0.8rem;
        gap: 5px;
        margin-bottom: 8px;
    }
    
    .item-fullwidth-content .item-genres {
        margin-bottom: 8px;
        gap: 5px;
    }
    
    .item-fullwidth-content .item-genre-badge {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
}

.item-fullwidth-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: relative;
    z-index: 0;
}

.item-fullwidth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0) 40%, 
        rgba(0, 0, 0, 0.4) 50%, 
        rgba(0, 0, 0, 0.6) 70%, 
        rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
    z-index: 2;
}

.item-fullwidth-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding-bottom: 60px;
    z-index: 5;
    pointer-events: none;
}

.item-fullwidth-content-wrapper .container {
    position: relative;
    width: 100%;
    pointer-events: auto;
}

.item-fullwidth-content {
    padding: 0;
    text-align: left;
}

/* Item Content - texty jako ve slideru */
.item-content {
    margin-bottom: 30px;
}

/* Details and genres on one line (for items with play button) */
.item-details-genres-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.item-details-genres-row .item-genres {
    margin-bottom: 0;
    flex: 0 0 auto;
}

.item-details-genres-row .item-details {
    margin-bottom: 0;
    flex: 0 0 auto;
    float: right;
}

.item-parent-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
    line-height: 1.4;
}

.item-parent-title .parent-title-part {
    text-transform: uppercase;
}

.item-title {
    margin: 0 0 25px 0;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    color: white;
    max-width: 60%;
}

.item-details {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: white;
    margin-bottom: 25px;
}

.item-details-separator {
    color: rgba(255, 255, 255, 0.7);
}

.item-detail-item {
    white-space: nowrap;
}

.item-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.item-genre-badge {
    display: inline-block;
    padding: 5px 12px;
    background: transparent;
    border: 1px solid white;
    border-radius: 4px;
    color: white;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Navigation buttons (prev/next) - styled as cta */
.item-navigation {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.item-navigation .cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Tabs */
.item-tabs {
    margin-top: 40px;
    position: relative;
    z-index: 10;
}

.item-tabs-header {
    border-bottom: 1px solid #fff;
    margin-bottom: 20px;
    display: flex;
    gap: 0;
}

.item-tab-button {
    padding: 10px 20px;
    margin-right: 10px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    color: #fff !important;
    text-transform: uppercase;
    transition: border-color 0.3s ease;
    display: inline-block;
}

.item-tab-button:hover {
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

.item-tab-button.active {
    font-weight: bold;
    border-bottom-color: #fff;
}

.item-tab-content {
    display: none;
}

.item-tab-content.active {
    display: block;
}

/* Tab button as link */
.item-tabs-header a.item-tab-button {
    text-decoration: none;
    color: inherit;
}

/* Tab About - 2:1 layout */
.item-about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.item-about-left {
    /* Popis a obrázky */
}

.item-about-description {
    margin-bottom: 30px;
    color: #fff;
}

.item-about-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.item-about-images .gallery-image {
    width: 100%;
    height: auto;
    cursor: pointer;
}

.item-about-right {
    /* Detailní informace */
}

.item-detail-info {
    margin-bottom: 15px;
    color: #fff;
}

.item-detail-info-label {
    font-weight: bold;
}

/* Tab Episodes - bez bílých linek */
.item-episodes-list {
    /* Episodes container */
}

.item-episode-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: none;
    color: #fff;
}

/* Season/Page buttons - jako library buttons */
.item-season-button,
.item-page-button {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    text-decoration: none;
    border: 1px solid #fff;
    border-radius: 2px;
    background: none;
    color: #fff;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    transition: opacity 0.2s, background-color 0.2s, color 0.2s;
}

.item-season-button:hover,
.item-page-button:hover {
    opacity: 0.8;
}

.item-season-button.active,
.item-page-button.active {
    font-weight: bold;
    opacity: 1;
    background-color: #fff;
    color: var(--bg-color-primary, #102611);
}

.item-season-button.active:hover,
.item-page-button.active:hover {
    opacity: 1;
    color: var(--bg-color-primary, #102611);
    background-color: #fff;
}

/* Responsive */
@media (max-width: 767px) {
    .item-parent-title {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    .item-title {
        font-size: 2rem;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .item-details {
        font-size: 0.95rem;
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .item-genres {
        margin-bottom: 20px;
    }
    
    .item-genre-badge {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
    
    .item-about-content {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .item-parent-title {
        font-size: 1.6rem;
    }
    
    .item-title {
        font-size: 2.8rem;
    }
    
    .item-details {
        font-size: 1rem;
    }
}
