.short-in {
    position: relative;
}

.short-poster {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    text-decoration: none;
}

.short-poster img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.short:hover .short-poster img {
    transform: scale(1.03);
}

.short-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.5));
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.short:hover .short-mask {
    opacity: 1;
}

.kal-1xbet {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: bold;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badges-container {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 4px;
    z-index: 10;
    flex-wrap: wrap;
    max-width: 120px;
}

.film-quality {
    background: linear-gradient(28.8deg, #000, #ff780000);
    color: #00ff88;
    padding: 2px 6px;
    border-radius: 1px;
    font-size: 9px;
    font-weight: bold;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    border-left: 0px solid rgb(0 0 0 / 0%);
}

.film-version {
    color: white;
    padding: 2px 6px;
    border-radius: 1px;
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border-left: 0px solid rgb(0 0 0 / 0%);
    border-radius: 5%;
    height: 15px;
    position: absolute;
    right: auto;
    text-align: center;
    top: 0;
    width: auto;
    z-index: 5;
    box-shadow: inset 0 0 0 0.4px #f7f7f7;
    background: linear-gradient(28.8deg, #000, #ff780000);
}

.info-button {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.info-button:hover {
    background: rgba(255, 179, 0, 0.27);
    transform: scale(1.1);
}

.info-button svg {
    width: 16px;
    height: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fx-col {
    display: flex;
    flex-direction: column;
}

.fx-center {
    align-items: center;
}

.fx-middle {
    justify-content: center;
}

.img-box {
    display: block;
    position: relative;
}

.with-mask {
    position: relative;
}

.sect-t.fx-row.icon-r {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    gap: 0;
}

.sect-t.fx-row.icon-r .st-left {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    line-height: 40px !important;
}

.st-left .st-capt {
    flex-shrink: 0;
    white-space: nowrap;
    line-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.st-left .st-tabs {
    display: inline-flex !important;
    margin-bottom: 0 !important;
    width: auto !important;
    align-items: center !important;
    line-height: 40px !important;
    padding-bottom: 0 !important;
}

.st-tabs span {
    color: #ccc;
    cursor: pointer;
    line-height: 40px !important;
    padding: 0 16px;
    border-radius: 1px;
    white-space: nowrap;
    flex: 0 0 auto;
    min-width: 0;
    text-align: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: buttonPulse 0.5s ease-out;
    animation-fill-mode: both;
}

.st-tabs span a {
    color: #ccc;
    text-decoration: none;
    display: block;
    line-height: 30px;
    transition: color 0.3s;
    padding: 5px !important;
}

.sect-t.fx-row.icon-r .st-right {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    margin-left: 10px !important;
    line-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.st-right {
    display: inline-block;
    vertical-align: top;
    padding: 0 10px;
    border-radius: 3px;
    color: #fff;
    background-color: #222;
    box-shadow: inset 0 0 0 2px #f48625;
}

.pages .sect .st-tabs span.current,
.st-tabs span[data-ajaxc].current,
.st-tabs span[data-ajaxc*="custom category"].current {
    color: #fff !important;
    background-color: #33333345 !important;
    box-shadow: inset 0 0 0 1px #f48625 !important;
}

.pages .sect .st-tabs span.current a,
.pages .sect .st-tabs span.current a strong,
.st-tabs span[data-ajaxc].current a,
.st-tabs span[data-ajaxc].current a strong {
    color: #f48625 !important;
    padding: 5px !important;
}

.sect-c .short {
    opacity: 1 !important;
    transform: none !important;
}

.sect-c + .sect .st-tabs span,
.pages .sect .st-tabs span[data-ajaxc*="custom category"] {
    cursor: pointer !important;
    pointer-events: auto !important;
}

.info-bubble {
    display: inline-block;
    margin-right: 8px;
    font-size: 14px;
    cursor: help;
    color: #ff7e28;
    position: relative;
}

.info-bubble:hover::after {
    content: attr(title);
    position: absolute;
    left: -10px;
    top: 25px;
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 999;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.info-bubble:hover::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 20px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #333;
    z-index: 999;
}

.movie-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    padding: 20px;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
    animation: slideUp 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-content.loading {
    max-width: 300px;
    text-align: center;
    padding: 40px;
}

.loading-spinner-large {
    width: 50px;
    height: 50px;
    border: 4px solid #333;
    border-top: 4px solid #59a6ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.modal-content.loading p {
    color: #fff;
    margin: 0;
    font-size: 16px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.modal-header h2 {
    color: white;
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-body {
    display: flex;
    gap: 30px;
    padding: 30px;
    overflow-y: auto;
    max-height: calc(90vh - 100px);
}

.movie-poster-section {
    position: relative;
    flex-shrink: 0;
}

.modal-poster {
    width: 200px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.modal-poster:hover {
    transform: scale(1.02);
}

.movie-rating {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    padding: 8px 12px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.movie-details {
    flex: 1;
    color: white;
}

.movie-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
}

.meta-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-label {
    color: #59a6ff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quality-badge {
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    color: #000;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 11px;
    text-transform: uppercase;
}

.movie-synopsis {
    margin-bottom: 25px;
}

.movie-synopsis h3 {
    color: #59a6ff;
    font-size: 18px;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.movie-synopsis p {
    line-height: 1.6;
    color: #e0e0e0;
    margin: 0;
    text-align: justify;
}

.movie-credits {
    margin-bottom: 15px;
}

.credit-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #59a6ff;
    margin-bottom: 10px;
}

.credit-label {
    color: #59a6ff;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.credit-value {
    color: #f0f0f0;
    line-height: 1.4;
}

.error-message {
    text-align: center;
    padding: 40px;
    color: #ff6b6b;
}

.error-message p {
    font-size: 16px;
    margin: 0;
}

@media (max-width: 1200px) {
    .st-tabs span {
        padding: 0 10px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 1024px) {
    .st-tabs span {
        padding: 0 7px !important;
        font-size: 12px !important;
    }
    .st-left .st-capt {
        font-size: 14px !important;
    }
}

@media (max-width: 850px) {
    .st-tabs span {
        padding: 0 5px !important;
        font-size: 11px !important;
    }
    .st-left .st-capt {
        font-size: 13px !important;
    }
    .sect-t.fx-row.icon-r .st-right {
        font-size: 12px !important;
        margin-left: 5px !important;
    }
}

@media (max-width: 768px) {
    .short {
        border-radius: 8px;
    }

    .short:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    }

    .badges-container {
        max-width: 100px;
    }

    .film-quality,
    .film-version {
        font-size: 8px;
        padding: 3px 5px;
    }

    .info-button {
        width: 28px;
        height: 28px;
    }

    .info-button svg {
        width: 14px;
        height: 14px;
    }

    .short:hover .short-poster img {
        transform: scale(1.02);
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
        margin: 10px;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .modal-body {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .movie-poster-section {
        align-self: center;
    }

    .modal-poster {
        width: 150px;
    }

    .movie-meta {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .meta-item {
        padding: 10px 12px;
    }
}

@media (max-width: 700px) {
    .st-left .st-tabs {
        display: none !important;
    }
}

@media screen and (max-width: 950px) {
    .st-left:not(.incat) {
        white-space: normal !important;
        overflow: visible !important;
        width: auto !important;
        display: inline-block !important;
        vertical-align: top;
    }

    .st-right {
        display: inline-block !important;
        vertical-align: top !important;
        padding: 0 10px !important;
        border-radius: 3px !important;
        color: #fff !important;
        background-color: #222 !important;
        box-shadow: inset 0 0 0 2px #f48625 !important;
    }

    .st-right:not(.st-filt) {
        display: inline-block !important;
        vertical-align: top;
        padding: 0 10px;
        margin-left: 10px;
    }
}
