*{
    margin: 0;
    padding: 0;
    /* font-family: 'Ariel', 'Helvetica', sans-serif; */
    font-family: sans-serif;
    box-sizing: border-box;
}

a{
    text-decoration: none;
    color: #5a5a5a;
}

img{
    cursor: pointer;
}

.flex-div{
    display: flex;
    align-items: center;
}

/* Widescreen mode styles - currently unused
.flex-div-widescreen .nav-right{
    display: none;
}

.flex-div-widescreen .nav-middle{
    display: none;
} */

nav{
    padding: 1px;
    justify-content: space-between;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 11000;
}

/* Index.html specific navigation adjustments */
.nav-index {
    padding: 1px 2%; /* Match player.html visual padding */
}

.nav-index .nav-left .logo {
    width: 130px; /* Ensure consistent logo size */
    height: auto;
    margin-left: 10px; /* Add slight left margin to match player.html appearance */
}

.nav-right img{
    margin-right: 25px;
    height: 30px; /* Ensure consistent height */
    vertical-align: middle; /* Fix vertical alignment */
}

.nav-left .menu-icon{
    width: 22px;
    margin-right: 20px;
}

.nav-left .logo{
    /* height: 35px; */
    width: 130px;
    margin-right: 25px;
}


.nav-middle .search-box{
    border: 1px solid #ccc;
    margin-right: 15px;
    padding: 8px 12px;
    border-radius: 25px;
}

.nav-middle .search-box input{
    width: 400px;
    border: 0;
    outline: 0;
    background: transparent;
}

.nav-middle .search-box img{
    width: 15px;
}


/* ---------- sidebar ------------------- */

.sidebar{
    background: #fff;
    width: 15%;
    height: 100vh;
    position: fixed;
    top: 0;
    padding-left: 2%;
    padding-top: 80px;
}

.shortcut-links a img{
    width: 20px;
    margin-right: 20px;   
}

.shortcut-links a{
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    width: fit-content;
    flex-wrap: wrap;
}

/* .shortcut-links a:first-child{
    color: #ed3833;
} */

.sidebar hr{
    border: 0;
    height: 1px;
    background: #ccc;
    width: 85%;
}

.small-sidebar{
    width: 5%
}

.small-sidebar a p{
    display: none;
}

.small-sidebar h3{
    display: none;
}

.small-sidebar hr{
    width: 50%;
    margin-bottom: 25px;
}

/* ------ main ------ */

.home-container{
    background: #f9f9f9;
    padding-left: 17%;
    padding-right: 2%;
    padding-top: 20px;
    padding-bottom: 20px;
}

.large-home-container{
    padding-left: 7%;
}

.banner{
    width: 100%;
}

.banner img{
    width: 100%;
    border-radius: 8px; 
}

/* ------ Search Controls ------ */
.search-controls {
    margin: 20px 0;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    color: #5a5a5a;
    min-width: 120px;
}

.filter-group select:focus {
    outline: none;
    border-color: #1c62b9;
    box-shadow: 0 0 0 2px rgba(28, 98, 185, 0.2);
}

.search-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #5a5a5a;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-controls label {
    font-size: 14px;
    color: #5a5a5a;
}

.sort-controls select {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    color: #5a5a5a;
}

#results-count {
    font-weight: 500;
    color: #333;
}

/* Mobile responsive adjustments */
@media (max-width: 450px) {
    /* All mobile devices - targeted navigation fixes only */

    /* Add comfortable edge padding for tap targets */
    nav.flex-div {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    /* Hamburger menu sizing for mobile - smaller and more subtle */
    .hamburger-btn {
        width: 20px;
        height: 16px;
        margin-right: 3px; /* Tight spacing */
    }

    .nav-left .logo {
        width: 115px !important; /* Restored to original size for better visibility */
        margin-left: 0px !important; /* No left margin needed */
        margin-right: 4px !important; /* Tight spacing to search */
    }

    .nav-middle .search-box input {
        width: 60px !important; /* More space for search */
    }

    /* Player.html navigation icon spacing fix for small screens */
    .nav-right .relative.inline-flex {
        margin-right: 3px !important; /* Minimal right margin on library icon */
    }

    .nav-right a[href*="calc.hyperdope.com"],
    .nav-right .lightning-node-container {
        margin-right: 5px !important; /* Small spacing between other icons */
    }

    /* Index.html specific small screen fixes */
    .nav-index {
        padding: 1px 5px; /* Minimal padding on very small screens */
    }

    .nav-index .nav-right img {
        margin-right: 5px; /* Minimal margin to prevent overflow */
        height: 28px; /* Slightly smaller icons */
    }

    .nav-index .nav-left .logo {
        width: 100px; /* Smaller logo on very small screens */
        margin-left: 3px; /* Minimal left margin on very small screens */
    }

    .nav-index .nav-middle .search-box input {
        width: 70px; /* Even smaller search on tiny screens */
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group select {
        width: 100%;
        min-width: auto;
    }

    .search-results-info {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
        text-align: center;
    }
    
    .sort-controls {
        justify-content: center;
    }
}

.list-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-column-gap: 16px;
    grid-row-gap: 30px;
    margin-top: 15px;
}

/* ===== RESPONSIVE VIDEO GRID - Max 4 per row ===== */
/* Uses max() to ensure minimum width that caps columns at 4 */
/* Formula: minmax(max(250px, (100% - 3*16px) / 4), 1fr) */
/* At 1200px content: (1200 - 48) / 4 = 288px min → 4 columns */
/* At 900px content: (900 - 48) / 4 = 213px < 250px → falls to 3 columns */

@media (min-width: 600px) {
    .list-container {
        grid-template-columns: repeat(auto-fit, minmax(max(250px, calc((100% - 48px) / 4)), 1fr));
    }
}

/* Mobile (< 600px): 1 video per row */
@media (max-width: 599px) {
    .list-container {
        grid-template-columns: 1fr;
    }
}

.vid-list .thumbnail{
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
    aspect-ratio: 16/9;
    display: block;
}

/* Duration overlay for thumbnails */
.thumbnail-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.duration-overlay {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    pointer-events: none;
}

/* Smaller duration overlay for sidebar thumbnails */
.side-video-list .duration-overlay {
    position: absolute !important;
    bottom: 4px;
    right: 4px;
    padding: 1px 4px;
    font-size: 10px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    z-index: 1;
}

/* Locked thumbnail overlay */
.locked-thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    pointer-events: none;
    z-index: 2;
}

.locked-thumbnail-overlay::before {
    content: '⚡';
    font-size: 48px;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Smaller locked overlay for sidebar thumbnails */
.side-video-list .locked-thumbnail-overlay::before {
    font-size: 32px;
}

.vid-list .flex-div{
    align-items: flex-start;
    margin-top: 7px;
}

/* .vid-list .flex-div a{
    content:attr(data-duration);
} */

.vid-list .flex-div img{
    width: 35px;
    margin-right: 10px;
    border-radius: 50%;
}

.vid-info{
    color: #5a5a5a;
    font-size: 13px;
    max-width: 100%;
    overflow: hidden;
}

.vid-info a{
    color: #000;
    font-weight: 600;
    display: -webkit-box;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
    max-width: 100%;
}

@media (max-width: 900px){
    .menu-icon{
        display: none;
    }
    .sidebar{
        display: none;
    }
    .home-container, .large-home-container{
        padding-left: 5%;
        padding-right: 5%;
    }
    /* .nav-right img{
        display: none;
    } */
    .nav-middle .search-box input{
        width: 100px;
    }

    .nav-right img {
        margin-right: 15px; /* Slightly reduce margin between icons on mobile */
    }

    /* Index.html mobile navigation fixes */
    .nav-index {
        padding: 1px 10px; /* Reduce padding on mobile */
    }

    .nav-index .nav-right img {
        margin-right: 10px; /* Less margin on mobile to prevent overflow */
    }

    .nav-index .nav-left .logo {
        width: 110px; /* Slightly smaller logo on mobile */
        margin-left: 5px; /* Smaller left margin on mobile */
    }

    /* Thumbnails now use auto height with aspect-ratio */
}

/* ----------- play video page ---------- */

.play-container{
    padding-left: 2%;
}

.play-container-widescreen{
    padding-left: 2%;
    padding-right: 2%;
    padding-top: 0%;
}

.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap; /* Keep sidebar beside video on desktop */
    gap: 2%;
}

.play-video{
    flex-basis: 68%;
    min-width: 400px; /* Prevent Plyr controls from overlapping (YouTube-style constraint) */
}

.right-sidebar{
    flex-basis: 30%;
    min-width: 280px; /* Minimum width for sidebar */
}

/* Theater mode - matches mobile breakpoint behavior */
.play-video-theater {
    flex-basis: 100% !important;
    max-width: 100% !important;
    width: 100%;
    order: 1; /* Ensure video content comes first */
    /* Removed max-height: 90vh to allow description content to display fully */
}

.right-sidebar-theater {
    flex-basis: 100% !important;
    min-width: 100% !important;
    display: block !important; /* Keep sidebar visible, just moved below */
    order: 2; /* Ensure sidebar comes after video content */
    margin-top: 20px; /* Add spacing between video content and sidebar */
}

.row-theater {
    flex-wrap: wrap !important; /* Allow sidebar to wrap below video */
    align-items: flex-start; /* Align items to top to prevent overlap */
}

/* Legacy widescreen classes - kept for backward compatibility */
.play-video-widescreen{
    max-width: initial;
    width: 100%;
    flex-basis: 100%;
    max-height: 90vh;
}

.right-sidebar-widescreen{
    display: none;
}

.play-video video{
    width: 100%;
    max-height: 80vh; /* Limit vertical videos to 80% of viewport height */
    object-fit: contain; /* Maintain aspect ratio, letterbox if needed */
}

/* Video container constraints for all aspect ratios */
#player-container {
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

/* Vertical video support */
.vertical-player {
    display: block;
    width: 100%;
    max-width: 800px; /* Reasonable max width for controls */
    margin: 0 auto;
}

.vertical-video .container {
    width: 100%;
}

/* Style the video wrapper to center vertical videos */
.vertical-player .plyr__video-wrapper {
    display: flex;
    justify-content: center;
    background: #000;
}

/* Constrain vertical video size but not controls */
.vertical-player video {
    max-height: 70vh;
    width: auto;
    height: auto;
}

/* Responsive adjustments for vertical videos on mobile */
@media (max-width: 768px) {
    .vertical-player {
        max-width: 100% !important; /* Use full width on mobile */
        padding: 0 10px; /* Small padding for edge spacing */
    }
    
    /* Let vertical videos fill more space on mobile */
    .vertical-player video {
        max-height: 80vh; /* Slightly taller on mobile */
        max-width: 100%; /* Can use full width if needed */
    }
    
    /* Ensure controls stay visible and usable */
    .vertical-player .plyr__controls {
        width: 100% !important;
        min-width: unset; /* Remove minimum width constraint */
    }
}

/* Fullscreen video styles - ensure video fills the screen properly */
/* Target the plyr wrapper when in fullscreen */
.plyr:fullscreen .plyr__video-wrapper,
.plyr--fullscreen-fallback .plyr__video-wrapper {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
}

/* Remove all constraints on the video element in fullscreen */
.plyr:fullscreen video,
.plyr--fullscreen-fallback video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain; /* Maintain aspect ratio, add letterboxing if needed */
}

/* Alternative: Use 'cover' to fill screen (may crop video) */
/* Uncomment the rule below if you prefer no letterboxing */
/*
.plyr:fullscreen video,
.plyr--fullscreen-fallback video {
    object-fit: cover !important;
}
*/

.side-video-list{
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding: 8px;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.side-video-list:hover{
    background-color: #e6f5fd;  /* Very light blue tint */
    border: 1px solid #9bd9fb;
    padding: 7px;  /* Adjust padding to account for border */
}

.side-video-list .small-thumbnail{
    display: inline-block;
    width: 45%;  /* Container takes 45% of sidebar */
    flex-shrink: 0;
    position: relative;
}

.side-video-list .small-thumbnail img{
    width: 100%;  /* Image fills its container */
    height: auto;  /* Let height adjust to maintain ratio */
    aspect-ratio: 16/9;  /* Maintain 16:9 aspect ratio */
    object-fit: cover;
    border-radius: 5px;
    display: block;
    vertical-align: top; /* Prevent inline-block gap */
}

.side-video-list .vid-info{
    flex: 1;
    min-width: 0; /* Allow text to truncate */
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.side-video-list .vid-info a{
    color: #000;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

.side-video-list .vid-info p{
    color: #5a5a5a;
    font-size: 12px;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Locked video indicator styling */
.locked-indicator {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    margin-left: 6px;
    white-space: nowrap;
    vertical-align: middle;
}

/* Default locked state - bitcoin orange pill */
.locked-indicator.locked {
    background: #ff6600;
    color: #fff;
}

/* Unlocked 24h state - soft green pill */
.locked-indicator.unlocked-24h {
    background: #22c55e;
    color: #ffffff;
}

/* Owned forever state - light purple pill */
.locked-indicator.owned-forever {
    background: #ba6ff8;
    color: #fff;
}

.side-video-list .locked-indicator {
    font-size: 9px;
    padding: 1px 6px;
    white-space: nowrap;
}

/* Lightning Node Info Modal */
.lightning-node-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 10px; /* Closer to library icon */
    vertical-align: middle; /* Consistent with nav-right img alignment */
}

.lightning-node-icon {
    /* Styles now inline on button element to match library icon */
}

.lightning-node-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    width: 450px;
    max-height: 600px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    z-index: 11000;
    overflow: hidden;
}

.lightning-node-dropdown.active {
    display: block;
}

.lightning-dropdown-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background: #fcf136;  /* Yellow to match tip modal theme */
    color: #111827;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lightning-dropdown-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

/* Lightning modal close button - darker yellow hover */
#lightning-node-dropdown .modal-close-btn:hover {
    background: #c7be2b;
    color: white;
}

.lightning-node-content {
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.node-info-section h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

.node-info-section p {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.node-connection-info {
    margin-bottom: 25px;
}

.connection-field {
    margin-bottom: 15px;
}

.connection-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 13px;
    color: #444;
}

.copyable-field {
    display: flex;
    gap: 8px;
    align-items: center;
}

.copyable-field input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: #f9f9f9;
    color: #333;
}

/* Connection string special styling */
.connection-string-field {
    flex-direction: row;
    gap: 10px;
}

.connection-string-text {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    word-break: break-all;
    line-height: 1.4;
}

.connection-pubkey {
    color: #333;
}

.connection-separator {
    color: #666;
    font-weight: bold;
}

.connection-host {
    color: #2563eb;
    font-weight: bold;
}

.copy-btn {
    padding: 8px 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    min-width: 45px;
}

.copy-btn:hover {
    background: #0056b3;
}

.copy-btn.copied {
    background: #28a745;
}

.node-instructions h4 {
    margin: 20px 0 10px 0;
    font-size: 16px;
    color: #333;
}

.node-instructions ul {
    margin: 0;
    padding-left: 20px;
}

.node-instructions li {
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* User Profile Dropdown */
.user-profile-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 25px; /* Match spacing of other nav icons */
    vertical-align: middle; /* Consistent with nav-right img alignment */
}

.user-profile-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-weight: bold;
    font-size: 14px;
    transition: transform 0.2s;
}

.user-profile-icon:hover {
    transform: scale(1.05);
}

.user-profile-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    width: 340px; /* Reduced from 380px to fit in 400px min-width viewport */
    max-height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: none;
    z-index: 11000;
    overflow: hidden;
}

.user-profile-dropdown.active {
    display: block;
}

.profile-dropdown-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-dropdown-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

/* Modal close button styles */
.modal-close-btn {
    background: transparent;
    border: none;
    color: #111827;
    font-size: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.modal-close-btn:hover {
    background: #469adc;
    color: white;
}

.profile-dropdown-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f8f8;
}

.profile-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    background: none;
    border: none;
    transition: all 0.2s;
}

.profile-tab.active {
    color: #764ba2;
    background: white;
    border-bottom: 2px solid #764ba2;
}

.profile-content-list {
    max-height: 350px;
    overflow-y: auto;
    padding: 10px;
}

.profile-video-item {
    display: flex;
    padding: 10px;
    margin-bottom: 8px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: background 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.profile-video-item:hover {
    background: #f0f0f0;
}

.profile-video-thumbnail {
    width: 80px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 12px;
}

.profile-video-info {
    flex: 1;
    min-width: 0;
}

.profile-video-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-video-status {
    font-size: 11px;
    color: #666;
}

.profile-video-time {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
    margin-left: 6px;
}

.profile-video-time.owned {
    background: #ba6ff8;
    color: white;
}

.profile-video-time.rental {
    background: #22c55e;
    color: #ffffff;
}

.profile-empty-state {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

.profile-empty-state p {
    margin: 10px 0;
    font-size: 14px;
}

.play-video .tags a{
    color: #0000ff;
    font-size: 13px;
}

.play-video h3{
    font-weight: 600;
    font-size: 22px;
    margin-top: 13px;
}

.play-video .play-video-info{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
    font-size: 14px;
    color: #5a5a5a;
}

/* Theater mode button styling */
.widescreen-control {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 6px 12px;
    border: none;
    border-radius: 20px;
    background: white;
    color: #111827;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 600;
    gap: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.widescreen-control:hover {
    background: #9bd9fb;
    color: #111827;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.widescreen-control:active {
    transform: translateY(0);
}

.widescreen-control.active {
    background: #469adc;
    color: white;
}

.theater-icon {
    font-size: 14px;
}

.theater-label {
    font-size: 13px;
    font-weight: 600;
}

.play-video .play-video-info a img{
    width: 20px;
    margin-right: 8px;
}

.play-video .play-video-info a{
    display: inline-flex;
    align-items: center;
    margin-left: 15px;
}

.play-video hr{
    border: 0;
    height: 1px;
    background: #ccc;
    margin: 10px 0;
}

.publisher{
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.publisher div{
    flex: 1;
    line-height: 18px;
}

.publisher img{
    width: 40px;
    border-radius: 50%;
    margin-right: 15px;
}

.publisher div p{
    color: #000;
    font-weight: 600;
    font-size: 18px;
}

.publisher div span{
    font-size: 13px;
    color: #5a5a5a;
}

.publisher button{
    background: red;
    color: #fff;
    padding: 8px 30px;
    border: 0;
    outline: 0;
    border-radius: 4px;
    cursor: pointer;
}

.vid-description{
    padding-left: 55px;
    margin: 15px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.vid-description p{
    font-size: 14px;
    margin-bottom: 5px;
    color: #5a5a5a;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.vid-description h4{
    font-size: 14px;
    color: #5a5a5a;
    margin-top: 15px;
}

.add-comment{
    display: flex;
    align-items: center;
    margin: 30px 0;
}

.add-comment img{
    width: 35px;
    border-radius: 50%;
    margin-right: 15px;
}

.add-comment input{
    border: 0;
    outline: 0;
    border-bottom: 1px solid #ccc;
    width: 100%;
    padding-top: 10px;
    background: transparent;
}

.old-comment {
    display: flex;
    align-items: center;
    margin: 8px 0;
}

.old-comment img{
    width: 35px;
    border-radius: 50%;
    margin-right: 15px;
}

.old-comment h3{
    font-size: 14px;
    margin-bottom: 2px;
}

.old-comment h3 span{
    font-size: 12px;
    color: #5a5a5a;
    font-weight: 500;
    margin-left: 8px;
}

.old-comment .comment-action{
    display: flex;
    align-items: center;
    margin: 8px 0;
    font-size: 14px;
}

.old-comment .comment-action img{
    border-radius: 0;
    width: 20px;
    margin-right: 5px;
}

.old-comment .comment-action span{
    margin-right: 20px;
    color: #5a5a5a;
}

.old-comment .comment-action a{
    color: #0000ff;
}

/* Add spacing between info line and button container on smaller windows */
@media (max-width: 1200px){
    .play-video-info > div:has(.tip-button-container) {
        margin-top: 12px !important;
    }
}

/* Intermediate breakpoint: wrap sidebar before Plyr controls overlap */
@media (max-width: 1100px){
    .row{
        flex-wrap: wrap; /* Allow sidebar to wrap below video */
    }
    .play-video{
        flex-basis: 100%;
        min-width: 100%; /* Full width when stacked */
    }
    .right-sidebar{
        flex-basis: 100%;
        min-width: 100%; /* Full width sidebar below video */
        margin-top: 20px;
    }
}

@media (max-width: 900px){
    .row{
        flex-wrap: wrap; /* Allow wrapping on mobile */
    }
    .play-video{
        flex-basis: 100%;
    }
    .right-sidebar{
        flex-basis: 100%;
        min-width: 100%; /* Full width on mobile */
    }
    .play-container{
        padding-left: 5%;
    }
    /* Sidebar thumbnails already responsive with percentage width */
    .vid-description{
        padding-left: 0;
    }
    .play-video .play-video-info a{
        margin-left: 0;
        margin-right: 15px;
        margin-top: 15px;
    }
    /* Increase spacing on mobile */
    .play-video-info > div:has(.tip-button-container) {
        margin-top: 15px !important;
    }
    /* Hide theater mode button on mobile - layout is already stacked */
    .widescreen-control {
        display: none !important;
    }

    /* Lightning modal responsive design */
    .lightning-node-dropdown {
        width: 350px;
        right: -10px; /* Adjust for mobile screen edges */
        max-height: 70vh; /* Limit height on mobile */
    }

    .copyable-field {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }

    .copy-btn {
        align-self: stretch;
    }
}

/* Homepage video loading and featured styles */
.loading-message, .error-message {
    text-align: center;
    padding: 40px;
    color: #5a5a5a;
    font-size: 16px;
}

.error-message {
    color: #d32f2f;
}

.featured-video {
    position: relative;
}

.featured-video::before {
    content: "⭐ Featured";
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 193, 7, 0.9);
    color: #000;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

/* ==================== TIPPING SYSTEM STYLES ==================== */

/* Tip Button */
.tip-button-container {
    display: inline-block;
}

.tip-button {
    background: #fcf136;
    color: #111827;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tip-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    background: #efd600;
    color: #111827;
}

.tip-button:active {
    transform: translateY(0);
}

.tip-icon {
    font-size: 14px;
}

.tip-text {
    font-size: 13px;
    font-weight: 600;
}

.tip-amount {
    font-size: 11px;
    opacity: 0.9;
    margin-left: 3px;
}

/* Tip Modal */
.tip-loading-spinner {
    text-align: center;
    padding: 40px 20px;
    font-size: 18px;
    color: #FFA500;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.tip-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;  /* Below nav bar (11000) to keep nav visible */
    align-items: center;
    justify-content: center;
}

.tip-modal-content {
    background: #ffffff;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.tip-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #fcf136;
    border-radius: 12px 12px 0 0;
}

.tip-modal-header h2 {
    margin: 0;
    color: #111827;
    font-size: 22px;
    font-weight: 600;
}

.tip-modal-close {
    background: none;
    border: none;
    color: #111827;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.tip-modal-close:hover {
    background: #c7be2b;
    color: white;
}

.tip-modal-body {
    padding: 24px;
    background: #ffffff;
}

/* Unlock Modal - Purple Theme Override */
#unlock-modal .tip-modal-header {
    background: #ba6ff8;
}

#unlock-modal .tip-modal-header h2 {
    color: #ffffff;
}

#unlock-modal .tip-modal-close {
    color: #ffffff;
}

#unlock-modal .tip-modal-close:hover {
    background: #9942f9;
    color: #ffffff;
}

/* Amount Selection */
.tip-amount-section {
    margin-bottom: 20px;
}

.tip-amount-section h3 {
    color: #111827;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.tip-amount-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.tip-amount-btn {
    background: #f3f4f6;
    color: #111827;
    border: 2px solid #d1d5db;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.tip-amount-btn:hover {
    background: #e5e7eb;
    border-color: #9bd9fb;
}

.tip-amount-selected {
    background: #9bd9fb;
    border-color: #469adc;
    color: #111827;
    font-weight: 600;
}

.tip-custom-amount {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tip-custom-amount label {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.tip-custom-amount input {
    background: #ffffff;
    color: #111827;
    border: 2px solid #d1d5db;
    padding: 8px 12px;
    border-radius: 6px;
    width: 150px;
    transition: border-color 0.2s;
}

.tip-custom-amount input:focus {
    outline: none;
    border-color: #9bd9fb;
}

/* Message Section */
.tip-message-section {
    margin-bottom: 20px;
}

.tip-message-section label {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

.tip-message-section textarea {
    width: 100%;
    background: #ffffff;
    color: #111827;
    border: 2px solid #d1d5db;
    padding: 10px;
    border-radius: 6px;
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.tip-message-section textarea:focus {
    outline: none;
    border-color: #9bd9fb;
}

/* Payment Method Toggle */
.tip-payment-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.payment-method-btn {
    flex: 1;
    background: #f3f4f6;
    color: #111827;
    border: 2px solid #d1d5db;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}

.payment-method-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

/* Lightning method - yellow */
#lightning-btn.payment-method-active,
#unlock-lightning-btn.payment-method-active {
    background: #fcf136;
    border-color: #efd600;
    color: #111827;
    font-weight: 600;
}

/* On-chain method - orange */
#onchain-btn.payment-method-active,
#unlock-onchain-btn.payment-method-active {
    background: #ff6600;
    border-color: #e55c00;
    color: #ffffff;
    font-weight: 600;
}

/* Either method - blue */
#unified-btn.payment-method-active,
#unlock-unified-btn.payment-method-active {
    background: #469adc;
    border-color: #3b82c8;
    color: #ffffff;
    font-weight: 600;
}

/* Invoice Section */
#tip-invoice-section, #unlock-invoice-section {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.tip-qr-container {
    text-align: center;
    margin-bottom: 20px;
}

#tip-qr-code {
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
}

.tip-invoice-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tip-invoice-text {
    background: #ffffff;
    color: #111827;
    border: 1px solid #d1d5db;
    padding: 10px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 12px;
    word-break: break-all;
    max-width: 300px;
}

.tip-copy-btn {
    background: #469adc;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.tip-copy-btn:hover {
    background: #3b82c8;
}

/* Payment Status */
.tip-status {
    text-align: center;
    margin: 15px 0;
    font-size: 16px;
}

.tip-status-waiting {
    color: #f59e0b;
    font-weight: 500;
}

.tip-status-confirming {
    color: #22c55e;
    font-weight: 600;
    animation: pulse 1.5s infinite;
}

.tip-status-success {
    color: #22c55e;
    font-weight: bold;
}

.tip-status-expired {
    color: #ef4444;
    font-weight: 500;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.tip-invoice-timer {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin-top: 10px;
    font-weight: 500;
}

/* Generate Button */
.tip-generate-btn {
    width: 100%;
    background: linear-gradient(135deg, #ffa500, #ff8c00);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.tip-generate-btn:hover {
    background: linear-gradient(135deg, #ffb520, #ff9c10);
}

.tip-generate-btn:disabled {
    background: #444;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .tip-modal-content {
        width: 95%;
        margin: 60px 10px 10px 10px;  /* Top margin offset for nav bar */
        max-height: calc(90vh - 60px);  /* Adjust max height to account for nav offset */
    }
    
    .tip-amount-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tip-invoice-text {
        font-size: 10px;
    }
}

/* =========== UNLOCK SYSTEM STYLES =========== */

/* Unlock Button */
.unlock-button-container {
    display: inline-block;
}

.unlock-button {
    background: #ba6ff8;
    color: white;
    border: none;
    border-radius: 20px;  /* Match tip button */
    padding: 6px 12px;    /* Match tip button */
    font-size: 13px;      /* Match tip button */
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;  /* Changed to inline-flex to match tip button */
    align-items: center;
    gap: 5px;             /* Match tip button gap */
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);  /* Match tip button shadow */
}

.unlock-button:hover {
    background: #a855f7;
    transform: translateY(-2px);  /* Match tip button hover */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);  /* Match tip button hover shadow */
}

.unlock-button:active {
    transform: translateY(0);  /* Added active state to match tip button */
}

.unlock-button.unlocked {
    background: #22c55e;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.unlock-button.unlocked:hover {
    background: #55e65d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 24-hour unlock - green */
.unlock-button.unlocked-24h {
    background: #4caf50 !important;
    color: white !important;
}

.unlock-button.unlocked-24h:hover {
    background: #45a049 !important;
}

/* Forever unlock - purple */
.unlock-button.unlocked-forever {
    background: #ba6ff8 !important;
    color: white !important;
}

.unlock-button.unlocked-forever:hover {
    background: #a855f7 !important;
}

.unlock-icon {
    font-size: 14px;  /* Match tip button icon size */
}

.unlock-text {
    font-size: 13px;
    font-weight: 600;
}

.unlock-price {
    font-size: 11px;  /* Smaller to match tip-amount */
    opacity: 0.9;
}

/* Locked Video Overlay - Constrained to video container */
.locked-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; /* Remove dark background - show thumbnail */
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    pointer-events: none; /* Don't interfere when hidden */
    overflow: hidden; /* Prevent content from escaping container */
}

.locked-video-overlay[style*="flex"] {
    display: flex !important;
    pointer-events: auto;
}

/* Ensure video container maintains proper positioning */
#video-container {
    position: relative;
}

#player-container {
    position: relative;
}

.lock-message {
    text-align: center;
    color: #111827;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 3px solid #9bd9fb;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 95%;
    max-height: 90%;
    width: auto;
    position: relative;
    box-sizing: border-box;
    margin: 5px;
    font-size: 13px;
    overflow-y: auto;
}

.lock-message h3 {
    font-size: 20px;
    margin: 8px 0 12px 0;
    font-weight: 600;
    color: #111827;
}

.lock-message p {
    font-size: 14px;
    margin: 8px 0 15px 0;
    line-height: 1.4;
    color: #4b5563;
}

.lock-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

/* Mobile-specific sizing */
@media (max-width: 768px) {
    .lock-message {
        padding: 30px 16px 16px 16px;  /* Increased top padding for X button clearance */
        margin: 3px;
        max-width: 98%;
        font-size: 12px;
    }

    /* Hide decorative elements on mobile for compact layout */
    .lock-message .lock-icon {
        display: none;
    }

    /* Show compact heading on mobile */
    .lock-message h3 {
        display: block;
        font-size: 14px;
        margin: 0 0 10px 0;
        font-weight: 600;
    }

    .lock-message p {
        display: none;
    }

    .close-overlay-btn {
        top: 8px;
        right: 8px;
        font-size: 18px;
        width: 26px;
        height: 26px;
    }
}

.close-overlay-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: #111827;
    font-size: 20px;
    font-weight: normal;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1001;
    padding: 0;
    margin: 0;
    line-height: 1;
}

.close-overlay-btn:hover {
    background: #469adc;
    color: white;
}

.lock-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 1;
}

.unlock-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
}

.unlock-option-btn {
    background: #f3f4f6;
    color: #111827;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.unlock-option-btn:hover {
    background: #9bd9fb;
    border-color: #469adc;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(155, 217, 251, 0.4);
}

.unlock-option-tier {
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    margin: 0;
    padding: 0;
    color: #111827;
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
}

.unlock-option-price {
    font-size: 13px;
    opacity: 0.85;
    color: #4b5563;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Mobile unlock options - horizontal side-by-side layout */
@media (max-width: 768px) {
    .unlock-options {
        flex-direction: row;
        gap: 8px;
        margin: 8px 0;
    }

    .unlock-option-btn {
        flex: 1;
        flex-direction: column;
        text-align: center;
        padding: 12px 8px;
        gap: 6px;
    }

    .unlock-option-tier {
        font-size: 12px;
        text-align: center;
        word-break: break-word;
    }

    .unlock-option-price {
        font-size: 11px;
    }
}

.unlock-option-description {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 5px;
}

.preview-info {
    margin-top: 20px;
    opacity: 0.7;
}

/* Unlock Modal Specific Styles */
#unlock-modal .tip-modal-header h2 {
    color: #111827;
}

.unlock-status-section {
    background: #f0fdf4;
    color: #111827;
    border: 2px solid #22c55e;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.unlock-status-message {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #111827;
}

.unlock-expiry {
    font-size: 14px;
    opacity: 0.9;
    color: #4b5563;
}

.unlock-options-section {
    margin-bottom: 25px;
}

.unlock-options-section h3 {
    color: #111827;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.unlock-tier-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Add spacing between buttons and text at medium breakpoints */
@media (min-width: 1180px) and (max-width: 1459px) {
    .unlock-tier-buttons {
        margin-bottom: 40px;
    }

    .unlock-tier-info {
        margin-top: 25px;
    }
}

.unlock-tier-btn {
    background: #f3f4f6;
    color: #111827;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
}

.unlock-tier-btn:hover {
    background: #e5e7eb;
    border-color: #9bd9fb;
}

.unlock-tier-btn.selected {
    background: #9bd9fb;
    border-color: #469adc;
    font-weight: 600;
}

.unlock-tier-icon {
    font-size: 20px;
    margin-bottom: 8px;
    display: block;
}

.unlock-tier-name {
    font-weight: 600;
}

.unlock-tier-price-display {
    font-size: 14px;
    opacity: 0.9;
}

.unlock-tier-info {
    margin-top: 15px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #469adc;
}

.unlock-tier-description {
    color: #4b5563;
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.unlock-tier-price {
    color: #469adc;
    font-size: 16px;
    font-weight: 600;
}

/* Payment Status for Unlock */
#unlock-status .tip-status-success {
    color: #2ecc71;
    font-weight: 600;
}

/* Mobile Responsive for Unlock */
@media (max-width: 600px) {
    .lock-message {
        padding: 20px;
        width: 95%;
    }

    .lock-icon {
        font-size: 36px;
    }

    .lock-message h3 {
        font-size: 24px;
    }

    .unlock-tier-buttons {
        gap: 10px;
    }

    .unlock-tier-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* Unlock Status in Video Info */
.unlock-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-left: 10px;
}

.unlock-status-indicator.expires-soon {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.unlock-status-indicator.forever {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

/* ============================================
   AUTO-PLAY NEXT VIDEO STYLES
   ============================================ */

/* Auto-play toggle button (styled like tip button) */
.autoplay-control {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 6px 12px;
    border: none;
    border-radius: 20px;
    background: white;
    color: #111827;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 600;
    gap: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.autoplay-control:hover {
    background: #f5f5f5;
    color: #111827;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.autoplay-control:active {
    transform: translateY(0);
}

.autoplay-control.autoplay-active {
    background: #4caf50;
    color: white;
}

.autoplay-icon {
    font-size: 14px;
}

.autoplay-label {
    font-size: 13px;
    font-weight: 600;
}

/* Auto-play countdown overlay */
.autoplay-countdown-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.countdown-timer-container {
    position: relative;
    display: inline-block;
}

.countdown-circle {
    transform: rotate(-90deg);
}

.countdown-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 6;
}

.countdown-circle-progress {
    fill: none;
    stroke: #4caf50;
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}

.countdown-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: bold;
    color: white;
    pointer-events: none;
    display: none; /* Hidden - just show the circle */
}

.countdown-pause-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
    padding: 0;
}

.countdown-pause-button:hover {
    transform: translate(-50%, -50%) scale(1.2);
}

.countdown-pause-button .pause-icon {
    font-size: 48px;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    line-height: 1;
}

/* Mobile responsiveness for auto-play */
@media (max-width: 768px) {
    .countdown-timer-container {
        transform: scale(0.8);
    }

    .countdown-pause-button {
        width: 50px;
        height: 50px;
    }

    .countdown-pause-button .pause-icon {
        font-size: 40px;
    }
}
