:root {
  --bg-dark: #0a0a1a;
  --bg-medium: #141428;
  --bg-light: #1e1e3a;
  --accent: #ff6b6b;
  --text: #f1f1f1;
  --text-muted: #a0a0a0;
}

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

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background-color: var(--bg-medium);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.logo a {
  font-size: 28px;
  font-weight: bold;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
  text-decoration: none;
}

.search-bar {
  flex-grow: 1;
  margin: 0 20px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 12px 40px 12px 15px;
  border: none;
  border-radius: 25px;
  background-color: var(--bg-light);
  color: var(--text);
  font-size: 16px;
}

.search-bar button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 20px;
}

nav ul {
  display: flex;
  list-style-type: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--accent);
}

main {
  display: flex;
  margin-top: 20px;
}

.sidebar-left {
  width: 230px;
  background-color: var(--bg-medium);
  padding: 20px;
  border-radius: 10px;
  margin-right: 20px;
}

.sidebar-category {
  margin-bottom: 20px;
}

.sidebar-category h3 {
  color: var(--accent);
  margin-bottom: 10px;
}

.sidebar-category ul {
  list-style-type: none;
}

.sidebar-category ul li {
  margin-bottom: 5px;
}

.sidebar-category ul li a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.sidebar-category ul li a:hover {
  color: var(--accent);
}

.sidebar-friends {
  margin-bottom: 20px;
}

.sidebar-friends h3 {
  color: var(--accent);
  margin-bottom: 10px;
}

.sidebar-friends ul {
  list-style-type: none;
}

.sidebar-friends ul li {
  margin-bottom: 5px;
}

.sidebar-friends ul li a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.sidebar-friends ul li a:hover {
  color: var(--accent);
}

.content {
  flex-grow: 1;
}

.video-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
  position: relative;
}

.video-info {
  margin-top: 20px;
}

.video-title {
  font-size: 24px;
  margin-bottom: 10px;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.video-actions {
  display: flex;
  gap: 20px;
}

.action-button {
  background-color: var(--bg-light);
  color: var(--text);
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.action-button:hover {
  background-color: var(--accent);
}

.video-description {
  background-color: var(--bg-medium);
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
  position: relative;
}

.video-description p {
  margin: 0;
  line-height: 1.6;
}

.video-description.collapsed p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.description-toggle {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 14px;
  margin-top: 10px;
  padding: 5px 0;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.description-toggle:hover {
  color: #ff8c8c;
}

/* Mobile ads containers */
.mobile-ad-container {
  display: none;
  background-color: var(--bg-medium);
  padding: 15px;
  border-radius: 10px;
  margin: 20px 0;
  text-align: center;
}

.mobile-ad-container .ad-image {
  width: 100%;
  height: 200px;
  background-color: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-style: italic;
  border-radius: 8px;
}

.sidebar-right {
  width: 320px;
  margin-left: 10px;
}

.ad-container {
  background-color: var(--bg-medium);
  padding: 2px;
  border-radius: 10px;
  margin-bottom: 20px;
  text-align: center;
}

.ad-container h3 {
  color: var(--accent);
  margin-bottom: 10px;
}

.ad-image {
  width: 310px;
  height: 250px;
  background-color: var(--bg-light);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-style: italic;
}

.ad-cta {
  display: inline-block;
  background-color: var(--accent);
  color: var(--bg-dark);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.ad-cta:hover {
  background-color: #ff8c8c;
}

footer {
  background-color: var(--bg-medium);
  padding: 40px 0 20px;
  margin-top: 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--accent);
}

.footer-nav ul {
  display: flex;
  list-style-type: none;
}

.footer-nav ul li {
  margin-right: 20px;
}

.footer-nav ul li a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-icon {
  font-size: 24px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-icon:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  border-top: 1px solid var(--bg-light);
  padding-top: 20px;
}

.content-description {
  background-color: var(--bg-medium);
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  line-height: 1.8;
}

.content-description h3 {
  color: var(--accent);
  margin-bottom: 15px;
  font-size: 22px;
}

.content-description p {
  margin-bottom: 15px;
}

.content-description a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.content-description a:hover {
  color: #ff8c8c;
  border-bottom-color: #ff8c8c;
  text-shadow: 0 0 8px rgba(255, 107, 107, 0.3);
}

.bottom-content {
  background-color: var(--bg-light);
  margin-top: 30px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.video-card {
  background-color: var(--bg-medium);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.video-thumbnail {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--text);
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.video-info {
  padding: 15px;
}

.video-title {
  font-size: 18px;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-meta {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0;
  padding: 15px;
  background: var(--bg-medium);
  border-radius: 10px;
}

.pagination a {
  text-decoration: none;
}

.pagination button {
  min-width: 40px;
  height: 40px;
  background-color: var(--bg-light);
  color: var(--text);
  border: none;
  padding: 8px 16px;
  margin: 0;
  cursor: pointer;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.pagination button:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.pagination button[style*="background-color: var(--accent)"] {
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

@media (max-width: 768px) {
  .pagination {
    padding: 10px;
  }
  
  .pagination button {
    min-width: 35px;
    height: 35px;
    padding: 6px 12px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .pagination {
    gap: 5px;
  }
  
  .pagination button {
    min-width: 30px;
    height: 30px;
    padding: 4px 8px;
    font-size: 12px;
  }
}

/* Unique feature: Age Verification Overlay */
.age-verification {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.age-verification-content {
  background-color: var(--bg-medium);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
}

.age-verification h2 {
  color: var(--accent);
  margin-bottom: 20px;
}

.age-verification button {
  background-color: var(--accent);
  color: var(--text);
  border: none;
  padding: 10px 20px;
  margin: 10px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.age-verification button:hover {
  background-color: #ff8c8c;
}



@media (max-width: 1024px) {
  .sidebar {
    width: 200px;
  }
  
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
  }
  
  .search-bar {
    margin: 15px 0;
    width: 100%;
  }
  
  nav ul {
    margin-top: 15px;
  }
  
  main {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
    height: auto;
    position: static;
  }
  
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 1200px) {
  .sidebar-left, .sidebar-right {
    display: none;
  }
  
  main {
    flex-direction: column;
  }
  
  .content {
    width: 100%;
  }
}

/* Mobile ads - Show on tablets and phones */
@media (max-width: 768px) {
  .mobile-ad-container {
    display: block !important;
  }
  
  /* Adjust H1 size for mobile */
  .video-title {
    font-size: 20px !important;
  }
}

/* Ensure mobile ads show on phones */
@media (max-width: 480px) {
  .mobile-ad-container {
    display: block !important;
  }
  
  /* Smaller H1 for phones */
  .video-title {
    font-size: 18px !important;
  }
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav ul {
    flex-direction: column;
    margin-top: 20px;
  }

  .footer-nav ul li {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .footer-social {
    margin-top: 20px;
  }
}
