/* === GLOBAL === */
* {
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f9f9f9;
  color: #333;
}

/* === NAVIGATION === */
.navbar {
  background: #fff;
  border-bottom: 1px solid #ddd;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.navbar h1 {
  margin: 0;
  font-size: 1.6rem;
}

.nav-links {
  display: flex;
  align-items: center;
}

.navbar a {
  text-decoration: none;
  color: #333;
  margin-left: 15px;
  font-size: 1rem;
}

@media (max-width: 600px) {
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 10px;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar a {
    margin: 5px 0 0 0;
  }
}

/* === MAIN PAGE LAYOUT === */
.main {
  display: flex;
  flex: 1;
}

.sidebar {
  width: 250px;
  padding: 20px;
  background: #f8f9fa;
  border-right: 1px solid #ccc;
}

.content {
  flex: 1;
  padding: 20px;
  overflow-x: auto;
}

h1, h2 {
  margin-top: 0;
}

select,
input[type="search"] {
  width: 100%;
  padding: 5px;
  margin: 10px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  text-align: left;
  word-wrap: break-word;
  vertical-align: top;
}

table, th, td {
  font-size: 1em;
  color: #333;
  font-family: sans-serif;
  line-height: 1.5;
}

tr:hover {
  background: #f1f1f1;
}

.desc {
  white-space: normal;
  word-wrap: break-word;
  font-size: inherit;
  color: inherit;
  font-family: inherit;
}

.watch-button {
  padding: 5px 10px;
  background-color: #FF9900;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
}

footer {
  background: #f0f0f0;
  padding: 15px 20px;
  text-align: center;
  font-size: 0.9em;
  border-top: 1px solid #ccc;
}

footer a {
  color: #333;
  text-decoration: underline;
  margin: 0 10px;
}

/* === FILTERS === */
.mobile-filters {
  display: none;
}

@media (max-width: 768px) {
  .main {
    flex-direction: column;
  }

  .sidebar {
    display: none;
  }

  .content {
    padding: 10px;
  }

  .desktop-filters {
    display: none;
  }

  .mobile-filters {
    display: block;
    width: 100%;
  }

  .toggle-filters {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px;
    font-size: 1em;
    margin: 10px 0;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
  }

  .filter-group {
    display: none;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 15px;
  }

  .filter-group.show {
    display: block;
  }

  thead {
    display: none;
  }

  table {
    border: 0;
  }

  tr {
    display: block;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    background: #fff;
  }

  td {
    display: block;
    padding: 8px 0;
  }

  td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    color: #333;
    margin-bottom: 2px;
  }

  .watch-button {
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }
}

/* === HOMEPAGE === */
header {
  padding: 30px 20px 10px;
  text-align: center;
}

header p {
  font-size: 1rem;
  color: #555;
  margin: 5px 0 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 40px 20px;
  flex: 1;
}

.card {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}

.card h2 {
  margin-top: 0;
  font-size: 1.4rem;
}

.card p {
  color: #666;
  font-size: 0.95rem;
}
