* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Roboto', -apple-system, sans-serif;
  background: #0f0f0f; color: #f1f1f1;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: inherit; }

header {
  background: #181818;
  border-bottom: 1px solid #3f3f3f;
  padding: 10px 24px;
  display: flex; align-items: center; gap: 24px;
  position: sticky; top: 0; z-index: 50;
}
header h1 {
  font-size: 22px; font-weight: 800; color: #ff0000;
  cursor: pointer; white-space: nowrap; letter-spacing: 0.5px;
}
.search-wrap { flex: 1; display: flex; justify-content: center; }
#searchInput {
  width: 100%; max-width: 640px;
  background: #121212; border: 1px solid #3f3f3f;
  color: #f1f1f1; padding: 10px 16px;
  border-radius: 20px; font-size: 14px; font-family: inherit;
  transition: border-color .15s;
}
#searchInput:focus { outline: none; border-color: #ff0000; }
.header-link {
  color: #aaa; text-decoration: none; font-size: 14px;
  padding: 6px 12px; border-radius: 6px;
  transition: background .15s, color .15s; white-space: nowrap;
}
.header-link:hover { background: #3f3f3f; color: #fff; }

.admin-banner {
  background: #272727; border-bottom: 1px solid #3f3f3f;
  padding: 10px 24px;
  display: flex; align-items: center; gap: 16px;
  font-size: 14px; color: #f1f1f1;
}
.admin-banner span { flex: 1; }
.admin-banner .banner-actions { display: flex; gap: 8px; }
.admin-banner button {
  background: #3f3f3f; color: #f1f1f1; border: none;
  padding: 6px 14px; border-radius: 6px; cursor: pointer;
  font-size: 13px; font-family: inherit;
}
.admin-banner button:hover { background: #555; }
.admin-banner button.primary { background: #ff0000; }
.admin-banner button.primary:hover { background: #cc0000; }

.layout { display: grid; grid-template-columns: 240px 1fr; flex: 1; min-height: 0; position: relative; }

.mobile-filter-toggle {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #181818;
  border-top: 1px solid #3f3f3f;
  padding: 14px 20px;
  color: #f1f1f1;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  z-index: 40;
  align-items: center;
  justify-content: space-between;
  transition: none;
}
.mobile-filter-toggle .toggle-icon {
  font-size: 18px;
  transition: transform 0.3s ease;
}
.mobile-filter-toggle.open .toggle-icon {
  transform: rotate(180deg);
}

.mobile-grid-controls {
  display: flex;
  position: fixed;
  bottom: 20px;
  right: 20px;
  flex-direction: column;
  gap: 8px;
  z-index: 35;
}

.grid-control-btn {
  width: 40px;
  height: 40px;
  background: #181818;
  border: 1px solid #3f3f3f;
  border-radius: 50%;
  color: #f1f1f1;
  font-size: 20px;
  font-weight: 300;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: opacity 0.2s, background 0.15s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.grid-control-btn:hover {
  opacity: 1;
  background: #272727;
}
.grid-control-btn:active {
  transform: scale(0.95);
}

.sidebar {
  background: #181818; border-right: 1px solid #3f3f3f;
  position: sticky; top: 60px;
  height: calc(100vh - 60px);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.sidebar-content {
  padding: 16px;
  display: flex; flex-direction: column;
  min-height: 0;
  flex: 1;
}
.sidebar h3 {
  font-size: 12px; color: #aaa; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 8px;
}
.sidebar h3.section { margin-top: 4px; }

.sidebar-close-arrow {
  display: none;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: #272727;
  border: 1px solid #3f3f3f;
  border-radius: 12px;
  width: 48px;
  height: 32px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #aaa;
  z-index: 10;
  transition: background 0.15s, color 0.15s;
}
.sidebar-close-arrow:hover {
  background: #3f3f3f;
  color: #fff;
}

.date-picker-wrap { margin-bottom: 14px; display: flex; gap: 6px; }
.date-picker-wrap input[type="month"] {
  flex: 1;
  background: #121212; border: 1px solid #3f3f3f;
  color: #f1f1f1; padding: 6px 10px; border-radius: 6px;
  font-size: 13px; font-family: inherit; color-scheme: dark;
}
.date-picker-wrap input[type="month"]:focus { outline: none; border-color: #ff0000; }
.date-picker-wrap button {
  background: transparent; color: #888;
  border: 1px solid #3f3f3f;
  padding: 0 10px; border-radius: 6px;
  cursor: pointer; font-size: 14px; font-family: inherit; line-height: 1;
}
.date-picker-wrap button:hover { background: #3f3f3f; color: #ff5555; }

.type-select {
  width: 100%;
  background: #121212; border: 1px solid #3f3f3f;
  color: #f1f1f1; padding: 6px 28px 6px 10px;
  border-radius: 6px; font-size: 13px; font-family: inherit;
  margin-bottom: 14px;
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='%23aaaaaa' d='M2 4l4 4 4-4z'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center;
  cursor: pointer;
}
.type-select:focus { outline: none; border-color: #ff0000; }

.tag-filter {
  width: 100%;
  background: #121212; border: 1px solid #3f3f3f;
  color: #f1f1f1; padding: 6px 10px; border-radius: 6px;
  font-size: 13px; margin-bottom: 10px;
}
.tag-filter:focus { outline: none; border-color: #ff0000; }

.tag-list {
  flex: 1; min-height: 0; overflow-y: auto;
  display: flex; flex-wrap: wrap; gap: 6px;
  align-content: flex-start;
  padding-right: 4px; margin-bottom: 12px;
}
.tag-list::-webkit-scrollbar { width: 6px; }
.tag-list::-webkit-scrollbar-thumb { background: #3f3f3f; border-radius: 3px; }
.tag-list::-webkit-scrollbar-track { background: transparent; }

.tag-list .tag-item {
  background: #ff0000; color: #fff;
  padding: 5px 12px; border-radius: 20px;
  font-size: 12px; cursor: pointer;
  transition: background .12s; white-space: nowrap;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  height: fit-content;
}
.tag-list .tag-item:hover { background: #cc0000; }
.tag-list .tag-item.active {
  background: #fff; color: #ff0000; box-shadow: 0 0 0 2px #ff0000;
}
.tag-list .empty {
  color: #666; font-style: italic;
  padding: 6px 10px; font-size: 12px; width: 100%;
}

.sidebar-divider { border: none; border-top: 1px solid #3f3f3f; margin: 0 0 12px 0; }
.clear-tags-btn, .clear-cookie-btn {
  width: 100%; background: transparent; color: #aaa;
  border: 1px solid #3f3f3f; padding: 8px 10px; border-radius: 6px;
  font-size: 12px; font-family: inherit; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  flex-shrink: 0;
}
.clear-tags-btn:hover, .clear-cookie-btn:hover {
  background: #3f3f3f; color: #ff5555; border-color: #ff5555;
}
.clear-tags-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.clear-tags-btn:disabled:hover {
  background: transparent; color: #aaa; border-color: #3f3f3f;
}
.clear-cookie-btn { margin-top: 6px; }

main { padding: 24px; overflow-y: auto; }

.grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px 16px;
}

.grid[data-cols="1"] { grid-template-columns: repeat(1, 1fr); }
.grid[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
.grid[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.grid[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }
.grid[data-cols="5"] { grid-template-columns: repeat(5, 1fr); }
.grid[data-cols="6"] { grid-template-columns: repeat(6, 1fr); }
.grid[data-cols="7"] { grid-template-columns: repeat(7, 1fr); }
.grid[data-cols="8"] { grid-template-columns: repeat(8, 1fr); }
.grid[data-cols="9"] { grid-template-columns: repeat(9, 1fr); }
.grid[data-cols="10"] { grid-template-columns: repeat(10, 1fr); }
.grid[data-cols="11"] { grid-template-columns: repeat(11, 1fr); }
.grid[data-cols="12"] { grid-template-columns: repeat(12, 1fr); }
.grid[data-cols="13"] { grid-template-columns: repeat(13, 1fr); }
.grid[data-cols="14"] { grid-template-columns: repeat(14, 1fr); }
.grid[data-cols="15"] { grid-template-columns: repeat(15, 1fr); }

@media (max-width: 1280px) { .grid:not([data-cols]) { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .grid:not([data-cols]) { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .grid:not([data-cols]) { grid-template-columns: 1fr; } }

.cell { cursor: pointer; display: flex; flex-direction: column; gap: 8px; }
.cell .thumb {
  aspect-ratio: 1 / 1; background: #1a1a1a; border-radius: 12px;
  overflow: hidden; display: flex;
  align-items: center; justify-content: center;
  position: relative;
}
.cell .thumb img, .cell .thumb video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.cell .thumb .badge {
  position: absolute; bottom: 6px; right: 6px;
  background: rgba(0,0,0,.8); color: #fff;
  font-size: 11px; padding: 2px 6px; border-radius: 4px;
}
.cell .meta { padding: 0 4px; }
.cell .meta .name {
  font-size: 14px; font-weight: 500; color: #f1f1f1;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.cell .meta .sub { font-size: 12px; color: #aaa; margin-top: 2px; }

.empty-state {
  text-align: center; color: #666;
  padding: 80px 20px; font-size: 14px;
}

.detail { display: grid; grid-template-columns: 360px 1fr; gap: 24px; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } }
.detail .info {
  background: #272727; border: 1px solid #3f3f3f;
  border-radius: 12px; padding: 20px; height: fit-content;
}
.detail .info h2 {
  font-size: 22px; font-weight: 500; margin-bottom: 4px;
  word-break: break-word;
}
.detail .info .date { color: #aaa; font-size: 13px; margin-bottom: 16px; }
.detail .info .field-block { margin-bottom: 16px; }
.detail .info .field-label {
  font-size: 11px; text-transform: uppercase; color: #aaa;
  letter-spacing: 1px; margin-bottom: 6px;
}
.detail .info .tag-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.detail .info .tag-chips .chip {
  background: #ff0000; color: #fff;
  padding: 4px 10px; border-radius: 20px; font-size: 12px;
  cursor: pointer; transition: background .12s;
}
.detail .info .tag-chips .chip:hover { background: #cc0000; }
.detail .info .urls a {
  display: block; color: #66aaff; text-decoration: none;
  font-size: 13px; padding: 4px 0; word-break: break-all;
}
.detail .info .urls a:hover { text-decoration: underline; }
.detail .info .notes {
  white-space: pre-wrap; background: #121212;
  border: 1px solid #3f3f3f; border-radius: 6px;
  padding: 10px; font-size: 13px; color: #ddd;
  max-height: 300px; overflow-y: auto;
}
.detail .info .actions {
  display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap;
}
.detail .info .actions button {
  flex: 1;
  background: #3f3f3f; color: #f1f1f1; border: none;
  padding: 10px; border-radius: 6px; cursor: pointer;
  font-size: 13px; transition: background .15s;
}
.detail .info .actions button:hover { background: #555; }
.detail .info .actions button.danger { background: #aa0000; }
.detail .info .actions button.danger:hover { background: #ff0000; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 1100px) { .gallery { grid-template-columns: 1fr; } }
.gallery .item {
  background: #1a1a1a; border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column;
}
.gallery .item .media {
  background: #000; display: flex;
  align-items: center; justify-content: center; min-height: 200px;
}
.gallery .item .media img,
.gallery .item .media video {
  max-width: 100%; max-height: 600px;
  width: auto; height: auto; display: block;
}
.gallery .item .item-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; border-top: 1px solid #2a2a2a;
}
.gallery .item .item-bar .filename {
  font-size: 12px; color: #aaa;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1;
}
.gallery .item .item-bar button {
  background: transparent; color: #aaa; border: none;
  font-size: 12px; cursor: pointer;
  padding: 4px 10px; border-radius: 4px;
}
.gallery .item .item-bar button:hover { background: #3f3f3f; color: #fff; }

.back-link {
  display: inline-block; color: #aaa;
  text-decoration: none; font-size: 13px; margin-bottom: 16px;
}
.back-link:hover { color: #fff; }

/* ========== EDIT MODE ========== */
.detail.edit-mode {
  grid-template-columns: 400px 1fr;
}
@media (max-width: 900px) {
  .detail.edit-mode { grid-template-columns: 1fr; }
}

.edit-info {
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.edit-info .field {
  margin-bottom: 16px;
}

.edit-info label {
  display: block;
  font-size: 11px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.edit-info input[type="text"],
.edit-info textarea {
  width: 100%;
  background: #121212;
  border: 1px solid #3f3f3f;
  color: #f1f1f1;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .15s;
}

.edit-info input[type="text"]:focus,
.edit-info textarea:focus {
  outline: none;
  border-color: #ff0000;
}

.edit-info textarea {
  resize: vertical;
  min-height: 100px;
}

.edit-info .selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.edit-info .chip {
  background: #ff0000;
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.edit-info .chip .x {
  cursor: pointer;
  font-weight: bold;
  opacity: .8;
}

.edit-info .chip .x:hover {
  opacity: 1;
}

.tag-input-wrapper {
  position: relative;
}

.tag-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #181818;
  border: 1px solid #3f3f3f;
  border-radius: 6px;
  margin-top: 4px;
  max-height: 240px;
  overflow-y: auto;
  z-index: 10;
  display: none;
}

.tag-suggestions.visible {
  display: block;
}

.tag-suggestion {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
}

.tag-suggestion:hover,
.tag-suggestion.create {
  background: #3f3f3f;
}

.tag-suggestion.create {
  color: #ff5555;
}

.tag-suggestion.empty {
  color: #666;
  cursor: default;
  font-style: italic;
}

.tag-suggestion.empty:hover {
  background: transparent;
}

.url-row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.url-row input {
  flex: 1;
}

button.subtle {
  background: transparent;
  color: #888;
  padding: 6px 10px;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button.subtle:hover {
  background: #3f3f3f;
  color: #ff5555;
}

button.primary {
  background: #ff0000;
  width: 100%;
  padding: 14px;
  font-weight: 500;
  margin-top: 12px;
}

button.primary:hover {
  background: #cc0000;
}

button.primary:disabled {
  background: #555;
  cursor: not-allowed;
}

.date-hint {
  font-size: 11px;
  color: #666;
  margin-top: 4px;
}

.error-msg {
  color: #ff5555;
  font-size: 12px;
  margin-top: 4px;
}

input.invalid {
  border-color: #ff5555 !important;
}

.status-msg {
  margin-top: 10px;
  font-size: 13px;
  text-align: center;
  min-height: 18px;
}

.status-msg.ok {
  color: #66ff88;
}

.status-msg.err {
  color: #ff5555;
}

.edit-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.edit-gallery h3 {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 12px;
}

#editExistingMedia,
#editNewMediaList {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.edit-media-card {
  background: #1a1a1a;
  border: 1px solid #3f3f3f;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  gap: 12px;
  padding: 12px;
}

.edit-media-preview {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edit-media-preview img,
.edit-media-preview video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.edit-media-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.edit-media-info .filename {
  font-size: 13px;
  color: #f1f1f1;
  word-break: break-all;
}

.edit-media-info button {
  align-self: flex-start;
  padding: 8px 14px;
  font-size: 12px;
}

.media-zone {
  background: #121212;
  border: 2px dashed #3f3f3f;
  border-radius: 8px;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .15s;
}

.media-zone:hover,
.media-zone.drag {
  border-color: #ff0000;
}

.media-placeholder {
  color: #666;
  text-align: center;
  padding: 20px;
}

.media-placeholder .big {
  font-size: 48px;
  margin-bottom: 12px;
}

/* ========== FULLSCREEN MODAL ========== */
.fullscreen-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.fullscreen-modal.visible {
  display: flex;
}

.fullscreen-close {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(39, 39, 39, 0.9);
  color: #f1f1f1;
  border: 1px solid #3f3f3f;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: background .15s;
  z-index: 10;
}

.fullscreen-close:hover {
  background: #3f3f3f;
}

.fullscreen-content {
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-content img,
.fullscreen-content video {
  max-width: 100%;
  max-height: 95vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.modal-bg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7); display: none;
  align-items: center; justify-content: center; z-index: 100;
}
.modal-bg.visible { display: flex; }
.modal {
  background: #272727; border-radius: 12px; padding: 24px;
  max-width: 400px; width: 90%;
}
.modal p { margin-bottom: 16px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; }
.modal-actions button {
  background: #3f3f3f; color: #f1f1f1; border: none;
  padding: 10px 20px; border-radius: 6px; cursor: pointer;
  font-size: 14px;
}
.modal-actions button:hover { background: #555; }
.modal-actions button.primary { background: #aa0000; }
.modal-actions button.primary:hover { background: #ff0000; }

.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #272727; color: #f1f1f1;
  padding: 10px 16px; border-radius: 8px;
  border: 1px solid #3f3f3f;
  font-size: 13px; opacity: 0;
  transition: opacity .2s, transform .2s;
  pointer-events: none; z-index: 200;
}
.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
  
  header {
    padding: 10px 16px;
    gap: 12px;
  }
  
  .search-wrap {
    flex: 1;
    max-width: none;
  }
  
  #searchInput {
    font-size: 16px;
    padding: 10px 14px;
    max-width: none;
  }
  
  .admin-banner {
    padding: 12px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .admin-banner .banner-actions {
    justify-content: stretch;
  }
  
  .admin-banner button {
    flex: 1;
    padding: 10px;
  }
  
  .layout {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    height: auto;
    max-height: calc(100vh - 120px);
    border-right: none;
    border-top: 1px solid #3f3f3f;
    z-index: 45;
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }
  
  .sidebar.open {
    transform: translateY(0);
  }
  
  .sidebar.open .sidebar-close-arrow {
    display: flex;
  }
  
  .sidebar-content {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    padding-top: 52px;
    -webkit-overflow-scrolling: touch;
  }
  
  .mobile-filter-toggle {
    display: flex;
  }
  
  .mobile-grid-controls {
    display: none !important;
  }
  
  main {
    padding: 16px;
    padding-bottom: 80px;
  }
  
  .grid {
    gap: 16px;
  }
  
  .cell .meta .name {
    font-size: 15px;
  }
  
  .cell .meta .sub {
    font-size: 11px;
  }
  
  .detail {
    gap: 16px;
  }
  
  .detail .info {
    padding: 16px;
  }
  
  .detail .info h2 {
    font-size: 20px;
  }
  
  .detail .info .actions {
    flex-direction: column;
  }
  
  .detail .info .actions button {
    width: 100%;
  }
  
  .gallery {
    gap: 12px;
  }
  
  .gallery .item .item-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  
  .gallery .item .item-bar .filename {
    white-space: normal;
    word-break: break-all;
  }
  
  .gallery .item .item-bar button {
    width: 100%;
    padding: 10px;
  }
  
  .toast {
    bottom: 80px;
  }
  
  /* Edit mode mobile */
  .detail.edit-mode {
    grid-template-columns: 1fr;
  }
  
  .edit-info {
    max-height: none;
  }
  
  .edit-media-card {
    flex-direction: column;
  }
  
  .edit-media-preview {
    width: 100%;
    height: 200px;
  }
  
  .edit-media-info button {
    width: 100%;
  }
  
  .fullscreen-close {
    top: 10px;
    left: 10px;
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .fullscreen-content {
    padding: 60px 10px 10px;
  }
}

@media (max-width: 480px) {
  #searchInput {
    font-size: 16px;
    padding: 9px 12px;
  }
  
  main {
    padding: 12px;
    padding-bottom: 80px;
  }
  
  .detail .info h2 {
    font-size: 18px;
  }
  
  .edit-media-preview {
    height: 150px;
  }
}
