@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css');
:root {
    --main-bg: url('images/2WORLDS.png') fixed;
    --track-bg: rgba(255, 255, 255, 0.1);
    --primary-color: #000000;
}

body {
    background-image: url('');
    background-color:#000000;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    text-align: center;
    color: rgb(255, 255, 255);
}

/* Ensure consistent box sizing to avoid unexpected overflow */
html, body, #master-wrapper, .content-container, .player-container, .live-area {
    box-sizing: border-box;
}

@media screen and (max-width: 600px) {
    /* Styles for tablets and smaller devices */
  }
  
  @media screen and (max-width: 400px) {
    /* Styles for smartphones */
  }

  @media screen and (max-width: 320px) {
    /* Styles for very small devices */
  }

#master-wrapper {
    background-image: url('../images/evileyenil.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: local;
    background-position: right;
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Allowscrollbars */
    overflow-x: hidden;
    opacity: 0.8; /* Makes the background image slightly faded */
    border-radius: 10px; /* Matches header-container border-radius */
}

.master-wrapper > div {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 600px;
    height: 100%;
}

.header-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0); /* Slightly more opaque */
    border: 1px solid rgba(255, 255, 255, 0.062); /* More visible border */
    border-radius: 10px;
    
}

.nav-menu-container {
    display: grid;
    align-items: center;
    grid-template-columns: auto auto auto auto;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    margin-top: 3px;
    margin-bottom: 3px;
    background: rgba(7, 172, 15, 0.151); /* Slightly more opaque */
    border: 1px solid rgba(255, 255, 255, 0.062); /* More visible border */
    border-radius: 10px;
}

.content-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background-position: center;
    background-attachment: fixed;
    background-origin: content-box;
    background-repeat: no-repeat;
    font-size: xx-small;  
    background: rgba(255, 255, 255, 0); /* Slightly more opaque */
    border: 1px solid rgba(255, 255, 255, 0.062); /* More visible border */
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.76);
    font-weight: bold ;
    overflow-y: auto;
    overflow-x: hidden;
    height: 66vh;
    max-height: 66vh;
    display: flex;
    flex-direction: column;
    scrollbar-color: #4242426e #3333337c; /* Firefox */
}

.content-container.video-mode {
    overflow: hidden;
    scrollbar-width: none;
}

.content-container.video-mode::-webkit-scrollbar {
    display: none;
}

.content-container::-webkit-scrollbar {
    width: 10px; /* Set the width of the scrollbar */
    height: 10px; /* Set the height of the scrollbar */
  }
  
  .content-container::-webkit-scrollbar-track {
    background-color: #3333337c; /* Set the background color of the scrollbar track */
    border-radius: 10px; /* Set the border radius of the scrollbar track */
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.473); /* Add a box shadow to the scrollbar track */
  }
  
  .content-container::-webkit-scrollbar-thumb {
    background-color: #4242426e; /* Set the background color of the scrollbar thumb */
    border-radius: 10px; /* Set the border radius of the scrollbar thumb */
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); /* Add a box shadow to the scrollbar thumb */
  }
  
  .content-container::-webkit-scrollbar-thumb:hover {
    background-color: #18181877; /* Set the background color of the scrollbar thumb on hover */
  }

  .content-container::-webkit-scrollbar:horizontal {
    height: 10px; /* Set the height of the horizontal scrollbar */
  }
  
  .content-container::-webkit-scrollbar-track:horizontal {
    background-color: #333; /* Set the background color of the horizontal scrollbar track */
    border-radius: 10px; /* Set the border radius of the horizontal scrollbar track */
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); /* Add a box shadow to the horizontal scrollbar track */
  }
  
  .content-container::-webkit-scrollbar-thumb:horizontal {
    background-color: #666; /* Set the background color of the horizontal scrollbar thumb */
    border-radius: 10px; /* Set the border radius of the horizontal scrollbar thumb */
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); /* Add a box shadow to the horizontal scrollbar thumb */
  }
  
  .content-container::-webkit-scrollbar-thumb:horizontal:hover {
    background-color: #888; /* Set the background color of the horizontal scrollbar thumb on hover */
  }

.video-container {
    justify-content: center;
    align-items: center;
    padding: 15px;
    overflow: hidden; /* Prevent scrollbars */
    overflow-y: hidden; /* Prevent vertical scrollbars */
    margin: 20px 0;
    border-radius: 5px;
    position: relative;
    
}

.video-container iframe {
    max-width: 290px;
    height: 100%;
    border-radius: 20px;
    border: none; /* Remove default border */
}
    
.text-container {
    text-align: center;
    justify-content: center;
    align-items: center;
    overflow: auto; /* Prevent scrollbars */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
    background: transparent; 
    border: 1px solid rgba(255, 255, 255, 0.062); /* More visible border */
    border-radius: 10px;
    padding: 10px;
    width: 300px;
    margin: 0 auto;
}

.player-container {
    background-color: transparent;
    padding: 1px;
    margin-top: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.track-list {
    max-width: 600px;
    margin: 0 auto;
}

.track-item {
    background: rgba(0, 0, 0, 0.3); /* Slightly more opaque */
    padding: 10px;
    margin: 1px 0;
    border-radius: 5px;
    position: relative;
}

.emailForm button {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.emailForm button:hover {
    background-color: #bbb;
}

.track-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.thumbnail {
    width: 150px;
    height: 150px;
    margin-right: 0px;
    border-radius: 5px;
}

.track-info {
    flex-grow: 1;
}

.artist-name {
    font-size: 1.1em;
    opacity: 0.8;
}

.track-name {
    font-size: 1.5em;
    font-weight: bold;
}

.track-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0px;
}

.track-controls button {
    background-color: #03030393;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 0 1px;
}

.track-controls button:hover {
    background-color: #0000003d;
}

.track-duration {
    font-size: 0.9em;
    opacity: 0.8;
    min-width: 50px;
    text-align: right;
}

.waveform-container {
    position: relative;
    width: 100%;
    border-radius: 5px;
    padding-left: 0.1px;
    background-color: transparent;
}

.time-scale {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 5px;
    margin-left: 10px;
}

.waveform {
    width: 100%;
    height: 80px;
    margin-top: 1px;
}

.paybutton-container {  
    text-align: center;
    align-items: center;
    align-self: center;
    justify-content: center;
    background-color: #5406796c;
    border: 1px solid rgba(255, 255, 255, 0.253); /* More visible border */    border-radius: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 0 3px;
}
.paybutton-container:hover {
    flood-color: rgba(255, 255, 255, 0.034); /* Slightly more opaque on hover */
    color: black;
    box-shadow: 1px 0px 1px 2px rgba(67, 167, 0, 0.329); /* Stronger shadow on hover */
} 

.paybutton {
    background-color: transparent;
    color: white;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 5px;
    border: none; /* Remove default border */
    cursor: pointer;
}

.subscribe-button-container {
    display: inline-flex;
    position: relative;
    text-align: center;
    align-items: center;
    align-self: center;
    justify-content: center;
    background-color: #25cc0493;
    border: 1px solid rgb(255, 255, 255); /* More visible border */
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 10 10px;
}
.subscribe-button-container:hover {
    flood-color: rgba(255, 255, 255, 0.034); /* Slightly more opaque on hover */
    color: transparent;
    box-shadow: 1px 0px 1px 2px rgba(47, 117, 1, 0.233); /* Stronger shadow on hover */
} 

.subscribe-button {
    background-color: transparent;
    color: white;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 5px;
    border: none; /* Remove default border */
    cursor: pointer;

}

.social-icon-container {
    display: grid;
    align-items: center;
    grid-template-rows: auto auto auto;
    font-size: 25px;
    width: 40%;
    max-width: 300px;
    height: 35px;
    margin: 0 auto;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0); /* Slightly more opaque */
    border: 1px solid rgba(255, 255, 255, 0.062); /* More visible border */
    border-radius: 10px;
}

.infobar-container {
    font-size: x-small;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 2px 0;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.infobar-container a {
    color: #888888;
    text-decoration: none;
    transition: color 0.3s;
}

.infobar-container a:hover {
    color: #cccccc;
    text-decoration: underline;
}

.footer-container {
    font-size: xx-small;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding-top: 3px;
    padding-bottom: 3px;
}

/* Live area and video styling for album-cover */
.live-area {
    padding: 0;
    background: transparent;
    position: relative; /* positioning context for overlay */
    display: flex;
    flex-direction: column;
    align-items: center; /* center children (video) */
    justify-content: center; /* center vertically if needed */
}

#liveVideo {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

#liveWaveform {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.tab-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 8px 0;
}

.tab-controls .paybutton-container.active {
    background-color: #25cc0493 !important;
    box-shadow: 0 0 8px rgba(37, 204, 4, 0.6) !important;
}

.tab-controls .paybutton-container.active .paybutton {
    color: #00ff77;
    text-shadow: 0 0 4px rgba(0, 255, 119, 0.6);
}

/* Flip animation */
@keyframes flipIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes flipOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.8) translateY(-10px);
    }
}

#liveVideo.flip-in, #liveWaveform.flip-in, .waveform.flip-in {
    animation: flipIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

#liveVideo.flip-out, #liveWaveform.flip-out, .waveform.flip-out {
    animation: flipOut 0.25s ease-in forwards !important;
}

/* Ensure player container is positioning context for overlays */
.player-container {
    position: relative;
}

/* Make video responsive and confined to the container */
#liveVideo {
    width: 100%;
    max-width: 600px; /* keep inside album cover width */
    height: auto;
    box-sizing: border-box;
    display: block;
    margin: 0 auto; /* ensure horizontal centering */
}

/* Also ensure iframes behave the same (in case of embeds) */
.video-container iframe,
#liveVideo {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* Overlay tab controls on top-right of the player */
.tab-controls {
    position: absolute;
    top: 6px;
    right: 6px;
    left: auto;
    transform: none;
    z-index: 60;
    background: transparent; /* remove translucent gray */
    padding: 0; /* tighten spacing to icons only */
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Ensure main player blocks are centered inside the master wrapper */
.track-list,
.track-item,
.waveform-container {
    width: 100%;
    max-width: 600px; /* match album cover width */
    margin: 0 auto;
    box-sizing: border-box;
}

/* Ensure waveform and thumbnail line up with thumbnail on the left */
.track-header {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start; /* left-align thumbnail + waveform */
    gap: 8px;
    flex-wrap: wrap; /* allow thumbnail + waveform to wrap instead of overflowing */
}

.btcpay-info {
    flex: 0 0 auto;
    width: 200px;
    padding: 6px 4px;
    text-align: center;
    font-size: 0.8em;
    line-height: 1.2;
}

.btcpay-info p {
    margin: 2px 0;
}

.btcpay-info small {
    display: block;
    word-break: break-all;
    font-size: 0.75em;
    opacity: 0.85;
    margin: 2px 0;
}

.waveform-container {
    flex: 1 1 auto;
    width: 100%;
    overflow: hidden; /* contain internal waveform */
}

.tab-controls .paybutton-container {
    margin: 0;
    background: transparent;
}

.tab-controls .paybutton-container .paybutton {
    font-size: 18px;
    padding: 6px 8px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* When video mode is active, hide scrollbars and the music track item */
.content-container.video-mode {
    overflow: hidden;
}
.content-container.video-mode .track-item {
    display: none;
}
