/* Section Title */
.section-title {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
    color: #666;
    margin-bottom: 40px;
}

/* Carousel Section */
.playlistInner {
    padding-top: 50px;
    padding-bottom: 100px;
}

.playlist-section {
    padding: 42px 0px;
    margin: 0 auto;
}

.playlist-section .smallHeading {
    text-align: center;
    /*font-size:20px;*/
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 32px;
}

.carousel-wrapper {
    overflow: hidden;
    flex: 1;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

div[data-async-resource="contentmeta"] .poemReadingCarosel {
    padding-top: 0px;
    display: block !important;
}

.carousel-item {
    flex: 0 0 calc(20.333% - 20px);
    min-width: calc(20.333% - 20px);
    cursor: pointer;
    transition: transform 0.3s ease;
}

div[data-async-resource="contentmeta"] .poemReadingCarosel .carousel-item {
    flex: 0 0 calc(25.55% - 20px);
    min-width: calc(25.55% - 20px);

}

div[data-async-resource="contentmeta"] .poemReadingCarosel {
    padding-bottom: 70px;

}

/*.carousel-item:hover {
    transform: translateY(-4px);
}
*/
.carousel-item .thumbnail {
    position: relative;
    aspect-ratio: 9 / 16;
    width: 100%;
    max-width: 360px;
    background: #000;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    /*border-radius: 12px;
        overflow: hidden;
        aspect-ratio: 16/9;*/
    background: #000;
}

.carousel-item .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-item .thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4));
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.3s ease, transform 0.3s ease;
}

/*.carousel-item:hover .play-button {
    background: rgba(255, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}*/

.play-button svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    margin-left: 4px;
}

.carousel-item .video-title {
    margin-top: 14px;
    font-size: 18px;
    font-family: LatoXBold, NotoDevanagariRegular, MehrNastaliqRegular;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.playlistSubHeading {
    margin: 0 0 28px;
    font: normal normal normal 16px / 19px latoxregular;
    font-family: 'NotoDevanagari', 'latoxregular', 'NotoNastaliqUrdu';
    font-size: 14px;
    line-height: 17px;
    color: #000;
    text-align: center;
    display: block;
    text-transform: none;
    letter-spacing: normal;
    margin-top: 15px;
}

/* Carousel Buttons */
.carousel-btn {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #bbb;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #ababab;
    position: absolute;
    z-index: 9;
}

.owlNew.owl-carousel .owl-nav button span {
    opacity: 0;
}

.carousel-btn.next-btn {
    position: absolute;
    right: -92px;
}

div[data-async-resource="contentmeta"] .carousel-btn.next-btn {
    right: -13px;
}

.carousel-btn.next-btn svg {
    display: none;
}

.carousel-btn.next-btn:before {
    content: "\e934";
    font-family: 'rIcons';
    display: inline-block;
    vertical-align: middle;
    position: absolute;
    margin: -1px 0 0 1px;
    font-size: 32px;
}

.carousel-btn.prev-btn {
    position: absolute;
    left: -95px;
}

div[data-async-resource="contentmeta"] .carousel-btn.prev-btn {
    left: -16px;
}

.carousel-btn.prev-btn:before {
    content: "\e936";
    font-family: 'rIcons';
    display: inline-block;
    vertical-align: middle;
    position: absolute;
    margin: -1px 0 0 0;
    font-size: 32px;
}

.carousel-btn:hover {
    background: #e2054b;
    border-color: #e2054b;
    color: #fff;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    display: none;
}

/* Player Section */
.player-section {
    /*padding: 30px 20px 60px;
    max-width: 1400px;*/
    margin: 0 auto;
}

.player-section.hidden {
    display: none;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.player-container {
    display: flex;
    gap: 15px;
}

.main-player {
    flex: 1;
    padding-bottom: 100px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    margin-top: 20px;
    position: relative;
}


.video-info .activitySources {
    position: absolute;
    right: 0px;
    top: -8px;
}

.video-description-wrapper {
    padding-right: 50px;
}

.video-info .activitySources ul li span.btnText {
    display: none;
}

.video-info h1 {
    font-size: 20px;
    font-family: LatoXBold, NotoDevanagariRegular, MehrNastaliqRegular;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
    padding-right: 60px;
}

.video-info .activitySources ul li .icon {
    margin-top: 0px;
    color: #000000;
    margin-right: 0px;
}

.video-info .activitySources ul li>div {
    width: 48px;
    height: 48px;
    border-radius: 100px;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 0px;
}

.video-info .activitySources .nw_shareBox.showSocialDiv {
    display: none;
}

.video-info p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    overflow: hidden;
}

/* Playlist Sidebar */
.playlist-sidebar {
    width: 360px;
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 18px;
    font-family: LatoXBold, NotoDevanagariRegular, MehrNastaliqRegular;
    color: #333;
    margin-bottom: 18px;
}

.playlist-items {
    display: flex;
    flex-direction: column;
    gap: 0px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 8px;
}

.playlist-items::-webkit-scrollbar {
    width: 6px;
}

.playlist-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.playlist-items::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.playlist-items::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.playlist-item>a {
    display: flex;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.playlist-item:hover {
    background: #f5f5f5;
}

.playlist-item.active {
    background: #f0f0f0;
}

.playlist-item .thumb {
    position: relative;
    width: 172px;
    flex-shrink: 0;
    border-radius: 5px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.playlist-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-item .thumb .mini-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.playlist-item:hover .mini-play {
    opacity: 1;
}

.playlist-item .mini-play svg {
    width: 14px;
    height: 14px;
    fill: #fff;
    margin-left: 2px;
}

.playlist-item .item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.playlist-item .item-title {
    font-size: 16px;
    font-family: LatoXBold, NotoDevanagariRegular, MehrNastaliqRegular;
    color: #4C4C4C;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
    font-weight: bold;
}

.playlist-item .item-artist {
    font-size: 14px;
    color: #4C4C4C;
}

.see-more-btn {
    background: none;
    display: none;
    border: none;
    color: #00AAFF;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    margin-top: 4px;
}

.see-more-btn:hover {
    text-decoration: underline;
}

@media screen and (min-width: 768px) {
    div[data-async-resource="contentmeta"] .poemReadingCarosel .smallHeading {
        font-size: 28px;
    }

    div[data-async-resource="contentmeta"] .poemReadingCarosel .playlistSubHeading {
        color: #4c4c4c;
    }
}

@media screen and (min-width: 768px) {

    /* .transOverly {
        position: absolute;
        width: 99%;
        bottom: 61px;
        height: 127px;
        left: 0px;
    }*/
    .playlistSubHeading {
        font-size: 16px;
        line-height: 19px;
    }

}

/* Responsive */
@media (max-width: 1500px) {
    .carousel-track {
        gap: 20px;
    }

    .carousel-btn.next-btn {
        right: -62px;
    }

    .carousel-btn.prev-btn {
        left: -65px;
    }
}

@media (max-width: 1024px) {
    .player-container {
        flex-direction: column;
    }

    .playlist-sidebar {
        width: 100%;
    }

    .playlist-items {
        max-height: none;
        gap: 20px;
    }

    .carousel-item {
        flex: 0 0 calc(50% - 12px);
        min-width: calc(50% - 12px);
    }
}

@media (max-width: 992px) {
    .see-more-btn {
        display: inline-block;
    }

    .video-info h1 {
        padding-right: 40px;
    }

    .video-info p {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        font-size: 14px;
    }

    .video-info .video-description-wrapper.expanded p {
        -webkit-line-clamp: unset;
        display: block;
    }

    .video-info .activitySources {
        right: 16px;
        top: -2px;

    }

    .video-description-wrapper {
        padding-right: 0px;
    }

    .video-info .activitySources ul li>div {
        width: 28px;
        height: 28px;
    }

    .video-info .activitySources ul li .icon.iconShare {
        font-size: 20px;
    }

    .video-info .shareSocial.socialShareActive {
        left: -155px;
    }

    .playlist-item:has(.item-artist:empty) .item-title {
        margin-bottom: 0px;
    }


    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .playlist-section .carousel-wrapper {
        margin-right: -20px;
        margin-left: -20px;
    }

    .carousel-track {
        gap: 12px;
        overflow-x: auto;
        -ms-overflow-style: none;
        /* IE and Edge */
        scrollbar-width: none;
        /* Firefox */
    }

    .carousel-track::-webkit-scrollbar {
        display: none;
    }



    .playlist-section .carousel-track .carousel-item:first-child {
        margin-left: 20px;
    }

    .playlist-section .carousel-track .carousel-item:last-child {
        margin-right: 20px;
    }

    /*.carousel-item {
        flex: 0 0 calc(63.333% - 14px);
        min-width: calc(63.333% - 14px);
    }*/

    .carousel-item .thumbnail {
        aspect-ratio: 9 / 16;
        width: 100%;
        max-width: 360px;
        /* mobile thumbnail width */
        background: #000;
        position: relative;
        overflow: hidden;
        border-radius: 15px;
    }

    .carousel-item .thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* fills like YouTube Shorts */
    }

    .carousel-item {
        flex: 0 0 calc(34.333% - 12px);
        min-width: calc(34.333% - 12px);
        cursor: pointer;
        transition: transform 0.3s ease;
    }

    .carousel-container {
        gap: 14px;
    }

    .playlist-sidebar {
        margin-top: 32px;
    }

    .playlist-items {
        gap: 24px;
    }

    .playlist-section {
        padding: 40px 0px;
    }


    .video-info h1 {
        font-size: 18px;
    }

    .playlist-item .thumb {
        width: 120px;
    }

    .sidebar-title {
        padding-bottom: 12px;
        position: relative;
        margin-bottom: 20px;
    }

    .sidebar-title:before {
        position: absolute;
        bottom: 0;
        content: '';
        left: 0;
        background: #8E8E8E;
        height: 2px;
        width: 32px;
    }

    .playlist-section .container {
        padding: 20px;
    }

    .main-player {
        padding-bottom: 0px;
    }

    div[data-async-resource="contentmeta"] .carousel-btn.prev-btn,
    div[data-async-resource="contentmeta"] .carousel-btn.next-btn {
        display: none;
    }

    body:not(.poemPageMedia) .player-section .container,
    body:not(.poemPageMedia) .mainPageWrap .container {
        padding: 0px;
    }

    div[data-async-resource="contentmeta"] .poemReadingCarosel .carousel-item {
        flex: 0 0 calc(34.333% - 12px);
        min-width: calc(34.333% - 12px);
    }

    .playlist-section .smallHeading {
        /*font-size:20px;
        text-decoration:none;*/
    }

    /*body.poemPageMedia .poemReadingCarosel .container {
        padding:0px;
       
    }*/
}

@media (max-width: 639px) {




    body.poemPageMedia .poemReadingCarosel {
        margin-right: -20px;
        margin-left: -20px;
    }

    .playlistInner {
        padding-top: 0px;
    }

    .player-section {
        margin-top: 0px;
    }

    .playlist-sidebar {
        padding: 0 16px;
    }

    .playlistInner .container {
        padding: 0px;
    }

    .playlist-item .thumb {
        width: 100%;
    }

    .playlist-items {
        display: flex;
        flex-direction: column;
        gap: 24px;
        max-height: none;
        overflow-y: initial;
        padding-right: 0px;
    }

    .playlist-item>a {
        flex-direction: column;
        padding: 0px;
    }

    .video-info {
        padding: 0 16px;
    }

    .video-info h1 {
        font-size: 18px;
    }

    .video-wrapper {
        border-radius: 0px;
    }

    .main-player {
        padding-bottom: 0px;
    }

    .playlist-item:hover {
        background: transparent;
    }

    .playlist-item.active {
        padding: 8px;
    }

    .playlist-item .thumb .mini-play {
        width: 56px;
        height: 56px;
        opacity: 1;
    }

    .playlist-item .mini-play svg {
        width: 30px;
        height: 30px;
    }

    .transOverly {
        width: 100px;
        position: absolute;
        height: 37px;
        bottom: 2px;
        right: 112px;
    }


}

@media (max-width: 480px) {
    .carousel-btn {
        display: none;
    }

    .carousel-btn.prev-btn {
        position: absolute;
        left: 0;
        z-index: 10;
        background: rgba(255, 255, 255, 0.9);
    }

    .carousel-btn.next-btn {
        position: absolute;
        right: 0;
        z-index: 10;
        background: rgba(255, 255, 255, 0.9);
    }

    .play-button {
        width: 36px;
        height: 36px;
    }

    .play-button svg {
        width: 20px;
        height: 20px;
    }

    .carousel-item .thumbnail {
        border-radius: 15px;

    }

    .carousel-item .video-title {
        font-size: 14px;
        line-height: 20px;
        margin-top: 8px;
    }
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 250px;
    gap: 16px;
    color: #666;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error State */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 250px;
    gap: 12px;
    text-align: center;
}

.error-state p {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.error-state span {
    font-size: 14px;
    color: #888;
}

.retry-btn {
    margin-top: 8px;
    padding: 10px 24px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.retry-btn:hover {
    background: #555;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 250px;
    gap: 12px;
    color: #666;
}

/* Refresh Indicator */
.refresh-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.refresh-indicator.visible {
    opacity: 1;
    transform: translateY(0);
}

.refresh-indicator .mini-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}