/* Styling for public videos page - App-like, Clean and Dark */

body .clubPublic_videosContainer {
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding-top: 1.5rem !important;
    /* Reduced padding-top */
}

/* Player Wrapper */
body .clubPublic_videosPlayerWrapper {
    position: relative;
    width: 100%;
    background: #000000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body .clubPublic_videosPlayerInner {
    position: relative;
    width: 100%;
    height: 0;
}

body .clubPublic_videosPlayerInner iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

body .clubPublic_videosNoVideo {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    background: #110825;
}

body .clubPublic_videosNoVideoIcon {
    font-size: 2.5rem;
    color: #9f10d8;
}

/* Vertical Video Mode adjustments for Desktop */
@media (min-width: 992px) {
    body .clubPublic_videosPlayerWrapper.clubPublic_videosVertical {
        height: 75vh;
        max-height: 700px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #080212;
    }

    body .clubPublic_videosPlayerWrapper.clubPublic_videosVertical .clubPublic_videosBlurredBg {
        position: absolute;
        top: -30px;
        left: -30px;
        right: -30px;
        bottom: -30px;
        background-size: cover;
        background-position: center;
        filter: blur(25px) brightness(0.3);
        opacity: 0.8;
        z-index: 1;
    }

    body .clubPublic_videosPlayerWrapper.clubPublic_videosVertical .clubPublic_videosPlayerInner {
        position: relative;
        z-index: 2;
        height: 100%;
        padding-top: 0 !important;
        /* Calculate width dynamically using aspect-ratio from style attribute */
        aspect-ratio: var(--aspect-ratio, 9/16);
        max-width: 100%;
    }
}

@media (max-width: 991.98px) {
    body .clubPublic_videosPlayerWrapper.clubPublic_videosVertical .clubPublic_videosBlurredBg {
        display: none;
    }
}

/* Title & Meta Row */
body .clubPublic_videosTitle {
    font-size: 1.5rem;
    /* Reduced font size from 1.75rem */
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

@media (min-width: 768px) {
    body .clubPublic_videosTitle {
        font-size: 1.85rem;
        /* Reduced font size from 2.25rem */
    }
}

body .clubPublic_videosMetaRow {}

/* Author Card */
body .clubPublic_videosAuthorCard {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 16px 8px 8px;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
}

body .clubPublic_videosAuthorCard:hover {
    background: rgba(93, 17, 207, 0.1);
    border-color: #5d11cf;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(93, 17, 207, 0.2);
}

body .clubPublic_videosAuthorLink {
    color: inherit;
}

body .clubPublic_videosAuthorAvatar {
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    /* Forces rounded image */
    object-fit: cover;
    border: 2px solid #9f10d8;
    background: #000;
}

body .clubPublic_videosAuthorAvatarPlaceholder {
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    /* Forces rounded placeholder */
    background: linear-gradient(135deg, #5d11cf, #9f10d8);
    color: #ffffff;
    font-size: 1.1rem;
    border: 2px solid #9f10d8;
}

body .clubPublic_videosAuthorLabel {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.4);
}

body .clubPublic_videosAuthorName {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    transition: color 0.2s ease;
}

body .clubPublic_videosAuthorCard:hover .clubPublic_videosAuthorName {
    color: #ffdc00;
    /* Highlight color from workflow */
}

/* Publish Date */
body .clubPublic_videosPublishDate {
    font-size: 0.85rem;
}

body .clubPublic_videosDateLabel {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

body .clubPublic_videosDateValue {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

body .clubPublic_videosDateValue i {
    color: #9f10d8;
}

/* Description Wrapper */
body .clubPublic_videosDescriptionWrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
}

body .clubPublic_videosDescTitle {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.3px;
    border-left: 3px solid #5d11cf;
    padding-left: 10px;
}

body .clubPublic_videosContent {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

body .clubPublic_videosContent p:last-child {
    margin-bottom: 0;
}

body .clubPublic_videosContent a {
    color: #ffdc00;
    text-decoration: underline;
    transition: color 0.2s ease;
}

body .clubPublic_videosContent a:hover {
    color: #ffffff;
}

/* Share Button */
body .clubPublic_videosShareBtn {
    background: linear-gradient(135deg, #5d11cf, #9f10d8);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(93, 17, 207, 0.3);
}

body .clubPublic_videosShareBtn:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(93, 17, 207, 0.5);
    background: linear-gradient(135deg, #6e1ce0, #b01be8);
}

body .clubPublic_videosShareBtn:active {
    transform: translateY(0);
}

/* SVG style for the publish date value */
body .clubPublic_videosDateValue svg {
    width: 18px;
    height: 18px;
    vertical-align: -3px;
    margin-right: 4px;
    color: #9f10d8;
}

/* Recommended Videos Grid styling */
body .clubPublic_videosRecommendedTitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    border-left: 4px solid #9f10d8;
    padding-left: 12px;
}

body .clubPublic_videosGridCard {
    transition: transform 0.3s ease;
}

body .clubPublic_videosGridLink {
    display: block;
    color: inherit;
}

body .clubPublic_videosGridThumbWrapper {
    border-radius: 12px;
    aspect-ratio: 16 / 9;
    background: #0d021f;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body .clubPublic_videosGridThumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

body .clubPublic_videosGridThumbPlaceholder {
    width: 100%;
    height: 100%;
    background: #0c001f;
    color: rgba(255, 255, 255, 0.3);
}

body .clubPublic_videosGridPlayOverlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 0, 37, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

body .clubPublic_videosGridPlayIcon {
    background: linear-gradient(135deg, #5d11cf, #9f10d8);
    color: #ffffff;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    box-shadow: 0 4px 15px rgba(93, 17, 207, 0.4);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

body .clubPublic_videosGridLink:hover .clubPublic_videosGridThumb {
    transform: scale(1.05);
}

body .clubPublic_videosGridLink:hover .clubPublic_videosGridPlayOverlay {
    opacity: 1;
}

body .clubPublic_videosGridLink:hover .clubPublic_videosGridPlayIcon {
    transform: scale(1);
}

body .clubPublic_videosGridTitle {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    transition: color 0.2s ease;
    margin-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body .clubPublic_videosGridLink:hover .clubPublic_videosGridTitle {
    color: #ffdc00;
}