/* MyFlixer Watch Parties / Watch Room */
.myf-wp-page {
  padding: 32px 0 64px;
}
.myf-wp-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, .65fr);
  gap: 18px;
}
.myf-wp-panel {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: #0d1727;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}
.myf-wp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.myf-wp-top h1 { margin: 0; color: #fff; font-size: 20px; font-weight: 800; }
.myf-wp-top p { margin: 4px 0 0; color: #8fa0b5; font-size: 11px; }
.myf-wp-badges { display: flex; gap: 7px; flex-wrap: wrap; }
.myf-wp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(62,138,250,.12);
  color: #79afff;
  font-size: 10px;
  font-weight: 800;
}
.myf-wp-player { position: relative; padding-bottom: 56.25%; background: #000; }
.myf-wp-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.myf-wp-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 13px 15px; border-top: 1px solid rgba(255,255,255,.07); }
.myf-wp-actions button, .myf-wp-actions a {
  display: inline-flex; align-items: center; gap: 7px; min-height: 37px; padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.09); border-radius: 8px; background: #14233a;
  color: #dce8f8 !important; font-size: 11px; font-weight: 800; text-decoration: none; cursor: pointer;
}
.myf-wp-actions .primary { border-color: #3e8afa; background: #3e8afa; color: #fff !important; }
.myf-wp-actions .danger { margin-left: auto; border-color: rgba(230,80,90,.35); background: rgba(230,80,90,.12); color: #ff9299 !important; }
.myf-wp-status { padding: 0 15px 13px; color: #8fa1b7; font-size: 10px; }
.myf-wp-status.is-error { color: #ff9399; }
.myf-wp-status.is-success { color: #8de0a6; }
.myf-wp-chat { display: flex; flex-direction: column; min-height: 610px; max-height: calc(100vh - 150px); }
.myf-wp-chat-head { padding: 16px 17px; border-bottom: 1px solid rgba(255,255,255,.07); }
.myf-wp-chat-head h2 { margin: 0; color: #fff; font-size: 16px; font-weight: 800; }
.myf-wp-chat-head p { margin: 4px 0 0; color: #7d8ca1; font-size: 10px; }
.myf-wp-messages { flex: 1; overflow: auto; padding: 12px 14px; }
.myf-wp-message { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 9px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.myf-wp-message:last-child { border-bottom: 0; }
.myf-wp-avatar { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg,#2160bc,#3e8afa); color: #fff; font-size: 11px; font-weight: 800; }
.myf-wp-msg-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.myf-wp-msg-head strong { color: #eaf2ff; font-size: 11px; }
.myf-wp-msg-head time { margin-left: auto; color: #65768d; font-size: 9px; }
.myf-wp-role { padding: 2px 5px; border-radius: 999px; background: rgba(62,138,250,.12); color: #79afff; font-size: 8px; font-weight: 800; }
.myf-wp-msg-body { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #bdc9d8; font-size: 11px; line-height: 1.5; }
.myf-wp-msg-delete { margin-top: 4px; padding: 0; border: 0; background: transparent; color: #728299; font-size: 9px; cursor: pointer; }
.myf-wp-msg-delete:hover { color: #ff8e96; }
.myf-wp-chat-empty { padding: 45px 15px; text-align: center; color: #75869c; font-size: 11px; }
.myf-wp-composer { padding: 12px; border-top: 1px solid rgba(255,255,255,.07); }
.myf-wp-composer textarea { width: 100%; min-height: 78px; padding: 10px 11px; resize: vertical; border: 1px solid rgba(255,255,255,.09); border-radius: 9px; background: #08111e; color: #eef5ff; font: inherit; font-size: 11px; outline: 0; }
.myf-wp-composer textarea:focus { border-color: #3e8afa; box-shadow: 0 0 0 3px rgba(62,138,250,.1); }
.myf-wp-composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.myf-wp-composer-foot span { color: #718198; font-size: 9px; }
.myf-wp-composer-foot button { padding: 8px 11px; border: 0; border-radius: 8px; background: #3e8afa; color: #fff; font-size: 10px; font-weight: 800; cursor: pointer; }
.myf-wp-login { padding: 16px; text-align: center; color: #8c9cb1; font-size: 11px; }
.myf-wp-login a { color: #7fb3ff !important; font-weight: 800; }
.myf-wp-ended { padding: 16px; border-radius: 12px; background: rgba(230,80,90,.1); color: #c44952; text-align: center; }

/* Public watch party directory: the site uses a light page background. */
.myf-wp-directory {
  min-height: 430px;
  padding: 34px 15px 72px;
  color: #17233a;
}
.myf-wp-directory-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding: 22px 24px;
  border: 1px solid #e5eaf2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(19,45,83,.06);
}
.myf-wp-directory-head h1 { margin: 0; color: #16243a; font-size: 27px; line-height: 1.2; font-weight: 800; }
.myf-wp-directory-head p { margin: 7px 0 0; color: #77879b; font-size: 13px; line-height: 1.45; }
.myf-wp-directory .myf-wp-badge {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid #dbe7fb;
  background: #eef5ff;
  color: #3e78d5;
  font-size: 10px;
}
.myf-wp-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.myf-wp-card {
  display: flex; gap: 12px; min-width: 0; padding: 12px; border: 1px solid #e4eaf2; border-radius: 13px;
  background: #fff; color: #17233a !important; text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(20,55,96,.05); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.myf-wp-card:hover { transform: translateY(-2px); border-color: #b9d0f4; background: #fff; box-shadow: 0 12px 28px rgba(20,55,96,.10); }
.myf-wp-poster { width: 70px; height: 100px; flex: 0 0 70px; border-radius: 8px; object-fit: cover; background: #edf1f6; }
.myf-wp-card-body { min-width: 0; }
.myf-wp-card h2 { margin: 3px 0 5px; color: #17233a; font-size: 14px; line-height: 1.3; font-weight: 700; }
.myf-wp-card p { margin: 0; color: #7a899c; font-size: 10px; line-height: 1.4; }
.myf-wp-card-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.myf-wp-card-meta span { padding: 4px 6px; border-radius: 6px; background: #eef5ff; color: #3e78d5; font-size: 9px; font-weight: 800; }
.myf-wp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 48px 20px;
  border: 1px dashed #ced8e6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(20,55,96,.04);
  text-align: center;
  color: #7c8ca0;
  font-size: 13px;
}
.myf-wp-empty i { display: block; margin-bottom: 12px; color: #4b82df; font-size: 30px; }

@media (max-width: 991px) {
  .myf-wp-shell { grid-template-columns: 1fr; }
  .myf-wp-chat { min-height: 480px; max-height: none; }
  .myf-wp-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 575px) {
  .myf-wp-page, .myf-wp-directory { padding-top: 16px; }
  .myf-wp-top { align-items: flex-start; flex-direction: column; }
  .myf-wp-actions .danger { margin-left: 0; }
  .myf-wp-directory-head { align-items: flex-start; flex-direction: column; padding: 18px; }
  .myf-wp-directory-head h1 { font-size: 22px; }
  .myf-wp-directory .myf-wp-badge { white-space: normal; line-height: 1.35; }
  .myf-wp-grid { grid-template-columns: 1fr; }
}
