.rooms-page {
  padding: 48px 0 24px;
  min-height: 62vh;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.page-head-text h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.page-head-text p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14.5px;
}

.list-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  max-width: 360px;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0d0d10;
  color: var(--muted-2);
  transition: border-color var(--fast), box-shadow var(--fast);
}

.search:focus-within {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 14.5px;
  outline: none;
}

.search input::placeholder {
  color: var(--muted-2);
}

.search input::-webkit-search-cancel-button {
  filter: invert(0.6);
}

.rooms-status {
  min-height: 20px;
  margin-bottom: 10px;
  color: var(--muted-2);
  font-size: 12.5px;
}

.rooms-status.is-error {
  color: #ff8f8b;
}

.room-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.room-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color var(--fast), background-color var(--fast);
  animation: fade-in 200ms var(--ease);
}

.room-row:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.room-row-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.room-row-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.room-row-title h2 {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-slug {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-row-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.room-row-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.room-row-meta .icon {
  color: var(--muted-2);
}

.room-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.skeleton-row {
  height: 76px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: linear-gradient(100deg, var(--surface) 20%, var(--surface-3) 45%, var(--surface) 70%);
  background-size: 220% 100%;
  animation: skeleton 1.4s var(--ease) infinite;
}

.list-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 56px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  text-align: center;
}

.list-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
}

.list-empty h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.list-empty p {
  max-width: 40ch;
  color: var(--muted);
  font-size: 14px;
}

.list-empty .btn {
  margin-top: 6px;
}

.rooms-more {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.rooms-more.hidden {
  display: none;
}

@keyframes skeleton {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -40% 0;
  }
}

@media (max-width: 720px) {
  .rooms-page {
    padding-top: 28px;
  }

  .page-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
  }

  .page-head-actions,
  .page-head-actions .btn {
    width: 100%;
  }

  .search {
    max-width: none;
  }

  .room-row {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px;
  }

  .room-row-actions {
    width: 100%;
  }

  .room-row-actions .btn {
    flex: 1 1 auto;
  }
}
