
.view-home .menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 1.5rem;
  width: 100%;
  max-width: 2400px;
  margin: auto;
  padding: 2rem;
}

.view-home .tile {
  background: var(--panel-bg, #1d1d1f);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.view-home .tile:hover,
.view-home .tile:focus-visible {
  outline: none;
  transform: scale(1.03);
  box-shadow: 0 0 0 2px var(--brand, #7a5cff);
}


.tile-large {
  min-height: 320px !important; 
}

.tile-small {
  height: 150px !important; 
}

.tile-icon {
  width: 64px;
  height: auto;
  object-fit: contain;
  display: block;
}
.tv-tile-icon {
  width: 68%;          
  height: auto;        
  object-fit: contain; 
  display: block;
}
.tile .title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

.svg-white {
  filter: brightness(0) invert(1);
}

.modal-backdrop[hidden],
.modal[hidden] { display: none; }

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(1px);
  z-index: 9998;
}

.modal {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  z-index: 9999;
}

.modal__card {
  width: min(520px, 92vw);
  background: var(--bg);
  color: var(--txt, #fff);
  border-radius: calc(var(--radius, 12px) + 2px);
  box-shadow: 0 12px 45px rgba(0,0,0,0.35);
  padding: 20px 18px;
  outline: none;
}

.modal__title {
  margin: 0 0 8px 0;
  font-size: clamp(18px, 1.2vw, 22px);
  font-weight: 800;
}

.modal__msg {
  margin: 0 0 16px 0;
  opacity: .9;
}

.modal__actions {
  display: flex; gap: 10px; justify-content: flex-end;
}

.btn {
  padding: 10px 14px;
  background: var(--panel-bg, rgba(255,255,255,0.06));
  border: 1px solid var(--panel-border, rgba(255,255,255,0.12));
  border-radius: 10px;
  font-weight: 700;
}
.btn-primary {
  background: var(--brand, #7a5cff);
  border-color: transparent;
  color: white;
}

.modal .btn:focus-visible {
  outline: 2px solid var(--brand, #7a5cff);
  outline-offset: 2px;
  border-radius: 12px;
}

body.modal-open .view-tv-list {
  pointer-events: none;
  user-select: none;
}
