/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  background-color: #f9f9f9;
  color: #000;
  line-height: 1.5;
}

/* Mobile header */
.mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-logo h1 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ff0000;
  margin: 0;
  letter-spacing: 1px;
}

.logo-img {
  height: 26px;
  width: auto;
}

.mobile-icons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.icon-img {
  width: 26px;
  height: 26px;
  cursor: pointer;
  filter: brightness(0) saturate(100%) invert(20%) sepia(0%) saturate(0%) hue-rotate(180deg) brightness(90%) contrast(85%);
  transition: filter 0.3s ease;
}

.icon-img:hover {
  filter: brightness(0) saturate(100%) invert(40%) sepia(10%) saturate(500%) hue-rotate(180deg) brightness(110%) contrast(90%);
}

.profile-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0,0,0,0.15);
  transition: box-shadow 0.3s ease;
}

.profile-img:hover {
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

/* Main content */
.mobile-content {
  padding: 80px 16px 80px;
  background-color: #fff;
  min-height: 100vh;
}

/* History section */
.history-section {
  margin-bottom: 24px;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.history-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #000;
}

.view-all-link {
  font-size: 0.95rem;
  color: #065fd4;
  text-decoration: none;
  font-weight: 600;
}

.view-all-link:hover {
  text-decoration: underline;
}

.history-videos {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.history-videos::-webkit-scrollbar {
  height: 6px;
}

.history-videos::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}

.history-video-card {
  min-width: 150px;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  background-color: #fafafa;
  transition: box-shadow 0.3s ease;
}

.history-video-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.history-video-card img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  display: block;
}

.video-info {
  font-size: 0.85rem;
  margin: 8px 10px 10px;
  color: #222;
}

.video-info h3 {
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 1rem;
  line-height: 1.2;
  color: #111;
}

/* Your videos and movies links */
.your-videos-movies {
  display: flex;
  gap: 28px;
  margin-bottom: 24px;
}

.text-link {
  font-size: 1.1rem;
  color: #111;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  transition: border-color 0.3s ease;
}

.text-link:hover {
  border-color: #ff0000;
}

/* Playlists section */
.playlists-section {
  margin-bottom: 24px;
}

.playlists-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #000;
}

.playlists-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.playlist-card {
  display: flex;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 10px;
  background-color: #fafafa;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.playlist-card:hover {
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.playlist-card img {
  width: 130px;
  height: 75px;
  border-radius: 10px;
  object-fit: cover;
}

.playlist-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #111;
}

.playlist-info p {
  font-size: 0.9rem;
  color: #666;
}

/* Mobile bottom navigation */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #ddd;
  z-index: 1000;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
}

.mobile-bottom-nav nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  color: #606060;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.nav-item img {
  width: 26px;
  height: 26px;
  margin-bottom: 4px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.nav-item span {
  font-size: 0.7rem;
}

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

.nav-item.active img {
  filter: none;
}

.nav-item:hover {
  color: #ff0000;
}

.nav-item:hover img {
  filter: none;
}

.add-button {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ff0000;
  cursor: pointer;
  user-select: none;
  line-height: 1;
}
