* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #000;
    color: white;
    touch-action: pan-y;
}

.shorts-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.shorts-videos {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.shorts-videos::-webkit-scrollbar {
    display: none;
}

.video-container {
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    position: relative;
    background-color: #111;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #000;
}

.video-info-container {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    max-height: 40%;
    overflow: hidden;
}

.video-info-content {
    overflow-y: auto;
    max-height: 100%;
    padding-right: 5px;
}

.video-info-content::-webkit-scrollbar {
    width: 3px;
}

.video-info-content::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.video-title {
    font-size: 0.95rem;
    margin-bottom: 6px;
    font-weight: 500;
}

.video-author {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.video-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
}

.video-description {
    font-size: 0.8rem;
    opacity: 0.8;
    line-height: 1.4;
    margin-bottom: 5px;
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
    margin-top: 8px;
}

.video-tag {
    font-size: 0.7rem;
    background: rgba(255,255,255,0.1);
    padding: 3px 8px;
    border-radius: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.video-controls {
    position: absolute;
    right: 10px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.control-button {
    background: none;
    border: none;
    color: white;
    margin: 12px 0;
    cursor: pointer;
    text-align: center;
    padding: 5px;
}

.control-button i {
    font-size: 24px;
    margin-bottom: 5px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-button span {
    font-size: 0.7rem;
    display: block;
}

.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: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.play-button i {
    font-size: 30px;
    color: white;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #fff;
    border-bottom-color: #ff3d00;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.share-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    z-index: 1000;
    display: none;
    animation: fadeInOut 2.5s ease-in-out;
}

.ad-container {
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    background-color: #111;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    position: relative;
}

.ad-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.7rem;
}

.ad-content {
    width: 100%;
    max-width: 350px;
    height: 60%;
    margin-bottom: 15px;
    background-color: #222;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-text {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #ddd;
    max-width: 80%;
}

.ad-button {
    margin-top: 15px;
    padding: 8px 20px;
    background-color: #f00;
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
}

@keyframes rotation {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

@media (max-width: 500px) {
    .video-controls {
        right: 5px;
        bottom: 70px;
    }

    .control-button {
        margin: 8px 0;
    }

    .control-button i {
        font-size: 20px;
        width: 36px;
        height: 36px;
    }

    .video-info-container {
        bottom: 70px;
    }

    .video-title {
        font-size: 0.9rem;
    }

    .video-author {
        font-size: 0.8rem;
    }

    .video-description {
        font-size: 0.75rem;
    }
}

@media (min-width: 768px) {
    .shorts-container {
        max-width: 500px;
    }
}
.mute-btn {
    position: absolute;
    bottom: 20px;
    left: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 5px 10px;
    margin: 0;
}

.mute-btn i {
    margin-right: 5px;
    background: none !important;
    width: auto !important;
    height: auto !important;
}

/* Previous CSS remains the same, just add these new rules */

/* Add to existing .video-controls */
.video-controls {
    /* ... existing styles ... */
    z-index: 2; /* Ensure controls stay above video */
}

.mute-btn {
    position: absolute;
    bottom: 80px;
    left: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 6px 12px;
    margin: 0;
    z-index: 3;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    gap: 5px;
}

.mute-btn i {
    font-size: 1rem;
    background: none !important;
    width: auto !important;
    height: auto !important;
}

@media (max-width: 500px) {
    .mute-btn {
        bottom: 70px;
        left: 10px;
        padding: 5px 10px;
        font-size: 0.7rem;
    }
}

.global-mute-btn {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: pointer;
}

.global-mute-btn i {
    font-size: 1.2rem;
}

/* Remove individual mute buttons from video controls */
.mute-btn {
    display: none;
}

.ad-container {
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    background-color: #111;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 2px;
}

.ad-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.7rem;
}

.ad-content {
    width: 90%;
    max-width: 350px;
    height: 60%;
    margin-bottom: 15px;
    background-color: #222;
    border-radius: 8px;
    overflow: hidden;
}

.ad-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-text {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #ddd;
    max-width: 80%;
    text-align: center;
}

.ad-button {
    margin-top: 15px;
    padding: 8px 20px;
    background-color: #f00;
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
}