.ad-bar {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 15px;
    font-size: 14px;
    height: 30px;
    line-height: 30px;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #000;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-container .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-container.paused .play-button {
    opacity: 1;
}

.video-container .play-button svg {
    fill: #fff;
    width: 30px;
    height: 30px;
}

.video-container .ad-placeholder {
    display: none;
    width: 300px;
    height: 250px;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #fff;
    border-radius: 8px;
}

.video-container.paused .ad-placeholder {
    display: flex;
}

.search-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    fill: #fff;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.video-title-overlay {
    position: fixed;
    /* position: absolute; */
    bottom: 80px;
    left: 15px;
    color: #fff;
    z-index: 5;
    width: calc(100% - 80px);
}

.video-title-overlay .title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.video-title-overlay .tags {
    display: flex;
    gap: 10px;
}

.video-title-overlay .tags div {
    background-color: rgba(0,0,0,0.5);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
}

.video-actions {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
}

.video-actions .action-icon {
    margin-bottom: 20px;
    text-align: center;
    color: #fff;
    cursor: pointer;
}

.video-actions .action-icon svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

.video-actions .action-icon div {
    font-size: 12px;
    margin-top: 5px;
}

.episode-selector {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    background-color: #1c1c1e;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
    z-index: 10;
}

.episode-selector.open {
    transform: translateY(0);
}

.episode-selector .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.episode-selector .close-button {
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    padding: 8px;
    width: 24px;
    height: 24px;
    cursor: pointer;
}
.purchase-popup .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    width: 24px;
    height: 24px;
}

.episode-selector .segments {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}

.episode-selector .segments div {
    color: #fff;
    cursor: pointer;
}

.episode-selector .episodes {
    display: flex;
    flex-wrap: wrap;
    padding: 0 10px 10px 10px;
}

.episode-selector .episode {
    width: 16.66%;
    text-align: center;
    margin-bottom: 10px;
    position: relative;
}

.episode-selector .episode div {
    background-color: #333;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
}

.episode-selector .episode.locked div {
    background-color: #555;
}

.episode-selector .episode.active div {
    background-color: #fd0252;
}

.episode-selector .episode .lock-icon {
    position: absolute;
    top: 5px;
    right: 10px;
    fill: #fff;
    width: 16px;
    height: 16px;
}

.purchase-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #1c1c1e;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    z-index: 20;
    display: none;
}

.purchase-popup.open {
    display: block;
}

.content {
    padding: 20px;
}

.current-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
}

.current-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.current-stats .stat span:first-child {
    font-size: 14px;
    opacity: 0.7;
}

.coin-price {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
    color: #FFD700;
}

.coin-img {
    width: 20px;
    height: 20px;
}

.price-options {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 30px;
}

.price-option {
    flex: 1;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    text-align: center;
    position: relative;
    border: 1px solid transparent;
}

.price-option.best-value {
    border: 1px solid;
    border-image: linear-gradient(45deg, #FFD700, #FFA500) 1;
}

.price-option .coin-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 24px;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 8px;
}

.price-option .bonus {
    font-size: 16px;
    color: #FFA500;
}

.price-option .price {
    font-weight: bold;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price-option .tag {
   position: absolute;
   top: -8px;
   right: -8px;
   left: auto;
   transform: none;
   background: linear-gradient(45deg, #FFD700, #FFA500);
   padding: 2px 8px;
   border-radius: 10px;
   font-size: 10px;
   font-weight: bold;
   white-space: nowrap;
}

.membership-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.membership-option {
    background-color: #1c1c1e;
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid;
    border-image: linear-gradient(45deg, #FFD700, #FFA500) 1;
}

.membership-option .title {
    text-align: left;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.membership-option .price {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.membership-option .price span {
    font-size: 16px;
    opacity: 0.7;
}

.membership-option .features {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.membership-option .terms {
    font-size: 12px;
    opacity: 0.6;
}