:root {
  --bg-color: #ffffff;
  --text-color: #0f0f0f;
  --card-bg: #ffffff;
  --accent-color: #ff0000;
  --bg-image:none;
  --secondary-text: #606060;
  --hover-color: #f2f2f2;
  --chip-bg: #f2f2f2;
}


[data-theme="default"] {
  --bg-color: #ffffff;
  --text-color: #0f0f0f;
  --accent-color: #ff0000;
  --secondary-text: #606060;
  --hover-color: #f2f2f2;
  --chip-bg: #f2f2f2;
}

[data-theme="indie"] {
  --bg-color: #e0f2ff;
  --text-color: #2b2b2b;
  --accent-color: #5bb5ff;
  --secondary-text: #5a7a91;
  --hover-color: #ffcce0;
  --chip-bg: #ffffff;
  --bg-image: url('cute.png'); 
}

body[data-theme="indie"] {
  background-image: url('indie.png') !important;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}


[data-theme="universe"] {
  --bg-color: #0b0e14;
  --text-color: #e0e0e0;
  --accent-color: #7d5fff;
  --bg-image: url('space.png');
  --secondary-text: #aaa;
  --card-bg: #1c2331;
  --chip-bg: #161b22;
  --hover-color: #2c3e50;
}


[data-theme="pastel"] {
  --bg-color: #f0f7f4;
  --text-color: #4a5d4e;
  --accent-color: #98c1a3;
  --secondary-text: #7a8c7e;
  --hover-color: #dcece2;
  --chip-bg: #ffffff;
}


body {
  margin: 0;
  display: flex;
  flex-wrap: wrap; 
  font-family: "Roboto", Arial, sans-serif;
  background-color: var(--bg-color);
  background-image: var(--bg-image);
  background-attachment: fixed;
  background-position: center;
  background-size:cover;
  background-repeat:no-repeat;
  color: var(--text-color);
  transition: all 0.3s ease;
}




.navbar {
  width: 100%;
  height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  position: sticky;
  top: 0;
  background-color: var(--bg-color);
  z-index: 100;
}

.left-section, .right-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  height: 20px;
  cursor: pointer;
}

.right-section input {
  padding: 8px 16px;
  border: 1px solid #ccc;
  border-radius: 40px 0 0 40px;
  width: 300px;
  background: var(--chip-bg);
  color: var(--text-color);
}

.search-btn {
  padding: 7px 15px;
  border: 1px solid #ccc;
  border-left: none;
  border-radius: 0 40px 40px 0;
  cursor: pointer;
}


.sidebar {
  width: 72px;
    height: calc(100vh - 56px);
    position: fixed;
    left: 0;
    top: 56px;
    background-color: var(--bg-color);
    z-index: 1000; 
    transition: width 0.3s ease;
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    padding: 12px 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 999; 
    display: none; 
    opacity: 0;
    transition: opacity 0.3s ease;
}


.sidebar.open + .sidebar-overlay, 
.sidebar.open ~ .sidebar-overlay { /
    display: block;
    opacity: 1;
}

.sidebar.open {
    width: 240px;
}

.sidebar.open .nav-link {
    justify-content: flex-start; 
    padding: 12px 24px;      
    gap: 24px;               
}

.sidebar:not(.open) .nav-link {
    width: 72px;            
    padding: 12px 0;
    justify-content: center; 
    align-items: center;     
    margin: 0 auto;         
}


.sidebar:not(.open) .nav-link span {
    display: none;
}


.nav-link:hover {
    background-color: var(--hover-color);
}

.nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-color);
    transition: background 0.2s;
    font-size: 22px;
    line-height: 1;
}
.nav-link:hover {
  background-color: var(--hover-color);
}

.nav-link.active {
  font-weight: bold;
  background-color: var(--hover-color);
}

hr {
  border: 0;
  border-top: 1px solid #ccc;
  margin: 12px 0;
}


main {
  width: calc(100% - 72px);
  flex: 1;
  margin-left:72px;
  padding: 0 24px;
  transition: margin-left 0.3s ease;
}

/* Filter Chips */
.chips-bar {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  overflow-x: auto;
}

.chips-bar span {
  background-color: var(--chip-bg);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}

.chips-bar span:hover {
  background-color: #e5e5e5;
}


.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.video-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 8px;       
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 12px;        
}


.thumbnail {
    width: 100%;
    border-radius: 8px;  
    display: block;
}

.video-card:hover {
  background-color: var(--hover-color);
}



.video-details {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.channel-pfp {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--accent-color);
  flex-shrink: 0;
}

.video-text h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-text p {
  margin: 4px 0 0 0;
  font-size: 14px;
  color: var(--secondary-text);
}




[data-theme="universe"] .sidebar {
  background-color: #242736; 
  border-right: 1px solid #3a3e59;
}



[data-theme="universe"] .navbar {
  background-color: #242736; 
  color: white;
}


[data-theme="universe"] .right-section input {
  background-color: #1a1c29;
  border-color: #3a3e59;
  color: white;
}
  
[data-theme="universe"] {
  
  --chip-bg: #ffdae9; 
  --text-color: #ffffff; 
}
[data-theme="universe"] .chips-bar span{
  background-color: var(--chip-bg);
  color :#00008B;
}






























