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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2vw;
}

/* Loading Screen */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.loader {
  width: 50px;
  aspect-ratio: 1.154;
  position: relative;
  background: conic-gradient(
    from 120deg at 50% 64%,
    #0000,
    #ff1919 1deg 120deg,
    #0000 121deg
  );
  animation: l27-0 1.5s infinite cubic-bezier(0.3, 1, 0, 1);
}

.loader:before,
.loader:after {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  transform-origin: 50% 66%;
  animation: l27-1 1.5s infinite;
}

.loader:after {
  --s: -1;
}

@keyframes l27-0 {
  0%,
  30% {
    transform: rotate(0);
  }

  70% {
    transform: rotate(120deg);
  }

  70.01%,
  100% {
    transform: rotate(360deg);
  }
}

@keyframes l27-1 {
  0% {
    transform: rotate(calc(var(--s, 1) * 120deg)) translate(0);
  }

  30%,
  70% {
    transform: rotate(calc(var(--s, 1) * 120deg))
      translate(calc(var(--s, 1) * -5px), 10px);
  }

  100% {
    transform: rotate(calc(var(--s, 1) * 120deg)) translate(0);
  }
}

.loader h3 {
  color: #ff4c60;
  font-size: 1.5rem;
  letter-spacing: 2px;
}

/* Header */
header {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3vw;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 2px;
  color: #ff4c60;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo i {
  font-size: 2rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff4c60;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #ff4c60;
}



/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(120deg, #23234b 60%, #ff4c60 100%);
  text-align: center;
  padding: 8rem 2vw 4rem 2vw;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.animate-text {
  animation: fadeInUp 1s ease-out;
}

.animate-text-delay {
  animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  color: #f1f1f1;
  line-height: 1.6;
}

/* Search Container */
.search-container {
  margin-bottom: 2.5rem;
  position: relative;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 0.5rem;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.search-box:focus-within {
  border-color: #ff4c60;
  box-shadow: 0 8px 32px rgba(255, 76, 96, 0.3);
  transform: translateY(-2px);
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 1rem 1.5rem;
  color: #fff;
  font-size: 1.1rem;
  outline: none;
  font-weight: 500;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.search-box:focus-within input::placeholder {
  color: rgba(255, 76, 96, 0.8);
}



.search-btn {
  background: #ff4c60;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
  font-size: 1.2rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  min-height: 44px;
  min-width: 44px;
}

.search-btn:hover {
  background: #ff6a89;
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(255, 76, 96, 0.4);
}

.search-filters {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.filter-chip:hover,
.filter-chip.active {
  background: #ff4c60;
  border-color: #ff4c60;
  transform: translateY(-1px);
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(35, 35, 75, 0.98);
  border-radius: 15px;
  margin-top: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
  display: none;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-suggestions-grid {
  padding: 0.5rem;
}

.search-suggestion-item {
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid transparent;
}

.search-suggestion-item:hover {
  background: rgba(255, 76, 96, 0.2);
  border-color: rgba(255, 76, 96, 0.3);
  transform: translateX(5px);
}

.search-suggestion-item.selected {
  background: rgba(255, 76, 96, 0.3);
  border-color: #ff4c60;
}

.search-suggestion-item .suggestion-poster {
  flex-shrink: 0;
}

.search-suggestion-item img {
  width: 50px;
  height: 75px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.search-suggestion-item .suggestion-info {
  flex: 1;
  min-width: 0;
}

.search-suggestion-item h4 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggestion-item p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-suggestion-item .suggestion-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.type-badge,
.genre-badge {
  background: rgba(255, 76, 96, 0.3);
  color: #ff4c60;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: capitalize;
}

.genre-badge {
  background: rgba(76, 140, 255, 0.3);
  color: #4c8cff;
}

.no-results {
  padding: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.no-results i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #ff4c60;
}

.search-history {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-history h4 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s ease;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.history-item i {
  color: #ff4c60;
  font-size: 0.8rem;
}

/* Search Results Modal */
.search-results-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.search-results-content {
  background: rgba(35, 35, 75, 0.98);
  border-radius: 20px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-results-header h3 {
  color: #fff;
  font-size: 1.5rem;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: rgba(255, 76, 96, 0.3);
  color: #ff4c60;
}

.search-results-grid {
  padding: 2rem;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-height: 70vh;
}

.search-result-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 1rem;
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.search-result-item img {
  width: 80px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.search-result-item .result-info {
  flex: 1;
}

.search-result-item h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.search-result-item p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.search-result-item .result-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.search-result-item .result-meta span {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  text-transform: capitalize;
}

.search-result-item .download-btn {
  background: #ff4c60;
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.search-result-item .download-btn:hover {
  background: #ff6a89;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 76, 96, 0.4);
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.cta-btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.cta-btn.primary {
  background: #ff4c60;
  color: #fff;
  box-shadow: 0 4px 16px rgba(255,76,96,0.3);
}

.cta-btn.primary:hover {
  background: #ff6a89;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255,76,96,0.4);
}

.cta-btn.secondary {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.cta-btn.secondary:hover {
  background: #fff;
  color: #1a1a2e;
  transform: translateY(-3px) scale(1.05);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: bold;
  color: #ff4c60;
}

.stat-label {
  font-size: 1rem;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Categories Section */
.categories {
  padding: 6rem 0;
  background: rgba(22, 33, 62, 0.95);
}

.categories h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #ff4c60;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.category-card {
  background: linear-gradient(145deg, #23234b, #1a1a2e);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 76, 96, 0.2), transparent);
  transition: left 0.5s ease;
}

.category-card:hover::before {
  left: 100%;
}

.category-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(255, 76, 96, 0.2);
  border-color: #ff4c60;
}

.category-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(145deg, #ff4c60, #ff6a89);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: #fff;
  transition: all 0.3s ease;
}

.category-card:hover .category-icon {
  transform: scale(1.1) rotate(5deg);
}

.category-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.category-card p {
  color: #ccc;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.category-count {
  background: rgba(255, 76, 96, 0.2);
  color: #ff4c60;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Content Showcase Section */
.content-showcase {
  padding: 5rem 0;
  background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
}

.content-showcase h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #ff4c60;
  font-weight: 700;
}

.content-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.filter-btn:hover,
.filter-btn.active {
  background: #ff4c60;
  border-color: #ff4c60;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 76, 96, 0.3);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Enhanced Featured Content Styles */
.content-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 24px rgba(26, 26, 46, 0.10);
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  animation: fadeInCard 0.7s ease;
}
.content-card.fade-in {
  opacity: 0;
  animation: fadeInCard 0.7s ease forwards;
}
@keyframes fadeInCard {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}
.content-card:hover {
  box-shadow: 0 12px 32px rgba(255, 76, 96, 0.18), 0 2px 8px rgba(26, 26, 46, 0.10);
  transform: translateY(-8px) scale(1.02);
}
.content-poster {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}
.content-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(.4,2,.6,1);
}
.content-card:hover .content-poster img {
  transform: scale(1.07);
}
.content-type-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: #ff4c60;
  box-shadow: 0 2px 8px rgba(255, 76, 96, 0.12);
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.badge-movie { background: #ff4c60; }
.badge-anime { background: #4c8cff; }
.badge-series { background: #00c896; }
.badge-default { background: #888; }
.content-new-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #ff2d55;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: 12px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(255, 45, 85, 0.12);
  letter-spacing: 1px;
}
.content-title-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, rgba(26,26,46,0.95) 80%, rgba(26,26,46,0.2) 100%);
  padding: 1.1rem 1.2rem 0.7rem 1.2rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  z-index: 2;
}
.content-title {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.content-rating {
  color: #ffd700;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.content-description-bar {
  background: rgba(26,26,46,0.92);
  padding: 0.7rem 1.2rem 0.7rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-height: 60px;
}
.content-genre {
  color: #ff4c60;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  text-transform: capitalize;
}
.content-desc {
  color: #ccc;
  font-size: 0.92rem;
  line-height: 1.4;
  max-height: 2.8em; /* 2 lines * 1.4 line-height */
  overflow: hidden;
  position: relative;
}

.content-desc::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 1.4em;
  background: linear-gradient(to right, transparent, #16213e 50%);
  pointer-events: none;
}
.content-download-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0 1.1rem 0;
  background: none;
}
.content-btn {
  background: linear-gradient(135deg, #ff4c60, #ff6a89);
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 15px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 76, 96, 0.08);
  position: relative;
  min-width: 140px;
}

.content-btn:hover {
  background: linear-gradient(135deg, #ff6a89, #ff4c60);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 76, 96, 0.3);
}

.content-btn:active {
  transform: translateY(0);
}

.content-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.content-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.content-download-bar .content-btn {
  min-width: 140px;
  font-size: 1rem;
  padding: 0.8rem 1.5rem;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(255, 76, 96, 0.08);
  transition: transform 0.18s, background 0.18s;
  position: relative;
}
.content-download-bar .content-btn:hover:not(:disabled) {
  transform: scale(1.06);
  background: linear-gradient(135deg, #ff4c60, #ff6a89);
  z-index: 1;
}
.content-download-bar .content-btn[title]:hover:after {
  content: attr(title);
  position: absolute;
  left: 50%;
  bottom: 110%;
  transform: translateX(-50%);
  background: #23234b;
  color: #fff;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  opacity: 0.95;
  pointer-events: none;
  z-index: 10;
}
@media (max-width: 768px) {
  .content-card {
    min-height: 420px;
  }
  .content-poster {
    height: 260px;
  }
  .content-title-overlay {
    padding: 0.7rem 0.8rem 0.5rem 0.8rem;
    font-size: 1rem;
  }
  .content-description-bar {
    padding: 0.5rem 0.8rem 0.5rem 0.8rem;
    min-height: 48px;
  }
  .content-download-bar {
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.7rem 0 0.7rem 0;
  }
  .content-download-bar .content-btn {
    min-width: 110px;
    font-size: 0.95rem;
    padding: 0.7rem 1.1rem;
  }
}

.content-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
}

.content-loading .loader {
  display: inline-block;
}

.content-loading p {
  margin-top: 1rem;
  color: #ccc;
}

.load-more-container {
  text-align: center;
}

.load-more-btn {
  background: linear-gradient(135deg, #ff4c60, #ff6a89);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 5px 15px rgba(255, 76, 96, 0.3);
}

.load-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 76, 96, 0.4);
}

.load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Features Section */
.features {
  padding: 6rem 0;
  background: rgba(26, 26, 46, 0.95);
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #ff4c60;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: linear-gradient(145deg, #23234b, #1a1a2e);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff4c60, #ff6a89);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(145deg, #ff4c60, #ff6a89);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
  color: #fff;
  transition: all 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.card h3 {
  color: #ff4c60;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.card p {
  color: #e0e0e0;
  line-height: 1.6;
}

/* About Section */
.about {
  padding: 6rem 0;
  background: rgba(22, 33, 62, 0.95);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-text h2 {
  color: #ff4c60;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 1.1rem;
  color: #e0e0e0;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  backdrop-filter: blur(10px);
}

.telegram-btn {
  background: linear-gradient(135deg, #0088cc, #00a8ff);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 136, 204, 0.3);
}

.telegram-btn:hover {
  background: linear-gradient(135deg, #0077b3, #0099e6);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 136, 204, 0.4);
}

.website-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.website-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.action-btn i {
  font-size: 1.1rem;
}

/* Footer */
footer {
  background: #1a1a2e;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: #ff4c60;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section p {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #ff4c60;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
  
  .nav-links a {
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
  }
  

  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }
  
  .action-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  /* Android-specific search enhancements */
  .search-container {
    max-width: 100%;
    padding: 0 1rem;
  }
  
  .search-box {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.8rem;
    border-radius: 25px;
    min-height: 60px;
  }
  
  .search-box input {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.8rem 1rem;
    min-height: 44px;
  }
  
  .search-btn {
    width: 50px;
    height: 50px;
    min-height: 50px;
    min-width: 50px;
    flex-shrink: 0;
  }
  
  .hero-stats {
    gap: 2rem;
  }
  
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-cards {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  /* Content Cards Mobile Styles */
  .content-filters {
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  
  .content-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .content-poster {
    height: 350px;
  }
  
  .content-description-bar {
    padding: 0.5rem 0.8rem;
  }
  
  .content-title {
    font-size: 1.1rem;
  }
  
  .content-desc {
    font-size: 0.85rem;
  }
  
  .content-btn {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .search-box {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.8rem;
    border-radius: 25px;
    min-height: 60px;
  }
  
  .search-box input {
    border-radius: 0;
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.8rem 1rem;
    min-height: 44px;
  }
  
  .search-btn {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    min-height: 50px;
    min-width: 50px;
    flex-shrink: 0;
  }
  
  .action-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .category-card,
  .card {
    padding: 2rem 1.5rem;
  }
}
