/**
 * Film Room Widget — Styles
 * v1.8.0
 */

/* ── Reset / Container ── */
.fr-widget { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #1a2f4a; line-height: 1.5; -webkit-font-smoothing: antialiased; max-width: 1400px; margin-left: -100px; margin-right: -100px; width: calc(100% + 200px); background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
@media (max-width: 1400px) { .fr-widget { margin-left: 0; margin-right: 0; width: 100%; } }
.fr-widget *, .fr-widget *::before, .fr-widget *::after { box-sizing: border-box; }
.fr-widget strong { font-weight: 700; }

/* ── Header ── */
.fr-header { border-bottom: 1px solid #e5e7eb; background: #f9fafb; padding: 20px 24px; }
.fr-header-left { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.fr-header-icon { width: 48px; height: 48px; background: #1a2f4a; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.fr-heading { font-family: 'Teko', sans-serif; font-size: 28px; font-weight: 700; color: #1a2f4a; text-transform: uppercase; letter-spacing: 0.5px; line-height: 1.1; margin: 0; }
.fr-subheading { font-size: 13px; color: #6b7280; margin: 2px 0 0; }
.fr-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: #6b7280; }
.fr-legend-label { font-weight: 600; color: #9ca3af; }
.fr-legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.fr-legend-text { color: #6b7280; }
.fr-legend-sep { color: #d1d5db; margin: 0 4px; }

/* ── Controls ── */
.fr-controls { border-bottom: 1px solid #e5e7eb; padding: 16px 24px; background: #fff; }
.fr-controls-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.fr-control-label { display: block; font-size: 11px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.fr-pos-group { flex-shrink: 0; }
.fr-pos-tabs { display: flex !important; gap: 8px !important; align-items: center !important; }
.fr-pos-tab { display: inline-flex !important; align-items: center !important; justify-content: center !important; min-width: 44px !important; height: 32px !important; padding: 0 14px !important; border-radius: 6px !important; border: none !important; font-family: 'Inter', sans-serif !important; font-size: 13px !important; font-weight: 700 !important; letter-spacing: 0.5px !important; color: #fff !important; cursor: pointer !important; opacity: 0.3 !important; transition: all 0.2s !important; text-transform: uppercase !important; line-height: 1 !important; box-shadow: none !important; text-decoration: none !important; }
.fr-pos-tab.fr-pos-active { opacity: 1 !important; box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important; }
.fr-pos-tab:hover { opacity: 0.65 !important; }
.fr-pos-tab.fr-pos-active:hover { opacity: 1 !important; }
.fr-search-group { flex: 1; min-width: 200px; }
.fr-search-wrap { position: relative !important; display: block !important; }
.fr-search-icon { position: absolute !important; left: 12px !important; top: 50% !important; transform: translateY(-50%) !important; width: 16px !important; height: 16px !important; color: #9ca3af !important; pointer-events: none !important; z-index: 1 !important; }
.fr-search-input { width: 100% !important; height: 40px !important; padding: 0 14px 0 38px !important; border: 1.5px solid #d1d5db !important; border-radius: 10px !important; font-size: 14px !important; color: #1a2f4a !important; background: #f9fafb !important; outline: none !important; transition: all 0.2s !important; font-family: 'Inter', sans-serif !important; box-shadow: inset 0 1px 2px rgba(0,0,0,0.04) !important; -webkit-appearance: none !important; appearance: none !important; }
.fr-search-input:focus { border-color: #1a2f4a !important; box-shadow: 0 0 0 3px rgba(26,47,74,0.08) !important; background: #fff !important; }
.fr-search-input::placeholder { color: #9ca3af !important; font-size: 14px !important; }
.fr-result-count { margin-top: 10px; font-size: 14px; color: #6b7280; }

/* ── Table ── */
.fr-table-wrap { position: relative; }
.fr-table-header { display: none; }
@media (min-width: 768px) {
  .fr-table-header { display: grid; grid-template-columns: 2fr 1fr 2fr 1fr 1.5fr 2fr; gap: 8px; padding: 10px 24px; background: #1a2f4a; color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
  .fr-col-pos, .fr-col-class, .fr-col-rating { text-align: center; }
  .fr-col-film { text-align: right; }
}

/* ── Rows ── */
.fr-row { border-bottom: 1px solid #f3f4f6; transition: background 0.15s; }
.fr-row:hover { background: #f9fafb; }
.fr-row-expanded { background: #f9fafb; }

/* Mobile row */
.fr-row-mobile { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.fr-row-mobile-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.fr-row-mobile-info { flex: 1; min-width: 0; }

/* Desktop row */
.fr-row-desktop { display: none; }
@media (min-width: 768px) {
  .fr-row-mobile { display: none; }
  .fr-row-desktop { display: grid; grid-template-columns: 2fr 1fr 2fr 1fr 1.5fr 2fr; gap: 8px; align-items: center; padding: 12px 24px; }
  .fr-col { display: flex; align-items: center; }
  .fr-col-pos { justify-content: center; }
  .fr-col-class { justify-content: center; }
  .fr-col-rating { justify-content: center; }
  .fr-col-film { justify-content: flex-end; gap: 10px; }
  .fr-col-college { gap: 10px; }
}

/* Player name */
.fr-player-name { font-weight: 600; color: #1a2f4a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.fr-player-meta { font-size: 12px; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-class-text { font-weight: 600; color: #1a2f4a; font-size: 14px; }
.fr-college-text { color: #6b7280; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* College logo */
.fr-college-logo { width: 28px; height: 28px; border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.fr-college-img { width: 28px; height: 28px; object-fit: contain; }
.fr-college-abbr { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: #f3f4f6; border-radius: 4px; font-size: 9px; font-weight: 700; color: #9ca3af; letter-spacing: 0.2px; }

/* Position badge */
.fr-pos-badge { display: inline-flex; align-items: center; justify-content: center; padding: 2px 10px; border-radius: 5px; font-family: 'Teko', sans-serif; font-size: 13px; font-weight: 700; color: #fff; letter-spacing: 0.3px; text-transform: uppercase; line-height: 1.4; flex-shrink: 0; }

/* Film badge */
.fr-film-badge { display: inline-flex; align-items: center; gap: 4px; background: rgba(178,21,13,0.1); color: #B2150D; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }

/* Chevron */
.fr-chevron { color: #9ca3af; flex-shrink: 0; transition: transform 0.2s; display: inline-flex; }
.fr-chevron-open { transform: rotate(180deg); }

/* Stars */
.fr-stars-display { display: flex; gap: 1px; }
.fr-star-sm { font-size: 14px; color: #d1d5db; line-height: 1; }
.fr-star-sm.fr-star-active { color: #f59e0b; }

/* ── Locked rows ── */
.fr-row-locked { filter: blur(3px); user-select: none; pointer-events: none; opacity: 0.5; }

/* Lock overlay — floats over the blurred teaser rows */
.fr-lock-overlay { position: relative; margin-top: -120px; padding: 60px 24px 40px; text-align: center; background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.85) 30%, rgba(255,255,255,0.97) 50%); z-index: 2; }
.fr-lock-content { max-width: 520px; margin: 0 auto; }
.fr-lock-icon { width: 52px; height: 52px; border-radius: 50%; background: #f3f4f6; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; color: #6b7280; }
.fr-lock-title { font-size: 18px; font-weight: 700; color: #1a2f4a; margin: 0 0 6px !important; }
.fr-lock-desc { font-size: 14px; color: #6b7280; margin: 0 0 16px !important; line-height: 1.5; }
.fr-lock-features { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 20px; margin-bottom: 20px; }
.fr-lock-features span { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: #1a2f4a; }
.fr-lock-features svg { color: #B2150D; flex-shrink: 0; }

/* Premium button */
.fr-btn-premium { display: inline-block; background: #B2150D; color: #fff !important; padding: 12px 32px; border-radius: 8px; font-size: 15px; font-weight: 700; text-decoration: none !important; border: none !important; cursor: pointer; transition: background 0.2s; }
.fr-btn-premium:hover { background: #931109; color: #fff !important; }

/* Empty state */
.fr-empty { padding: 48px 24px; text-align: center; color: #6b7280; font-size: 14px; }

/* ── Expanded Section ── */
.fr-expanded { background: #f9fafb; border-top: 1px solid #e5e7eb; padding: 16px 24px; }
.fr-expanded-mob-count { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #e5e7eb; }
@media (min-width: 768px) { .fr-expanded-mob-count { display: none; } }
.fr-expanded-label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #1a2f4a; margin-bottom: 12px; }
.fr-expanded-label svg { flex-shrink: 0; }

/* Video grid */
.fr-video-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 640px) { .fr-video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .fr-video-grid { grid-template-columns: repeat(3, 1fr); } }

/* Video card */
.fr-video-card { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; transition: border-color 0.2s, box-shadow 0.2s; }
.fr-video-card:hover { border-color: #B2150D; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.fr-video-card.fr-video-watched { background: #f0fdf4; border-color: #bbf7d0; }

/* Watch checkbox */
.fr-watch-cb { cursor: pointer; flex-shrink: 0; display: flex; align-items: center; }
.fr-watch-cb input { position: absolute; opacity: 0; width: 0; height: 0; }
.fr-cb-box { width: 18px; height: 18px; border: 2px solid #d1d5db; border-radius: 4px; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.fr-cb-box svg { opacity: 0; color: #fff; transition: opacity 0.15s; }
.fr-cb-box.fr-cb-checked { background: #059669; border-color: #059669; }
.fr-cb-box.fr-cb-checked svg { opacity: 1; }

/* Play button */
.fr-video-play-area { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; cursor: pointer; }
.fr-play-btn { width: 32px; height: 32px; border-radius: 6px; background: #B2150D; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.2s; }
.fr-video-play-area:hover .fr-play-btn { background: #8a1009; }
.fr-video-info { flex: 1; min-width: 0; }
.fr-video-title { font-size: 13px; font-weight: 600; color: #1a2f4a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-video-game-info { font-size: 11px; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* External link */
.fr-ext-link { color: #d1d5db; transition: color 0.2s; flex-shrink: 0; }
.fr-ext-link:hover { color: #B2150D; }

/* ── Notes ── */
.fr-notes-area { margin-top: 16px; padding-top: 16px; border-top: 1px solid #e5e7eb; }
.fr-notes-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: #1a2f4a; }
.fr-notes-header svg { vertical-align: middle; margin-right: 4px; }
.fr-notes-rating { display: flex; gap: 2px; }
.fr-star { font-size: 20px; color: #d1d5db; cursor: pointer; transition: color 0.15s; line-height: 1; user-select: none; }
.fr-star:hover, .fr-star.fr-star-active { color: #f59e0b; }
.fr-notes-input { width: 100%; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 13px; font-family: inherit; color: #1a2f4a; resize: vertical; outline: none; transition: border-color 0.2s; background: #fff; }
.fr-notes-input:focus { border-color: #B2150D; box-shadow: 0 0 0 3px rgba(178,21,13,0.08); }
.fr-notes-input::placeholder { color: #9ca3af; }
.fr-notes-hint { font-size: 11px; color: #9ca3af; margin-top: 6px; }

/* ── Features Callout ── */
.fr-features-callout { padding: 32px 24px; background: #f9fafb; border-top: 1px solid #e5e7eb; }
.fr-features-heading { font-family: 'Teko', sans-serif; font-size: 24px; font-weight: 600; color: #1a2f4a; text-transform: uppercase; text-align: center; margin: 0 0 20px; }
.fr-features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 720px; margin: 0 auto 24px; }
@media (max-width: 639px) { .fr-features-grid { grid-template-columns: 1fr; } }
.fr-feature-item { display: flex; gap: 12px; align-items: flex-start; }
.fr-feature-icon { width: 20px; height: 20px; color: #B2150D; flex-shrink: 0; margin-top: 2px; }
.fr-feature-item strong { display: block; font-size: 14px; color: #1a2f4a; margin-bottom: 2px; }
.fr-feature-item p { font-size: 12px; color: #6b7280; margin: 0; line-height: 1.4; }
.fr-features-cta { text-align: center; }

/* ── Video Modal ── */
.fr-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 999998; }
.fr-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: calc(100% - 32px); max-width: 960px; max-height: 90vh; background: #fff; border-radius: 12px; overflow: auto; z-index: 999999; box-shadow: 0 25px 50px rgba(0,0,0,0.25); }
.fr-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; background: #fff; z-index: 1; }
.fr-modal-header-left { flex: 1; min-width: 0; }
.fr-modal-player { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.fr-modal-player strong { font-size: 16px; color: #1a2f4a; }
.fr-modal-video-title { font-size: 13px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-modal-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: 12px; }
.fr-modal-ext { color: #6b7280; transition: color 0.2s; }
.fr-modal-ext:hover { color: #1a2f4a; }
.fr-modal-close { background: none; border: none; padding: 4px; cursor: pointer; color: #6b7280; transition: color 0.2s; display: flex; align-items: center; }
.fr-modal-close:hover { color: #1a2f4a; }
.fr-modal-video { position: relative; padding-bottom: 56.25%; background: #000; }
.fr-modal-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.fr-modal-footer { padding: 10px 20px; background: #f9fafb; border-top: 1px solid #e5e7eb; font-size: 12px; color: #6b7280; }
.fr-modal-footer kbd { padding: 2px 6px; background: #fff; border: 1px solid #d1d5db; border-radius: 4px; font-family: monospace; font-size: 11px; }

/* ── Elementor / Hello Theme Overrides ── */
.fr-widget a { text-decoration: none !important; }
.fr-widget button { font-family: 'Inter', -apple-system, sans-serif !important; margin: 0 !important; line-height: inherit !important; }
.fr-widget p { margin: 0 !important; }
.fr-widget img { max-width: 100% !important; height: auto !important; border: none !important; box-shadow: none !important; }
.fr-widget input[type="text"] { margin: 0 !important; }
.fr-widget input[type="checkbox"] { margin: 0 !important; }
.fr-modal a { text-decoration: none !important; }
.fr-modal button { font-family: 'Inter', -apple-system, sans-serif !important; }

/* ── Premium Badge (top-right corner) ── */
.fr-premium-badge { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; background: #B2150D; color: #fff; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; line-height: 1.4; z-index: 5; }
.fr-widget { position: relative; }

/* ── Class Filter ── */
.fr-class-group { flex-shrink: 0; }
.fr-class-select { height: 32px !important; padding: 0 28px 0 10px !important; border: 1.5px solid #d1d5db !important; border-radius: 6px !important; font-family: 'Inter', sans-serif !important; font-size: 13px !important; font-weight: 600 !important; color: #1a2f4a !important; background: #f9fafb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 8px center !important; -webkit-appearance: none !important; appearance: none !important; cursor: pointer !important; outline: none !important; transition: border-color 0.2s !important; }
.fr-class-select:focus { border-color: #1a2f4a !important; }

/* ── Export Button ── */
.fr-export-group { flex-shrink: 0; }
.fr-export-btn { display: inline-flex !important; align-items: center !important; gap: 6px !important; height: 32px !important; padding: 0 16px !important; border-radius: 6px !important; border: 1.5px solid #1a2f4a !important; background: #fff !important; color: #1a2f4a !important; font-family: 'Inter', sans-serif !important; font-size: 13px !important; font-weight: 600 !important; cursor: pointer !important; transition: all 0.2s !important; white-space: nowrap !important; }
.fr-export-btn:hover { background: #1a2f4a !important; color: #fff !important; }
.fr-export-btn:hover svg { stroke: #fff; }

/* ── Cloud Save Indicator ── */
.fr-cloud-save { position: fixed; bottom: 24px; right: 24px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; background: #059669; color: #fff; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; z-index: 9999; opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.3s; box-shadow: 0 4px 12px rgba(0,0,0,0.15); pointer-events: none; }
.fr-cloud-save svg { flex-shrink: 0; }
.fr-cloud-save.fr-cloud-save-show { opacity: 1; transform: translateY(0); }
