/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #000;
    color: #fff;
    overflow: hidden; /* Hide main scrollbar */
    height: 100vh;
    width: 100vw;
}

/* Video Feed Container */
.video-feed {
    height: 100%;
    width: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    /* Hide scrollbar */
    scrollbar-width: none; 
    -ms-overflow-style: none;
}

.video-feed::-webkit-scrollbar {
    display: none;
}

/* Individual Video Item */
.video-container {
    height: 100%;
    width: 100%;
    position: relative;
    scroll-snap-align: start;
    background-color: #111;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensure video covers screen but maintains aspect ratio logic if needed, usually cover is best for full screen */
}

/* Top Navigation */
.top-nav {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.top-nav span {
    opacity: 0.6;
    cursor: pointer;
    position: relative;
}

.top-nav span.active {
    opacity: 1;
}

.top-nav span.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: #fff;
}

/* Side Controls */
.side-controls {
    position: absolute;
    right: 10px;
    bottom: 80px; /* Above nav bar */
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.control-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.control-item ion-icon {
    font-size: 32px;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.4));
    transition: transform 0.1s;
}

.control-item:active ion-icon {
    transform: scale(0.9);
}

.control-item span {
    font-size: 12px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Avatar Special Styling */
.avatar-container {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    padding: 1px;
    margin-bottom: 10px;
}

.avatar-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.follow-plus {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fe2c55;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}

/* Animated Disc */
.spin-disc-container {
    margin-top: 10px;
}

.spin-disc {
    width: 45px;
    height: 45px;
    background: #222;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: spin 5s linear infinite;
    border: 8px solid #333;
}

.spin-disc img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Like Animation State */
.control-item.liked ion-icon {
    color: #fe2c55;
}

/* Video Info */
.video-info {
    position: absolute;
    bottom: 80px;
    left: 10px;
    width: 70%;
    z-index: 10;
    text-align: left;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.username {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 5px;
}

.description {
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 10px;
}

.music-ticker {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 60px;
    background: #000;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 20;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: #888;
    font-size: 10px;
    cursor: pointer;
}

.nav-item.active {
    color: #fff;
}

.nav-item ion-icon {
    font-size: 24px;
}

.add-btn .plus-icon {
    width: 45px;
    height: 30px;
    background: linear-gradient(90deg, #25f4ee 0%, #fe2c55 100%);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* Inner black box to create the border effect */
}

.add-btn .plus-icon::after {
    content: '';
    position: absolute;
    width: 37px;
    height: 100%;
    background: #fff;
    border-radius: 6px;
    z-index: 1;
}

.add-btn ion-icon {
    color: #000;
    position: relative;
    z-index: 2;
    font-size: 20px;
}

/* Loader/Play State */
.video-player.playing {
    /* Potential styling for playing state */
}
