body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #1f0f0f;;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

img {
  display: block;
  max-width: 100%;
}

.app-container {
  width: 100%;
  background-color: #fedae7;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  overflow: hidden;
}

/* Scrollbar hiding for horizontal scroll */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* CSS for section section:Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  height: 50px; /* Adjusted from 70px total height including padding */
}

.header-left {
  display: flex;
  align-items: center;
  gap: 5px;
}

.icon-back {
  width: 24px;
  height: 24px;
}

.header-title {
  color: #3c363b;
  font-size: 17px;
  font-weight: 500;
  margin-left: 5px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: #3c363b;
}

.icon-action {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* CSS for section section:Filters */
.filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  position: relative;
}

.toggle-group {
  display: flex;
  background: linear-gradient(180deg, #3C363B 40%, #785E67 100%);
  border-radius: 16px;
  padding: 2px;
  gap: 5px;
}

.toggle-btn {
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 14px;
  color: #FEDAE7;
  cursor: pointer;
}

.toggle-btn.active {
  background: linear-gradient(180deg, #ffffff 50%, #FEDADE 100%); /* Approximate from style_18 */
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1);
  font-weight: bold;
  color: #27244b;
}

.search-icon-container {
  width: 20px;
  height: 20px;
  position: absolute;
  top: 15px;
  right: 20px;
}

.icon-search {
  width: 100%;
  height: 100%;
}

/* CSS for section section:Tabs */
.tabs-container {
  background-color: #451f2a;
  display: flex;
  flex-direction: column;
}

.main-tabs {
  display: flex;
  height: 54px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 20px;
}

.tab-item {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  font-size: 16px;
  position: relative;
  cursor: pointer;
  opacity: 0.7;
}

.tab-item.active {
  opacity: 1;
  font-weight: bold;
}

.tab-indicator {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 2px 2px 0 0;
}

.sub-tabs {
  display: flex;
  gap: 10px;
  padding: 10px 20px;
  align-items: center;
}
.sub-box {
  display: flex;
  align-items: center;
  background-color: #1F0F0F;
  width: 100%;
  border-radius: 100px;
  border: 1px solid #785E67;
}

.sub-tab-pill {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  color: #ffffff;
  background-color: transparent;
  border: 0.5px solid transparent;
  cursor: pointer;
  flex: 1;
  text-align: center;
}

.sub-tab-pill.active {
  background-color: #fedade;
  color: #27244b;
  font-weight: bold;
}

/* CSS for section section:WeeklyHistory */
.content-area {
  padding: 20px 0 10px 20px; /* Right padding handled by scroll container */
}

.section-header {
  margin-bottom: 15px;
  padding-right: 20px;
}

.section-title {
  color: #ffffff;
  font-size: 18px;
  margin: 0;
  text-align: center;
  background-color: #451F2A;
  padding: 10px;
  border-radius: 4px;
}

.horizontal-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-right: 20px;
}

.card {
  position: relative;
  flex: 0 0 100px;
  height: 150px;
  border-radius: 4px;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 6px;
  box-sizing: border-box;
}

.card-title {
  color: #ffffff;
  font-size: 12px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-stats {
  display: flex;
  gap: 8px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 3px;
}

.stat img {
  width: 12px;
  height: 12px;
}

.stat span {
  color: #ffffff;
  font-size: 10px;
}

/* CSS for section section:WatchHistory */
.content-area-grid {
  padding: 20px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding-right: 20px;
}

/* Reuse card styles from previous section, ensuring consistency */
.card {
  width: 100%; /* Fill grid cell */
  height: 150px;
}

/* CSS for section section:BottomNav */
.bottom-nav-container {
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 100;
}

.bottom-nav {
  background-color: rgba(46, 15, 28, 0.95);
  backdrop-filter: blur(4px);
  border-top: 1px solid #785e67;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 70px;
}

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

.nav-icon {
  width: 24px;
  height: 24px;
}

.nav-label {
  font-size: 12px;
  color: #ab8990;
}

.nav-item.active .nav-label {
  color: #ffffff;
  font-weight: bold;
}