/* ============================
   GLOBAL
============================ */
html, body {
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  background: #f8f9fa;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============================
   CONTAINER
============================ */
.arsip-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px;
  background: #fff;
  flex: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.arsip-container h1 {
  margin-bottom: 20px;
  color: #003366;
}

/* ============================
   FORM FILTER
============================ */
.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.filter-form select,
.filter-form input[type="text"],
.filter-form button {
  padding: 10px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.filter-form button {
  background: #007bff;
  color: white;
  border: none;
  cursor: pointer;
}

.filter-form button:hover {
  background: #0056b3;
}

/* ============================
   RESULT COUNT
============================ */
.result-count {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

/* ============================
   BERITA LIST
============================ */
.berita-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.berita-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 16px;
  align-items: center;
}

/* ============================
   THUMBNAIL
============================ */
.thumb-wrapper {
  position: relative;
  width: 140px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #eee;
}

.thumb-wrapper img,
.thumb-wrapper video {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.thumb-wrapper video::-webkit-media-controls {
  display: none !important;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 22px;
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 6px 8px;
  border-radius: 50%;
  pointer-events: none;
}

/* ============================
   BERITA INFO
============================ */
.berita-info {
  flex: 1;
}

.berita-info .judul {
  font-weight: bold;
  font-size: 16px;
  color: #003366;
  text-decoration: none;
}

.berita-info .judul:hover {
  text-decoration: underline;
}

/* ============================
   PAGINATION
============================ */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
  justify-content: center;
}

.pagination a {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-decoration: none;
  color: #003366;
  background: white;
}

.pagination a:hover {
  background: #e0e0e0;
}

.pagination a.active {
  background-color: #003366;
  color: white;
  border-color: #003366;
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 768px) {
  .arsip-container {
    padding: 16px 12px;
    border-radius: 0;
  }

  .berita-list li {
    flex-direction: row;
    align-items: flex-start;
  }

  .thumb-wrapper {
    width: 100px;
    height: 70px;
  }

  .filter-form {
    flex-direction: column;
    align-items: stretch;
  }
}
