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

html, body {
    height: 100%;
    overflow: hidden;
    background: #000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #fff;
    -webkit-tap-highlight-color: transparent;
}

#feed-container {
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

#feed-container::-webkit-scrollbar {
    display: none;
}

.feed-item {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.feed-item video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Tap target covers the whole item */
.tap-target {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: pointer;
}

/* Controls container — centered, hidden by default */
.controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.feed-item.show-controls .controls {
    opacity: 1;
    pointer-events: auto;
}

/* Play/pause button */
.ctrl-btn {
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.45);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Play triangle */
.play-pause-btn::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 22px;
    border-color: transparent transparent transparent #fff;
    margin-left: 4px;
}

.feed-item.playing .play-pause-btn::after {
    /* Pause icon — two bars */
    border: none;
    width: 18px;
    height: 22px;
    margin-left: 0;
    border-left: 5px solid #fff;
    border-right: 5px solid #fff;
}

/* Mute button — smaller, below play/pause */
.mute-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
}

#loader {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    display: none;
    z-index: 10;
}
