genre = ''
minutes_available = -1
snacks_in_house = ''
mood = ''

print("---------------------- Movie Night Picker ----------------------")
print(" Answer a few questions and I'll help you plan movie night.")
print("-------------------------------------------------------------------")

while genre.strip() == '':
    genre = input(" 1. Favorite genre tonight (comedy, horror, drama, action): ")

while minutes_available == -1:
    try:
        minutes_available = int(input(" 2. Minutes available tonight: "))
        if minutes_available < 0:
            minutes_available = -1
            print(" That's not a real number of minutes. Try again.")
    except ValueError:
        print(" Numbers only, please!")

while snacks_in_house.strip() == '':
    snacks_in_house = input(" 3. Do you have snacks in the house? (yes/no): ")

while mood.strip() == '':
    mood = input(" 4. Are you in the mood to focus, or just relax? (focus/relax")

print("\n----------------------- Facts Collected -----------------------")
print(f" Genre: {genre}")
print(f" Minutes available: {minutes_available}")
print(f" Snacks in house: {snacks_in_house}")
print(f" Mood: {mood}")
print("---------------------------------------------------------------")

# TODO #1 — Length category
# Using if / elif / else, set a variable called `length_category` based on
# minutes_available:
# < 30 -> "short film"
# 30 to 89 -> "standard movie"
# 90 or more -> "epic / miniseries night"
# (Decide for yourself whether the boundaries are inclusive or exclusive,
# but be consistent, and be ready to explain your choice.)



# TODO #2 — Snack run decision
# Using and / or / not, decide whether a snack run is needed.
# A snack run IS needed if the user does NOT have snacks in the house
# AND they are watching something 30 minutes or longer.
# Store the result (True or False) in a variable called `snack_run_needed`.



# TODO #3 — Genre suggestion, with match
# Replace the logic below with a match statement on `genre.lower()` that
# prints ONE suggested title per genre. Include at least four genres
# (comedy, horror, drama, action) plus a default case using `_` for
# anything else the user might type.



# TODO #4 — Nested conditional
# If mood is "focus", recommend movies from `length_category` "standard movie"
# or "epic / miniseries night" only — print a message explaining why a
# "short film" isn't a great fit for focused viewing.
# If mood is "relax", any length_category is fine — just print the
# length_category as the recommendation.
# This should be a nested if: check mood first, then (when appropriate)
# check length_category inside it.




print("\n------------------------------ Plan -----------------------------")
# TODO #5 — Final summary
# Print a short summary that includes: the length_category, whether a
# snack run is needed, and the mood-based recommendation from TODO #4.
# Use an f-string.



print("-------------------------------------------------------------------")