/* M3U / M3U8 Playlist Editor & Cleaner — ValSolution Video Tool */
.m3u-page { padding: 28px 16px 56px; background: var(--vs-bg, #f6f8fc); min-height: 75vh; }
.m3u-wrap { max-width: 1180px; margin: 0 auto; display: grid; gap: 18px; }
.m3u-hero { text-align: center; padding: 8px 8px 2px; }
.m3u-badge { display: inline-block; padding: 5px 12px; border-radius: 999px; background: #eef2ff; color: #3730a3; font-size: 12px; font-weight: 700; margin-bottom: 10px; border: 1px solid #c7d2fe; }
.m3u-hero h1 { margin: 0 0 8px; font-size: clamp(26px, 3.6vw, 38px); color: #0f172a; line-height: 1.15; }
.m3u-hero h1 span { color: var(--vs-primary, #4338ca); }
.m3u-hero p { margin: 0 auto; max-width: 740px; color: #475569; font-size: 15.5px; line-height: 1.55; }

.m3u-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 18px 20px; box-shadow: 0 8px 24px rgba(15, 23, 42, .05); }
.m3u-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.m3u-stat { padding: 12px 14px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0; text-align: center; }
.m3u-stat strong { display: block; font-size: 22px; color: #0f172a; line-height: 1.1; }
.m3u-stat span { font-size: 12px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .04em; }
.m3u-stat.is-warn strong { color: #b45309; }

.m3u-drop { border: 2px dashed #cbd5e1; border-radius: 12px; padding: 12px 14px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; background: #f8fafc; margin-bottom: 12px; }
.m3u-drop.is-drag { border-color: #4338ca; background: #eef2ff; }
.m3u-textarea { width: 100%; min-height: 130px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 1.5; box-sizing: border-box; resize: vertical; }

.m3u-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-top: 12px; }
.m3u-btn-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.m3u-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 13px; border-radius: 9px; border: 1px solid #cbd5e1; background: #fff; color: #0f172a; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: .15s; }
.m3u-btn:hover { border-color: #6366f1; background: #f8faff; }
.m3u-btn-primary { background: #4338ca; border-color: #4338ca; color: #fff; }
.m3u-btn-primary:hover { background: #3730a3; }
.m3u-btn-accent { background: #0f766e; border-color: #0f766e; color: #fff; }
.m3u-btn-accent:hover { background: #0d5e58; }
.m3u-btn-danger { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.m3u-btn-danger:hover { background: #fee2e2; }
.m3u-btn-sm { padding: 5px 9px; font-size: 12px; border-radius: 7px; }

.m3u-status { margin-top: 10px; padding: 9px 13px; border-radius: 10px; font-size: 13px; font-weight: 700; background: #f1f5f9; color: #334155; }
.m3u-status.is-ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.m3u-status.is-warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

.m3u-filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.m3u-input, .m3u-select { padding: 8px 11px; border: 1px solid #cbd5e1; border-radius: 9px; background: #fff; color: #0f172a; font: inherit; font-size: 13px; }
.m3u-input-grow { flex: 1; min-width: 200px; }

.m3u-table-wrap { overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 12px; max-height: 520px; overflow-y: auto; }
.m3u-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 780px; }
.m3u-table th { position: sticky; top: 0; background: #f8fafc; color: #475569; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; text-align: left; padding: 10px 8px; border-bottom: 1px solid #e2e8f0; z-index: 2; }
.m3u-table td { padding: 6px 8px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.m3u-table tr.is-dup { background: #fffbeb; }
.m3u-table tr.is-bad { background: #fef2f2; }
.m3u-cell-inp { width: 100%; padding: 6px 8px; border: 1px solid #e2e8f0; border-radius: 7px; font: inherit; font-size: 12.5px; color: #0f172a; background: #fff; box-sizing: border-box; }
.m3u-cell-inp:focus { border-color: #6366f1; outline: none; }
.m3u-logo-thumb { width: 28px; height: 28px; border-radius: 6px; object-fit: contain; background: #f1f5f9; border: 1px solid #e2e8f0; }

.m3u-guide h2, .m3u-related h2, .m3u-faq h2 { margin: 0 0 10px; font-size: 20px; color: #0f172a; }
.m3u-guide-lead { margin: 0 0 16px; color: #475569; line-height: 1.6; }
.m3u-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.m3u-feat-box { padding: 14px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0; }
.m3u-feat-box h3 { margin: 0 0 6px; font-size: 15px; color: #0f172a; }
.m3u-feat-box p { margin: 0; font-size: 13.5px; color: #475569; line-height: 1.5; }
.m3u-howto-heading { margin-top: 8px; }
.m3u-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.m3u-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0; }
.m3u-step-num { width: 32px; height: 32px; border-radius: 999px; background: #4338ca; color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.m3u-steps strong { display: block; color: #0f172a; margin-bottom: 3px; }
.m3u-steps p { margin: 0; font-size: 13.5px; color: #475569; }

.m3u-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.m3u-related-grid a { display: block; padding: 12px 14px; border-radius: 12px; border: 1px solid #e2e8f0; background: #f8fafc; text-decoration: none; transition: .15s; }
.m3u-related-grid a:hover { border-color: #6366f1; background: #eef2ff; }
.m3u-related-grid strong { display: block; color: #0f172a; font-size: 14px; margin-bottom: 3px; }
.m3u-related-grid span { display: block; color: #64748b; font-size: 12.5px; }

.m3u-faq-list { display: grid; gap: 8px; }
.m3u-faq-list details { border: 1px solid #e2e8f0; border-radius: 11px; padding: 12px 14px; background: #f8fafc; }
.m3u-faq-list summary { cursor: pointer; font-weight: 700; color: #0f172a; font-size: 14.5px; }
.m3u-faq-list p { margin: 8px 0 0; color: #475569; font-size: 13.5px; line-height: 1.55; }

@media (max-width: 820px) {
  .m3u-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m3u-feature-grid, .m3u-related-grid { grid-template-columns: 1fr; }
}
